svn commit: r371721 - in head/mail/postgrey: . files
Baptiste Daroussin
bapt at FreeBSD.org
Wed Oct 29 23:00:55 UTC 2014
Author: bapt
Date: Wed Oct 29 23:00:54 2014
New Revision: 371721
URL: https://svnweb.freebsd.org/changeset/ports/371721
QAT: https://qat.redports.org/buildarchive/r371721/
Log:
Convert to new plist formats which fixes the postgrey credential on the db
directory
Modified:
head/mail/postgrey/Makefile
head/mail/postgrey/files/pkg-install.in
head/mail/postgrey/pkg-plist
Modified: head/mail/postgrey/Makefile
==============================================================================
--- head/mail/postgrey/Makefile Wed Oct 29 22:43:21 2014 (r371720)
+++ head/mail/postgrey/Makefile Wed Oct 29 23:00:54 2014 (r371721)
@@ -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}" \
Modified: head/mail/postgrey/files/pkg-install.in
==============================================================================
--- head/mail/postgrey/files/pkg-install.in Wed Oct 29 22:43:21 2014 (r371720)
+++ head/mail/postgrey/files/pkg-install.in Wed Oct 29 23:00:54 2014 (r371721)
@@ -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}"
Modified: head/mail/postgrey/pkg-plist
==============================================================================
--- head/mail/postgrey/pkg-plist Wed Oct 29 22:43:21 2014 (r371720)
+++ head/mail/postgrey/pkg-plist Wed Oct 29 23:00:54 2014 (r371721)
@@ -8,5 +8,4 @@ man/man1/postgreyreport.1.gz
sbin/postgrey
sbin/policy-test
sbin/postgreyreport
- at dirrmtry etc/postfix
- at unexec rmdir /var/db/postgrey 2>/dev/null || true
+ at dir(%%USER%%,%%GROUP%%,2775) /var/db/postgrey
More information about the svn-ports-all
mailing list