aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfix28/files
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2009-06-11 09:42:24 +0800
committerwxs <wxs@FreeBSD.org>2009-06-11 09:42:24 +0800
commitd9f7236bfa1334a8570fb5e63505cb0bcad3e560 (patch)
treecf00fe63c5d185888d7e328c21b3d1c75319db11 /mail/postfix28/files
parentbf5c155d3f23ff72c9661907bec7cb571c43cff7 (diff)
downloadfreebsd-ports-gnome-d9f7236bfa1334a8570fb5e63505cb0bcad3e560.tar.gz
freebsd-ports-gnome-d9f7236bfa1334a8570fb5e63505cb0bcad3e560.tar.zst
freebsd-ports-gnome-d9f7236bfa1334a8570fb5e63505cb0bcad3e560.zip
- Cleanup pkg-install script to handle documentation installation correctly.
This resulted in a bizarre case where making a backup package after an upgrade would fail (ports/135051). - Don't install obsolete files by adding them to ${WRKSRC}/conf/postfix-files. - Whitespace cleanup. - Define and pass DAEMONDIR to the pkg-install script. PR: ports/135051 Submitted by: Takefu Kenji <takefu@airport.fm>, Yarema <yds@CoolRat.org> Approved by: sahil@tandon.net (maintainer)
Diffstat (limited to 'mail/postfix28/files')
-rw-r--r--mail/postfix28/files/pkg-install.in14
1 files changed, 12 insertions, 2 deletions
diff --git a/mail/postfix28/files/pkg-install.in b/mail/postfix28/files/pkg-install.in
index f23dd9aaf902..59fbdd8f48b0 100644
--- a/mail/postfix28/files/pkg-install.in
+++ b/mail/postfix28/files/pkg-install.in
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $FreeBSD: /tmp/pcvs/ports/mail/postfix28/files/pkg-install.in,v 1.2 2009-06-04 07:45:27 mm Exp $
+# $FreeBSD: /tmp/pcvs/ports/mail/postfix28/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