aboutsummaryrefslogtreecommitdiff
path: root/mail/postfix26/files
diff options
context:
space:
mode:
authorWesley Shields <wxs@FreeBSD.org>2009-06-11 01:42:24 +0000
committerWesley Shields <wxs@FreeBSD.org>2009-06-11 01:42:24 +0000
commitbefbdedefec27347b26752fa343f771079b29e78 (patch)
tree45540ee2ee2fe0574f006c2df4a8b79da7280d76 /mail/postfix26/files
parenta6299e5d25e7af57a0c951ea4871c9a07a1df587 (diff)
downloadports-befbdedefec27347b26752fa343f771079b29e78.tar.gz
ports-befbdedefec27347b26752fa343f771079b29e78.zip
Notes
Diffstat (limited to 'mail/postfix26/files')
-rw-r--r--mail/postfix26/files/pkg-install.in14
1 files changed, 12 insertions, 2 deletions
diff --git a/mail/postfix26/files/pkg-install.in b/mail/postfix26/files/pkg-install.in
index bf9002fa2198..44935a0cdca6 100644
--- a/mail/postfix26/files/pkg-install.in
+++ b/mail/postfix26/files/pkg-install.in
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $FreeBSD: /tmp/pcvs/ports/mail/postfix26/files/pkg-install.in,v 1.2 2009-06-04 07:45:27 mm Exp $
+# $FreeBSD: /tmp/pcvs/ports/mail/postfix26/files/pkg-install.in,v 1.3 2009-06-11 01:42:24 wxs Exp $
#
# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it
@@ -9,7 +9,7 @@
PREFIX=${PKG_PREFIX:=%%PREFIX%%}
ETCDIR=${ETCDIR:=%%ETCDIR%%}
-DAEMONDIR=${DAEMONDIR:=${PREFIX}/libexec/postfix}
+DAEMONDIR=${DAEMONDIR:=%%DAEMONDIR%%}
READMEDIR=${READMEDIR:=%%READMEDIR%%}
BATCH=${BATCH:=no}
POSTFIX_DEFAULT_MTA=${POSTFIX_DEFAULT_MTA:=no}
@@ -114,8 +114,18 @@ if [ "$2" = "PRE-INSTALL" ]; then
fi
if [ "$2" = "POST-INSTALL" ]; then
+ SAMPLES="main.cf master.cf"
+ for file in $SAMPLES
+ do
+ if [ ! -f ${ETCDIR}/$file ]; then
+ cp ${DAEMONDIR}/$file ${ETCDIR}/
+ fi
+ done
+
/bin/sh ${DAEMONDIR}/post-install tempdir=/tmp \
daemon_directory=${DAEMONDIR} \
+ html_directory=${READMEDIR} \
+ readme_directory=${READMEDIR} \
upgrade-package
fi