[35352] trunk/dports/mail/postgrey/Portfile
jberry at macports.org
jberry at macports.org
Tue Mar 25 10:45:20 PDT 2008
Revision: 35352
http://trac.macosforge.org/projects/macports/changeset/35352
Author: jberry at macports.org
Date: 2008-03-25 10:45:20 -0700 (Tue, 25 Mar 2008)
Log Message:
-----------
Remove use of cd command. Contact to maintainer failed as his domain rejects mail from macports.org.
Modified Paths:
--------------
trunk/dports/mail/postgrey/Portfile
Modified: trunk/dports/mail/postgrey/Portfile
===================================================================
--- trunk/dports/mail/postgrey/Portfile 2008-03-25 16:17:50 UTC (rev 35351)
+++ trunk/dports/mail/postgrey/Portfile 2008-03-25 17:45:20 UTC (rev 35352)
@@ -4,7 +4,7 @@
name postgrey
version 1.31
-revision 1
+revision 2
categories mail
maintainers cbellot at 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
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080325/b0490205/attachment.html
More information about the macports-changes
mailing list