diff options
author | veego <veego> | 2000-05-17 09:22:28 +0000 |
---|---|---|
committer | veego <veego> | 2000-05-17 09:22:28 +0000 |
commit | a8bfc33376c8bf08c9498adaba1e5aa112a41370 (patch) | |
tree | a465a16cef9fd3a088c586b05465c0f3a1e680c8 /net/samba | |
parent | c32ce3ebd16cba9f22f3a9d6bdb87c14c5e4653b (diff) | |
download | pkgsrc-a8bfc33376c8bf08c9498adaba1e5aa112a41370.tar.gz |
Solaris has no group wheel, so we have to extend the sed line in the Makefile
and change the chgrp command.
Diffstat (limited to 'net/samba')
-rw-r--r-- | net/samba/Makefile | 9 | ||||
-rw-r--r-- | net/samba/pkg/INSTALL | 5 |
2 files changed, 11 insertions, 3 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile index 9aaacff0ef6..dfc59558cc5 100644 --- a/net/samba/Makefile +++ b/net/samba/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.32 2000/05/02 15:24:08 jlam Exp $ +# $NetBSD: Makefile,v 1.33 2000/05/17 09:22:28 veego Exp $ DISTNAME= samba-2.0.7 WRKSRC= ${WRKDIR}/${DISTNAME}/source @@ -27,6 +27,12 @@ SAMBA_LOCKDIR= /var/run/samba SAMBA_ETCDIR?= /etc/samba SAMBA_PRIVATE?= ${SAMBA_ETCDIR}/private +.if ${OPSYS} == "SunOS" +ROOT_GROUP?= root +.else +ROOT_GROUP?= wheel +.endif + MAKE_ENV+= ETCDIR=${SAMBA_ETCDIR} MAKE_ENV+= LOGDIR=${SAMBA_LOGDIR} @@ -84,6 +90,7 @@ post-install: ${INSTALL_SCRIPT} ${WRKSRC}/script/mksmbpasswd.sh ${PREFIX}/bin ${SED} -e "s,@SAMBA_PRIVATE@,${SAMBA_PRIVATE},g" \ + -e "s,@ROOT_GROUP@,${ROOT_GROUP},g" \ < ${PKGDIR}/INSTALL > ${INSTALL_FILE} ${SED} -e "s,@SAMBA_PRIVATE@,${SAMBA_PRIVATE},g" \ < ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} diff --git a/net/samba/pkg/INSTALL b/net/samba/pkg/INSTALL index 65348237d35..0b365aeb0ba 100644 --- a/net/samba/pkg/INSTALL +++ b/net/samba/pkg/INSTALL @@ -1,11 +1,12 @@ #!/bin/sh # -# $NetBSD: INSTALL,v 1.3 2000/05/17 09:09:42 veego Exp $ +# $NetBSD: INSTALL,v 1.4 2000/05/17 09:22:28 veego Exp $ PKGNAME=$1 STAGE=$2 SAMBA_PRIVATE=@SAMBA_PRIVATE@ +ROOT_GROUP=@ROOT_GROUP@ case ${STAGE} in PRE-INSTALL) @@ -16,7 +17,7 @@ POST-INSTALL) then echo -n "Creating ${SAMBA_PRIVATE}/smbpasswd..." chown -R root ${SAMBA_PRIVATE} - chgrp -R wheel ${SAMBA_PRIVATE} + chgrp -R ${ROOT_GROUP} ${SAMBA_PRIVATE} cat /etc/passwd | ${PKG_PREFIX}/bin/mksmbpasswd.sh \ >${SAMBA_PRIVATE}/smbpasswd chmod 500 ${SAMBA_PRIVATE} |