diff options
author | peter <peter@FreeBSD.org> | 2000-04-03 09:54:16 +0800 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-04-03 09:54:16 +0800 |
commit | 50f3b43df57111979f3cb7bcbba49718c53c3fe1 (patch) | |
tree | d16b4f8d15274cf08d1f265b486c9454ddba3109 /mail/postfix23 | |
parent | 59dc076cab6971c7db59d90d09bd9b8e2a686921 (diff) | |
download | freebsd-ports-gnome-50f3b43df57111979f3cb7bcbba49718c53c3fe1.tar.gz freebsd-ports-gnome-50f3b43df57111979f3cb7bcbba49718c53c3fe1.tar.zst freebsd-ports-gnome-50f3b43df57111979f3cb7bcbba49718c53c3fe1.zip |
Fix 'make replace' to correctly use mailer.conf
Diffstat (limited to 'mail/postfix23')
-rw-r--r-- | mail/postfix23/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mail/postfix23/Makefile b/mail/postfix23/Makefile index 1b2570425812..d24415174707 100644 --- a/mail/postfix23/Makefile +++ b/mail/postfix23/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> |