Lines 2-9
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= postgrey |
4 |
PORTNAME= postgrey |
5 |
PORTVERSION= 1.34 |
5 |
PORTVERSION= 1.35 |
6 |
PORTREVISION= 7 |
|
|
7 |
CATEGORIES= mail |
6 |
CATEGORIES= mail |
8 |
MASTER_SITES= http://postgrey.schweikert.ch/pub/ \ |
7 |
MASTER_SITES= http://postgrey.schweikert.ch/pub/ \ |
9 |
http://postgrey.schweikert.ch/pub/old/ |
8 |
http://postgrey.schweikert.ch/pub/old/ |
Lines 11-16
Link Here
|
11 |
MAINTAINER= ports.maintainer@evilphi.com |
10 |
MAINTAINER= ports.maintainer@evilphi.com |
12 |
COMMENT= Greylisting policy server for Postfix |
11 |
COMMENT= Greylisting policy server for Postfix |
13 |
|
12 |
|
|
|
13 |
LICENSE= GPLv2 |
14 |
|
14 |
RUN_DEPENDS= p5-Net-Server>=0:${PORTSDIR}/net/p5-Net-Server \ |
15 |
RUN_DEPENDS= p5-Net-Server>=0:${PORTSDIR}/net/p5-Net-Server \ |
15 |
p5-IO-Multiplex>=0:${PORTSDIR}/devel/p5-IO-Multiplex \ |
16 |
p5-IO-Multiplex>=0:${PORTSDIR}/devel/p5-IO-Multiplex \ |
16 |
p5-Parse-Syslog>=0:${PORTSDIR}/textproc/p5-Parse-Syslog \ |
17 |
p5-Parse-Syslog>=0:${PORTSDIR}/textproc/p5-Parse-Syslog \ |
Lines 22-39
Link Here
|
22 |
NO_BUILD= yes |
23 |
NO_BUILD= yes |
23 |
POD2MAN?= pod2man |
24 |
POD2MAN?= pod2man |
24 |
PORTDOCS= README Changes README.exim |
25 |
PORTDOCS= README Changes README.exim |
25 |
SUB_FILES= pkg-install |
|
|
26 |
SUB_LIST= USER=${PGY_USERNAME} \ |
27 |
GROUP=${PGY_GROUPNAME} \ |
28 |
ETCFILES="${ETCFILES}" \ |
29 |
POSTGREYDIR=${PGY_DIR} |
30 |
ETCFILES= whitelist_clients whitelist_recipients |
26 |
ETCFILES= whitelist_clients whitelist_recipients |
31 |
PGY_USERNAME?= postgrey |
27 |
PGY_USER= postgrey |
32 |
PGY_GROUPNAME?= postgrey |
28 |
PGY_GROUP= postgrey |
33 |
PGY_DIR?= /var/db/postgrey |
29 |
PGY_DIR= /var/db/postgrey |
|
|
30 |
SUB_LIST+= PGY_DIR=${PGY_DIR} |
34 |
|
31 |
|
35 |
USERS= ${PGY_USERNAME} |
32 |
USERS= ${PGY_USER} |
36 |
GROUPS= ${PGY_GROUPNAME} |
33 |
GROUPS= ${PGY_GROUP} |
37 |
MPAGES= postgrey.1 policy-test.1 postgreyreport.1 |
34 |
MPAGES= postgrey.1 policy-test.1 postgreyreport.1 |
38 |
|
35 |
|
39 |
USES= shebangfix perl5 |
36 |
USES= shebangfix perl5 |
Lines 41-50
Link Here
|
41 |
|
38 |
|
42 |
OPTIONS_DEFINE= DOCS |
39 |
OPTIONS_DEFINE= DOCS |
43 |
|
40 |
|
|
|
41 |
PLIST_SUB+= PGY_USER=${PGY_USER} \ |
42 |
PGY_GROUP=${PGY_GROUP} \ |
43 |
PGY_DIR=${PGY_DIR} |
44 |
|
44 |
.include <bsd.port.options.mk> |
45 |
.include <bsd.port.options.mk> |
45 |
|
46 |
|
46 |
post-patch: |
47 |
post-patch: |
47 |
@${REINPLACE_CMD} -e 's#nogroup#${PGY_GROUPNAME}#' \ |
48 |
@${REINPLACE_CMD} -e 's#nogroup#${PGY_GROUP}#' \ |
48 |
-e 's#/etc/main.cf#/etc/postfix/main.cf#' ${WRKSRC}/postgrey |
49 |
-e 's#/etc/main.cf#/etc/postfix/main.cf#' ${WRKSRC}/postgrey |
49 |
@${REINPLACE_CMD} -e 's#/etc/postfix#${PREFIX}&#' \ |
50 |
@${REINPLACE_CMD} -e 's#/etc/postfix#${PREFIX}&#' \ |
50 |
${WRKSRC}/postgrey ${WRKSRC}/postgrey_whitelist_* |
51 |
${WRKSRC}/postgrey ${WRKSRC}/postgrey_whitelist_* |
Lines 52-58
Link Here
|
52 |
${WRKSRC}/postgrey ${WRKSRC}/contrib/postgreyreport |
53 |
${WRKSRC}/postgrey ${WRKSRC}/contrib/postgreyreport |
53 |
|
54 |
|
54 |
do-install: |
55 |
do-install: |
55 |
${POD2MAN} ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.1 |
56 |
${POD2MAN} ${WRKSRC}/postgrey ${WRKSRC}/postgrey.1 |
56 |
${POD2MAN} ${WRKSRC}/policy-test ${WRKSRC}/policy-test.1 |
57 |
${POD2MAN} ${WRKSRC}/policy-test ${WRKSRC}/policy-test.1 |
57 |
${POD2MAN} ${WRKSRC}/contrib/postgreyreport ${WRKSRC}/postgreyreport.1 |
58 |
${POD2MAN} ${WRKSRC}/contrib/postgreyreport ${WRKSRC}/postgreyreport.1 |
58 |
${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${STAGEDIR}${PREFIX}/sbin |
59 |
${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${STAGEDIR}${PREFIX}/sbin |
Lines 62-68
Link Here
|
62 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/postfix ${STAGEDIR}/${PGY_DIR} |
63 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/postfix ${STAGEDIR}/${PGY_DIR} |
63 |
.for i in ${ETCFILES} |
64 |
.for i in ${ETCFILES} |
64 |
${INSTALL_DATA} ${WRKSRC}/postgrey_${i} \ |
65 |
${INSTALL_DATA} ${WRKSRC}/postgrey_${i} \ |
65 |
${STAGEDIR}${PREFIX}/etc/postfix/dist-postgrey_${i} |
66 |
${STAGEDIR}${PREFIX}/etc/postfix/postgrey_${i}.sample |
66 |
.endfor |
67 |
.endfor |
67 |
|
68 |
|
68 |
.if ${PORT_OPTIONS:MDOCS} |
69 |
.if ${PORT_OPTIONS:MDOCS} |