aboutsummaryrefslogtreecommitdiff
path: root/mail/postfix22/pkg-install
diff options
context:
space:
mode:
authorDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2002-01-31 21:08:48 +0000
committerDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2002-01-31 21:08:48 +0000
commit27342cc2fbebe6a34cb6f3b884ecdfe2ae502ce0 (patch)
tree465549b46ab1552ba84e04cdb3703418b5e3a2a8 /mail/postfix22/pkg-install
parent2c4782fc9b74673fdb7f9f6a8e812de312009e7c (diff)
downloadports-27342cc2fbebe6a34cb6f3b884ecdfe2ae502ce0.tar.gz
ports-27342cc2fbebe6a34cb6f3b884ecdfe2ae502ce0.zip
Add missing files to pkg-plist
Fix config files from being erased. Submitted by: Vivek Khera
Notes
Notes: svn path=/head/; revision=54089
Diffstat (limited to 'mail/postfix22/pkg-install')
-rw-r--r--mail/postfix22/pkg-install7
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/postfix22/pkg-install b/mail/postfix22/pkg-install
index b2b0e42a0332..2e4266564c2b 100644
--- a/mail/postfix22/pkg-install
+++ b/mail/postfix22/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 \