[33395] trunk/dports/mail/qmail-spamcontrol/Portfile
ryandesign at macports.org
ryandesign at macports.org
Fri Jan 25 23:53:48 PST 2008
Revision: 33395
http://trac.macosforge.org/projects/macports/changeset/33395
Author: ryandesign at macports.org
Date: 2008-01-25 23:53:44 -0800 (Fri, 25 Jan 2008)
Log Message:
-----------
qmail-spamcontrol: simplify installation of example files with xinstall and a for loop, and in the process make sure these sample scripts have the execute bit set so they can be run; see #13972
Modified Paths:
--------------
trunk/dports/mail/qmail-spamcontrol/Portfile
Modified: trunk/dports/mail/qmail-spamcontrol/Portfile
===================================================================
--- trunk/dports/mail/qmail-spamcontrol/Portfile 2008-01-26 07:02:27 UTC (rev 33394)
+++ trunk/dports/mail/qmail-spamcontrol/Portfile 2008-01-26 07:53:44 UTC (rev 33395)
@@ -4,7 +4,7 @@
name qmail-spamcontrol
version 2.4.18
-revision 3
+revision 4
categories mail
maintainers yahoo.com:compconsultant
platforms darwin
@@ -159,21 +159,12 @@
touch ${destroot}${prefix}/var/log/qmail/smtpd/.turd_${name}
# Copy example files
- file mkdir ${destroot}${prefix}/var/qmail/samples
- file copy ${filespath}/README.txt ${destroot}${prefix}/var/qmail/samples/README.txt
- file copy ${filespath}/qmailctl.in ${destroot}${prefix}/var/qmail/samples/qmailctl
- file copy ${filespath}/run.in ${destroot}${prefix}/var/qmail/samples/run
- file copy ${filespath}/qmail-send-run.in ${destroot}${prefix}/var/qmail/samples/qmail-send-run
- file copy ${filespath}/qmail-send-log-run.in ${destroot}${prefix}/var/qmail/samples/qmail-send-log-run
- file copy ${filespath}/qmail-smtpd-run.in ${destroot}${prefix}/var/qmail/samples/qmail-smtpd-run
- file copy ${filespath}/qmail-smtpd-log-run.in ${destroot}${prefix}/var/qmail/samples/qmail-smtpd-log-run
- reinplace "s%@PREFIX@%${prefix}%g" \
- ${destroot}${prefix}/var/qmail/samples/qmailctl \
- ${destroot}${prefix}/var/qmail/samples/run \
- ${destroot}${prefix}/var/qmail/samples/qmail-send-run \
- ${destroot}${prefix}/var/qmail/samples/qmail-send-log-run \
- ${destroot}${prefix}/var/qmail/samples/qmail-smtpd-run \
- ${destroot}${prefix}/var/qmail/samples/qmail-smtpd-log-run
+ xinstall -d ${destroot}${prefix}/var/qmail/samples
+ xinstall -m 644 -W ${filespath} README.txt ${destroot}${prefix}/var/qmail/samples
+ foreach file {run qmailctl qmail-send-run qmail-send-log-run qmail-smtpd-run qmail-smtpd-log-run} {
+ xinstall -W ${filespath} ${file}.in ${destroot}${prefix}/var/qmail/samples/${file}
+ reinplace "s%@PREFIX@%${prefix}%g" ${destroot}${prefix}/var/qmail/samples/${file}
+ }
# Additional Spamcontrol files
file mkdir ${destroot}${prefix}/var/qmail/scripts
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080125/87b692d5/attachment.html
More information about the macports-changes
mailing list