Lines 7-12
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= postgrey |
8 |
PORTNAME= postgrey |
9 |
PORTVERSION= 1.34 |
9 |
PORTVERSION= 1.34 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= mail |
11 |
CATEGORIES= mail |
11 |
MASTER_SITES= http://postgrey.schweikert.ch/pub/ \ |
12 |
MASTER_SITES= http://postgrey.schweikert.ch/pub/ \ |
12 |
http://postgrey.schweikert.ch/pub/old/ |
13 |
http://postgrey.schweikert.ch/pub/old/ |
Lines 14-19
Link Here
|
14 |
MAINTAINER= ports.maintainer@evilphi.com |
15 |
MAINTAINER= ports.maintainer@evilphi.com |
15 |
COMMENT= Greylisting policy server for Postfix |
16 |
COMMENT= Greylisting policy server for Postfix |
16 |
|
17 |
|
|
|
18 |
LICENSE= GPLv2 |
19 |
LICENSE_FILE= ${WRKSRC}/COPYING |
20 |
|
17 |
RUN_DEPENDS= ${SITE_PERL}/Net/Server.pm:${PORTSDIR}/net/p5-Net-Server \ |
21 |
RUN_DEPENDS= ${SITE_PERL}/Net/Server.pm:${PORTSDIR}/net/p5-Net-Server \ |
18 |
${SITE_PERL}/IO/Multiplex.pm:${PORTSDIR}/devel/p5-IO-Multiplex \ |
22 |
${SITE_PERL}/IO/Multiplex.pm:${PORTSDIR}/devel/p5-IO-Multiplex \ |
19 |
${SITE_PERL}/Parse/Syslog.pm:${PORTSDIR}/textproc/p5-Parse-Syslog \ |
23 |
${SITE_PERL}/Parse/Syslog.pm:${PORTSDIR}/textproc/p5-Parse-Syslog \ |
Lines 25-61
Link Here
|
25 |
NO_BUILD= yes |
29 |
NO_BUILD= yes |
26 |
POD2MAN?= pod2man |
30 |
POD2MAN?= pod2man |
27 |
PORTDOCS= README Changes README.exim |
31 |
PORTDOCS= README Changes README.exim |
28 |
SUB_FILES= pkg-install |
|
|
29 |
SUB_LIST= USER=${PGY_USERNAME} UID=${PGY_USERID} GROUP=${PGY_GROUPNAME} \ |
30 |
GID=${PGY_GROUPID} ETCFILES="${ETCFILES}" \ |
31 |
POSTGREYDIR=${PGY_DIR} |
32 |
ETCFILES= whitelist_clients whitelist_recipients |
33 |
PGY_USERNAME?= postgrey |
34 |
PGY_USERID?= 225 |
35 |
PGY_GROUPNAME?= ${PGY_USERNAME} |
36 |
PGY_GROUPID?= ${PGY_USERID} |
37 |
PGY_DIR?= /var/db/postgrey |
38 |
|
39 |
USERS= ${PGY_USERNAME} |
40 |
GROUPS= ${PGY_GROUPNAME} |
41 |
MAN1= ${PORTNAME}.1 policy-test.1 postgreyreport.1 |
32 |
MAN1= ${PORTNAME}.1 policy-test.1 postgreyreport.1 |
42 |
|
33 |
|
|
|
34 |
PGY_DBDIR= /var/db/postgrey |
35 |
|
36 |
USERS?= postgrey |
37 |
GROUPS?= postgrey |
38 |
|
39 |
PLIST_SUB= DBDIR=${PGY_DBDIR} |
40 |
|
41 |
SUB_FILES= ${PORTNAME} pkg-install pkg-message |
42 |
SUB_LIST= USER=${USERS} GROUP=${GROUPS} DBDIR=${PGY_DBDIR} |
43 |
|
43 |
post-patch: |
44 |
post-patch: |
44 |
@${REINPLACE_CMD} -e 's#/etc/main.cf#/etc/postfix/main.cf#' ${WRKSRC}/postgrey |
45 |
@${REINPLACE_CMD} -e 's#/etc/main.cf#/etc/postfix/main.cf#' ${WRKSRC}/postgrey |
45 |
@${REINPLACE_CMD} -e 's#/etc/postfix#${PREFIX}&#' ${WRKSRC}/postgrey ${WRKSRC}/postgrey_whitelist_* |
46 |
@${REINPLACE_CMD} -e 's#/etc/postfix#${ETCDIR}#' ${WRKSRC}/postgrey ${WRKSRC}/postgrey_whitelist_* |
46 |
@${REINPLACE_CMD} -e 's#/var/spool/postfix/postgrey#${PGY_DIR}#' ${WRKSRC}/postgrey ${WRKSRC}/contrib/postgreyreport |
47 |
@${REINPLACE_CMD} -e 's#/var/spool/postfix/postgrey#${PGY_DBDIR}#' ${WRKSRC}/postgrey ${WRKSRC}/contrib/postgreyreport |
|
|
48 |
@${REINPLACE_CMD} -e 's#nogroup#${GROUPS}#' ${WRKSRC}/postgrey |
47 |
|
49 |
|
48 |
do-install: |
50 |
do-install: |
49 |
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
|
|
50 |
@${POD2MAN} ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.1 |
51 |
@${POD2MAN} ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.1 |
51 |
@${POD2MAN} ${WRKSRC}/policy-test ${WRKSRC}/policy-test.1 |
52 |
@${POD2MAN} ${WRKSRC}/policy-test ${WRKSRC}/policy-test.1 |
52 |
@${POD2MAN} ${WRKSRC}/contrib/postgreyreport ${WRKSRC}/postgreyreport.1 |
53 |
@${POD2MAN} ${WRKSRC}/contrib/postgreyreport ${WRKSRC}/postgreyreport.1 |
53 |
@${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${PREFIX}/sbin |
54 |
@${INSTALL_SCRIPT} ${WRKSRC}/postgrey ${PREFIX}/sbin |
54 |
@${INSTALL_SCRIPT} ${WRKSRC}/policy-test ${PREFIX}/sbin |
55 |
@${INSTALL_SCRIPT} ${WRKSRC}/policy-test ${PREFIX}/sbin |
55 |
@${INSTALL_SCRIPT} ${WRKSRC}/contrib/postgreyreport ${PREFIX}/sbin |
56 |
@${INSTALL_SCRIPT} ${WRKSRC}/contrib/postgreyreport ${PREFIX}/sbin |
56 |
@${INSTALL} -d ${PREFIX}/etc/postfix |
57 |
@${INSTALL} -d ${ETCDIR} |
57 |
.for i in ${ETCFILES} |
58 |
.for file in postgrey_whitelist_clients postgrey_whitelist_recipients |
58 |
${INSTALL_DATA} ${WRKSRC}/postgrey_${i} ${PREFIX}/etc/postfix/dist-postgrey_${i} |
59 |
${INSTALL_DATA} ${WRKSRC}/${file} ${ETCDIR}/dist-${file} |
|
|
60 |
@${CP} -n ${ETCDIR}/dist-${file} ${ETCDIR}/${file} |
59 |
.endfor |
61 |
.endfor |
60 |
|
62 |
|
61 |
.if !defined(NOPORTDOCS) |
63 |
.if !defined(NOPORTDOCS) |
Lines 66-70
Link Here
|
66 |
|
68 |
|
67 |
post-install: |
69 |
post-install: |
68 |
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
70 |
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
|
|
71 |
@${CAT} ${PKGMESSAGE} |
69 |
|
72 |
|
70 |
.include <bsd.port.mk> |
73 |
.include <bsd.port.mk> |