aboutsummaryrefslogtreecommitdiff
path: root/mail/postgrey/Makefile
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2007-10-27 11:49:41 +0000
committerBeech Rintoul <beech@FreeBSD.org>2007-10-27 11:49:41 +0000
commitb32a9ef01021b08fca5d5813eeea681dc93d4f5f (patch)
tree143fcc85ab4c1838f33286742ae96393dd0973f1 /mail/postgrey/Makefile
parentf3ccb979fbbce894520406e41c70cb63dce28fed (diff)
downloadports-b32a9ef01021b08fca5d5813eeea681dc93d4f5f.tar.gz
ports-b32a9ef01021b08fca5d5813eeea681dc93d4f5f.zip
Notes
Diffstat (limited to 'mail/postgrey/Makefile')
-rw-r--r--mail/postgrey/Makefile24
1 files changed, 18 insertions, 6 deletions
diff --git a/mail/postgrey/Makefile b/mail/postgrey/Makefile
index b327a24a63fb..177c8b875b23 100644
--- a/mail/postgrey/Makefile
+++ b/mail/postgrey/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= postgrey
-PORTVERSION= 1.30
-PORTREVISION= 1
+PORTVERSION= 1.31
CATEGORIES= mail
MASTER_SITES= http://postgrey.schweikert.ch/pub/ LOCAL/beech
@@ -16,12 +15,15 @@ COMMENT= Greylisting policy server for Postfix
RUN_DEPENDS= ${SITE_PERL}/Net/Server.pm:${PORTSDIR}/net/p5-Net-Server \
${SITE_PERL}/IO/Multiplex.pm:${PORTSDIR}/devel/p5-IO-Multiplex \
+ ${SITE_PERL}/Parse/Syslog.pm:${PORTSDIR}/textproc/p5-Parse-Syslog \
${SITE_PERL}/${PERL_ARCH}/BerkeleyDB.pm:${PORTSDIR}/databases/p5-BerkeleyDB \
${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS
USE_PERL5_RUN= yes
USE_RC_SUBR= postgrey
NO_BUILD= yes
+POD2MAN?= pod2man
+PORTDOCS= README Changes README.exim
SUB_FILES= pkg-install
SUB_LIST= USER=${PGY_USERNAME} UID=${PGY_USERID} GROUP=${PGY_GROUPNAME} \
GID=${PGY_GROUPID} ETCFILES="${ETCFILES}" \
@@ -32,6 +34,7 @@ PGY_USERID?= 225
PGY_GROUPNAME?= ${PGY_USERNAME}
PGY_GROUPID?= ${PGY_USERID}
PGY_DIR?= /var/db/postgrey
+MAN1= ${PORTNAME}.1 policy-test.1 postgreyreport.1
post-patch:
@${REINPLACE_CMD} -e "s#/etc/#${PREFIX}/etc/#" ${WRKSRC}/postgrey
@@ -42,14 +45,23 @@ pre-install:
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${PREFIX}/sbin
- ${INSTALL_SCRIPT} ${WRKSRC}/policy-test ${PREFIX}/sbin
- ${INSTALL_SCRIPT} ${WRKSRC}/contrib/postgreyreport ${PREFIX}/sbin
- ${MKDIR} ${PREFIX}/etc/postfix
+ @${POD2MAN} ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.1
+ @${POD2MAN} ${WRKSRC}/policy-test ${WRKSRC}/policy-test.1
+ @${POD2MAN} ${WRKSRC}/contrib/postgreyreport ${WRKSRC}/postgreyreport.1
+ @${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${PREFIX}/sbin
+ @${INSTALL_SCRIPT} ${WRKSRC}/policy-test ${PREFIX}/sbin
+ @${INSTALL_SCRIPT} ${WRKSRC}/contrib/postgreyreport ${PREFIX}/sbin
+ @${INSTALL} -d ${PREFIX}/etc/postfix
.for i in ${ETCFILES}
${INSTALL_DATA} ${WRKSRC}/postgrey_${i} ${PREFIX}/etc/postfix/dist-postgrey_${i}
.endfor
+.if !defined(NOPORTDOCS)
+ @${INSTALL} -d ${DOCSDIR}
+ @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.endif
+ @cd ${WRKSRC} && ${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1
+
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL