[32489] trunk/dports/www/privoxy/Portfile
raimue at macports.org
raimue at macports.org
Fri Jan 4 11:57:54 PST 2008
Revision: 32489
http://trac.macosforge.org/projects/macports/changeset/32489
Author: raimue at macports.org
Date: 2008-01-04 11:57:53 -0800 (Fri, 04 Jan 2008)
Log Message:
-----------
www/privoxy: Remove deprecated cd command
Modified Paths:
--------------
trunk/dports/www/privoxy/Portfile
Modified: trunk/dports/www/privoxy/Portfile
===================================================================
--- trunk/dports/www/privoxy/Portfile 2008-01-04 19:42:57 UTC (rev 32488)
+++ trunk/dports/www/privoxy/Portfile 2008-01-04 19:57:53 UTC (rev 32489)
@@ -35,8 +35,8 @@
pre-configure {
addgroup ${privoxyGroup}
adduser ${privoxyUser} gid=[existsgroup ${privoxyGroup}]
- cd ${worksrcpath}
- system "autoheader"
+
+ system "cd ${worksrcpath} && autoheader"
}
use_autoconf yes
@@ -55,8 +55,8 @@
xinstall -m 755 -d ${destroot}${prefix}/etc/rc.d
xinstall -m 755 -W ${worksrcpath} privoxy-generic.init \
${destroot}${prefix}/etc/rc.d/privoxy.sh
- cd ${destroot}${prefix}/etc/rc.d
- system "patch -p0 < ${filespath}/patch-privoxy.sh"
+
+ system "cd ${destroot}${prefix}/etc/rc.d && patch -p0 < ${filespath}/patch-privoxy.sh"
reinplace "s|@@PREFIX@@|${prefix}|g" \
${destroot}${prefix}/etc/rc.d/privoxy.sh
reinplace "s|@@PRIVOXY_USER@@|${privoxyUser}|g" \
@@ -80,7 +80,7 @@
post-activate {
# Make sure initial log files are present and setup correctly
foreach privoxyLog {jarfile logfile} {
- system "touch ${prefix}/var/log/privoxy/${privoxyLog}"
+ touch ${prefix}/var/log/privoxy/${privoxyLog}
file attributes ${prefix}/var/log/privoxy/${privoxyLog} \
-group ${privoxyGroup} -owner ${privoxyUser} \
-permissions 0660
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080104/0e24a737/attachment.html
More information about the macports-changes
mailing list