aboutsummaryrefslogtreecommitdiff
path: root/mail/postfix1
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/postfix1
parent2c4782fc9b74673fdb7f9f6a8e812de312009e7c (diff)
downloadports-27342cc2fbebe6a34cb6f3b884ecdfe2ae502ce0.tar.gz
ports-27342cc2fbebe6a34cb6f3b884ecdfe2ae502ce0.zip
Notes
Diffstat (limited to 'mail/postfix1')
-rw-r--r--mail/postfix1/Makefile7
-rw-r--r--mail/postfix1/pkg-install7
-rw-r--r--mail/postfix1/pkg-plist6
3 files changed, 18 insertions, 2 deletions
diff --git a/mail/postfix1/Makefile b/mail/postfix1/Makefile
index e9eddbfb037f..09258cd2e865 100644
--- a/mail/postfix1/Makefile
+++ b/mail/postfix1/Makefile
@@ -7,6 +7,7 @@
PORTNAME= postfix
PORTVERSION= 1.1.2
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \
@@ -78,6 +79,12 @@ do-install:
sample_directory=${PREFIX}/etc/postfix \
readme_directory=${READMEDIR}
+ @${INSTALL_DATA} ${WRKSRC}/conf/main.cf \
+ ${PREFIX}/etc/postfix/sample-main.cf
+
+ @${INSTALL_DATA} ${WRKSRC}/conf/master.cf \
+ ${PREFIX}/etc/postfix/sample-master.cf
+
@${INSTALL_SCRIPT} \
${WRKSRC}/auxiliary/rmail/rmail \
${PREFIX}/bin/rmail
diff --git a/mail/postfix1/pkg-install b/mail/postfix1/pkg-install
index b2b0e42a0332..2e4266564c2b 100644
--- a/mail/postfix1/pkg-install
+++ b/mail/postfix1/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 \
diff --git a/mail/postfix1/pkg-plist b/mail/postfix1/pkg-plist
index 84154a9969fd..0bcc22b0ef74 100644
--- a/mail/postfix1/pkg-plist
+++ b/mail/postfix1/pkg-plist
@@ -5,9 +5,7 @@ etc/postfix/LICENSE
etc/postfix/access
etc/postfix/aliases
etc/postfix/canonical
-etc/postfix/main.cf
etc/postfix/main.cf.default
-etc/postfix/master.cf
etc/postfix/pcre_table
etc/postfix/post-install
etc/postfix/postfix-files
@@ -24,6 +22,8 @@ etc/postfix/sample-flush.cf
etc/postfix/sample-ldap.cf
etc/postfix/sample-lmtp.cf
etc/postfix/sample-local.cf
+etc/postfix/sample-main.cf
+etc/postfix/sample-master.cf
etc/postfix/sample-misc.cf
etc/postfix/sample-pcre-access.cf
etc/postfix/sample-pcre-body.cf
@@ -74,6 +74,8 @@ sbin/postmap
sbin/postqueue
sbin/postsuper
sbin/sendmail
+bin/newaliases
+bin/mailq
%%SUB_TEST%%sbin/smtp-sink
%%SUB_TEST%%sbin/smtp-source
%%PORTDOCS%%share/doc/postfix/DB_README