summaryrefslogtreecommitdiff
path: root/mail/postfix/files
diff options
context:
space:
mode:
authorSahil Tandon <sahil@FreeBSD.org>2012-02-11 05:14:34 +0000
committerSahil Tandon <sahil@FreeBSD.org>2012-02-11 05:14:34 +0000
commitf4eeae44e918e67f1c96c432b9fb679c777f3b42 (patch)
treec76c736bb63cca28e8fbf2abc099f2964560c20d /mail/postfix/files
parentUpdate to 2.10-20120202, revise IS_INTERACTIVE logic to (diff)
Update to 2.9.0 and revise IS_INTERACTIVE logic to
account for additional situations.
Notes
Notes: svn path=/head/; revision=290904
Diffstat (limited to 'mail/postfix/files')
-rw-r--r--mail/postfix/files/pkg-install.in6
1 files changed, 2 insertions, 4 deletions
diff --git a/mail/postfix/files/pkg-install.in b/mail/postfix/files/pkg-install.in
index 09d33bcc5362..f8d9a47206fc 100644
--- a/mail/postfix/files/pkg-install.in
+++ b/mail/postfix/files/pkg-install.in
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $FreeBSD: /tmp/pcvs/ports/mail/postfix/files/pkg-install.in,v 1.5 2011-07-26 01:49:28 sahil Exp $
+# $FreeBSD: /tmp/pcvs/ports/mail/postfix/files/pkg-install.in,v 1.6 2012-02-11 05:14:34 sahil Exp $
#
# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it
@@ -56,7 +56,6 @@ yesno() {
done
}
-
if [ "$2" = "POST-INSTALL" ]; then
SAMPLES="main.cf master.cf"
for file in $SAMPLES
@@ -73,8 +72,7 @@ if [ "$2" = "POST-INSTALL" ]; then
upgrade-package
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} && \