[37210] trunk/dports/www/awstats/Portfile

wsiegrist at apple.com wsiegrist at apple.com
Thu May 29 16:13:42 PDT 2008


Revision: 37210
          http://trac.macosforge.org/projects/macports/changeset/37210
Author:   wsiegrist at apple.com
Date:     2008-05-29 16:13:41 -0700 (Thu, 29 May 2008)

Log Message:
-----------
 * Lint fixes
 * Removed use of cd
 * Fixed references to /usr/bin/perl

Modified Paths:
--------------
    trunk/dports/www/awstats/Portfile

Modified: trunk/dports/www/awstats/Portfile
===================================================================
--- trunk/dports/www/awstats/Portfile	2008-05-29 22:07:48 UTC (rev 37209)
+++ trunk/dports/www/awstats/Portfile	2008-05-29 23:13:41 UTC (rev 37210)
@@ -1,4 +1,5 @@
 # $Id$
+
 PortSystem 1.0
 
 name			awstats
@@ -30,7 +31,7 @@
 depends_lib		port:perl5.8 port:apache2
 
 
-variant apache {
+variant apache description "use apache instead of apache2" {
 	depends_lib-append	port:apache
 	depends_lib-delete	port:apache2
 }
@@ -39,11 +40,13 @@
 build 		{}
 
 patch {
-    cd ${worksrcpath}
     reinplace "s|/usr/local|${prefix}|g" \
-        tools/awstats_buildstaticpages.pl tools/awstats_updateall.pl \
-        tools/httpd_conf tools/webmin/awstats-1.6.wbm \
-        wwwroot/cgi-bin/awstats.model.conf wwwroot/cgi-bin/awstats.pl
+        "${worksrcpath}/tools/awstats_buildstaticpages.pl" "${worksrcpath}/tools/awstats_updateall.pl" \
+        "${worksrcpath}/tools/httpd_conf" "${worksrcpath}/tools/webmin/awstats-1.6.wbm" \
+        "${worksrcpath}/wwwroot/cgi-bin/awstats.model.conf" "${worksrcpath}/wwwroot/cgi-bin/awstats.pl"
+    reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \
+        "${worksrcpath}/tools/awstats_buildstaticpages.pl" "${worksrcpath}/tools/awstats_updateall.pl" \
+        "${worksrcpath}/wwwroot/cgi-bin/awstats.pl"
 }
 
 set docpath ${destroot}${prefix}/www/awstats

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080529/a4244305/attachment-0001.htm 


More information about the macports-changes mailing list