summaryrefslogtreecommitdiff
path: root/mail/postfix22
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2000-04-03 01:54:16 +0000
committerPeter Wemm <peter@FreeBSD.org>2000-04-03 01:54:16 +0000
commitc107051814ae06382cdac8ac844a084db3e14a65 (patch)
tree9444903253c8241051d863827cf857fe229964f7 /mail/postfix22
parentUpgrade to latest version, fix PR 16472, 16753, 17078 too. (diff)
Fix 'make replace' to correctly use mailer.conf
Notes
Notes: svn path=/head/; revision=27297
Diffstat (limited to 'mail/postfix22')
-rw-r--r--mail/postfix22/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/mail/postfix22/Makefile b/mail/postfix22/Makefile
index 1b2570425812..d24415174707 100644
--- a/mail/postfix22/Makefile
+++ b/mail/postfix22/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>