--- postgrey/Makefile Sun Mar 27 21:19:01 2005 +++ postgrey/Makefile Thu Apr 7 15:53:48 2005 @@ -7,6 +7,7 @@ PORTNAME= postgrey PORTVERSION= 1.18 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= http://isg.ee.ethz.ch/tools/postgrey/pub/ @@ -19,6 +20,7 @@ USE_PERL5= yes USE_RC_SUBR= yes +USE_REINPLACE= yes NO_BUILD= yes ETCFILES= whitelist_clients whitelist_recipients @@ -51,6 +53,9 @@ .if ${PERL_LEVEL} < 500600 IGNORE= Needs perl 5.6.1 or higher, install lang/perl5.8 and try again .endif + +post-patch: + ${REINPLACE_CMD} -e "s#/etc/#${PREFIX}/etc/#" ${WRKSRC}/postgrey pre-install: ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' -e 's#%%RC_SUBR%%#${RC_SUBR}#g' \ --- postgrey/files/postgrey.sh Wed Jan 26 16:03:28 2005 +++ postgrey/files/postgrey.sh Thu Apr 7 13:31:12 2005 @@ -36,10 +36,7 @@ postgrey_enable=${postgrey_enable:-"NO"} postgrey_pidfile=${postgrey_pidfile:-"/var/run/postgrey.pid"} postgrey_flags=${postgrey_flags:-"--pidfile=${postgrey_pidfile} \ - --inet=10023 -d --user=postgrey --group=postgrey --dbdir=/var/db/postgrey \ - --whitelist-clients=%%PREFIX%%/etc/postfix/postgrey_whitelist_clients \ - --whitelist-clients=%%PREFIX%%/etc/postfix/postgrey_whitelist_clients.local \ - --whitelist-recipients=%%PREFIX%%/etc/postfix/postgrey_whitelist_recipients"} + --inet=10023 -d --user=postgrey --group=postgrey --dbdir=/var/db/postgrey"} pidfile="${postgrey_pidfile}"