most recent changes, diff for postgrey
Index: mail/postgrey/Portfile
--- mail/postgrey/Portfile (revision 35351)
+++ mail/postgrey/Portfile (revision 35352)
@@ -4,7 +4,7 @@
name postgrey
version 1.31
-revision 1
+revision 2
categories mail
maintainers cbellot@sky.fr
@@ -32,21 +32,24 @@
startupitem.stop "${prefix}/share/postgrey/postgrey.sh stop"
configure {
- cd ${worksrcpath}
- system "echo all: > Makefile"
- reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" postgrey \
- contrib/postgreyreport
- reinplace "s|/etc/postfix|${prefix}/etc/postgrey|g" postgrey \
- postgrey_whitelist_clients postgrey_whitelist_recipients \
- contrib/postgreyreport
- reinplace "s|/etc/main.cf|postfix's main.cf|g" postgrey
+ system "echo all: > ${worksrcpath}/Makefile"
+ reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \
+ ${worksrcpath}/postgrey \
+ ${worksrcpath}/contrib/postgreyreport
+ reinplace "s|/etc/postfix|${prefix}/etc/postgrey|g" \
+ ${worksrcpath}/postgrey \
+ ${worksrcpath}/postgrey_whitelist_clients \
+ ${worksrcpath}/postgrey_whitelist_recipients \
+ ${worksrcpath}/contrib/postgreyreport
+ reinplace "s|/etc/main.cf|postfix's main.cf|g" \
+ ${worksrcpath}/postgrey
reinplace "s|/var/spool/postfix/postgrey|${prefix}/var/spool/postgrey|g" \
- postgrey contrib/postgreyreport
+ ${worksrcpath}/postgrey \
+ ${worksrcpath}/contrib/postgreyreport
}
destroot {
adduser postgrey realname=Postgrey\ Server
addgroup postgrey
- cd ${worksrcpath}
file mkdir ${destroot}${prefix}/etc/postgrey
file mkdir ${destroot}${prefix}/share/postgrey
file mkdir ${destroot}${prefix}/share/doc/postgrey
@@ -59,13 +62,16 @@
destroot.keepdirs ${destroot}${prefix}/var/spool/postgrey \
${destroot}${prefix}/var/run/postgrey \
${destroot}${prefix}/etc/postgrey
- system "pod2man --section=8 postgrey > \
+ system "pod2man --section=8 ${worksrcpath}/postgrey > \
${destroot}${prefix}/share/man/man8/postgrey.8"
- system "pod2man --section=1 contrib/postgreyreport > \
+ system "pod2man --section=1 ${worksrcpath}/contrib/postgreyreport > \
${destroot}${prefix}/share/man/man1/postgreyreport.1"
- xinstall -m 755 -c contrib/postgreyreport \
+ xinstall -m 755 -c ${worksrcpath}/contrib/postgreyreport \
${destroot}${prefix}/bin/postgreyreport
- xinstall -m 644 -c README README.exim Changes COPYING \
+ xinstall -m 644 -c ${worksrcpath}/README \
+ ${worksrcpath}/README.exim \
+ ${worksrcpath}/Changes \
+ ${worksrcpath}/COPYING \
${destroot}${prefix}/share/doc/postgrey
xinstall -m 644 -c ${portpath}/files/postgrey.conf \
${destroot}${prefix}/etc/postgrey/postgrey.conf.sample
@@ -73,11 +79,14 @@
${destroot}${prefix}/share/postgrey
reinplace "s|__PREFIX|${prefix}|g" \
${destroot}${prefix}/share/postgrey/postgrey.sh
- xinstall -m 4755 -o postgrey -g postgrey -c postgrey \
+ xinstall -m 4755 -o postgrey -g postgrey -c \
+ ${worksrcpath}/postgrey \
${destroot}${prefix}/sbin/postgrey
- xinstall -m 644 -c postgrey_whitelist_clients \
+ xinstall -m 644 -c \
+ ${worksrcpath}/postgrey_whitelist_clients \
${destroot}${prefix}/etc/postgrey
- xinstall -m 644 -c postgrey_whitelist_recipients \
+ xinstall -m 644 -c \
+ ${worksrcpath}/postgrey_whitelist_recipients \
${destroot}${prefix}/etc/postgrey/postgrey_whitelist_recipients.default
}