aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfix28
diff options
context:
space:
mode:
authorsahil <sahil@FreeBSD.org>2012-02-12 05:27:57 +0800
committersahil <sahil@FreeBSD.org>2012-02-12 05:27:57 +0800
commit5bd4401fd93bdb9584b9999bf08a349984d0218f (patch)
tree3d19b83deb511d86e7c31463bbea32bee3d85895 /mail/postfix28
parent466aa6fa476a3e586a51ac6d242fda58a03efea8 (diff)
downloadfreebsd-ports-gnome-5bd4401fd93bdb9584b9999bf08a349984d0218f.tar.gz
freebsd-ports-gnome-5bd4401fd93bdb9584b9999bf08a349984d0218f.tar.zst
freebsd-ports-gnome-5bd4401fd93bdb9584b9999bf08a349984d0218f.zip
Modify pkg-install to handle situations in which
/etc/mail/mailer.conf does not exist, e.g. when FreeBSD is built WITHOUT_MAILWRAPPER. This commit only affects legacy Postfix releases, as the latest stable and development ports already perform this check. Requested by: miwi
Diffstat (limited to 'mail/postfix28')
-rw-r--r--mail/postfix28/files/pkg-install.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/postfix28/files/pkg-install.in b/mail/postfix28/files/pkg-install.in
index 5a2f34911cb9..91011cc3301a 100644
--- a/mail/postfix28/files/pkg-install.in
+++ b/mail/postfix28/files/pkg-install.in
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $FreeBSD: /tmp/pcvs/ports/mail/postfix28/files/pkg-install.in,v 1.6 2012-02-07 01:41:44 sahil Exp $
+# $FreeBSD: /tmp/pcvs/ports/mail/postfix28/files/pkg-install.in,v 1.7 2012-02-11 21:27:57 sahil Exp $
#
# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it
@@ -74,7 +74,7 @@ if [ "$2" = "POST-INSTALL" ]; then
fi
-if [ "$2" = "POST-INSTALL" -a -z "${PACKAGE_BUILDING}" ]; then
+if [ "$2" = "POST-INSTALL" -a -z "${PACKAGE_BUILDING}" -a -f "${MC}" ]; then
egrep -q "^sendmail.*${PREFIX}/sbin/sendmail" ${MC} && \
egrep -q "^send-mail.*${PREFIX}/sbin/sendmail" ${MC} && \
egrep -q "^mailq.*${PREFIX}/sbin/sendmail" ${MC} && \