aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postgrey
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-10-30 07:00:54 +0800
committerbapt <bapt@FreeBSD.org>2014-10-30 07:00:54 +0800
commita3ee646b0678d9adacc3f1646df3c0cd6d871945 (patch)
tree1e18d7143ed9b1d1928acf83e5d7acf95ba8919c /mail/postgrey
parentde90f3eb3aef7a8bc344dc57a2081df5e81230b3 (diff)
downloadfreebsd-ports-graphics-a3ee646b0678d9adacc3f1646df3c0cd6d871945.tar.gz
freebsd-ports-graphics-a3ee646b0678d9adacc3f1646df3c0cd6d871945.tar.zst
freebsd-ports-graphics-a3ee646b0678d9adacc3f1646df3c0cd6d871945.zip
Convert to new plist formats which fixes the postgrey credential on the db
directory
Diffstat (limited to 'mail/postgrey')
-rw-r--r--mail/postgrey/Makefile4
-rw-r--r--mail/postgrey/files/pkg-install.in14
-rw-r--r--mail/postgrey/pkg-plist3
3 files changed, 4 insertions, 17 deletions
diff --git a/mail/postgrey/Makefile b/mail/postgrey/Makefile
index f3b22ca0e47..53a94a316ec 100644
--- a/mail/postgrey/Makefile
+++ b/mail/postgrey/Makefile
@@ -3,7 +3,7 @@
PORTNAME= postgrey
PORTVERSION= 1.34
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= mail
MASTER_SITES= http://postgrey.schweikert.ch/pub/ \
http://postgrey.schweikert.ch/pub/old/
@@ -23,6 +23,8 @@ NO_BUILD= yes
POD2MAN?= pod2man
PORTDOCS= README Changes README.exim
SUB_FILES= pkg-install
+PLIST_SUB= USER=${PGY_USERNAME} \
+ GROUP=${PGY_GROUPNAME}
SUB_LIST= USER=${PGY_USERNAME} \
GROUP=${PGY_GROUPNAME} \
ETCFILES="${ETCFILES}" \
diff --git a/mail/postgrey/files/pkg-install.in b/mail/postgrey/files/pkg-install.in
index 46cff86c0e6..ca7ef451e3c 100644
--- a/mail/postgrey/files/pkg-install.in
+++ b/mail/postgrey/files/pkg-install.in
@@ -14,20 +14,6 @@ PRE-INSTALL)
;;
POST-INSTALL)
- echo "---> Starting post-install script:"
-
- # Create home directory if required
- if [ -d "%%POSTGREYDIR%%" ]; then
- echo "---> Using existing Postgrey database directory (%%POSTGREYDIR%%)"
- echo " (There may be existing active postgrey databases - this installation"
- echo " will attempt to preserve them.)"
- else
- echo "---> Creating Postgrey database directory (%%POSTGREYDIR%%)"
- (umask 002 && /bin/mkdir -p "%%POSTGREYDIR%%") || exit 1
- /usr/sbin/chown -R "%%USER%%:%%GROUP%%" "%%POSTGREYDIR%%" || exit 1
- /bin/chmod g+s "%%POSTGREYDIR%%" || exit 1
- fi
-
for i in %%ETCFILES%%; do
if [ ! -f "%%PREFIX%%/etc/postfix/postgrey_${i}" ]; then
echo "---> Installing new config file %%PREFIX%%/etc/postfix/postgrey_${i}"
diff --git a/mail/postgrey/pkg-plist b/mail/postgrey/pkg-plist
index 0f06b0f655b..26161ec3c0f 100644
--- a/mail/postgrey/pkg-plist
+++ b/mail/postgrey/pkg-plist
@@ -8,5 +8,4 @@ man/man1/postgreyreport.1.gz
sbin/postgrey
sbin/policy-test
sbin/postgreyreport
-@dirrmtry etc/postfix
-@unexec rmdir /var/db/postgrey 2>/dev/null || true
+@dir(%%USER%%,%%GROUP%%,2775) /var/db/postgrey