summaryrefslogtreecommitdiff
path: root/net/samba/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2002-02-05 05:14:46 +0000
committerjlam <jlam>2002-02-05 05:14:46 +0000
commit046804b1bab4503fb8ce3ffc8b12b1b9322059e0 (patch)
treecd8fd5d42714b56a069d75ef124f0a9f6f86807f /net/samba/Makefile
parent66e542fd64e9ba63c8bca8098e0b39e1366cec9e (diff)
downloadpkgsrc-046804b1bab4503fb8ce3ffc8b12b1b9322059e0.tar.gz
Modify the package so that the message is only displayed if SAMBA_USE_LDAP
is not defined, as that is the only time when the smbpasswd file is consulted. Also don't create a the smbpasswd file from /etc/passwd, as that generates a lot of bad users, e.g. root, daemon, operator, etc. Instead, just create an empty smbpasswd file and rely on the admin to add approved users to the smbpasswd file using "smbpasswd -a".
Diffstat (limited to 'net/samba/Makefile')
-rw-r--r--net/samba/Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile
index 00451e9cc57..3cdaf7db118 100644
--- a/net/samba/Makefile
+++ b/net/samba/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.79 2002/02/05 03:04:20 jlam Exp $
+# $NetBSD: Makefile,v 1.80 2002/02/05 05:14:46 jlam Exp $
DISTNAME= samba-2.2.3
PKGREVISION= 1
@@ -75,6 +75,9 @@ CONFIGURE_ARGS+= --with-ldapsam
PLIST_SUBST+= SAMBA_LDAP=""
.else
PLIST_SUBST+= SAMBA_LDAP="@comment "
+MESSAGE_SRC= ${.CURDIR}/MESSAGE.smbpasswd
+SMBPASSWD_FILE= /dev/null ${SAMBA_PRIVATE}/smbpasswd \
+ ${ROOT_USER} ${ROOT_GROUP} 0700
.endif
# The following are Linux-only options.
@@ -89,11 +92,15 @@ FILES_SUBST= SAMBA_PRIVATE=${SAMBA_PRIVATE}
FILES_SUBST+= SAMBA_LOCKDIR=${SAMBA_LOCKDIR}
FILES_SUBST+= SAMBA_LOGDIR=${SAMBA_LOGDIR}
FILES_SUBST+= SAMBA_ETCDIR=${SAMBA_ETCDIR}
-MESSAGE_SUBST+= ETCDIR=${SAMBA_ETCDIR}
+MESSAGE_SUBST+= SAMBA_ETCDIR=${SAMBA_ETCDIR}
+MESSAGE_SUBST+= ROOT_GROUP=${ROOT_GROUP}
+MESSAGE_SUBST+= ROOT_USER=${ROOT_USER}
CONF_FILES= ${EXAMPLESDIR}/smb.conf.sample ${SAMBA_ETCDIR}/smb.conf
+SUPPORT_FILES_PERMS= ${SMBPASSWD_FILE}
RCD_SCRIPTS= samba nmbd smbd
-OWN_DIRS= ${SAMBA_ETCDIR} ${SAMBA_PRIVATE} ${SAMBA_LOCKDIR}
+OWN_DIRS= ${SAMBA_ETCDIR} ${SAMBA_LOCKDIR}
+OWN_DIRS_PERMS= ${SAMBA_PRIVATE} ${ROOT_USER} ${ROOT_GROUP} 0500
INSTALL_EXTRA_TMPL= ${PKGDIR}/INSTALL
@@ -103,7 +110,7 @@ post-extract:
${RM} -r ${WRKDIR}/${DISTNAME}/docs/textdocs/outdated
pre-install:
- for script in ${RCD_SCRIPTS}; do \
+ @for script in ${RCD_SCRIPTS}; do \
${SED} ${FILES_SUBST_SED} ${FILESDIR}/$${script}.sh \
> ${WRKDIR}/$${script}; \
done
@@ -130,7 +137,7 @@ post-install:
${INSTALL_SCRIPT} ${WRKSRC}/script/mksmbpasswd.sh \
${PREFIX}/sbin/mksmbpasswd
- ${SED} ${FILES_SUBST_SED} \
+ @${SED} ${FILES_SUBST_SED} \
${FILESDIR}/smb.conf.sample > ${WRKDIR}/smb.conf.sample
${INSTALL_DATA} ${WRKDIR}/smb.conf.sample ${EXAMPLESDIR}