From 50f3b43df57111979f3cb7bcbba49718c53c3fe1 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 3 Apr 2000 01:54:16 +0000 Subject: Fix 'make replace' to correctly use mailer.conf --- mail/postfix28/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'mail/postfix28') diff --git a/mail/postfix28/Makefile b/mail/postfix28/Makefile index 1b25704..d244151 100644 --- a/mail/postfix28/Makefile +++ b/mail/postfix28/Makefile @@ -110,7 +110,15 @@ pre-install: post-install: @PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL +.include + 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 +.include -- cgit v1.1