diff options
author | Peter Wemm <peter@FreeBSD.org> | 2000-04-03 01:54:16 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2000-04-03 01:54:16 +0000 |
commit | c107051814ae06382cdac8ac844a084db3e14a65 (patch) | |
tree | 9444903253c8241051d863827cf857fe229964f7 /mail/postfix25 | |
parent | d5d98014e6051fbc9362d8fb8e19aa6539088f9a (diff) | |
download | ports-c107051814ae06382cdac8ac844a084db3e14a65.tar.gz ports-c107051814ae06382cdac8ac844a084db3e14a65.zip |
Notes
Diffstat (limited to 'mail/postfix25')
-rw-r--r-- | mail/postfix25/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mail/postfix25/Makefile b/mail/postfix25/Makefile index 1b2570425812..d24415174707 100644 --- a/mail/postfix25/Makefile +++ b/mail/postfix25/Makefile @@ -110,7 +110,15 @@ pre-install: post-install: @PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL +.include <bsd.port.pre.mk> + replace: +.if ${OSVERSION} >= 400014 + @${ECHO_MSG} "===> Activating postfix in /etc/mail/mailer.conf" + ${MV} -f /etc/mail/mailer.conf /etc/mail/mailer.conf.bak + ${SED} -e 's|/usr/libexec/sendmail|${PREFIX}/sbin|' \ + < /etc/mail/mailer.conf.bak > /etc/mail/mailer.conf +.else @${ECHO_MSG} "===> Replacing sendmail" @if [ -e /usr/sbin/sendmail ]; then \ ${MV} -f /usr/sbin/sendmail /usr/sbin/sendmail.OFF; \ @@ -135,5 +143,6 @@ replace: @if [ -e ${PREFIX}/sbin/sendmail ]; then \ ${LN} -s ${PREFIX}/sbin/sendmail /usr/bin/newaliases; \ fi +.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |