2013-05-12 16:29:46 +02:00
|
|
|
# Created by: Will Andrews <will@FreeBSD.org>
|
2004-09-02 00:11:21 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= postgrey
|
2011-07-15 10:02:51 +02:00
|
|
|
PORTVERSION= 1.34
|
2013-10-19 22:03:52 +02:00
|
|
|
PORTREVISION= 7
|
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
|
|
|
|
|
2012-04-18 09:54:30 +02:00
|
|
|
RUN_DEPENDS= p5-Net-Server>=0:${PORTSDIR}/net/p5-Net-Server \
|
|
|
|
p5-IO-Multiplex>=0:${PORTSDIR}/devel/p5-IO-Multiplex \
|
|
|
|
p5-Parse-Syslog>=0:${PORTSDIR}/textproc/p5-Parse-Syslog \
|
|
|
|
p5-BerkeleyDB>=0:${PORTSDIR}/databases/p5-BerkeleyDB \
|
|
|
|
p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS
|
2004-09-02 00:11:21 +02:00
|
|
|
|
2013-09-14 20:12:50 +02:00
|
|
|
USE_PERL5= run
|
2010-10-30 07:52:27 +02:00
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
2004-09-02 00:11:21 +02:00
|
|
|
NO_BUILD= yes
|
2007-10-27 13:49:41 +02:00
|
|
|
POD2MAN?= pod2man
|
|
|
|
PORTDOCS= README Changes README.exim
|
2011-11-10 07:45:45 +01:00
|
|
|
SUB_FILES= pkg-install
|
2013-05-25 16:55:19 +02:00
|
|
|
SUB_LIST= USER=${PGY_USERNAME} \
|
|
|
|
GROUP=${PGY_GROUPNAME} \
|
|
|
|
ETCFILES="${ETCFILES}" \
|
2011-11-10 07:45:45 +01:00
|
|
|
POSTGREYDIR=${PGY_DIR}
|
|
|
|
ETCFILES= whitelist_clients whitelist_recipients
|
|
|
|
PGY_USERNAME?= postgrey
|
2013-05-25 16:55:19 +02:00
|
|
|
PGY_GROUPNAME?= postgrey
|
2011-11-10 07:45:45 +01:00
|
|
|
PGY_DIR?= /var/db/postgrey
|
2011-11-09 10:15:33 +01:00
|
|
|
|
2011-11-10 07:45:45 +01:00
|
|
|
USERS= ${PGY_USERNAME}
|
|
|
|
GROUPS= ${PGY_GROUPNAME}
|
|
|
|
MAN1= ${PORTNAME}.1 policy-test.1 postgreyreport.1
|
2011-11-09 10:15:33 +01:00
|
|
|
|
2013-09-14 20:12:50 +02:00
|
|
|
USES= shebangfix perl5
|
2013-05-12 16:29:46 +02:00
|
|
|
SHEBANG_FILES= ${WRKSRC}/postgrey
|
|
|
|
|
2013-09-20 21:59:12 +02:00
|
|
|
NO_STAGE= yes
|
2014-02-10 14:54:26 +01:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2013-05-12 16:29:46 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2005-04-15 08:31:28 +02:00
|
|
|
post-patch:
|
2013-05-25 16:55:19 +02:00
|
|
|
@${REINPLACE_CMD} -e 's#nogroup#${PGY_GROUPNAME}#' ${WRKSRC}/postgrey
|
2010-10-30 07:52:27 +02:00
|
|
|
@${REINPLACE_CMD} -e 's#/etc/main.cf#/etc/postfix/main.cf#' ${WRKSRC}/postgrey
|
2011-11-10 07:45:45 +01:00
|
|
|
@${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
|
2005-04-15 08:31:28 +02:00
|
|
|
|
2012-04-18 09:54:30 +02:00
|
|
|
pre-install:
|
2011-11-10 07:45:45 +01:00
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2012-04-18 09:54:30 +02:00
|
|
|
|
|
|
|
do-install:
|
2007-10-27 13:49:41 +02:00
|
|
|
@${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
|
2011-11-10 07:45:45 +01:00
|
|
|
@${INSTALL} -d ${PREFIX}/etc/postfix
|
|
|
|
.for i in ${ETCFILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/postgrey_${i} ${PREFIX}/etc/postfix/dist-postgrey_${i}
|
2004-09-02 00:11:21 +02:00
|
|
|
.endfor
|
|
|
|
|
2013-05-12 16:29:46 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2007-10-27 13:49:41 +02:00
|
|
|
@${INSTALL} -d ${DOCSDIR}
|
|
|
|
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
@cd ${WRKSRC} && ${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1
|
|
|
|
|
2004-09-02 00:11:21 +02:00
|
|
|
post-install:
|
2007-06-27 23:13:24 +02:00
|
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2004-09-02 00:11:21 +02:00
|
|
|
|
2007-06-27 23:13:24 +02:00
|
|
|
.include <bsd.port.mk>
|