[46334] trunk/dports/_resources/port1.0/fetch/mirror_sites.tcl

blb at macports.org blb at macports.org
Mon Feb 2 14:34:44 PST 2009


Revision: 46334
          http://trac.macports.org/changeset/46334
Author:   blb at macports.org
Date:     2009-02-02 14:34:44 -0800 (Mon, 02 Feb 2009)
Log Message:
-----------
fetch/mirror_sites.tcl - add a Debian mirror group for fetching; note that
in the long term there should probably be a new :tag added for mirror_sites
to allow for how this works, eg:
   ${mirror_site}/[string index ${portname} 0]/${portname}
since it uses the first character of the port as the first subdir, then
the name of the port as the next subdir.  For now, just use the proper
subdir setting in the port using this group (see mmv for an example).

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/fetch/mirror_sites.tcl

Modified: trunk/dports/_resources/port1.0/fetch/mirror_sites.tcl
===================================================================
--- trunk/dports/_resources/port1.0/fetch/mirror_sites.tcl	2009-02-02 22:00:25 UTC (rev 46333)
+++ trunk/dports/_resources/port1.0/fetch/mirror_sites.tcl	2009-02-02 22:34:44 UTC (rev 46334)
@@ -41,6 +41,40 @@
     http://archive.apache.org/dist/
 }
 
+# Note that mirror_sites aren't intelligent enough to handle how this should
+# work automatically (which is, append first letter of port name, then
+# port name) so just use a basic form here and fake it in ports that need
+# to use this.
+set portfetch::mirror_sites::sites(debian) {
+    ftp://ftp.us.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.au.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.bg.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.cl.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.cz.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.de.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.ee.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.es.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.fi.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.fr.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.hk.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.hr.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.hu.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.ie.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.is.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.it.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.jp.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.nl.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.no.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.pl.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.ru.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.se.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.si.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.sk.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.uk.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp.wa.au.debian.org/debian/pool/main/:nosubdir
+    ftp://ftp2.de.debian.org/debian/pool/main/:nosubdir
+}
+
 set portfetch::mirror_sites::sites(freebsd) {
     ftp://ftp5.freebsd.org/pub/FreeBSD/ports/distfiles/:nosubdir
     ftp://ftp5.freebsd.org/pub/FreeBSD/ports/local-distfiles/:nosubdir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090202/6a0c4b55/attachment.html>


More information about the macports-changes mailing list