2013-05-12 16:29:46 +02:00
|
|
|
# Created by: Will Andrews <will@FreeBSD.org>
|
2004-09-02 00:11:21 +02:00
|
|
|
|
|
|
|
PORTNAME= postgrey
|
2016-11-06 12:44:19 +01:00
|
|
|
PORTVERSION= 1.37
|
2018-04-17 06:40:06 +02:00
|
|
|
PORTREVISION= 3
|
2004-09-02 00:11:21 +02:00
|
|
|
CATEGORIES= mail
|
2010-08-18 01:52:34 +02:00
|
|
|
MASTER_SITES= http://postgrey.schweikert.ch/pub/ \
|
|
|
|
http://postgrey.schweikert.ch/pub/old/
|
2004-09-02 00:11:21 +02:00
|
|
|
|
2010-08-23 04:46:42 +02:00
|
|
|
MAINTAINER= ports.maintainer@evilphi.com
|
2004-09-02 00:11:21 +02:00
|
|
|
COMMENT= Greylisting policy server for Postfix
|
|
|
|
|
2014-11-05 18:35:38 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
RUN_DEPENDS= p5-BerkeleyDB>=0:databases/p5-BerkeleyDB \
|
|
|
|
p5-IO-Multiplex>=0:devel/p5-IO-Multiplex \
|
|
|
|
p5-Parse-Syslog>=0:textproc/p5-Parse-Syslog \
|
|
|
|
p5-Net-DNS>=0:dns/p5-Net-DNS \
|
|
|
|
p5-Net-Server>=0:net/p5-Net-Server \
|
|
|
|
p5-NetAddr-IP>=0:net-mgmt/p5-NetAddr-IP
|
2004-09-02 00:11:21 +02:00
|
|
|
|
2021-08-29 20:35:31 +02:00
|
|
|
USES= cpe perl5 shebangfix
|
2013-09-14 20:12:50 +02:00
|
|
|
USE_PERL5= run
|
2010-10-30 07:52:27 +02:00
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
2016-11-06 12:44:19 +01:00
|
|
|
|
2015-09-03 18:37:31 +02:00
|
|
|
NO_ARCH= yes
|
2016-11-06 12:44:19 +01:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
2007-10-27 13:49:41 +02:00
|
|
|
POD2MAN?= pod2man
|
|
|
|
PORTDOCS= README Changes README.exim
|
2014-11-05 18:35:38 +01:00
|
|
|
|
2018-04-16 19:18:00 +02:00
|
|
|
POSTGREY_DBDIR?= /var/db/postgrey
|
|
|
|
POSTGREY_GROUP?= postgrey
|
|
|
|
POSTGREY_RUNDIR?= /var/run/postgrey
|
|
|
|
POSTGREY_USER?= postgrey
|
2014-11-05 18:35:38 +01:00
|
|
|
|
2018-04-16 19:18:00 +02:00
|
|
|
SUB_LIST= POSTGREY_DBDIR=${POSTGREY_DBDIR} \
|
|
|
|
POSTGREY_RUNDIR=${POSTGREY_RUNDIR}
|
2014-11-05 18:35:38 +01:00
|
|
|
|
2018-04-16 19:18:00 +02:00
|
|
|
PLIST_SUB+= POSTGREY_DBDIR=${POSTGREY_DBDIR} \
|
|
|
|
POSTGREY_GROUP=${POSTGREY_GROUP} \
|
|
|
|
POSTGREY_RUNDIR=${POSTGREY_RUNDIR} \
|
|
|
|
POSTGREY_USER=${POSTGREY_USER}
|
2014-11-05 18:35:38 +01:00
|
|
|
|
2018-04-16 19:18:00 +02:00
|
|
|
USERS= ${POSTGREY_USER}
|
|
|
|
GROUPS= ${POSTGREY_GROUP}
|
2014-11-05 18:35:38 +01:00
|
|
|
|
|
|
|
MANPAGES= postgrey.1 policy-test.1 postgreyreport.1
|
2011-11-10 07:45:45 +01:00
|
|
|
ETCFILES= whitelist_clients whitelist_recipients
|
2011-11-09 10:15:33 +01:00
|
|
|
|
2014-08-06 17:20:07 +02:00
|
|
|
SHEBANG_FILES= postgrey policy-test contrib/postgreyreport
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2014-02-21 14:37:56 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2005-04-15 08:31:28 +02:00
|
|
|
post-patch:
|
2018-04-16 19:18:00 +02:00
|
|
|
@${REINPLACE_CMD} -e 's#nogroup#${POSTGREY_GROUP}#' \
|
2014-08-06 17:20:07 +02:00
|
|
|
-e 's#/etc/main.cf#/etc/postfix/main.cf#' ${WRKSRC}/postgrey
|
|
|
|
@${REINPLACE_CMD} -e 's#/etc/postfix#${PREFIX}&#' \
|
|
|
|
${WRKSRC}/postgrey ${WRKSRC}/postgrey_whitelist_*
|
2018-04-16 19:18:00 +02:00
|
|
|
@${REINPLACE_CMD} -e 's#/var/spool/postfix/postgrey#${POSTGREY_DBDIR}#' \
|
2014-08-06 17:20:07 +02:00
|
|
|
${WRKSRC}/postgrey ${WRKSRC}/contrib/postgreyreport
|
2012-04-18 09:54:30 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-11-05 18:35:38 +01:00
|
|
|
${POD2MAN} ${WRKSRC}/postgrey ${WRKSRC}/postgrey.1
|
2014-08-06 17:20:07 +02:00
|
|
|
${POD2MAN} ${WRKSRC}/policy-test ${WRKSRC}/policy-test.1
|
|
|
|
${POD2MAN} ${WRKSRC}/contrib/postgreyreport ${WRKSRC}/postgreyreport.1
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${STAGEDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/policy-test ${STAGEDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/contrib/postgreyreport \
|
|
|
|
${STAGEDIR}${PREFIX}/sbin
|
2018-04-16 19:18:00 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/postfix ${STAGEDIR}${POSTGREY_DBDIR} \
|
|
|
|
${STAGEDIR}${POSTGREY_RUNDIR}
|
2011-11-10 07:45:45 +01:00
|
|
|
.for i in ${ETCFILES}
|
2014-08-06 17:20:07 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/postgrey_${i} \
|
2014-11-05 18:35:38 +01:00
|
|
|
${STAGEDIR}${PREFIX}/etc/postfix/postgrey_${i}.sample
|
2004-09-02 00:11:21 +02:00
|
|
|
.endfor
|
2015-09-03 18:37:31 +02:00
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${INSTALL_MAN} ${MANPAGES} ${STAGEDIR}${MANPREFIX}/man/man1
|
2004-09-02 00:11:21 +02:00
|
|
|
|
2015-09-03 18:37:31 +02:00
|
|
|
do-install-DOCS-on:
|
2014-08-06 17:20:07 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2015-09-03 18:37:31 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2004-09-02 00:11:21 +02:00
|
|
|
|
2007-06-27 23:13:24 +02:00
|
|
|
.include <bsd.port.mk>
|