summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-08-25 09:06:43 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-08-25 09:06:43 +0000
commit40fe2d9de96e3af26ae35e35270f6ecaa1c33e92 (patch)
tree2718a148e6f0db52bf4e3589d69431c1bd8546d3 /security
parentUpdate to Mixer.app-1.7.0 (diff)
Do not overwrite existen drwebsmf.sh on install
Notes
Notes: svn path=/head/; revision=46868
Diffstat (limited to 'security')
-rw-r--r--security/drweb-sendmail/Makefile16
-rw-r--r--security/drweb-sendmail/pkg-plist4
2 files changed, 17 insertions, 3 deletions
diff --git a/security/drweb-sendmail/Makefile b/security/drweb-sendmail/Makefile
index 68a58c578743..4bf289e5f519 100644
--- a/security/drweb-sendmail/Makefile
+++ b/security/drweb-sendmail/Makefile
@@ -1,4 +1,4 @@
-# New ports collection makefile for: tas
+# New ports collection makefile for: drweb_sendmail
# Date created: 14 August 2001
# Whom: Anton Voronin <anton@urc.ac.ru>
#
@@ -69,7 +69,19 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/../sendmail/readme.sendmail ${DOC_DIR}
${INSTALL_DATA} ${WRKSRC}/../sendmail/readme.sendmail.rus ${DOC_DIR}
${SED} 's#!!PREFIX!!#${PREFIX}#' < ${FILESDIR}/drweb-smf.sh >${WRKSRC}/drweb-smf.sh
- ${INSTALL_SCRIPT} ${WRKSRC}/drweb-smf.sh ${PREFIX}/etc/rc.d/drwebsmf.sh
+# drwebsmf.sh instead drweb-smf.sh to start after drwebd.sh
+ ${INSTALL_DATA} ${WRKSRC}/drweb-smf.sh ${PREFIX}/etc/rc.d/drwebsmf.sh-dist
+ if [ ! -f ${PREFIX}/etc/rc.d/drwebsmf.sh ] ; then \
+ ${INSTALL_DATA} ${WRKSRC}/drweb-smf.sh ${PREFIX}/etc/rc.d/drwebsmf.sh; \
+ fi
+
+post-install:
+ @echo
@${CAT} pkg-message
+ @echo
+ @echo "Read documentation about additional sendmail tuning needed"
+ @echo "in ${DOC_DIR}."
+ @echo "Inspect options used as example in ${PREFIX}/etc/rc.d/drwebsmf.sh"
+ @echo "and set bit x to really activate that script."
.include <bsd.port.post.mk>
diff --git a/security/drweb-sendmail/pkg-plist b/security/drweb-sendmail/pkg-plist
index aca60561952f..ad547446195f 100644
--- a/security/drweb-sendmail/pkg-plist
+++ b/security/drweb-sendmail/pkg-plist
@@ -1,4 +1,6 @@
-etc/rc.d/drwebsmf.sh
+@unexec if [ -f %D/etc/rc.d/drwebsmf.sh ] && cmp -s %D/etc/rc.d/drwebsmf.sh %D/etc/rc.d/drwebsmf.sh-dist; then rm -f %D/etc/rc.d/drwebsmf.sh; fi
+etc/rc.d/drwebsmf.sh-dist
+@exec if [ ! -f %D/etc/rc.d/drwebsmf.sh ] ; then cp -p %D/%F %B/drwebsmf.sh; fi
sbin/drweb-smf
share/doc/drweb-sendmail/readme.sendmail
share/doc/drweb-sendmail/readme.sendmail.rus