summaryrefslogtreecommitdiff
path: root/mail/postfix/files
diff options
context:
space:
mode:
authorSahil Tandon <sahil@FreeBSD.org>2013-01-28 02:44:04 +0000
committerSahil Tandon <sahil@FreeBSD.org>2013-01-28 02:44:04 +0000
commite9f1df8199f3234595b92022387a6c31fa2b6b7b (patch)
tree4785841dd527556de949b419a26ae44db71952f1 /mail/postfix/files
parentUpdate to 0.8.0. (diff)
Update to 2.9.5 and revise the PKGINSTALL script to
distinguish between upgrades and fresh installs. Also, mark BROKEN when users try to build WITH_LDAP_SASL but WITHOUT_SASL2.
Diffstat (limited to 'mail/postfix/files')
-rw-r--r--mail/postfix/files/patch-src::util::sys_defs.h8
-rw-r--r--mail/postfix/files/pkg-install.in14
2 files changed, 13 insertions, 9 deletions
diff --git a/mail/postfix/files/patch-src::util::sys_defs.h b/mail/postfix/files/patch-src::util::sys_defs.h
index a13c320759ff..bc27051815d6 100644
--- a/mail/postfix/files/patch-src::util::sys_defs.h
+++ b/mail/postfix/files/patch-src::util::sys_defs.h
@@ -1,11 +1,11 @@
---- src/util/sys_defs.h.orig 2011-03-01 19:35:19.000000000 -0500
-+++ src/util/sys_defs.h 2011-03-01 19:36:54.000000000 -0500
+--- src/util/sys_defs.h.orig 2013-01-19 18:30:14.000000000 +0000
++++ src/util/sys_defs.h 2013-01-19 18:31:50.000000000 +0000
@@ -25,7 +25,7 @@
*/
#if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \
|| defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7) \
-- || defined(FREEBSD8) \
+- || defined(FREEBSD8) || defined(FREEBSD9) \
+ || defined(FREEBSD8) || defined(FREEBSD9) || defined(FREEBSD10) \
|| defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \
|| defined(OPENBSD2) || defined(OPENBSD3) || defined(OPENBSD4) \
- || defined(NETBSD1) || defined(NETBSD2) || defined(NETBSD3) \
+ || defined(OPENBSD5) \
diff --git a/mail/postfix/files/pkg-install.in b/mail/postfix/files/pkg-install.in
index f8d9a47206fc..92185a153fc7 100644
--- a/mail/postfix/files/pkg-install.in
+++ b/mail/postfix/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