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= 8 |
|
|
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-42
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 |
|
26 |
PLIST_SUB= USER=${PGY_USERNAME} \ |
27 |
PG_DBDIR?= /var/db/postgrey |
27 |
GROUP=${PGY_GROUPNAME} |
28 |
PG_GROUP?= postgrey |
28 |
SUB_LIST= USER=${PGY_USERNAME} \ |
29 |
PG_RUNDIR?= /var/run/postgrey |
29 |
GROUP=${PGY_GROUPNAME} \ |
30 |
PG_USER?= postgrey |
30 |
ETCFILES="${ETCFILES}" \ |
31 |
|
31 |
POSTGREYDIR=${PGY_DIR} |
32 |
SUB_LIST= PG_DBDIR=${PG_DBDIR} \ |
|
|
33 |
PG_RUNDIR=${PG_RUNDIR} |
34 |
|
35 |
PLIST_SUB+= PG_DBDIR=${PG_DBDIR} \ |
36 |
PG_GROUP=${PG_GROUP} \ |
37 |
PG_RUNDIR=${PG_RUNDIR} \ |
38 |
PG_USER=${PG_USER} |
39 |
|
40 |
USERS= ${PG_USER} |
41 |
GROUPS= ${PG_GROUP} |
42 |
|
43 |
MANPAGES= postgrey.1 policy-test.1 postgreyreport.1 |
32 |
ETCFILES= whitelist_clients whitelist_recipients |
44 |
ETCFILES= whitelist_clients whitelist_recipients |
33 |
PGY_USERNAME?= postgrey |
|
|
34 |
PGY_GROUPNAME?= postgrey |
35 |
PGY_DIR?= /var/db/postgrey |
36 |
|
45 |
|
37 |
USERS= ${PGY_USERNAME} |
46 |
USE_RC_SUBR= postgrey |
38 |
GROUPS= ${PGY_GROUPNAME} |
|
|
39 |
MPAGES= postgrey.1 policy-test.1 postgreyreport.1 |
40 |
|
47 |
|
41 |
USES= shebangfix perl5 |
48 |
USES= shebangfix perl5 |
42 |
SHEBANG_FILES= postgrey policy-test contrib/postgreyreport |
49 |
SHEBANG_FILES= postgrey policy-test contrib/postgreyreport |
Lines 46-60
Link Here
|
46 |
.include <bsd.port.options.mk> |
53 |
.include <bsd.port.options.mk> |
47 |
|
54 |
|
48 |
post-patch: |
55 |
post-patch: |
49 |
@${REINPLACE_CMD} -e 's#nogroup#${PGY_GROUPNAME}#' \ |
56 |
@${REINPLACE_CMD} -e 's#nogroup#${PG_GROUP}#' \ |
50 |
-e 's#/etc/main.cf#/etc/postfix/main.cf#' ${WRKSRC}/postgrey |
57 |
-e 's#/etc/main.cf#/etc/postfix/main.cf#' ${WRKSRC}/postgrey |
51 |
@${REINPLACE_CMD} -e 's#/etc/postfix#${PREFIX}&#' \ |
58 |
@${REINPLACE_CMD} -e 's#/etc/postfix#${PREFIX}&#' \ |
52 |
${WRKSRC}/postgrey ${WRKSRC}/postgrey_whitelist_* |
59 |
${WRKSRC}/postgrey ${WRKSRC}/postgrey_whitelist_* |
53 |
@${REINPLACE_CMD} -e 's#/var/spool/postfix/postgrey#${PGY_DIR}#' \ |
60 |
@${REINPLACE_CMD} -e 's#/var/spool/postfix/postgrey#${PG_DBDIR}#' \ |
54 |
${WRKSRC}/postgrey ${WRKSRC}/contrib/postgreyreport |
61 |
${WRKSRC}/postgrey ${WRKSRC}/contrib/postgreyreport |
55 |
|
62 |
|
56 |
do-install: |
63 |
do-install: |
57 |
${POD2MAN} ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.1 |
64 |
${POD2MAN} ${WRKSRC}/postgrey ${WRKSRC}/postgrey.1 |
58 |
${POD2MAN} ${WRKSRC}/policy-test ${WRKSRC}/policy-test.1 |
65 |
${POD2MAN} ${WRKSRC}/policy-test ${WRKSRC}/policy-test.1 |
59 |
${POD2MAN} ${WRKSRC}/contrib/postgreyreport ${WRKSRC}/postgreyreport.1 |
66 |
${POD2MAN} ${WRKSRC}/contrib/postgreyreport ${WRKSRC}/postgreyreport.1 |
60 |
${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${STAGEDIR}${PREFIX}/sbin |
67 |
${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${STAGEDIR}${PREFIX}/sbin |
Lines 61-70
Link Here
|
61 |
${INSTALL_SCRIPT} ${WRKSRC}/policy-test ${STAGEDIR}${PREFIX}/sbin |
68 |
${INSTALL_SCRIPT} ${WRKSRC}/policy-test ${STAGEDIR}${PREFIX}/sbin |
62 |
${INSTALL_SCRIPT} ${WRKSRC}/contrib/postgreyreport \ |
69 |
${INSTALL_SCRIPT} ${WRKSRC}/contrib/postgreyreport \ |
63 |
${STAGEDIR}${PREFIX}/sbin |
70 |
${STAGEDIR}${PREFIX}/sbin |
64 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/postfix ${STAGEDIR}/${PGY_DIR} |
71 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/postfix ${STAGEDIR}/${PG_DBDIR} \ |
|
|
72 |
${STAGEDIR}/${PG_RUNDIR} |
65 |
.for i in ${ETCFILES} |
73 |
.for i in ${ETCFILES} |
66 |
${INSTALL_DATA} ${WRKSRC}/postgrey_${i} \ |
74 |
${INSTALL_DATA} ${WRKSRC}/postgrey_${i} \ |
67 |
${STAGEDIR}${PREFIX}/etc/postfix/dist-postgrey_${i} |
75 |
${STAGEDIR}${PREFIX}/etc/postfix/postgrey_${i}.sample |
68 |
.endfor |
76 |
.endfor |
69 |
|
77 |
|
70 |
.if ${PORT_OPTIONS:MDOCS} |
78 |
.if ${PORT_OPTIONS:MDOCS} |
Lines 72-77
Link Here
|
72 |
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} |
80 |
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} |
73 |
.endif |
81 |
.endif |
74 |
@cd ${WRKSRC} && \ |
82 |
@cd ${WRKSRC} && \ |
75 |
${INSTALL_MAN} ${MPAGES} ${STAGEDIR}${MANPREFIX}/man/man1 |
83 |
${INSTALL_MAN} ${MANPAGES} ${STAGEDIR}${MANPREFIX}/man/man1 |
76 |
|
84 |
|
77 |
.include <bsd.port.mk> |
85 |
.include <bsd.port.mk> |