summaryrefslogtreecommitdiffstats
path: root/mail/postfix26/pkg-install
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2002-01-31 21:08:48 +0000
committerdwcjr <dwcjr@FreeBSD.org>2002-01-31 21:08:48 +0000
commit2be4c43f5324dffc164b5560edb8e165e5fb9a98 (patch)
tree6b70f2ea68c1c712c5db029873f93734b4d24e43 /mail/postfix26/pkg-install
parentc7cbc24d5c5417af4dbb6b547a645e26a491d0a8 (diff)
downloadFreeBSD-ports-2be4c43f5324dffc164b5560edb8e165e5fb9a98.zip
FreeBSD-ports-2be4c43f5324dffc164b5560edb8e165e5fb9a98.tar.gz
Add missing files to pkg-plist
Fix config files from being erased. Submitted by: Vivek Khera
Diffstat (limited to 'mail/postfix26/pkg-install')
-rw-r--r--mail/postfix26/pkg-install7
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/postfix26/pkg-install b/mail/postfix26/pkg-install
index b2b0e42..2e42665 100644
--- a/mail/postfix26/pkg-install
+++ b/mail/postfix26/pkg-install
@@ -83,6 +83,13 @@ 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
+
sh ${PKG_PREFIX}/etc/postfix/post-install tempdir=/tmp \
config_directory=${PKG_PREFIX}/etc/postfix \
daemon_directory=${PKG_PREFIX}/libexec/postfix \
OpenPOWER on IntegriCloud