summaryrefslogtreecommitdiff
path: root/mail/postfix-current/files
diff options
context:
space:
mode:
authorSahil Tandon <sahil@FreeBSD.org>2012-11-05 02:19:57 +0000
committerSahil Tandon <sahil@FreeBSD.org>2012-11-05 02:19:57 +0000
commit714053470acfd9200aa4371ec77fda6c8b60d7fb (patch)
tree7881e598d71e2a76b45e82737162b05a1fb0b743 /mail/postfix-current/files
parentUpdate port to the 3.5.18 version (diff)
Update to Postfix 2.10 Snapshot 20121031 and document
incompatible changes in UPDATING. Also, revise the PKGINSTALL script to distinguish upgrades from fresh installs. Feature safe: yes
Notes
Notes: svn path=/head/; revision=306992
Diffstat (limited to 'mail/postfix-current/files')
-rw-r--r--mail/postfix-current/files/pkg-install.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/mail/postfix-current/files/pkg-install.in b/mail/postfix-current/files/pkg-install.in
index de71fede9e18..239363f04308 100644
--- a/mail/postfix-current/files/pkg-install.in
+++ b/mail/postfix-current/files/pkg-install.in
@@ -65,11 +65,15 @@ if [ "$2" = "POST-INSTALL" ]; then
fi
done
- /bin/sh ${DAEMONDIR}/post-install tempdir=/tmp \
- daemon_directory=${DAEMONDIR} \
- html_directory=${READMEDIR} \
- readme_directory=${READMEDIR} \
- upgrade-package
+ cmp ${DAEMONDIR}/main.cf ${ETCDIR}/main.cf >/dev/null 2>&1 \
+ && POSTARG="set-permissions" \
+ || POSTARG="upgrade-package"
+
+ /bin/sh ${DAEMONDIR}/post-install tempdir=/tmp \
+ daemon_directory=${DAEMONDIR} \
+ html_directory=${READMEDIR} \
+ readme_directory=${READMEDIR} \
+ ${POSTARG}
fi
if [ "$2" = "POST-INSTALL" -a -z "${PACKAGE_BUILDING}" -a -f "${MC}" ]; then