From c107051814ae06382cdac8ac844a084db3e14a65 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 3 Apr 2000 01:54:16 +0000 Subject: Fix 'make replace' to correctly use mailer.conf --- mail/postfix-current/Makefile | 11 ++++++++++- mail/postfix/Makefile | 11 ++++++++++- mail/postfix1/Makefile | 11 ++++++++++- mail/postfix20/Makefile | 11 ++++++++++- mail/postfix21/Makefile | 11 ++++++++++- mail/postfix22/Makefile | 11 ++++++++++- mail/postfix23/Makefile | 11 ++++++++++- mail/postfix24/Makefile | 11 ++++++++++- mail/postfix25/Makefile | 11 ++++++++++- mail/postfix26/Makefile | 11 ++++++++++- mail/postfix27/Makefile | 11 ++++++++++- mail/postfix28/Makefile | 11 ++++++++++- 12 files changed, 120 insertions(+), 12 deletions(-) diff --git a/mail/postfix-current/Makefile b/mail/postfix-current/Makefile index 1b2570425812..d24415174707 100644 --- a/mail/postfix-current/Makefile +++ b/mail/postfix-current/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 diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile index 1b2570425812..d24415174707 100644 --- a/mail/postfix/Makefile +++ b/mail/postfix/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 diff --git a/mail/postfix1/Makefile b/mail/postfix1/Makefile index 1b2570425812..d24415174707 100644 --- a/mail/postfix1/Makefile +++ b/mail/postfix1/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 diff --git a/mail/postfix20/Makefile b/mail/postfix20/Makefile index 1b2570425812..d24415174707 100644 --- a/mail/postfix20/Makefile +++ b/mail/postfix20/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 diff --git a/mail/postfix21/Makefile b/mail/postfix21/Makefile index 1b2570425812..d24415174707 100644 --- a/mail/postfix21/Makefile +++ b/mail/postfix21/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 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 + 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 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 + 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 diff --git a/mail/postfix24/Makefile b/mail/postfix24/Makefile index 1b2570425812..d24415174707 100644 --- a/mail/postfix24/Makefile +++ b/mail/postfix24/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 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 + 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 diff --git a/mail/postfix26/Makefile b/mail/postfix26/Makefile index 1b2570425812..d24415174707 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 + 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 diff --git a/mail/postfix27/Makefile b/mail/postfix27/Makefile index 1b2570425812..d24415174707 100644 --- a/mail/postfix27/Makefile +++ b/mail/postfix27/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 diff --git a/mail/postfix28/Makefile b/mail/postfix28/Makefile index 1b2570425812..d24415174707 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.2.3