summaryrefslogtreecommitdiff
path: root/net/samba
diff options
context:
space:
mode:
authoragc <agc>1997-12-24 10:52:31 +0000
committeragc <agc>1997-12-24 10:52:31 +0000
commitf8f014e5c8cbaf975717b64b5b9c6f1d48e86fe5 (patch)
treea5606057fe650ae189633194fa2e28e19d5470bf /net/samba
parentfe1138fe7748a45d4c1e9ebf731572c4d26ebff4 (diff)
downloadpkgsrc-f8f014e5c8cbaf975717b64b5b9c6f1d48e86fe5.tar.gz
Clean up a sed command, and lose two inappropriate and duplicate
Makefile definitions in the process.
Diffstat (limited to 'net/samba')
-rw-r--r--net/samba/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile
index 977fabcfc6e..6db889f0dfb 100644
--- a/net/samba/Makefile
+++ b/net/samba/Makefile
@@ -3,7 +3,7 @@
# Date created: 11th Feb 1995
# Whom: gpalmer
#
-# $NetBSD: Makefile,v 1.2 1997/12/24 10:35:27 agc Exp $
+# $NetBSD: Makefile,v 1.3 1997/12/24 10:52:31 agc Exp $
# FreeBSD Id: Makefile,v 1.17 1997/10/23 15:03:20 max Exp
#
@@ -23,9 +23,7 @@ MAN8= smbd.8 nmbd.8 smbpasswd.8
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/samba.sh.sample
SAMPLE_CONFIG= ${PREFIX}/etc/smb.conf.sample
SAMBA_SPOOL= /var/spool/samba
-XSAMBA_SPOOL= \/var\/spool\/samba
SAMBA_LOGDIR= /var/log
-XSAMBA_LOGDIR= \/var\/log
post-install:
.if !defined(NOPORTDOCS)
@@ -52,8 +50,8 @@ post-install:
fi
@test -d ${SAMBA_SPOOL} || ${MKDIR} ${SAMBA_SPOOL} && chmod 1777 ${SAMBA_SPOOL}
@if [ ! -f ${SAMPLE_CONFIG} ]; then \
- ${SED} -e 's/__SAMBA_SPOOL__/${XSAMBA_SPOOL}/' \
- -e 's/__LOGDIR__/${XSAMBA_LOGDIR}/' \
+ ${SED} -e 's:__SAMBA_SPOOL__:${SAMBA_SPOOL}:g' \
+ -e 's:__LOGDIR__:${SAMBA_LOGDIR}:g' \
${FILESDIR}/smb.conf.sample \
> ${SAMPLE_CONFIG} ; \
fi