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 # @@ -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 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