[37215] trunk/dports/net/squid/Portfile

jmr at macports.org jmr at macports.org
Fri May 30 03:47:53 PDT 2008


Revision: 37215
          http://trac.macosforge.org/projects/macports/changeset/37215
Author:   jmr at macports.org
Date:     2008-05-30 03:47:51 -0700 (Fri, 30 May 2008)

Log Message:
-----------
squid: factor out branch version, thus fixing one of the master_sites URLs

Modified Paths:
--------------
    trunk/dports/net/squid/Portfile

Modified: trunk/dports/net/squid/Portfile
===================================================================
--- trunk/dports/net/squid/Portfile	2008-05-30 07:42:30 UTC (rev 37214)
+++ trunk/dports/net/squid/Portfile	2008-05-30 10:47:51 UTC (rev 37215)
@@ -5,6 +5,7 @@
 
 name			squid
 version			2.7.STABLE1
+set branch      [join [lrange [split ${version} .] 0 1] .]
 categories		net
 platforms		darwin
 maintainers		jmr openmaintainer
@@ -26,7 +27,7 @@
 				http://ftp.ring.gr.jp/archives/net/www/squid/squid-2/STABLE/ \
 				ftp://ftp.is.co.za/pub/squid/squid-2/STABLE/ \
 				ftp://ftp1.cl.squid-cache.org/pub/squid/squid-2/STABLE/ \
-				http://www.squid-cache.org/Versions/v2/2.6/ \
+				http://www.squid-cache.org/Versions/v2/${branch}/ \
 				ftp://ftp.squid-cache.org/pub/squid-2/STABLE/
 
 checksums		md5 a264d99375dc54145b12594e488e1d89 \
@@ -94,5 +95,5 @@
 }
 
 livecheck.check	regex
-livecheck.url	http://www.squid-cache.org/Versions/v2/2.7/
-livecheck.regex	squid-(2.7.STABLE\[0-9\\.\]+)-RELEASENOTES
+livecheck.url	http://www.squid-cache.org/Versions/v2/${branch}/
+livecheck.regex	squid-(${branch}\\.STABLE\[0-9\\.\]+)-RELEASENOTES

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080530/5ddf29e3/attachment.htm 


More information about the macports-changes mailing list