aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfix-current/pkg-install
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2002-02-01 05:10:09 +0800
committerdwcjr <dwcjr@FreeBSD.org>2002-02-01 05:10:09 +0800
commit4ebb953655cb6b53803a767cd191608be9dc119c (patch)
treeb4b413532ce1a5291f238d368d790ae21f8515fe /mail/postfix-current/pkg-install
parent2be4c43f5324dffc164b5560edb8e165e5fb9a98 (diff)
downloadfreebsd-ports-gnome-4ebb953655cb6b53803a767cd191608be9dc119c.tar.gz
freebsd-ports-gnome-4ebb953655cb6b53803a767cd191608be9dc119c.tar.zst
freebsd-ports-gnome-4ebb953655cb6b53803a767cd191608be9dc119c.zip
Fix pkg-plist and erasing of config files
Submitted by: maintainer
Diffstat (limited to 'mail/postfix-current/pkg-install')
-rw-r--r--mail/postfix-current/pkg-install7
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/postfix-current/pkg-install b/mail/postfix-current/pkg-install
index b2b0e42a0332..2e4266564c2b 100644
--- a/mail/postfix-current/pkg-install
+++ b/mail/postfix-current/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 \