Do not overwrite existen drwebsmf.sh on install
This commit is contained in:
parent
307bcf45ad
commit
40fe2d9de9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=46868
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user