summaryrefslogtreecommitdiff
path: root/net/samba/Makefile
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-02-04 15:29:58 +0000
committertron <tron@pkgsrc.org>2001-02-04 15:29:58 +0000
commit43db17d3e2e32e0c2ce0017d20342d2ae446a654 (patch)
tree5cd3ddcfd44c573de794b8a9fe03396ff1183360 /net/samba/Makefile
parentb2c913eb65fc9850fba466262ca7f0e9423f2530 (diff)
downloadpkgsrc-43db17d3e2e32e0c2ce0017d20342d2ae446a654.tar.gz
Replace monolithic old style startup script with two new style startup
scripts which include backward compatibility for pre 1.5 systems.
Diffstat (limited to 'net/samba/Makefile')
-rw-r--r--net/samba/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile
index 9dcbe24150d..bde0c7e3e6e 100644
--- a/net/samba/Makefile
+++ b/net/samba/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2000/11/20 02:45:18 kim Exp $
+# $NetBSD: Makefile,v 1.40 2001/02/04 15:29:58 tron Exp $
DISTNAME= samba-2.0.7-ja-1.3
PKGNAME= samba-2.0.7.1.3
@@ -23,7 +23,6 @@ GNU_CONFIGURE= # defined
.include "../../mk/bsd.prefs.mk"
-STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/samba.sh.sample
SAMPLE_CONFIG= ${PREFIX}/share/examples/samba/smb.conf.sample
SAMBA_LOGDIR= /var/log
SAMBA_LOCKDIR= /var/run/samba
@@ -53,6 +52,13 @@ DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
pre-configure:
cd ${WRKSRC}; ${LOCALBASE}/bin/autoreconf
+post-build:
+.for FILE in nmbd.sh smbd.sh
+ ${SED} -e "s,@PREFIX@,${PREFIX},g" \
+ -e "s,@ECHO@,${ECHO},g" \
+ < ${FILESDIR}/${FILE} > ${WRKDIR}/${FILE}
+.endfor
+
post-install:
# Install Samba documentation.
#
@@ -81,10 +87,8 @@ post-install:
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/samba
${CHMOD} -R ugo-w ${PREFIX}/share/examples/samba
- ${SED} -e "s,@PREFIX@,${PREFIX},g" \
- -e "s,@ECHO@,${ECHO},g" \
- < ${FILESDIR}/samba.sh > ${WRKDIR}/samba.sh
- ${INSTALL_SCRIPT} ${WRKDIR}/samba.sh ${STARTUP_SCRIPT}
+ ${INSTALL_SCRIPT} ${WRKDIR}/nmbd.sh ${WRKDIR}/smbd.sh \
+ ${PREFIX}/etc/rc.d
${SED} -e 's,@LOGDIR@,${SAMBA_LOGDIR},g' \
-e 's,@ETCDIR@,${SAMBA_ETCDIR},g' \