aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2010-10-30 13:52:27 +0800
committersunpoet <sunpoet@FreeBSD.org>2010-10-30 13:52:27 +0800
commite997e404e704a9d103decc448433be88bc087bff (patch)
tree0afb0da74e2ecb14b188d3ee679b28d3bccc38e3 /mail
parent29d252ae8b53f5c7832ce9731db6e30721ea3d3a (diff)
downloadfreebsd-ports-gnome-e997e404e704a9d103decc448433be88bc087bff.tar.gz
freebsd-ports-gnome-e997e404e704a9d103decc448433be88bc087bff.tar.zst
freebsd-ports-gnome-e997e404e704a9d103decc448433be88bc087bff.zip
- Respect PREFIX and PGY_DIR
- Bump PORTREVISION - While I'm here, pet portlint for MD5 removal PR: ports/151797 Submitted by: sunpoet (myself) Approved by: Darren Pilgrim <darren@bluerosetech.com> (maintainer), pgollucci (mentor, implicit)
Diffstat (limited to 'mail')
-rw-r--r--mail/postgrey/Makefile9
-rw-r--r--mail/postgrey/distinfo1
2 files changed, 5 insertions, 5 deletions
diff --git a/mail/postgrey/Makefile b/mail/postgrey/Makefile
index 2a1de4bb7bb2..da47780e3970 100644
--- a/mail/postgrey/Makefile
+++ b/mail/postgrey/Makefile
@@ -7,6 +7,7 @@
PORTNAME= postgrey
PORTVERSION= 1.33
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://postgrey.schweikert.ch/pub/ \
http://postgrey.schweikert.ch/pub/old/
@@ -21,7 +22,7 @@ RUN_DEPENDS= ${SITE_PERL}/Net/Server.pm:${PORTSDIR}/net/p5-Net-Server \
${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS
USE_PERL5_RUN= yes
-USE_RC_SUBR= postgrey
+USE_RC_SUBR= ${PORTNAME}
NO_BUILD= yes
POD2MAN?= pod2man
PORTDOCS= README Changes README.exim
@@ -38,9 +39,9 @@ PGY_DIR?= /var/db/postgrey
MAN1= ${PORTNAME}.1 policy-test.1 postgreyreport.1
post-patch:
- @${REINPLACE_CMD} -e "s#/etc/#${PREFIX}/etc/#" ${WRKSRC}/postgrey
- @${REINPLACE_CMD} -e '/^my.*DEFAULT_DBDIR/s|/var/spool/postfix/postgrey|${PGY_DIR}|' \
- ${WRKSRC}/postgrey
+ @${REINPLACE_CMD} -e 's#/etc/main.cf#/etc/postfix/main.cf#' ${WRKSRC}/postgrey
+ @${REINPLACE_CMD} -e 's#/etc/postfix#${PREFIX}&#' ${WRKSRC}/postgrey ${WRKSRC}/postgrey_whitelist_*
+ @${REINPLACE_CMD} -e 's#/var/spool/postfix/postgrey#${PGY_DIR}#' ${WRKSRC}/postgrey ${WRKSRC}/contrib/postgreyreport
pre-install:
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
diff --git a/mail/postgrey/distinfo b/mail/postgrey/distinfo
index ac4e89b978a6..568da0c5a353 100644
--- a/mail/postgrey/distinfo
+++ b/mail/postgrey/distinfo
@@ -1,3 +1,2 @@
-MD5 (postgrey-1.33.tar.gz) = 334c908bb9d34e9b87790d4b0b6db87e
SHA256 (postgrey-1.33.tar.gz) = 8417aee37f8a6518580989122240753bc65e99e47db5f52ef1a0bebbd6f82bda
SIZE (postgrey-1.33.tar.gz) = 36077