summaryrefslogtreecommitdiffstats
path: root/mail/postfix26
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-04-03 01:54:16 +0000
committerpeter <peter@FreeBSD.org>2000-04-03 01:54:16 +0000
commit50f3b43df57111979f3cb7bcbba49718c53c3fe1 (patch)
treed16b4f8d15274cf08d1f265b486c9454ddba3109 /mail/postfix26
parent59dc076cab6971c7db59d90d09bd9b8e2a686921 (diff)
downloadFreeBSD-ports-50f3b43df57111979f3cb7bcbba49718c53c3fe1.zip
FreeBSD-ports-50f3b43df57111979f3cb7bcbba49718c53c3fe1.tar.gz
Fix 'make replace' to correctly use mailer.conf
Diffstat (limited to 'mail/postfix26')
-rw-r--r--mail/postfix26/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/mail/postfix26/Makefile b/mail/postfix26/Makefile
index 1b25704..d244151 100644
--- a/mail/postfix26/Makefile
+++ b/mail/postfix26/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>
OpenPOWER on IntegriCloud