Lines 3-9
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= postgrey |
4 |
PORTNAME= postgrey |
5 |
PORTVERSION= 1.37 |
5 |
PORTVERSION= 1.37 |
6 |
PORTREVISION= 1 |
6 |
PORTREVISION= 2 |
7 |
CATEGORIES= mail |
7 |
CATEGORIES= mail |
8 |
MASTER_SITES= http://postgrey.schweikert.ch/pub/ \ |
8 |
MASTER_SITES= http://postgrey.schweikert.ch/pub/ \ |
9 |
http://postgrey.schweikert.ch/pub/old/ |
9 |
http://postgrey.schweikert.ch/pub/old/ |
Lines 30-50
Link Here
|
30 |
POD2MAN?= pod2man |
30 |
POD2MAN?= pod2man |
31 |
PORTDOCS= README Changes README.exim |
31 |
PORTDOCS= README Changes README.exim |
32 |
|
32 |
|
33 |
PG_DBDIR?= /var/db/postgrey |
33 |
POSTGREY_DBDIR?= /var/db/postgrey |
34 |
PG_GROUP?= postgrey |
34 |
POSTGREY_GROUP?= postgrey |
35 |
PG_RUNDIR?= /var/run/postgrey |
35 |
POSTGREY_RUNDIR?= /var/run/postgrey |
36 |
PG_USER?= postgrey |
36 |
POSTGREY_USER?= postgrey |
37 |
|
37 |
|
38 |
SUB_LIST= PG_DBDIR=${PG_DBDIR} \ |
38 |
SUB_LIST= POSTGREY_DBDIR=${POSTGREY_DBDIR} \ |
39 |
PG_RUNDIR=${PG_RUNDIR} |
39 |
POSTGREY_RUNDIR=${POSTGREY_RUNDIR} |
40 |
|
40 |
|
41 |
PLIST_SUB+= PG_DBDIR=${PG_DBDIR} \ |
41 |
PLIST_SUB+= POSTGREY_DBDIR=${POSTGREY_DBDIR} \ |
42 |
PG_GROUP=${PG_GROUP} \ |
42 |
POSTGREY_GROUP=${POSTGREY_GROUP} \ |
43 |
PG_RUNDIR=${PG_RUNDIR} \ |
43 |
POSTGREY_RUNDIR=${POSTGREY_RUNDIR} \ |
44 |
PG_USER=${PG_USER} |
44 |
POSTGREY_USER=${POSTGREY_USER} |
45 |
|
45 |
|
46 |
USERS= ${PG_USER} |
46 |
USERS= ${POSTGREY_USER} |
47 |
GROUPS= ${PG_GROUP} |
47 |
GROUPS= ${POSTGREY_GROUP} |
48 |
|
48 |
|
49 |
MANPAGES= postgrey.1 policy-test.1 postgreyreport.1 |
49 |
MANPAGES= postgrey.1 policy-test.1 postgreyreport.1 |
50 |
ETCFILES= whitelist_clients whitelist_recipients |
50 |
ETCFILES= whitelist_clients whitelist_recipients |
Lines 54-64
Link Here
|
54 |
OPTIONS_DEFINE= DOCS |
54 |
OPTIONS_DEFINE= DOCS |
55 |
|
55 |
|
56 |
post-patch: |
56 |
post-patch: |
57 |
@${REINPLACE_CMD} -e 's#nogroup#${PG_GROUP}#' \ |
57 |
@${REINPLACE_CMD} -e 's#nogroup#${POSTGREY_GROUP}#' \ |
58 |
-e 's#/etc/main.cf#/etc/postfix/main.cf#' ${WRKSRC}/postgrey |
58 |
-e 's#/etc/main.cf#/etc/postfix/main.cf#' ${WRKSRC}/postgrey |
59 |
@${REINPLACE_CMD} -e 's#/etc/postfix#${PREFIX}&#' \ |
59 |
@${REINPLACE_CMD} -e 's#/etc/postfix#${PREFIX}&#' \ |
60 |
${WRKSRC}/postgrey ${WRKSRC}/postgrey_whitelist_* |
60 |
${WRKSRC}/postgrey ${WRKSRC}/postgrey_whitelist_* |
61 |
@${REINPLACE_CMD} -e 's#/var/spool/postfix/postgrey#${PG_DBDIR}#' \ |
61 |
@${REINPLACE_CMD} -e 's#/var/spool/postfix/postgrey#${POSTGREY_DBDIR}#' \ |
62 |
${WRKSRC}/postgrey ${WRKSRC}/contrib/postgreyreport |
62 |
${WRKSRC}/postgrey ${WRKSRC}/contrib/postgreyreport |
63 |
|
63 |
|
64 |
do-install: |
64 |
do-install: |
Lines 69-76
Link Here
|
69 |
${INSTALL_SCRIPT} ${WRKSRC}/policy-test ${STAGEDIR}${PREFIX}/sbin |
69 |
${INSTALL_SCRIPT} ${WRKSRC}/policy-test ${STAGEDIR}${PREFIX}/sbin |
70 |
${INSTALL_SCRIPT} ${WRKSRC}/contrib/postgreyreport \ |
70 |
${INSTALL_SCRIPT} ${WRKSRC}/contrib/postgreyreport \ |
71 |
${STAGEDIR}${PREFIX}/sbin |
71 |
${STAGEDIR}${PREFIX}/sbin |
72 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/postfix ${STAGEDIR}${PG_DBDIR} \ |
72 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/postfix ${STAGEDIR}${POSTGREY_DBDIR} \ |
73 |
${STAGEDIR}${PG_RUNDIR} |
73 |
${STAGEDIR}${POSTGREY_RUNDIR} |
74 |
.for i in ${ETCFILES} |
74 |
.for i in ${ETCFILES} |
75 |
${INSTALL_DATA} ${WRKSRC}/postgrey_${i} \ |
75 |
${INSTALL_DATA} ${WRKSRC}/postgrey_${i} \ |
76 |
${STAGEDIR}${PREFIX}/etc/postfix/postgrey_${i}.sample |
76 |
${STAGEDIR}${PREFIX}/etc/postfix/postgrey_${i}.sample |