aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfix28
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2003-07-10 15:12:46 +0800
committererwin <erwin@FreeBSD.org>2003-07-10 15:12:46 +0800
commit27b7d1e9df2919e075d0afc81ce37b83509ab5f7 (patch)
tree2ea08ba34c44a72444630ad48fa73e9390d0fb4b /mail/postfix28
parent9642e619e42bba3ca9cb077c49b4956305f59c1c (diff)
downloadfreebsd-ports-gnome-27b7d1e9df2919e075d0afc81ce37b83509ab5f7.tar.gz
freebsd-ports-gnome-27b7d1e9df2919e075d0afc81ce37b83509ab5f7.tar.zst
freebsd-ports-gnome-27b7d1e9df2919e075d0afc81ce37b83509ab5f7.zip
Included in this email is a patch to postfix which I need applied for
my upcoming commit to sysinstall(8). PR: 54291 Submitted by: trhodes via maintainer
Diffstat (limited to 'mail/postfix28')
-rw-r--r--mail/postfix28/pkg-install14
1 files changed, 13 insertions, 1 deletions
diff --git a/mail/postfix28/pkg-install b/mail/postfix28/pkg-install
index 1ef1fb5b2089..8cf5a9a5aefe 100644
--- a/mail/postfix28/pkg-install
+++ b/mail/postfix28/pkg-install
@@ -3,8 +3,19 @@
# $FreeBSD$
#
+# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it
+# will make the port/package use defaults which makes postfix replaces
+# sendmail as much as possible.
+
PKG_PREFIX=${PKG_PREFIX:=/usr/local}
BATCH=${BATCH:=no}
+POSTFIX_DEFAULT_MTA=${POSTFIX_DEFAULT_MTA:=no}
+
+if [ x${POSTFIX_DEFAULT_MTA} = xno ]; then
+ DEFAULT_REPLACE_MAILERCONF=n
+else
+ DEFAULT_REPLACE_MAILERCONF=y
+fi
ask() {
local question default answer
@@ -147,7 +158,8 @@ if [ x"$2" = xPOST-INSTALL -a -z "${PACKAGE_BUILDING}" ]; then
OSVERSION=`/usr/sbin/sysctl -n kern.osreldate`
fi
if [ ${OSVERSION} -ge 400014 ]; then
- if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" n; then
+ if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" \
+ ${DEFAULT_REPLACE_MAILERCONF}; then
mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old
echo "#" > /etc/mail/mailer.conf
echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf