summaryrefslogtreecommitdiffstats
path: root/mail/postfix27/pkg-install
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2002-02-11 17:48:50 +0000
committerdwcjr <dwcjr@FreeBSD.org>2002-02-11 17:48:50 +0000
commit9f8538d75e6beb918d64ddd94768ed5e4fb9f3ec (patch)
treeaf873e79b63018276cb95a3f60f79cf8212973b7 /mail/postfix27/pkg-install
parent393b151c9e14368e270489acca463aab3c85addd (diff)
downloadFreeBSD-ports-9f8538d75e6beb918d64ddd94768ed5e4fb9f3ec.zip
FreeBSD-ports-9f8538d75e6beb918d64ddd94768ed5e4fb9f3ec.tar.gz
Update to 1.1.3
Update to latest TLS Give Vivek Khera Maintainership Fix loss of config files during upgrade PR: 34837 Submitted by: maintainer
Diffstat (limited to 'mail/postfix27/pkg-install')
-rw-r--r--mail/postfix27/pkg-install15
1 files changed, 9 insertions, 6 deletions
diff --git a/mail/postfix27/pkg-install b/mail/postfix27/pkg-install
index 2e42665..24bdf1d 100644
--- a/mail/postfix27/pkg-install
+++ b/mail/postfix27/pkg-install
@@ -83,12 +83,15 @@ if [ x"$2" = xPRE-INSTALL ]; then
fi
if [ x"$2" = xPOST-INSTALL ]; then
- if [ ! -f ${PKG_PREFIX}/etc/postfix/main.cf ]; then
- cp ${PKG_PREFIX}/etc/postfix/sample-main.cf ${PKG_PREFIX}/etc/postfix/main.cf
- fi
- if [ ! -f ${PKG_PREFIX}/etc/postfix/master.cf ]; then
- cp ${PKG_PREFIX}/etc/postfix/sample-master.cf ${PKG_PREFIX}/etc/postfix/master.cf
- fi
+ CONF1="main.cf master.cf access aliases canonical pcre_table \
+ regexp_table relocated transport virtual"
+
+ for file in $CONF1
+ do
+ if [ ! -f ${PKG_PREFIX}/etc/postfix/$file ]; then
+ cp ${PKG_PREFIX}/etc/postfix/sample-$file ${PKG_PREFIX}/etc/postfix/$file
+ fi
+ done
sh ${PKG_PREFIX}/etc/postfix/post-install tempdir=/tmp \
config_directory=${PKG_PREFIX}/etc/postfix \
OpenPOWER on IntegriCloud