Sync Mk with ports
[dports.git] / Mk / bsd.sites.mk
1 # bsd.sites.mk - Popular master sites.
2 #
3 # Sites_MAINTAINER=             ports@FreeBSD.org
4 #
5 # This file does not have any designated maintainer, so feel free to
6 # commit to it yourself.  However, it is generally a good idea to
7 # notify the principal maintainer in case you have a change to one of
8 # the software environments (KDE, GNOME, etc.).
9 #
10 # Also, this file is included from bsd.port.mk for all invocations, so
11 # committing a syntax error to this file is a cardinal sin, and will
12 # be punished accordingly.  DO NOT COMMIT SOMETHING YOU HAVEN'T TESTED.
13 # You have been warned. :)
14 #
15 # Note: because it is included for all invocations, please keep the size
16 # of this file manageable.  If a distfile is unfetchable from the first
17 # few dozen locations, it is unlikely to be fetchable from any past that,
18 # and those fetch failures will simply waste time and bandwidth.  Please
19 # pick a globally representative subset.
20 #
21 # Note: all entries should terminate with a slash.
22 #
23 # $FreeBSD$
24 #
25
26 # Where to put distfiles that don't have any other master site
27 .if !defined(IGNORE_MASTER_SITE_LOCAL)
28 MASTER_SITE_LOCAL+= \
29         http://distcache.FreeBSD.org/local-distfiles/%SUBDIR%/ \
30         http://distcache.us-east.FreeBSD.org/local-distfiles/%SUBDIR%/ \
31         http://distcache.eu.FreeBSD.org/local-distfiles/%SUBDIR%/ \
32         http://distcache.us-west.FreeBSD.org/local-distfiles/%SUBDIR%/
33
34 MASTER_SITE_PORTS_JP+= \
35         ftp://ports.jp.FreeBSD.org/pub/FreeBSD-jp/ports-jp/LOCAL_PORTS/%SUBDIR%/ \
36         ftp://ftp4.jp.FreeBSD.org/pub/FreeBSD-jp/ports-jp/LOCAL_PORTS/%SUBDIR%/ \
37         ftp://ftp.ics.es.osaka-u.ac.jp/pub/mirrors/FreeBSD-jp/ports-jp/LOCAL_PORTS/%SUBDIR%/
38 .endif
39
40 ##
41 ##      KEEP THIS LIST SORTED
42 ##
43
44 .if !defined(IGNORE_MASTER_SITE_AFTERSTEP)
45 MASTER_SITE_AFTERSTEP+= \
46         ftp://ftp.afterstep.org/%SUBDIR%/ \
47         ftp://ftp.kddlabs.co.jp/X11/AfterStep/%SUBDIR%/ \
48         ftp://ftp.dti.ad.jp/pub/X/AfterStep/%SUBDIR%/
49 .endif
50
51 .if !defined(IGNORE_MASTER_SITE_ALSA)
52 MASTER_SITE_ALSA+= \
53         http://alsa.cybermirror.org/%SUBDIR%/ \
54         ftp://ftp.alsa-project.org/pub/%SUBDIR%/
55 .endif
56
57 .if !defined(IGNORE_MASTER_SITE_APACHE)
58 MASTER_SITE_APACHE+= \
59         http://www.apache.org/dist/%SUBDIR%/ \
60         http://archive.apache.org/dist/%SUBDIR%/ \
61         http://ftp.twaren.net/Unix/Web/apache/%SUBDIR%/ \
62         http://apache.mirror.uber.com.au/%SUBDIR%/ \
63         http://apache.spd.co.il/%SUBDIR%/ \
64         http://ftp.mirrorservice.org/sites/ftp.apache.org/%SUBDIR%/ \
65         http://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.apache.org/dist/%SUBDIR%/ \
66         ftp://mir1.ovh.net/ftp.apache.org/dist/%SUBDIR%/ \
67         ftp://ftp.forthnet.gr/pub/www/apache/%SUBDIR%/ \
68         ftp://xenia.sote.hu/pub/mirrors/www.apache.org/%SUBDIR%/ \
69         ftp://ftp.heanet.ie/mirrors/www.apache.org/dist/%SUBDIR%/ \
70         ftp://ftp.sunet.se/pub/www/servers/apache/dist/%SUBDIR%/ \
71         http://mirrors.ircam.fr/pub/apache/%SUBDIR%/
72 .endif
73
74 .if !defined(IGNORE_MASTER_SITE_APACHE_COMMONS_BINARIES)
75 MASTER_SITE_APACHE_COMMONS_BINARIES+= \
76         ${MASTER_SITE_APACHE:S,%SUBDIR%,commons/&/binaries,}
77 .endif
78
79 .if !defined(IGNORE_MASTER_SITE_APACHE_COMMONS_SOURCE)
80 MASTER_SITE_APACHE_COMMONS_SOURCE+= \
81         ${MASTER_SITE_APACHE:S,%SUBDIR%,commons/&/source,}
82 .endif
83
84 .if !defined(IGNORE_MASTER_SITE_APACHE_HTTPD)
85 MASTER_SITE_APACHE_HTTPD+= \
86         ${MASTER_SITE_APACHE:S,%SUBDIR%,httpd/&,}
87 .endif
88
89 .if !defined(IGNORE_MASTER_SITE_APACHE_JAKARTA)
90 MASTER_SITE_APACHE_JAKARTA+= \
91         ${MASTER_SITE_APACHE:S,%SUBDIR%,jakarta/&,}
92 .endif
93
94 .if !defined(IGNORE_MASTER_SITE_APACHE_TOMCAT)
95 MASTER_SITE_APACHE_TOMCAT+= \
96         ${MASTER_SITE_APACHE:S,%SUBDIR%,tomcat/&,}
97 .endif
98
99 .if !defined(IGNORE_MASTER_SITE_APACHE_XML)
100 MASTER_SITE_APACHE_XML+= \
101         ${MASTER_SITE_APACHE:S,%SUBDIR%,xml/&,}
102 .endif
103
104 .if !defined(IGNORE_MASTER_SITE_BERLIOS)
105 MASTER_SITE_BERLIOS+= \
106         ${MASTER_SITE_SOURCEFORGE}
107 .endif
108
109 .if !defined(IGNORE_MASTER_SITE_CHEESESHOP)
110 MASTER_SITE_CHEESESHOP+= \
111         http://pypi.python.org/packages/%SUBDIR%/ \
112         http://pypi.crate.io/packages/%SUBDIR%/ \
113         http://pypi.python.jp/${DISTNAME:S/${DISTVERSION}//:S/-//}/
114 .endif
115
116 .if !defined(IGNORE_MASTER_SITE_DEBIAN)
117 MASTER_SITE_DEBIAN+= \
118         http://cdn.debian.net/debian/%SUBDIR%/ \
119         http://www.gtlib.gatech.edu/pub/debian/%SUBDIR%/ \
120         ftp://ftp.us.debian.org/debian/%SUBDIR%/ \
121         ${MASTER_SITE_DEBIAN_NON_US:S,/debian-non-US/,/debian/,}
122 .endif
123
124 .if !defined(IGNORE_MASTER_SITE_DEBIAN_NON_US)
125 MASTER_SITE_DEBIAN_NON_US+= \
126         ftp://ftp.au.debian.org/debian-non-US/%SUBDIR%/ \
127         ftp://ftp.bg.debian.org/debian-non-US/%SUBDIR%/ \
128         ftp://ftp.br.debian.org/debian-non-US/%SUBDIR%/ \
129         ftp://ftp.cl.debian.org/debian-non-US/%SUBDIR%/ \
130         ftp://ftp.cz.debian.org/debian-non-US/%SUBDIR%/ \
131         ftp://ftp.de.debian.org/debian-non-US/%SUBDIR%/ \
132         ftp://ftp.ee.debian.org/debian-non-US/%SUBDIR%/ \
133         ftp://ftp.es.debian.org/debian-non-US/%SUBDIR%/ \
134         ftp://ftp.fi.debian.org/debian-non-US/%SUBDIR%/ \
135         ftp://ftp.fr.debian.org/debian-non-US/%SUBDIR%/ \
136         ftp://ftp.hk.debian.org/debian-non-US/%SUBDIR%/ \
137         ftp://ftp.hr.debian.org/debian-non-US/%SUBDIR%/ \
138         ftp://ftp.hu.debian.org/debian-non-US/%SUBDIR%/ \
139         ftp://ftp.ie.debian.org/debian-non-US/%SUBDIR%/ \
140         ftp://ftp.is.debian.org/debian-non-US/%SUBDIR%/ \
141         ftp://ftp.it.debian.org/debian-non-US/%SUBDIR%/ \
142         ftp://ftp.jp.debian.org/debian-non-US/%SUBDIR%/ \
143         ftp://ftp.nl.debian.org/debian-non-US/%SUBDIR%/ \
144         ftp://ftp.no.debian.org/debian-non-US/%SUBDIR%/ \
145         ftp://ftp.pl.debian.org/debian-non-US/%SUBDIR%/ \
146         ftp://ftp.ru.debian.org/debian-non-US/%SUBDIR%/ \
147         ftp://ftp.se.debian.org/debian-non-US/%SUBDIR%/ \
148         ftp://ftp.si.debian.org/debian-non-US/%SUBDIR%/ \
149         ftp://ftp.sk.debian.org/debian-non-US/%SUBDIR%/ \
150         ftp://ftp.uk.debian.org/debian-non-US/%SUBDIR%/ \
151         ftp://ftp.wa.au.debian.org/debian-non-US/%SUBDIR%/ \
152         ftp://ftp2.de.debian.org/debian-non-US/%SUBDIR%/ \
153         ftp://ftp.snt.utwente.nl/pub/linux/debian-non-US/%SUBDIR%/ \
154         ftp://ftp.df.lth.se/pub/debian-non-US/%SUBDIR%/ \
155         ftp://ftp.acc.umu.se/debian-non-US/%SUBDIR%/ \
156         ftp://mirror.symnds.com/debian-non-US/%SUBDIR%/
157 .endif
158
159 .if !defined(IGNORE_MASTER_SITE_DEBIAN_POOL)
160 MASTER_SITE_DEBIAN_POOL+= \
161         ${MASTER_SITE_DEBIAN:C|(/%SUBDIR%/)|/pool/main/${PORTNAME:C/^(.).*$/\1/}/${PORTNAME}/|}
162 .endif
163
164 .if !defined(IGNORE_MASTER_SITE_EASYSW)
165 MASTER_SITE_EASYSW+= \
166         http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/%SUBDIR%/ \
167         ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/%SUBDIR%/
168 .endif
169
170 .if !defined(IGNORE_MASTER_SITE_ECLIPSE)
171 MASTER_SITE_ECLIPSE+= \
172         ftp://sunsite.informatik.rwth-aachen.de/pub/mirror/eclipse.org/%SUBDIR%/ \
173         ftp://sunsite.informatik.rwth-aachen.de/pub/mirror/eclipse/%SUBDIR%/ \
174         http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/%SUBDIR%/ \
175         ftp://sunsite.cnlab-switch.ch/mirror/eclipse/%SUBDIR%/ \
176         ftp://sunsite.cnlab-switch.ch/mirror/eclipse/eclipse/downloads/drops/%SUBDIR%/ \
177         ftp://sunsite.cnlab-switch.ch/mirror/eclipse/eclipse/downloads/drops4/%SUBDIR%/ \
178         http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/%SUBDIR%/
179 .endif
180
181 .if !defined(IGNORE_MASTER_SITE_EXIM)
182 MASTER_SITE_EXIM+= \
183         ftp://ftp.exim.org/pub/exim/%SUBDIR%/ \
184         ftp://exim.inode.at/exim/%SUBDIR%/ \
185         ftp://exim-ftp.itsoft.at/exim/exim/%SUBDIR%/ \
186         http://exim-ftp.itsoft.at/exim/%SUBDIR%/ \
187         ftp://ftp.easynet.be/exim/exim/%SUBDIR%/ \
188         ftp://mirror.kn.vutbr.cz/pub/ftp.exim.org/exim/%SUBDIR%/ \
189         http://exim.mirror.fr/exim/%SUBDIR%/ \
190         http://mirrors.zerg.biz/exim/exim/%SUBDIR%/ \
191         http://dl.ambiweb.de/mirrors/ftp.exim.org/exim/%SUBDIR%/ \
192         ftp://exim.noris.de/exim/%SUBDIR%/ \
193         ftp://ftp.bytemine.net/exim/exim/%SUBDIR%/ \
194         ftp://exim.mirror.iphh.net/ftp/exim/%SUBDIR%/ \
195         http://exim.mirror.iphh.net/ftp/exim/%SUBDIR%/ \
196         ftp://ftp.fu-berlin.de/unix/mail/exim/%SUBDIR%/ \
197         http://exim-ftp.octet.hu/exim/%SUBDIR%/ \
198         ftp://ftp.heanet.ie/pub/exim/%SUBDIR%/ \
199         http://ftp.heanet.ie/pub/exim/%SUBDIR%/ \
200         http://washitake.com/mail/exim/mirror/exim/%SUBDIR%/ \
201         ftp://ftp.tin.org/pub/mail/exim/%SUBDIR%/ \
202         http://exim.psshee.com/ftp/exim/%SUBDIR%/ \
203         ftp://mirror.hostfuss.com/exim/ftp/exim/%SUBDIR%/ \
204         http://mirror.hostfuss.com/exim/ftp/exim/%SUBDIR%/ \
205         ftp://ftp.nl.uu.net/pub/unix/mail/exim/exim/%SUBDIR%/ \
206         ftp://sunsite.uio.no/pub/mail/exim/exim/%SUBDIR%/ \
207         http://piotrkosoft.net/pub/mirrors/ftp.exim.org/exim/%SUBDIR%/ \
208         ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.exim.org/exim/%SUBDIR%/ \
209         ftp://sunsite.icm.edu.pl/pub/unix/mail/exim/exim/%SUBDIR%/ \
210         http://sunsite.icm.edu.pl/pub/unix/mail/exim/exim/%SUBDIR%/ \
211         ftp://ftp.is.co.za/networking/mail/mta/exim/ftp/exim/%SUBDIR%/ \
212         ftp://mirrors.dominios.pt/pub/ftp.exim.org/exim/%SUBDIR%/ \
213         ftp://mirror.switch.ch/mirror/exim/exim/%SUBDIR%/ \
214         http://mirror.switch.ch/ftp/mirror/exim/exim/%SUBDIR%/ \
215         ftp://ftp.reaper.org/pub/exim/exim/%SUBDIR%/ \
216         ftp://sunsite.cnlab-switch.ch/mirror/exim/exim/%SUBDIR%/ \
217         ftp://ftp.demon.co.uk/pub/mirrors/exim/%SUBDIR%/ \
218         ftp://mirror.tje.me.uk/pub/mirrors/ftp.exim.org/exim/%SUBDIR%/ \
219         http://mirror.tje.me.uk/pub/mirrors/ftp.exim.org/exim/%SUBDIR%/ \
220         ftp://ftp.fsckit.net/pub/exim/exim/%SUBDIR%/ \
221         ftp://idcnetwork.org/pub/exim/exim/%SUBDIR%/ \
222         http://ftp.exim.llorien.org/exim/%SUBDIR%
223 .endif
224
225 .if !defined(IGNORE_MASTER_SITE_CENTOS_LINUX)
226 MASTER_SITE_CENTOS_LINUX+= \
227         http://mirror.centos.org/centos/6/os/i386/Packages/ \
228         http://vault.centos.org/6.6/os/Source/SPackages/ \
229         http://mirror.centos.org/%SUBDIR%/ \
230         http://vault.centos.org/%SUBDIR%/
231
232 .endif
233
234 .if !defined(IGNORE_MASTER_SITE_CENTOS_LINUX)
235 MASTER_SITE_CENTOS_LINUX_UPDATES+= \
236         http://mirror.centos.org/centos/6/updates/i386/Packages/ \
237         http://vault.centos.org/${LINUX_DIST_VER}/updates/Source/SPackages/
238 .endif
239
240 .if !defined(IGNORE_MASTER_SITE_EPEL)
241 MASTER_SITE_EPEL+= \
242         http://dl.fedoraproject.org/pub/epel/6/i386/ \
243         http://dl.fedoraproject.org/pub/epel/6/SRPMS/
244 .endif
245
246 .if !defined(IGNORE_MASTER_SITE_FEDORA_LINUX)
247 MASTER_SITE_FEDORA_LINUX+= \
248         http://archives.fedoraproject.org/pub/archive/fedora/linux/core/%SUBDIR%/ \
249         ftp://ftp.pbone.net/vol4/archive.fedoraproject.org/fedora/linux/core/%SUBDIR%/ \
250         ftp://mirror.solarvps.com/fedora/archive/fedora/linux/core/%SUBDIR%/ \
251         ftp://ftp.gmd.de/archives.fedoraproject.org/fedora/linux/core/%SUBDIR%/ \
252         ftp://mirror.fraunhofer.de/archives.fedoraproject.org/fedora/linux/core/%SUBDIR%/ \
253         ftp://linuxsoft.cern.ch/fedora/linux/core/%SUBDIR%/ \
254         ftp://ftp-mirror.bi.fraunhofer.de/archives.fedoraproject.org/fedora/linux/core/%SUBDIR%/ \
255         http://ftp.udl.es/pub/fedora/linux/core/%SUBDIR%/ \
256         http://ftp.sunet.se/pub/Linux/distributions/fedora/linux/core/%SUBDIR%/ \
257         ftp://ftp.sunet.se/pub/Linux/distributions/fedora/linux/core/%SUBDIR%/ \
258         ftp://ftp.udl.es/pub/fedora/linux/core/%SUBDIR%/ \
259         http://mirrors.kernel.org/fedora/core/%SUBDIR%/ \
260         ftp://mirrors.kernel.org/fedora/core/%SUBDIR%/ \
261         http://mirror.web-ster.com/fedora/core/%SUBDIR%/ \
262         ftp://mirror.web-ster.com/fedora/core/%SUBDIR%/ \
263         http://rpmfind.net/linux/fedora/core/%SUBDIR%/ \
264         ftp://ftp.gtlib.gatech.edu/pub/fedora.redhat/linux/core/%SUBDIR%/ \
265         ftp://fedora.mirrors.tds.net/pub/fedora-core/%SUBDIR%/ \
266         http://ftp.ndlug.nd.edu/pub/fedora/linux/core/%SUBDIR%/ \
267         ftp://ftp.ndlug.nd.edu/pub/fedora/linux/core/%SUBDIR%/ \
268         ftp://ftp.belnet.be/linux/fedora/linux/core/%SUBDIR%/ \
269         http://sunsite.mff.cuni.cz/pub/fedora/%SUBDIR%/ \
270         ftp://sunsite.mff.cuni.cz/pub/fedora/%SUBDIR%/ \
271         ftp://ultra.linux.cz/pub/fedora/%SUBDIR%/ \
272         http://fr2.rpmfind.net/linux/fedora/core/%SUBDIR%/ \
273         ftp://fr2.rpmfind.net/linux/fedora/core/%SUBDIR%/ \
274         http://wftp.tu-chemnitz.de/pub/linux/fedora-core/%SUBDIR%/ \
275         ftp://ftp.tu-chemnitz.de/pub/linux/fedora-core/%SUBDIR%/ \
276         http://ftp.heanet.ie/pub/fedora/linux/core/%SUBDIR%/ \
277         ftp://ftp.heanet.ie/pub/fedora/linux/core/%SUBDIR%/ \
278         ftp://alviss.et.tudelft.nl/pub/fedora/core/%SUBDIR%/ \
279         http://ftp.surfnet.nl/ftp/pub/os/Linux/distr/fedora/linux/core/%SUBDIR%/ \
280         ftp://ftp.surfnet.nl/pub/os/Linux/distr/fedora/linux/core/%SUBDIR%/ \
281         http://ftp.nluug.nl/ftp/pub/os/Linux/distr/fedora/linux/core/%SUBDIR%/ \
282         ftp://ftp.nluug.nl/pub/os/Linux/distr/fedora/linux/core/%SUBDIR%/ \
283         ftp://ftp.uninett.no/pub/linux/Fedora/core/%SUBDIR%/ \
284         http://ftp.man.poznan.pl/pub/linux/fedora/core/%SUBDIR%/ \
285         ftp://ftp.man.poznan.pl/pub/linux/fedora/%SUBDIR%/ \
286         http://ftp.ps.pl/pub/linux/fedora-core/%SUBDIR%/ \
287         ftp://ftp.ps.pl/pub/linux/fedora-core/%SUBDIR%/ \
288         ftp://ftp.kappa.ro/pub/Linux/Distributions/fedora/%SUBDIR%/ \
289         http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/linux/core/%SUBDIR%/ \
290         ftp://ftp.mirrorservice.org/sites/dl.fedoraproject.org/pub/fedora/linux/core/%SUBDIR%/ \
291         ftp://ftp.hostrino.com/pub/fedora/linux/core/%SUBDIR%/ \
292         ftp://ftp.sfc.wide.ad.jp/pub/Linux/Fedora/core/%SUBDIR%/ \
293         http://ftp.kddilabs.jp/Linux/packages/fedora/core/%SUBDIR%/ \
294         ftp://ftp.kddilabs.jp/Linux/packages/fedora/core/%SUBDIR%/ \
295         ftp://ftp.riken.go.jp/pub/Linux/fedora/core/%SUBDIR%/ \
296         http://ftp.isu.edu.tw/pub/Linux/Fedora/linux/core/%SUBDIR%/ \
297         ftp://ftp.isu.edu.tw/pub/Linux/Fedora/linux/core/%SUBDIR%/ \
298         http://www.las.ic.unicamp.br/pub/fedora/linux/core/%SUBDIR%/ \
299         ftp://www.las.ic.unicamp.br/pub/fedora/linux/core/%SUBDIR%/ \
300         ftp://mirror.netglobalis.net/pub/fedora/%SUBDIR%/ \
301         http://mirror.pacific.net.au/linux/redhat/fedora/%SUBDIR%/ \
302         ftp://mirror.pacific.net.au/linux/redhat/fedora/%SUBDIR%/ \
303         http://ftp.univie.ac.at/systems/linux/fedora/core/%SUBDIR%/ \
304         http://mirror.aarnet.edu.au/pub/fedora/linux/core/%SUBDIR%/ \
305         ftp://mirror.aarnet.edu.au/pub/fedora/linux/core/%SUBDIR%/ \
306         http://fedora.mirror.iweb.ca/core/%SUBDIR%/ \
307         ftp://fedora.mirror.iweb.ca/core/%SUBDIR%/ \
308         ftp://ftp.telus.net/pub/fedora/linux/core/%SUBDIR%/ \
309         http://fedora.arcticnetwork.ca/linux/core/%SUBDIR%/ \
310         http://www.muug.mb.ca/pub/fedora/linux/core/%SUBDIR%/ \
311         ftp://ftp.muug.mb.ca/pub/fedora/linux/core/%SUBDIR%/ \
312         ftp://ftp.solnet.ch/mirror/fedora/linux/core/%SUBDIR%/ \
313         http://mirror.karneval.cz/pub/linux/fedora/linux/core/%SUBDIR%/ \
314         ftp://ftp.telmexchile.cl/Unix/fedora/linux/core/%SUBDIR%/ \
315         http://ftp.sh.cvut.cz/MIRRORS/fedora/%SUBDIR%/ \
316         ftp://ftp.sh.cvut.cz/MIRRORS/fedora/%SUBDIR%/ \
317         http://sunsite.mff.cuni.cz/MIRRORS/fedora.redhat.com/linux/core/%SUBDIR%/ \
318         ftp://sunsite.mff.cuni.cz/MIRRORS/fedora.redhat.com/linux/core/%SUBDIR%/ \
319         http://ftp-stud.hs-esslingen.de/pub/fedora/linux/core/%SUBDIR%/ \
320         ftp://ftp-stud.hs-esslingen.de/pub/fedora/linux/core/%SUBDIR%/ \
321         http://ftp.uni-erlangen.de/pub/Linux/MIRROR.fedora/core/%SUBDIR%/ \
322         http://ftp.uni-bayreuth.de/linux/fedora/linux/core/%SUBDIR%/ \
323         ftp://ftp.uni-bayreuth.de/pub/linux/fedora/linux/core/%SUBDIR%/ \
324         ftp://ftp.fu-berlin.de/linux/fedora/core/%SUBDIR%/ \
325         http://ftp.uni-koeln.de/mirrors/fedora/linux/core/%SUBDIR%/ \
326         ftp://ftp.uni-koeln.de/mirrors/fedora/linux/core/%SUBDIR%/ \
327         ftp://ftp.informatik.uni-frankfurt.de/pub/linux/Mirror/ftp.redhat.com/fedora/core/%SUBDIR%/ \
328         http://mirrors.ircam.fr/pub/fedora/linux/core/%SUBDIR%/ \
329         ftp://mirrors.ircam.fr/pub/fedora/linux/core/%SUBDIR%/ \
330         http://ftp.crihan.fr/mirrors/fedora.redhat.com/fedora/linux/core/%SUBDIR%/ \
331         ftp://ftp.crihan.fr/mirrors/fedora.redhat.com/fedora/linux/core/%SUBDIR%/ \
332         ftp://ftp.univ-pau.fr/pub/mirrors/fedora/%SUBDIR%/ \
333         ftp://ftp.lip6.fr/pub/linux/distributions/fedora/%SUBDIR%/ \
334         http://fr.rpmfind.net/linux/fedora/core/%SUBDIR%/ \
335         http://www.gtlib.gatech.edu/pub/fedora.redhat/linux/core/%SUBDIR%/ \
336         http://ftp.rhnet.is/pub/fedora/linux/core/%SUBDIR%/ \
337         ftp://ftp.rhnet.is/pub/fedora/linux/core/%SUBDIR%/ \
338         http://ftp.unina.it/pub/linux/distributions/fedora/%SUBDIR%/ \
339         ftp://ftp.unina.it/pub/linux/distributions/fedora/%SUBDIR%/ \
340         http://ftp.iij.ad.jp/pub/linux/fedora/core/%SUBDIR%/ \
341         ftp://ftp.iij.ad.jp/pub/linux/fedora/core/%SUBDIR%/ \
342         http://ftp.dti.ad.jp/pub/Linux/Fedora/core/%SUBDIR%/ \
343         ftp://ftp.dti.ad.jp/pub/Linux/Fedora/core/%SUBDIR%/ \
344         http://ftp.nara.wide.ad.jp/pub/Linux/fedora/core/%SUBDIR%/ \
345         http://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora/linux/core/%SUBDIR%/ \
346         ftp://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora/linux/core/%SUBDIR%/ \
347         http://ftp.jaist.ac.jp/pub/Linux/Fedora/core/%SUBDIR%/ \
348         ftp://ftp.jaist.ac.jp/pub/Linux/Fedora/core/%SUBDIR%/ \
349         http://ftp.riken.jp/Linux/fedora/core/%SUBDIR%/ \
350         ftp://ftp.kreonet.re.kr/pub/Linux/fedora/core/%SUBDIR%/ \
351         ftp://fedora.ifc.unam.mx/linux/fedora/core/%SUBDIR%/ \
352         ftp://ftp.quicknet.nl/pub/Linux/download.fedora.redhat.com/core/%SUBDIR%/ \
353         ftp://ftp.uib.no/pub/fedora/linux/core/%SUBDIR%/ \
354         ftp://ftp.tpnet.pl/d17/fedora/%SUBDIR%/ \
355         http://ftp.wsisiz.edu.pl/pub/linux/fedora/linux/core/%SUBDIR%/ \
356         ftp://ftp.pbone.net/pub/fedora/pub/fedora/linux/core/%SUBDIR%/ \
357         http://ftp.pwr.wroc.pl/pub/linux/fedora/linux/core/%SUBDIR%/ \
358         ftp://ftp.pwr.wroc.pl/pub/linux/fedora/linux/core/%SUBDIR%/ \
359         ftp://mirrors.hpcf.upr.edu/pub/Mirrors/redhat/download.fedora.redhat.com/%SUBDIR%/ \
360         http://ftp.astral.ro/mirrors/fedora/pub/fedora/linux/core/%SUBDIR%/ \
361         ftp://ftp.astral.ro/mirrors/fedora/pub/fedora/linux/core/%SUBDIR%/ \
362         ftp://ftp.rdsor.ro/pub/Linux/Distributions/Fedora/%SUBDIR%/ \
363         http://ftp.chg.ru/pub/Linux/fedora/linux/core/%SUBDIR%/ \
364         ftp://ftp.chg.ru/pub/Linux/fedora/linux/core/%SUBDIR%/ \
365         http://ftp.rhd.ru/pub/fedora/linux/core/%SUBDIR%/ \
366         ftp://ftp.rhd.ru/pub/fedora/linux/core/%SUBDIR%/ \
367         http://ftp.port80.se/fedora/core/%SUBDIR%/ \
368         ftp://ftp.port80.se/fedora/core/%SUBDIR%/ \
369         http://ftp.upjs.sk/pub/fedora/linux/core/%SUBDIR%/ \
370         ftp://ftp.upjs.sk/pub/fedora/linux/core/%SUBDIR%/ \
371         ftp://ftp.tlk-l.net/pub/mirrors/fedora.redhat.com/linux/core/%SUBDIR%/ \
372         http://limestone.uoregon.edu/ftp/fedora/%SUBDIR%/ \
373         ftp://limestone.uoregon.edu/fedora/%SUBDIR%/ \
374         ftp://fedora.bu.edu/core/%SUBDIR%/ \
375         http://mirror.anl.gov/pub/fedora-linux-core/%SUBDIR%/ \
376         ftp://mirror.anl.gov/pub/fedora-linux-core/%SUBDIR%/ \
377         ftp://ftp.cse.buffalo.edu/pub/Linux/fedora/linux/core/%SUBDIR%/ \
378         ftp://ftp.applios.net/pub/fedora/linux/core/%SUBDIR%/ \
379         http://mirror.steadfast.net/fedora/core/%SUBDIR%/ \
380         http://mirror.eas.muohio.edu/fedora/linux/core/%SUBDIR%/ \
381         http://mirror.engr.sjsu.edu/pub/fedora/linux/core/%SUBDIR%/ \
382         http://www.gtlib.gatech.edu/pub/fedora.redhat/linux/core/%SUBDIR%/ \
383         ftp://ftp.gtlib.gatech.edu/pub/fedora.redhat/linux/core/%SUBDIR%/ \
384         http://mirror.cogentco.com/pub/linux/fedora/linux/core/%SUBDIR%/ \
385         http://mirrors.tummy.com/pub/fedora.redhat.com/fedora/linux/core/%SUBDIR%/ \
386         ftp://mirrors.tummy.com/pub/fedora.redhat.com/fedora/linux/core/%SUBDIR%/
387 .endif
388
389 .if !defined(IGNORE_MASTER_SITE_FARSIGHT)
390 MASTER_SITE_FARSIGHT+= \
391         https://dl.farsightsecurity.com/dist/%SUBDIR%/
392 .endif
393
394 .if !defined(IGNORE_MASTER_SITE_FESTIVAL)
395 MASTER_SITE_FESTIVAL+= \
396         http://www.festvox.org/packed/festival/%SUBDIR%/ \
397         http://www.cstr.ed.ac.uk/downloads/festival/%SUBDIR%/ \
398         http://stuff.mit.edu/afs/sipb/project/speech-tools/src/festival/festvox.org/packed/festival/%SUBDIR%/
399 .endif
400
401 .if !defined(IGNORE_MASTER_SITE_FESTIVAL_OGI)
402 MASTER_SITE_FESTIVAL_OGI+= \
403         ftp://ftp.tuwien.ac.at/opsys/linux/blinux/festival/mirror.ogi-synth_home/ \
404         http://www.cslu.ogi.edu/tts/download/data/
405 .endif
406
407 #
408 # FreeBSD mirror sites
409 #
410 # For the full list, see the Handbook:
411 #
412 #    http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html
413 #
414 .if !defined(IGNORE_MASTER_SITE_FREEBSD_ORG)
415 MASTER_SITE_FREEBSD_ORG+= \
416         ftp://ftp.FreeBSD.org/pub/FreeBSD/%SUBDIR%/ \
417         ftp://ftp.se.FreeBSD.org/pub/FreeBSD/%SUBDIR%/ \
418         ftp://ftp.jp.FreeBSD.org/pub/FreeBSD/%SUBDIR%/ \
419         ftp://ftp.uk.FreeBSD.org/pub/FreeBSD/%SUBDIR%/ \
420         ftp://ftp.ru.FreeBSD.org/pub/FreeBSD/%SUBDIR%/ \
421         ftp://ftp.dti.ad.jp/pub/FreeBSD/%SUBDIR%/
422 .endif
423
424 .if !defined(IGNORE_MASTER_SITE_FRUGALWARE)
425 MASTER_SITE_FRUGALWARE+= \
426         ftp://ftp7.frugalware.org/pub/frugalware/frugalware-stable/source/%SUBDIR%/ \
427         ftp://ftp2.frugalware.org/mirror/ftp.frugalware.org/pub/frugalware/frugalware-stable/source/%SUBDIR%/ \
428         ftp://ftp6.frugalware.org/mirrors/linux/frugalware/frugalware-stable/source/%SUBDIR%/ \
429         ftp://ftp4.frugalware.org/pub/linux/distributions/frugalware/frugalware-stable/source/%SUBDIR%/ \
430         ftp://ftp12.frugalware.org/mirrors/ftp.frugalware.org/pub/frugalware/frugalware-stable/source/%SUBDIR%/ \
431         ftp://ftp10.frugalware.org/pub/linux/frugalware/frugalware-stable/source/%SUBDIR%/
432 #       ftp://ftp5.frugalware.org/packages/frugalware/pub/frugalware/frugalware-stable/source/%SUBDIR%/
433 #       ftp://ftp3.frugalware.org/mirrors/frugalware/pub/frugalware/frugalware-stable/source/%SUBDIR%/
434 #       ftp://ftp9.frugalware.org/pub/frugalware/frugalware-stable/source/%SUBDIR%/
435 .endif
436
437 .if !defined(IGNORE_MASTER_SITE_GCC)
438 MASTER_SITE_GCC+= \
439         http://mirrors.kernel.org/sources.redhat.com/gcc/%SUBDIR%/ \
440         http://gcc.parentingamerica.com/%SUBDIR%/ \
441         http://gcc.skazkaforyou.com/%SUBDIR%/ \
442         http://gcc.cybermirror.org/%SUBDIR%/ \
443         http://gcc-uk.internet.bs/%SUBDIR%/ \
444         http://www.netgull.com/gcc/%SUBDIR%/ \
445         http://mirrors.webhostinggeeks.com/gcc/%SUBDIR%/ \
446         http://robotlab.itk.ppke.hu/gcc/%SUBDIR%/ \
447         http://gcc.fyxm.net/%SUBDIR%/ \
448         http://gcc.igor.onlinedirect.bg/%SUBDIR%/ \
449         ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/gcc/%SUBDIR%/ \
450         ftp://gcc.gnu.org/pub/gcc/%SUBDIR%/ \
451         ftp://ftp.lip6.fr/pub/gcc/%SUBDIR%/ \
452         ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/%SUBDIR%/ \
453         ftp://ftp.uvsq.fr/pub/gcc/%SUBDIR%/ \
454         ftp://ftp.gwdg.de/pub/misc/gcc/%SUBDIR%/ \
455         ftp://ftp.mpi-sb.mpg.de/pub/gnu/mirror/gcc.gnu.org/pub/gcc/%SUBDIR%/ \
456         ftp://ftp.nluug.nl/mirror/languages/gcc/%SUBDIR%/ \
457         ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/%SUBDIR%/ \
458         ftp://ftp.ntua.gr/pub/gnu/gcc/%SUBDIR%/
459 .endif
460
461 .if !defined(IGNORE_MASTER_SITE_GENTOO)
462 MASTER_SITE_GENTOO+= \
463         http://gentoo.mirrors.pair.com/%SUBDIR%/ \
464         http://mirrors.tds.net/pub/gentoo/%SUBDIR%/ \
465         ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/%SUBDIR%/ \
466         http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/%SUBDIR%/ \
467         http://ftp.snt.utwente.nl/pub/os/linux/gentoo/%SUBDIR%/ \
468         http://trumpetti.atm.tut.fi/gentoo/%SUBDIR%/ \
469         http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/%SUBDIR%/ \
470         http://ftp.uni-erlangen.de/pub/mirrors/gentoo/%SUBDIR%/ \
471         http://darkstar.ist.utl.pt/gentoo/%SUBDIR%/ \
472         http://gentoo.inode.at/%SUBDIR%/ \
473         http://ftp.rhnet.is/pub/gentoo/%SUBDIR%/ \
474         http://gentoo.gg3.net/%SUBDIR%/ \
475         http://gentoo.kems.net/%SUBDIR%/ \
476         ftp://ftp.gtlib.gatech.edu/pub/gentoo/%SUBDIR%/ \
477         ftp://mirror.iawnet.sandia.gov/pub/gentoo/%SUBDIR%/ \
478         ftp://ftp.ussg.iu.edu/pub/linux/gentoo/%SUBDIR%/ \
479         ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/%SUBDIR%/ \
480         ftp://gentoo.mirrors.pair.com/%SUBDIR%/ \
481         ftp://mirrors.tds.net/pub/gentoo/%SUBDIR%/ \
482         ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/%SUBDIR%/ \
483         ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/%SUBDIR%/ \
484         ftp://trumpetti.atm.tut.fi/gentoo/%SUBDIR%/ \
485         ftp://sunsite.cnlab-switch.ch/mirror/gentoo/%SUBDIR%/ \
486         ftp://ftp.tu-clausthal.de/pub/linux/gentoo/%SUBDIR%/ \
487         ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/%SUBDIR%/ \
488         ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/%SUBDIR%/ \
489         ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/%SUBDIR%/ \
490         ftp://darkstar.ist.utl.pt/pub/gentoo/%SUBDIR%/ \
491         ftp://gentoo.inode.at/source/%SUBDIR%/ \
492         ftp://ftp.rhnet.is/pub/gentoo/%SUBDIR%/ \
493         ftp://files.gentoo.gr/%SUBDIR%/
494 .endif
495
496 .if !defined(IGNORE_MASTER_SITE_GITHUB)
497 #
498 # In order to use GitHub your port must define USE_GITHUB and the following
499 # variables:
500 #
501 # GH_ACCOUNT    - account name of the GitHub user hosting the project
502 #                 default: ${PORTNAME}
503 #
504 # GH_PROJECT    - name of the project on GitHub
505 #                 default: ${PORTNAME}
506 #
507 # GH_TAGNAME    - name of the tag to download (2.0.1, hash, ...)
508 #                 Using the name of a branch here is incorrect. It is
509 #                 possible to do GH_TAGNAME= GIT_HASH to do a snapshot.
510 #                 default: ${DISTVERSION}
511 #
512 # GH_COMMIT     - first 7 digits of the commit that generated GH_TAGNAME
513 #                 (man git-describe(1))
514 #                 if this is not set, archive corresponding to tag is fetched
515 #                 default: not set
516 #                 This is a deprecated option. Just set the hash in GH_TAGNAME
517 #                 instead.
518 #
519 .if defined(USE_GITHUB)
520 .  if defined(GH_TAGNAME) && ${GH_TAGNAME} == master
521 IGNORE?=        Using master as GH_TAGNAME is invalid. \
522                 Must use a tag or commit hash so the upstream does \
523                 not "reroll" as soon as the branch is updated
524 .  endif
525 # We are cheating and using backend URLS for Github here. See ports/194898
526 # comment #15 for explanation as to why and how to deal with it if it breaks.
527 MASTER_SITE_GITHUB+=            https://codeload.github.com/%SUBDIR%
528 MASTER_SITE_GITHUB_CLOUD+=      http://cloud.github.com/downloads/%SUBDIR%
529 MASTER_SITE_GITHUB_LEGACY+=     https://codeload.github.com/%SUBDIR%
530
531 .  if defined(GH_COMMIT)
532 .    if !defined(MASTER_SITES) || !${MASTER_SITES:MGHL}
533 MASTER_SITES+=  GHL
534 .    endif
535 .  else
536 .    if !defined(MASTER_SITES) || !${MASTER_SITES:MGH} && !${MASTER_SITES:MGHC}
537 MASTER_SITES+=  GH
538 .    endif
539 .  endif
540 GH_ACCOUNT?=    ${PORTNAME}
541 GH_PROJECT?=    ${PORTNAME}
542 .  if defined(GH_COMMIT)
543 # Use the old style for safety for now.
544 GH_TAGNAME?=    ${DISTVERSION}
545 .  else
546 # Use full PREFIX/SUFFIX and converted DISTVERSION
547 GH_TAGNAME?=    ${DISTVERSIONFULL}
548 # This new scheme rerolls distfiles. Also ensure they are renamed to avoid
549 # conflicts. Use _GITHUB_REV in case github changes their zipping or structure
550 # which has happened before.
551 _GITHUB_REV=    0
552 .    if ${MASTER_SITES:MGH}
553 DISTNAME:=      ${DISTNAME}_GH${_GITHUB_REV}
554 .    endif
555 .  endif
556 .  if defined(GH_TAGNAME)
557 GH_TAGNAME_SANITIZED=   ${GH_TAGNAME:S,/,-,}
558 # Github silently converts tags starting with v to not have v in the filename
559 # and extraction directory.
560 GH_TAGNAME_EXTRACT=     ${GH_TAGNAME_SANITIZED:C/^v([0-9])/\1/}
561 .  endif
562 .endif
563 .endif
564
565 .if !defined(IGNORE_MASTER_SITE_GNOME)
566 MASTER_SITE_GNOME+= \
567         https://download.gnome.org/%SUBDIR%/ \
568         http://download.gnome.org/%SUBDIR%/ \
569         ftp://ftp.belnet.be/mirror/ftp.gnome.org/%SUBDIR%/ \
570         http://ftp.acc.umu.se/pub/GNOME/%SUBDIR%/ \
571         ftp://ftp.cse.buffalo.edu/pub/Gnome/%SUBDIR%/ \
572         http://fr2.rpmfind.net/linux/gnome.org/%SUBDIR%/ \
573         http://www.gtlib.gatech.edu/pub/gnome/%SUBDIR%/ \
574         ftp://ftp.dti.ad.jp/pub/X/gnome/%SUBDIR%/ \
575         http://linorg.usp.br/gnome/%SUBDIR%/ \
576         http://mirror.aarnet.edu.au/pub/gnome/%SUBDIR%/ \
577         ftp://ftp.kddlabs.co.jp/pub/GNOME/%SUBDIR%/ \
578         ftp://ftp.mirrorservice.org/sites/ftp.gnome.org/pub/GNOME/%SUBDIR%/ \
579         ftp://ftp.nara.wide.ad.jp/pub/X11/GNOME/%SUBDIR%/ \
580         http://ftp.gnome.org/pub/GNOME/%SUBDIR%/
581 .endif
582
583 .if !defined(IGNORE_MASTER_SITE_GIMP)
584 MASTER_SITE_GIMP+= \
585         http://gimp.mirrors.hoobly.com/pub/%SUBDIR%/ \
586         http://gimper.net/downloads/pub/%SUBDIR%/ \
587         http://mirror.hessmo.com/gimp/pub/%SUBDIR%/ \
588         http://de-mirror.gimper.net/pub/%SUBDIR%/ \
589         http://gimp.afri.cc/pub/%SUBDIR%/ \
590         http://download.gimp.org/pub/%SUBDIR%/
591 .endif
592
593 .if !defined(IGNORE_MASTER_SITE_GNU)
594 MASTER_SITE_GNU+= \
595         http://ftpmirror.gnu.org/%SUBDIR%/ \
596         http://ftp.gnu.org/gnu/%SUBDIR%/ \
597         ftp://ftp.gnu.org/gnu/%SUBDIR%/ \
598         http://www.gtlib.gatech.edu/pub/gnu/gnu/%SUBDIR%/ \
599         http://mirrors.kernel.org/gnu/%SUBDIR%/ \
600         ftp://ftp.kddlabs.co.jp/GNU/%SUBDIR%/ \
601         ftp://ftp.dti.ad.jp/pub/GNU/%SUBDIR%/ \
602         ftp://ftp.mirrorservice.org/sites/ftp.gnu.org/gnu/%SUBDIR%/ \
603         ftp://ftp.informatik.hu-berlin.de/pub/gnu/gnu/%SUBDIR%/ \
604         ftp://ftp.informatik.rwth-aachen.de/pub/mirror/ftp.gnu.org/pub/gnu/%SUBDIR%/ \
605         http://ftp.funet.fi/pub/gnu/prep/%SUBDIR%/
606 .endif
607
608 .if !defined(IGNORE_MASTER_SITE_GNUPG)
609 MASTER_SITE_GNUPG+= \
610         http://mirror.tje.me.uk/pub/mirrors/ftp.gnupg.org/%SUBDIR%/ \
611         http://dotsrc.org/%SUBDIR%/ \
612         ftp://ftp.freenet.de/pub/ftp.gnupg.org/gcrypt/%SUBDIR%/ \
613         ftp://ftp.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/%SUBDIR%/ \
614         ftp://mirror.cict.fr/gnupg/%SUBDIR%/ \
615         http://artfiles.org/gnupg.org/%SUBDIR%/ \
616         ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/%SUBDIR%/ \
617         ftp://ftp.crysys.hu/pub/gnupg/%SUBDIR%/ \
618         ftp://ftp.hi.is/pub/mirrors/gnupg/%SUBDIR%/ \
619         http://ftp.heanet.ie/mirrors/ftp.gnupg.org/gcrypt/%SUBDIR%/ \
620         ftp://ftp.sunet.se/pub/security/gnupg/%SUBDIR%/ \
621         ftp://mirror.switch.ch/mirror/gnupg/%SUBDIR%/ \
622         http://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/%SUBDIR%/ \
623         ftp://ftp.gnupg.org/gcrypt/%SUBDIR%/
624 .endif
625
626 .if !defined(IGNORE_MASTER_SITE_GNUSTEP)
627 MASTER_SITE_GNUSTEP+= \
628         ftp://ftp.gnustep.org/pub/gnustep/%SUBDIR%/ \
629         http://ftp.gnustep.org/pub/gnustep/%SUBDIR%/
630 .endif
631
632 .if !defined(IGNORE_MASTER_SITE_GNU_ALPHA)
633 MASTER_SITE_GNU_ALPHA+= \
634         http://alpha.gnu.org/gnu/%SUBDIR%/ \
635         ftp://spinellicreations.com/alpha/gnu/%SUBDIR%/ \
636         http://www.nic.funet.fi/pub/gnu/alpha/gnu/%SUBDIR%/ \
637         http://mirror.thecodefactory.org/gnualpha/%SUBDIR%/ \
638         http://www.mirrorservice.org/sites/alpha.gnu.org/gnu/%SUBDIR%/ \
639         http://gnu.c3sl.ufpr.br/alpha/%SUBDIR%/ \
640         http://mirror.cedia.org.ec/gnualpha/%SUBDIR%/ \
641         http://gnu-alpha.mirrors.hostinginnederland.nl/%SUBDIR%/ \
642         http://gnualpha.uib.no/%SUBDIR%/ \
643         http://mirrors.fe.up.pt/pub/gnu-alpha/%SUBDIR%/ \
644         http://mirror.lihnidos.org/GNU/alpha/gnu/%SUBDIR%/ \
645         http://alpha-gnu-org.ip-connect.vn.ua/%SUBDIR%/
646 .endif
647
648 .if !defined(IGNORE_MASTER_SITE_GOOGLE_CODE)
649 PROJECTHOST?=   ${PORTNAME}
650 MASTER_SITE_GOOGLE_CODE+= \
651         http://${PROJECTHOST}.googlecode.com/files/
652 .endif
653
654 .if !defined(IGNORE_MASTER_SITE_HORDE)
655 MASTER_SITE_HORDE+= \
656         http://ftp.horde.org/pub/%SUBDIR%/ \
657         ftp://ftp.horde.org/pub/%SUBDIR%/ \
658         ftp://ftp.at.horde.org/infosys/webapps/horde/%SUBDIR%/ \
659         ftp://ftp.se.horde.org/mirror/horde/pub/%SUBDIR%/ \
660         ftp://ftp.tw.horde.org/pub/%SUBDIR%/ \
661         ftp://ftp.us.horde.org/pub/software/horde//%SUBDIR%/
662 .endif
663
664 .if !defined(IGNORE_MASTER_SITE_IDSOFTWARE)
665 MASTER_SITE_IDSOFTWARE+= \
666         ftp://ftp.gwdg.de/pub/misc2/ftp.idsoftware.com/idstuff/%SUBDIR%/ \
667         http://ftp4.de.freesbie.org/pub/misc/ftp.idsoftware.com/idstuff/%SUBDIR%/ \
668         ftp://ftp.fu-berlin.de/pc/games/idgames/idstuff/%SUBDIR%/ \
669         ftp://ftp.gamers.org/pub/idgames/idstuff/%SUBDIR%/ \
670         http://ftp.iinet.net.au/games/idstuff/%SUBDIR%/ \
671         ftp://ftp.mirror.nl/disk2/idsoftware/idstuff/%SUBDIR%/ \
672         ftp://freebsd.nsu.ru/mirrors/ftp.idsoftware.com/idstuff/%SUBDIR%/ \
673         ftp://ftp.ntua.gr/pub/vendors/idgames/idstuff/%SUBDIR%/ \
674         ftp://ftp.omen.net.au/games/idstuff/%SUBDIR%/ \
675         ftp://ftp.idsoftware.com/idstuff/%SUBDIR%/
676 .endif
677
678 .if !defined(IGNORE_MASTER_SITE_ISC)
679 MASTER_SITE_ISC+= \
680         http://ftp.isc.org/isc/%SUBDIR%/ \
681         ftp://ftp.isc.org/isc/%SUBDIR%/ \
682         ftp://ftp.ciril.fr/pub/isc/%SUBDIR%/ \
683         ftp://ftp.freenet.de/pub/ftp.isc.org/isc/%SUBDIR%/ \
684         ftp://ftp.iij.ad.jp/pub/network/isc/%SUBDIR%/ \
685         ftp://ftp.dti.ad.jp/pub/net/isc/%SUBDIR%/ \
686         ftp://ftp.u-aizu.ac.jp/pub/net/isc/%SUBDIR%/ \
687         ftp://ftp.task.gda.pl/mirror/ftp.isc.org/isc/%SUBDIR%/ \
688         ftp://ftp.sunet.se/pub/network/isc/%SUBDIR%/ \
689         ftp://ftp.mirrorservice.org/sites/ftp.isc.org/isc/%SUBDIR%/ \
690         ftp://ftp.nominum.com/pub/isc/%SUBDIR%/ \
691         ftp://ftp.ripe.net/mirrors/sites/ftp.isc.org/isc/%SUBDIR%/ \
692         ftp://ftp.ntua.gr/pub/net/isc/isc/%SUBDIR%/ \
693         ftp://ftp.funet.fi/pub/mirrors/ftp.isc.org/isc/%SUBDIR%/
694 .endif
695
696 # List:         http://download.kde.org/extra/mirrors.html
697 # Updated:      2012-10-26
698 .if !defined(IGNORE_MASTER_SITE_KDE)
699 MASTER_SITE_KDE+= \
700         http://download.kde.org/%SUBDIR%/ \
701         ftp://ftp.gtlib.gatech.edu/pub/kde/%SUBDIR%/ \
702         ftp://ftp.informatik.hu-berlin.de/pub/Mirrors/ftp.kde.org/%SUBDIR%/ \
703         http://ftp.gtlib.gatech.edu/pub/kde/%SUBDIR%/ \
704         ftp://ftp.solnet.ch/mirror/KDE/%SUBDIR%/ \
705         ftp://gd.tuwien.ac.at/kde/%SUBDIR%/ \
706         http://gd.tuwien.ac.at/kde/%SUBDIR%/ \
707         http://kde.mirrors.tds.net/pub/kde/%SUBDIR%/ \
708         ftp://ftp.rz.uni-wuerzburg.de/pub/unix/kde/%SUBDIR%/ \
709         http://mirrors.dotsrc.org/kde/%SUBDIR%/ \
710         ftp://mirrors.dotsrc.org/kde/%SUBDIR%/ \
711         ftp://ftp.fi.muni.cz/pub/kde/%SUBDIR%/ \
712         http://ftp.fi.muni.cz/pub/kde/%SUBDIR%/ \
713         ftp://sunsite.icm.edu.pl/pub/unix/kde/%SUBDIR%/ \
714         http://sunsite.icm.edu.pl/pub/unix/kde/%SUBDIR%/ \
715         ftp://ftp.sunet.se/pub/X11/kde/%SUBDIR%/ \
716         http://ftp.sunet.se/pub/X11/kde/%SUBDIR%/ \
717         ftp://ftp.kde.org/pub/kde/%SUBDIR%/ \
718         ftp://ftp.belnet.be/packages/kde/%SUBDIR%/ \
719         http://ftp.belnet.be/packages/kde/%SUBDIR%/ \
720         ftp://ftp.lip6.fr/pub/X11/kde/%SUBDIR%/ \
721         http://www-ftp.lip6.fr/pub/X11/kde/%SUBDIR%/ \
722         ftp://ftp.rhnet.is/pub/kde/%SUBDIR%/ \
723         http://ftp.rhnet.is/pub/kde/%SUBDIR%/ \
724         http://ftp-stud.fht-esslingen.de/Mirrors/ftp.kde.org/pub/kde/%SUBDIR%/ \
725         ftp://ftp.cronyx.ru/pub/mirror/kde/%SUBDIR%/ \
726         http://ftp.twaren.net/Unix/X/KDE/%SUBDIR%/ \
727         ftp://ftp.na.kde.org/pub/kde/%SUBDIR%/ \
728         ftp://ftp.fu-berlin.de/pub/unix/X11/gui/kde/%SUBDIR%/ \
729         ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/kde/%SUBDIR%/ \
730         ftp://ftp.ntua.gr/pub/X11/kde/%SUBDIR%/ \
731         http://ftp.ntua.gr/pub/X11/kde/%SUBDIR%/ \
732         ftp://ftp.heanet.ie/mirrors/ftp.kde.org/%SUBDIR%/ \
733         http://ftp.heanet.ie/mirrors/ftp.kde.org/%SUBDIR%/ \
734         ftp://ftp.kddlabs.co.jp/pub/X11/kde/%SUBDIR%/ \
735         http://ftp.kddlabs.co.jp/pub/X11/kde/%SUBDIR%/ \
736         http://kde.mirror.uber.com.au/%SUBDIR%/ \
737         ftp://ftp.ussg.iu.edu/pub/kde/%SUBDIR%/ \
738         http://ftp.ussg.iu.edu/kde/%SUBDIR%/ \
739         ftp://ftp.sayclub.com/pub/X/KDE/%SUBDIR%/ \
740         http://ftp.sayclub.com/pub/X/KDE/%SUBDIR%/ \
741         ftp://carroll.aset.psu.edu/pub/kde/%SUBDIR%/ \
742         http://mirror.cc.columbia.edu/pub/software/kde/%SUBDIR%/ \
743         ftp://ftp.mirrorservice.org/sites/ftp.kde.org/pub/kde/%SUBDIR%/ \
744         http://www.mirrorservice.org/sites/ftp.kde.org/pub/kde/%SUBDIR%/ \
745         http://master.kde.org/%SUBDIR%/ \
746         http://ftp.icm.edu.pl/pub/unix/kde/%SUBDIR%/ \
747         http://kde-mirror.freenux.org/%SUBDIR%/ \
748         http://ftp.fi.muni.cz/pub/kde/%SUBDIR%/ \
749         ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.kde.org/pub/kde/%SUBDIR%/ \
750         ftp://ftp.funet.fi/pub/mirrors/ftp.kde.org/pub/kde/%SUBDIR%/ \
751         http://ftp.funet.fi/pub/mirrors/ftp.kde.org/pub/kde/%SUBDIR%/
752 .endif
753
754 .if !defined(IGNORE_MASTER_SITE_LIBREOFFICE_DEV)
755 MASTER_SITE_LIBREOFFICE_DEV+= \
756         http://dev-www.libreoffice.org/src/%SUBDIR%/
757 .endif
758
759 .if !defined(IGNORE_MASTER_SITE_MATE)
760 MASTER_SITE_MATE+= \
761         http://pub.mate-desktop.org/releases/%SUBDIR%/
762 .endif
763
764 .if !defined(IGNORE_MASTER_SITE_MOZDEV)
765 MASTER_SITE_MOZDEV+= \
766         http://ftp.scarlet.be/pub/mozdev/%SUBDIR%/ \
767         http://ftp.rz.tu-bs.de/pub/mirror/downloads.mozdev.org/%SUBDIR%/ \
768         http://ftp.ntua.gr/pub/www/mozdev/%SUBDIR%/ \
769         http://ftp.heanet.ie/pub/mozdev/%SUBDIR%/ \
770         http://mozdev.oregonstate.edu/%SUBDIR%/ \
771         http://ftp.ntua.gr/pub/www/mozdev/%SUBDIR%/ \
772         http://www.devlib.org/mozdev/%SUBDIR%/ \
773         ftp://ftp.heanet.ie/pub/mozdev/%SUBDIR%/ \
774         http://mirrors.ibiblio.org/pub/mirrors/mozdev.org/%SUBDIR%/ \
775         http://ftp.osuosl.org/pub/mozdev/%SUBDIR%/
776 .endif
777
778 # releases.mozilla.org mirror sites
779 #
780 # For the full list, see the following:
781 #
782 #       http://www.mozilla.org/mirrors.html
783 #
784 .if !defined(IGNORE_MASTER_SITE_MOZILLA)
785 MASTER_SITE_MOZILLA+= \
786         https://ftp.mozilla.org/pub/mozilla.org/%SUBDIR%/ \
787         http://mirror3.mirrors.tds.net/pub/mozilla.org/%SUBDIR%/ \
788         http://mozilla.isc.org/pub/mozilla.org/%SUBDIR%/ \
789         http://releases.mozilla.org/pub/mozilla.org/%SUBDIR%/ \
790         http://kyoto-mz-dl.sinet.ad.jp/pub/mozilla.org/%SUBDIR%/ \
791         http://jp-nii01.mozilla.org/pub/mozilla.org/%SUBDIR%/ \
792         http://jp-nii02.mozilla.org/pub/mozilla.org/%SUBDIR%/ \
793         http://mirror.internode.on.net/pub/mozilla/%SUBDIR%/ \
794         http://ftp.acc.umu.se/pub/mozilla.org/%SUBDIR%/ \
795         http://mozilla.c3sl.ufpr.br/releases/%SUBDIR%/ \
796         http://www.gtlib.gatech.edu/pub/mozilla.org/%SUBDIR%/ \
797         ftp://ftp.mozilla.org/pub/mozilla.org/%SUBDIR%/ \
798         ftp://ftp.fh-wolfenbuettel.de/pub/www/mozilla/%SUBDIR%/ \
799         ftp://ftp.informatik.rwth-aachen.de/pub/mirror/ftp.mozilla.org/pub/%SUBDIR%/ \
800         http://ftp.twaren.net/Unix/Mozilla/%SUBDIR%/
801 .endif
802
803 .if !defined(IGNORE_MASTER_SITE_BUGZILLA)
804 MASTER_SITE_BUGZILLA+= \
805         https://ftp.mozilla.org/pub/mozilla.org/%SUBDIR%/ \
806         http://ftp.mozilla.org/pub/mozilla.org/%SUBDIR%/ \
807         ftp://ftp.mozilla.org/pub/mozilla.org/%SUBDIR%/ \
808         http://mirror.internode.on.net/pub/mozilla/%SUBDIR%/
809 .endif
810
811 .if !defined(IGNORE_MASTER_SITE_MOZILLA_EXTENDED)
812 MASTER_SITE_MOZILLA_EXTENDED+= \
813         http://releases.mozilla.org/pub/mozilla.org/%SUBDIR%/ \
814         ${MASTER_SITE_MOZILLA}
815 .endif
816
817 .if !defined(IGNORE_MASTER_SITE_MPLAYERHQ)
818 MASTER_SITE_MPLAYERHQ+= \
819         http://www.mplayerhq.hu/MPlayer/%SUBDIR%/ \
820         http://www1.mplayerhq.hu/MPlayer/%SUBDIR%/ \
821         http://www2.mplayerhq.hu/MPlayer/%SUBDIR%/ \
822         http://www3.mplayerhq.hu/MPlayer/%SUBDIR%/ \
823         http://www4.mplayerhq.hu/MPlayer/%SUBDIR%/ \
824         http://www5.mplayerhq.hu/MPlayer/%SUBDIR%/ \
825         ftp://ftp.mplayerhq.hu/MPlayer/%SUBDIR%/ \
826         ftp://ftp1.mplayerhq.hu/MPlayer/%SUBDIR%/ \
827         ftp://ftp4.mplayerhq.hu/MPlayer/%SUBDIR%/ \
828         ftp://ftp5.mplayerhq.hu/MPlayer/%SUBDIR%/
829 .endif
830
831 .if !defined(IGNORE_MASTER_SITE_MYSQL)
832 MASTER_SITE_MYSQL+= \
833         ftp://ftp.fi.muni.cz/pub/mysql/Downloads/%SUBDIR%/ \
834         http://mysql.mirrors.cybercity.dk/Downloads/%SUBDIR%/ \
835         ftp://ftp.fh-wolfenbuettel.de/pub/database/mysql/Downloads/%SUBDIR%/ \
836         ftp://ftp.gwdg.de/pub/misc/mysql/Downloads/%SUBDIR%/ \
837         http://netmirror.org/mirror/mysql.com/Downloads/%SUBDIR%/ \
838         ftp://netmirror.org/mysql.com/Downloads/%SUBDIR%/ \
839         http://mirrors.ntua.gr/MySQL/Downloads/%SUBDIR%/ \
840         ftp://ftp.ntua.gr/pub/databases/mysql/Downloads/%SUBDIR%/ \
841         http://mysql.sote.hu/Downloads/%SUBDIR%/ \
842         ftp://ftp.rhnet.is/pub/mysql/Downloads/%SUBDIR%/ \
843         ftp://mirror.widexs.nl/pub/mysql/Downloads/%SUBDIR%/ \
844         ftp://mirror.switch.ch/mirror/mysql/Downloads/%SUBDIR%/ \
845         http://mysql.dp.ua/Downloads/%SUBDIR%/ \
846         http://mysql.mirrored.ca/Downloads/%SUBDIR%/ \
847         ftp://mirror.services.wisc.edu/mirrors/mysql/Downloads/%SUBDIR%/ \
848         http://mysql.mirrors.pair.com/Downloads/%SUBDIR%/ \
849         ftp://ftp.linorg.usp.br/mysql/Downloads/%SUBDIR%/ \
850         ftp://ftp.cbn.net.id/mirror/mysql/Downloads/%SUBDIR%/ \
851         ftp://ftp.easynet.be/mysql/Downloads/%SUBDIR%/ \
852         http://download.softagency.net/MySQL/Downloads/%SUBDIR%/
853 .endif
854
855 .if !defined(IGNORE_MASTER_SITE_NETBSD)
856 MASTER_SITE_NETBSD+= \
857         ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/%SUBDIR%/ \
858         ftp://ftp.iastate.edu/pub/netbsd/packages/distfiles/%SUBDIR%/ \
859         ftp://ftp.plig.net/pub/NetBSD/packages/distfiles/%SUBDIR%/ \
860         ftp://ftp.proxad.net/mirrors/ftp.netbsd.org/packages/distfiles/%SUBDIR%/ \
861         ftp://ftp.unina.it/pub/Unix/NetBSD/packages/distfiles/%SUBDIR%/ \
862         ftp://ftp.uninett.no/bsd/unix/NetBSD/packages/distfiles/%SUBDIR%/ \
863         ftp://sunsite.uio.no/bsd/unix/NetBSD/packages/distfiles/%SUBDIR%/ \
864         ftp://ftp.sunet.se/pub/NetBSD/packages/distfiles/%SUBDIR%/ \
865         ftp://ftp.demon.co.uk/pub/mirrors/NetBSD/packages/distfiles/%SUBDIR%/ \
866         ftp://ftp.dti.ad.jp/pub/NetBSD/packages/distfiles/%SUBDIR%/ \
867         ftp://ftp.funet.fi/pub/NetBSD/packages/distfiles/%SUBDIR%/
868 .endif
869
870 .if !defined(IGNORE_MASTER_SITE_NETLIB)
871 MASTER_SITE_NETLIB+= \
872         http://www.netlib.org/%SUBDIR%/ \
873         ftp://ftp.mirrorservice.org/sites/ftp.netlib.org/%SUBDIR%/ \
874         http://www.mirrorservice.org/sites/ftp.netlib.org/%SUBDIR%/ \
875         http://www.netlib.no/netlib/%SUBDIR%/ \
876         ftp://ftp.irisa.fr/pub/netlib/%SUBDIR%/ \
877         http://netlib.sandia.gov/%SUBDIR%/
878 .endif
879
880 .if !defined(IGNORE_MASTER_SITE_NVIDIA)
881 MASTER_SITE_NVIDIA+= \
882         http://jp.download.nvidia.com/%SUBDIR%/ \
883         http://us.download.nvidia.com/%SUBDIR%/ \
884         http://tw.download.nvidia.com/%SUBDIR%/ \
885         http://download.nvidia.com/%SUBDIR%/ \
886         http://download1.nvidia.com/%SUBDIR%/ \
887         ftp://download.nvidia.com/%SUBDIR%/ \
888         ftp://download1.nvidia.com/%SUBDIR%/
889 .endif
890
891 .if !defined(IGNORE_MASTER_SITE_OPENBSD)
892 MASTER_SITE_OPENBSD+= \
893         http://anga.funkfeuer.at/ftp/pub/OpenBSD/%SUBDIR%/ \
894         http://ftp.eu.openbsd.org/pub/OpenBSD/%SUBDIR%/ \
895         ftp://ftp.openbsd.org/pub/OpenBSD/%SUBDIR%/ \
896         ftp://openbsd.informatik.uni-erlangen.de/pub/OpenBSD/%SUBDIR%/ \
897         ftp://ftp5.usa.openbsd.org/pub/OpenBSD/%SUBDIR%/ \
898         ftp://ftp3.usa.openbsd.org/pub/OpenBSD/%SUBDIR%/ \
899         ftp://rt.fm/pub/OpenBSD/%SUBDIR%/ \
900         http://ftp.heanet.ie/pub/OpenBSD/%SUBDIR%/ \
901         http://ftp.belnet.be/packages/openbsd/%SUBDIR%/ \
902         http://mirror.pacific.net.au/OpenBSD/%SUBDIR%/ \
903         http://ftp.openbsd.dk/pub/OpenBSD/%SUBDIR%/ \
904         http://ftp.estpak.ee/pub/OpenBSD/%SUBDIR%/ \
905         http://mirror.internode.on.net/pub/OpenBSD/%SUBDIR%/ \
906         http://ftp.chg.ru/pub/OpenBSD/%SUBDIR%/ \
907         http://ftp.arcane-networks.fr/pub/OpenBSD/%SUBDIR%/ \
908         http://ftp.netbsd.se/OpenBSD/%SUBDIR%/ \
909         http://www.mirrorservice.org/pub/OpenBSD/%SUBDIR%/ \
910         http://mirror.switch.ch/ftp/pub/OpenBSD/%SUBDIR%/ \
911         http://ftp.jaist.ac.jp/pub/OpenBSD/%SUBDIR%/ \
912         http://ftp.cc.uoc.gr/mirrors/OpenBSD/%SUBDIR%/ \
913         http://mirror.hostfuss.com/pub/OpenBSD/%SUBDIR%/ \
914         ftp://ftp.stacken.kth.se/pub/OpenBSD/%SUBDIR%/ \
915         ftp://ftp.ca.openbsd.org/pub/OpenBSD/%SUBDIR%/ \
916         ftp://ftp.freebsdchina.org/pub/OpenBSD/%SUBDIR%/ \
917         ftp://ftp.dkuug.dk/pub/OpenBSD/%SUBDIR%/ \
918         ftp://ftp.jyu.fi/pub/OpenBSD/%SUBDIR%/ \
919         ftp://ftp.irisa.fr/pub/OpenBSD/%SUBDIR%/ \
920         ftp://ftp.nara.wide.ad.jp/pub/OpenBSD/%SUBDIR%/ \
921         ftp://ftp.inet.no/pub/OpenBSD/%SUBDIR%/ \
922         ftp://ftp.nluug.nl/pub/OpenBSD/%SUBDIR%/ \
923         ftp://ftp.gamma.ru/pub/OpenBSD/%SUBDIR%/ \
924         ftp://ftp.rediris.es/pub/OpenBSD/%SUBDIR%/ \
925         ftp://ftp.su.se/pub/OpenBSD/%SUBDIR%/ \
926         ftp://osmirrors.cerias.purdue.edu/pub/OpenBSD/%SUBDIR%/ \
927         ftp://carroll.cac.psu.edu/pub/OpenBSD/%SUBDIR%/ \
928         ftp://openbsd.mirrors.tds.net/pub/OpenBSD/%SUBDIR%/ \
929         http://mirrors.nic.funet.fi/pub/OpenBSD/%SUBDIR%/
930 .endif
931
932 .if !defined(IGNORE_MASTER_SITE_OSSP)
933 MASTER_SITE_OSSP+= \
934         ftp://ftp.ossp.org/pkg/%SUBDIR%/ \
935         ftp://ftp.ntua.gr/pub/utils/ossp/%SUBDIR%/
936 .endif
937
938 .if !defined(IGNORE_MASTER_SITE_PACKETSTORM)
939 MASTER_SITE_PACKETSTORM+= \
940         http://dl.packetstormsecurity.net/%SUBDIR%/ \
941         http://packetstorm.codar.com.br/%SUBDIR%/ \
942         http://packetstorm.igor.onlinedirect.bg/%SUBDIR%/ \
943         http://packetstorm.interhost.co.il/%SUBDIR%/ \
944         http://packetstorm.foofus.com/%SUBDIR%/ \
945         http://packetstorm.tacticalflex.com/%SUBDIR%/ \
946         http://packetstorm.unixteacher.org/%SUBDIR%/ \
947         http://packetstorm.wowhacker.com/%SUBDIR%/
948 .endif
949
950 .if !defined(IGNORE_MASTER_SITE_PERL_CPAN)
951
952 _PERL_CPAN_SORT?= modules/by-module
953
954 # Please add URI to MASTER_SITE_PERL_CPAN_BY instead of this one.
955 MASTER_SITE_PERL_CPAN?=
956
957 MASTER_SITE_PERL_CPAN_BY+= \
958         http://cpan.metacpan.org/%CPANSORT%/%SUBDIR%/ \
959         http://www.cpan.org/%CPANSORT%/%SUBDIR%/ \
960         ftp://ftp.cpan.org/pub/CPAN/%CPANSORT%/%SUBDIR%/ \
961         http://www.cpan.dk/%CPANSORT%/%SUBDIR%/ \
962         ftp://ftp.kddlabs.co.jp/lang/perl/CPAN/%CPANSORT%/%SUBDIR%/ \
963         http://ftp.jaist.ac.jp/pub/CPAN/%CPANSORT%/%SUBDIR%/ \
964         ftp://ftp.sunet.se/pub/lang/perl/CPAN/%CPANSORT%/%SUBDIR%/ \
965         ftp://ftp.mirrorservice.org/sites/cpan.perl.org/CPAN/%CPANSORT%/%SUBDIR%/ \
966         ftp://ftp.auckland.ac.nz/pub/perl/CPAN/%CPANSORT%/%SUBDIR%/ \
967         http://backpan.perl.org/%CPANSORT%/%SUBDIR%/ \
968         ftp://ftp.funet.fi/pub/languages/perl/CPAN/%CPANSORT%/%SUBDIR%/ \
969         http://ftp.twaren.net/Unix/Lang/CPAN/%CPANSORT%/%SUBDIR%/ \
970         ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%SUBDIR%/ \
971         http://www.cpan.dk/modules/by-module/%SUBDIR%/
972
973 _PERL_CPAN_FLAG=${MASTER_SITE_SUBDIR:C/(CPAN):.*$/\1/}
974 _PERL_CPAN_ID=  ${MASTER_SITE_SUBDIR:C/^CPAN:(.)(.)(.*)$/\1\/\1\2\/\1\2\3/}
975
976 .if !empty(_PERL_CPAN_ID) && ${_PERL_CPAN_FLAG:tl} == "cpan"
977     _PERL_CPAN_SORT=authors/id/${_PERL_CPAN_ID}
978     MASTER_SITE_PERL_CPAN=${MASTER_SITE_PERL_CPAN_BY:S/%CPANSORT%/${_PERL_CPAN_SORT}/:S/%SUBDIR%\///}
979 .else
980     MASTER_SITE_PERL_CPAN=${MASTER_SITE_PERL_CPAN_BY:S/%CPANSORT%/${_PERL_CPAN_SORT}/}
981 .endif
982
983 .endif
984
985 #
986 # PostgreSQL master site
987 #
988 .if !defined(IGNORE_MASTER_SITE_PGSQL)
989 MASTER_SITE_PGSQL+= \
990         http://ftp.postgresql.org/pub/%SUBDIR%/ \
991         https://ftp.postgresql.org/pub/%SUBDIR%/ \
992         ftp://ftp.postgresql.org/pub/%SUBDIR%/
993 .endif
994
995 .if !defined(IGNORE_MASTER_SITE_PHP)
996 MASTER_SITE_PHP+= \
997         http://dk1.php.net/%SUBDIR%/ \
998         http://de.php.net/%SUBDIR%/ \
999         http://es.php.net/%SUBDIR%/ \
1000         http://fr.php.net/%SUBDIR%/ \
1001         http://gr.php.net/%SUBDIR%/ \
1002         http://it.php.net/%SUBDIR%/ \
1003         http://jp.php.net/%SUBDIR%/ \
1004         http://se.php.net/%SUBDIR%/ \
1005         http://uk3.php.net/%SUBDIR%/ \
1006         http://us2.php.net/%SUBDIR%/ \
1007         http://br.php.net/%SUBDIR%/ \
1008         http://cn.php.net/%SUBDIR%/
1009 .endif
1010
1011 .if !defined(IGNORE_MASTER_SITE_PYTHON)
1012 MASTER_SITE_PYTHON+= \
1013         http://www.python.org/%SUBDIR%/
1014 .endif
1015
1016 .if !defined(IGNORE_MASTER_SITE_QMAIL)
1017 MASTER_SITE_QMAIL+= \
1018         http://qmail.glasswings.com.au/%SUBDIR%/ \
1019         http://qmail.psshee.com/%SUBDIR%/ \
1020         http://mirrors.sunsite.dk/qmailwww/%SUBDIR%/ \
1021         http://www.agria.hu/qmail/%SUBDIR%/ \
1022         http://qmail.netvisao.pt/%SUBDIR%/ \
1023         http://qmail.ipg.sk/%SUBDIR%/ \
1024         http://qmail.omnis.ch/%SUBDIR%/ \
1025         http://www.qmail.org/%SUBDIR%/
1026 .endif
1027
1028 .if !defined(IGNORE_MASTER_SITE_QT)
1029 MASTER_SITE_QT+= \
1030         http://download.qt-project.org/%SUBDIR%/ \
1031         http://master.qt-project.org/%SUBDIR%/ \
1032         http://www.mirrorservice.org/sites/download.qt-project.org/%SUBDIR%/ \
1033         http://www.nic.funet.fi/pub/mirrors/download.qt-project.org/%SUBDIR%/ \
1034         http://qtmirror.ics.com/pub/qtproject/%SUBDIR%/ \
1035         http://anychimirror101.mirrors.tds.net/pub/Qt/%SUBDIR%/ \
1036         http://www.las.ic.unicamp.br/pub/qtproject/%SUBDIR%/ \
1037         http://linorg.usp.br/Qt/%SUBDIR%/ \
1038         http://ftp.jaist.ac.jp/pub/qtproject/%SUBDIR%/ \
1039         http://mirrors.neusoft.edu.cn/qt/%SUBDIR%/
1040 .endif
1041
1042 .if !defined(IGNORE_MASTER_SITE_REDHAT_LINUX)
1043 MASTER_SITE_REDHAT_LINUX+= \
1044         http://mirrors.usc.edu/pub/linux/distributions/redhat/redhat/linux/%SUBDIR%/ \
1045         http://www.gtlib.gatech.edu/pub/redhat/linux/%SUBDIR%/ \
1046         ftp://mirror.cs.wisc.edu/pub/mirrors/linux/redhat/%SUBDIR%/ \
1047         ftp://ftp.nluug.nl/site/ftp.redhat.com/redhat/linux/%SUBDIR%/ \
1048         ftp://ftp.icm.edu.pl/pub/linux/redhat/linux/%SUBDIR%/ \
1049         ftp://ftp.riken.go.jp/pub/Linux/redhat/linux/%SUBDIR%/ \
1050         ftp://ftp.kddlabs.co.jp/pub/Linux/packages/RedHat/redhat/linux/%SUBDIR%/
1051 .endif
1052
1053 .if !defined(IGNORE_MASTER_SITE_RUBY)
1054 MASTER_SITE_RUBY+= \
1055         http://cache.ruby-lang.org/pub/ruby/%SUBDIR%/ \
1056         ftp://ftp.ruby-lang.org/pub/ruby/%SUBDIR%/ \
1057         ftp://ftp.SpringDaemons.com/pub/ruby/ruby/%SUBDIR%/ \
1058         http://www.ibiblio.org/pub/languages/ruby/%SUBDIR%/ \
1059         ftp://xyz.lcs.mit.edu/pub/ruby/%SUBDIR%/ \
1060         ftp://ftp.fu-berlin.de/unix/languages/ruby/%SUBDIR%/ \
1061         ftp://ftp.easynet.be/ruby/ruby/%SUBDIR%/ \
1062         ftp://ftp.ntua.gr/pub/lang/ruby/%SUBDIR%/ \
1063         ftp://ftp.kr.FreeBSD.org/pub/ruby/%SUBDIR%/ \
1064         http://mirrors.sunsite.dk/ruby/%SUBDIR%/ \
1065         ftp://ftp.iDaemons.org/pub/mirror/ftp.ruby-lang.org/ruby/%SUBDIR%/
1066 .endif
1067
1068 # See http://rubygems.org/pages/about
1069 .if !defined(IGNORE_MASTER_SITE_RUBYGEMS)
1070 MASTER_SITE_RUBYGEMS+= \
1071         http://production.s3.rubygems.org/gems/%SUBDIR%/ \
1072         http://production.cf.rubygems.org/gems/%SUBDIR%/
1073 .endif
1074
1075 .if !defined(IGNORE_MASTER_SITE_SAMBA)
1076 MASTER_SITE_SAMBA+= \
1077         http://ftp.samba.org/pub/%SUBDIR%/ \
1078         ftp://ca.samba.org/pub/%SUBDIR%/ \
1079         ftp://de.samba.org/pub/%SUBDIR%/ \
1080         ftp://ftp.easynet.be/%SUBDIR%/
1081 .endif
1082
1083 # List: http://download.savannah.gnu.org/mirmon/
1084 .if !defined(IGNORE_MASTER_SITE_SAVANNAH)
1085 MASTER_SITE_SAVANNAH+= \
1086         http://download.savannah.gnu.org/releases/%SUBDIR%/ \
1087         http://download-mirror.savannah.gnu.org/releases/%SUBDIR%/ \
1088         http://nongnu.askapache.com/%SUBDIR%/ \
1089         http://mirror.lihnidos.org/GNU/savannah/%SUBDIR%/ \
1090         http://ftp.twaren.net/Unix/NonGNU/%SUBDIR%/ \
1091         ftp://ftp.twaren.net/Unix/NonGNU/%SUBDIR%/ \
1092         http://gnu.mirrors.pair.com/savannah/savannah/%SUBDIR%/ \
1093         ftp://gnu.mirrors.pair.com/savannah/%SUBDIR%/
1094 .endif
1095
1096 # List:         http://sourceforge.net/apps/trac/sourceforge/wiki/Mirrors
1097 # Updated:      2013-03-25
1098 .if !defined(IGNORE_MASTER_SITE_SOURCEFORGE)
1099 MASTER_SITE_SOURCEFORGE+= http://downloads.sourceforge.net/project/%SUBDIR%/
1100 .for mirror in heanet sunet iweb switch freefr garr aarnet jaist master \
1101         nchc ncu internode waix hivelocity superb-dca3 ufpr tenet \
1102         netcologne ignum kent
1103 MASTER_SITE_SOURCEFORGE+= \
1104         http://${mirror}.dl.sourceforge.net/project/%SUBDIR%/
1105 .endfor
1106 .endif
1107
1108 .if !defined(IGNORE_MASTER_SITE_SOURCEFORGE_JP)
1109 .for mirror in iij jaist keihanna osdn
1110 MASTER_SITE_SOURCEFORGE_JP+= \
1111         http://${mirror}.dl.sourceforge.jp/%SUBDIR%/
1112 .endfor
1113 .endif
1114
1115 .if !defined(IGNORE_MASTER_SITE_SOURCEWARE)
1116 MASTER_SITE_SOURCEWARE+= \
1117         http://mirrors.kernel.org/sources.redhat.com/%SUBDIR%/ \
1118         http://gd.tuwien.ac.at/gnu/sourceware/%SUBDIR%/ \
1119         ftp://ftp.funet.fi/pub/mirrors/sources.redhat.com/pub/%SUBDIR%/
1120 .endif
1121
1122 .if !defined(IGNORE_MASTER_SITE_SUDO)
1123 MASTER_SITE_SUDO+= \
1124         http://www.sudo.ws/sudo/dist/ \
1125         http://ftp.arcane-networks.fr/pub/mirrors/sudo/ \
1126         http://sudo.p8ra.de/sudo/dist/ \
1127         http://sudo.cybermirror.org/ \
1128         http://sudo-ftp.basemirror.de/ \
1129         http://core.ring.gr.jp/archives/misc/sudo/ \
1130         http://www.ring.gr.jp/archives/misc/sudo/ \
1131         http://ftp.twaren.net/Unix/Security/Sudo/ \
1132         ftp://ftp.sudo.ws/pub/sudo/ \
1133         ftp://plier.ucar.edu/pub/sudo/ \
1134         ftp://obsd.isc.org/pub/sudo/ \
1135         ftp://ftp.uwsg.indiana.edu/pub/security/sudo/ \
1136         ftp://ftp.tuwien.ac.at/utils/admin-tools/sudo/ \
1137         ftp://sunsite.ualberta.ca/pub/Mirror/sudo/ \
1138         ftp://zoot.tele.dk/pub/sudo/ \
1139         ftp://ftp.in2p3.fr/pub/sudo/ \
1140         ftp://ftp.arcane-networks.fr/pub/mirrors/sudo/ \
1141         ftp://ftp.usbm.de/pub/sudo/ \
1142         ftp://ftp.cs.tu-berlin.de/pub/misc/sudo/ \
1143         ftp://ftp.informatik.uni-hamburg.de/pub/os/unix/utils/sudo/ \
1144         ftp://ftp.st.ryukoku.ac.jp/pub/security/tool/sudo/ \
1145         ftp://ftp.cin.nihon-u.ac.jp/pub/misc/sudo/ \
1146         ftp://core.ring.gr.jp/pub/misc/sudo/ \
1147         ftp://ftp.ring.gr.jp/pub/misc/sudo/ \
1148         ftp://sunsite.icm.edu.pl/packages/sudo/ \
1149         ftp://mirror.cdmon.com/pub/sudo/ \
1150         ftp://ftp.twaren.net/Unix/Security/Sudo/
1151 .endif
1152
1153 .if !defined(IGNORE_MASTER_SITE_SUNSITE)
1154 MASTER_SITE_SUNSITE+= \
1155         http://www.ibiblio.org/pub/Linux/%SUBDIR%/ \
1156         http://www.gtlib.gatech.edu/pub/Linux/%SUBDIR%/ \
1157         ftp://ftp.cs.tu-berlin.de/pub/linux/Mirrors/sunsite.unc.edu/%SUBDIR%/ \
1158         ftp://ftp.etsimo.uniovi.es/pub/linux/%SUBDIR%/ \
1159         ftp://ftp.lip6.fr/pub/linux/sunsite/%SUBDIR%/ \
1160         ftp://ftp.nluug.nl/pub/metalab/%SUBDIR%/ \
1161         ftp://ftp.nvg.ntnu.no/pub/mirrors/metalab.unc.edu/%SUBDIR%/ \
1162         ftp://ftp.icm.edu.pl/pub/Linux/sunsite/%SUBDIR%/ \
1163         ftp://ftp.cse.cuhk.edu.hk/pub4/Linux/%SUBDIR%/ \
1164         ftp://ftp.kddlabs.co.jp/Linux/metalab.unc.edu/%SUBDIR%/ \
1165         ftp://ftp.chg.ru/pub/Linux/sunsite/%SUBDIR%/ \
1166         ftp://ftp.sun.ac.za/pub/mirrors/sunsite.unc.edu/pub/Linux/%SUBDIR%/
1167 .endif
1168
1169 .if !defined(IGNORE_MASTER_SITE_TCLTK)
1170 MASTER_SITE_TCLTK+= \
1171         ftp://ftp.tcl.tk/pub/tcl/%SUBDIR%/ \
1172         ftp://ftp.kddlabs.co.jp/lang/tcl/ftp.scriptics.com/%SUBDIR%/ \
1173         ftp://ftp.mirrorservice.org/sites/ftp.tcl.tk/pub/tcl/%SUBDIR%/ \
1174         ftp://ftp.funet.fi/pub/languages/tcl/tcl/%SUBDIR%/
1175 .endif
1176
1177 .if !defined(IGNORE_MASTER_SITE_TEX_CTAN)
1178 MASTER_SITE_TEX_CTAN+= \
1179         ftp://ctan.unsw.edu.au/tex-archive/%SUBDIR%/ \
1180         ftp://ftp.tex.ac.uk/tex-archive/%SUBDIR%/ \
1181         ftp://ftp.kddlabs.co.jp/CTAN/%SUBDIR%/ \
1182         ftp://ctan.tug.org/tex-archive/%SUBDIR%/ \
1183         ftp://ftp.dante.de/tex-archive/%SUBDIR%/ \
1184         ftp://ftp.chg.ru/pub/TeX/CTAN/%SUBDIR%/ \
1185         ftp://mirror.macomnet.net/pub/CTAN/%SUBDIR%/ \
1186         ftp://ftp.funet.fi/pub/TeX/CTAN/%SUBDIR%/
1187 .endif
1188
1189 # Derived from: https://www.torproject.org/getinvolved/mirrors.html.en
1190 .if !defined(IGNORE_MASTER_SITE_TOR)
1191 MASTER_SITE_TOR+= \
1192                 https://www.torproject.org/dist/%SUBDIR%/ \
1193                 https://archive.torproject.org/tor-package-archive/%SUBDIR%/ \
1194                 ftp://ftp.bit.nl/mirror/tor/%SUBDIR%/ \
1195                 http://cyberside.net.ee/tor/%SUBDIR%/ \
1196                 http://ftp.bit.nl/mirror/tor/%SUBDIR%/ \
1197                 http://mirror.hessmo.com/tor/dist/%SUBDIR%/ \
1198                 http://mirror.host4site.co.il/torproject.org/dist/%SUBDIR%/ \
1199                 http://mirror.open-networx.org/torproject.org/dist/%SUBDIR%/ \
1200                 http://mirror.tor.hu/dist/%SUBDIR%/ \
1201                 https://mirror.torland.me/torproject.org/dist/%SUBDIR%/ \
1202                 http://mirrors.chaos-darmstadt.de/tor-mirror/dist/%SUBDIR%/ \
1203                 http://theonionrouter.com/dist/%SUBDIR%/ \
1204                 http://tor.amorphis.eu/dist/%SUBDIR%/ \
1205                 http://tor.askapache.com/dist/%SUBDIR%/ \
1206                 http://tor.beme-it.de/dist/%SUBDIR%/ \
1207                 http://tor.borgmann.tv/dist/%SUBDIR%/ \
1208                 http://tor.ccc.de/dist/%SUBDIR%/ \
1209                 http://tor.cyberarmy.at/dist/%SUBDIR%/ \
1210                 http://tor.dont-know-me.at/dist/%SUBDIR%/ \
1211                 http://tor.factor.cc/dist/%SUBDIR%/ \
1212                 http://tor.homosu.net/dist/%SUBDIR%/ \
1213                 http://tor.idnr.ws/dist/%SUBDIR%/ \
1214                 http://tor.myrl.net/dist/%SUBDIR%/ \
1215                 http://tor.kamagurka.org/dist/%SUBDIR%/ \
1216                 http://tor.spline.de/dist/%SUBDIR%/ \
1217                 http://tor.vesta.nu/dist/%SUBDIR%/ \
1218                 http://torproj.xpdm.us/dist/%SUBDIR%/ \
1219                 https://torproject.antagonism.org/dist/%SUBDIR%/ \
1220                 https://torproject.crypto.is/dist/%SUBDIR%/ \
1221                 http://torproject.is/dist/%SUBDIR%/ \
1222                 http://torproject.nwlinux.us/dist/%SUBDIR%/ \
1223                 http://torproject.ph3x.at/dist/%SUBDIR%/ \
1224                 https://www.coevoet.nl/tor/dist/%SUBDIR%/ \
1225                 http://www.oignon.net/dist/%SUBDIR%/ \
1226                 http://www.torproject.nl/dist/%SUBDIR%/ \
1227                 http://www.torproject.org.nyud.net/dist/%SUBDIR%/ \
1228                 http://www.torproject.us/dist/%SUBDIR%/ \
1229                 http://www.torservers.net/mirrors/torproject.org/dist/%SUBDIR%/
1230 .endif
1231
1232 .if !defined(IGNORE_MASTER_SITE_TUCOWS)
1233 MASTER_SITE_TUCOWS+= \
1234         http://iinets.linux.tucows.com/files/%SUBDIR%/
1235 .endif
1236
1237 # List:         http://www.vim.org/mirrors.php
1238 # Updated:      2015-01-03
1239 # Please make sure mirrors end in /unix/
1240 .if !defined(IGNORE_MASTER_SITE_VIM)
1241 MASTER_SITE_VIM+= \
1242         http://mirrors-usa.go-parts.com/pub/vim/unix/ \
1243         http://ftp2.uk.vim.org/pub/vim/unix/ \
1244         http://ftp.vim.ossmirror.de/pub/vim/unix/ \
1245         http://ftp.stust.edu.tw/vim/unix/ \
1246         http://vim.cybermirror.org/unix/ \
1247         http://www.netgull.com/vim/unix/ \
1248         http://ftp2.jp.vim.org/pub/vim/unix/ \
1249         http://mirrors.go-parts.com/pub/vim/unix/ \
1250         http://artfiles.org/vim.org/unix/ \
1251         http://ftp2.kr.vim.org/pub/vim/unix/ \
1252         http://mirror.netinch.com/pub/vim/unix/ \
1253         http://ftp.es.vim.org/pub/vim/unix/ \
1254         http://ftp.gr.vim.org/pub/vim/unix/ \
1255         http://tweedo.com/mirror/ftp.vim.org/unix/ \
1256         http://mirrors-br.go-parts.com/pub/vim/unix/ \
1257         http://ftp2.tw.vim.org/pub/vim/unix/ \
1258         http://mirrors-au.go-parts.com/pub/vim/unix/ \
1259         http://mirrors-uk.go-parts.com/pub/vim/unix/ \
1260         http://ftp.tw.vim.org/pub/vim/unix/ \
1261         http://funnyshare.org/mirrors/vim/unix/ \
1262         http://mirrors-ru.go-parts.com/pub/vim/unix/ \
1263         http://servingzone.com/mirrors/vim/unix/ \
1264         http://ftp.ro.vim.org/mirrors/ftp.vim.org/unix/ \
1265         http://vim.mirror.fr/unix/
1266 .endif
1267
1268 .if !defined(IGNORE_MASTER_SITE_WINDOWMAKER)
1269 MASTER_SITE_WINDOWMAKER+= \
1270         ftp://ftp.windowmaker.info/pub/%SUBDIR%/ \
1271         ftp://ftp.uvsq.fr/pub/X11/window-managers/windowmaker/%SUBDIR%/
1272 .endif
1273
1274 .if !defined(IGNORE_MASTER_SITE_XCONTRIB)
1275 MASTER_SITE_XCONTRIB+= \
1276         ftp://ftp.gwdg.de/pub/x11/x.org/contrib/%SUBDIR%/ \
1277         ftp://ftp.x.org/contrib/%SUBDIR%/ \
1278         ftp://ftp.sunet.se/pub/X11/ftp.x.org/contrib/%SUBDIR%/ \
1279         ftp://ftp.dti.ad.jp/pub/X/XFree86/mirror/X.Org/contrib/%SUBDIR%/ \
1280         ftp://ftp.kddlabs.co.jp/X11/ftp.x.org/contrib/%SUBDIR%/ \
1281         ftp://ftp2.x.org/contrib/%SUBDIR%/
1282 .endif
1283
1284 .if !defined(IGNORE_MASTER_SITE_XFCE)
1285 MASTER_SITE_XFCE+= \
1286         http://mirror.perldude.de/archive.xfce.org/%SUBDIR%/ \
1287         http://mirror.netcologne.de/xfce/%SUBDIR%/ \
1288         http://ftp.udc.es/xfce/%SUBDIR%/ \
1289         http://xfce.mirror.uber.com.au/%SUBDIR%/ \
1290         http://archive.be.xfce.org/%SUBDIR%/ \
1291         http://archive.be2.xfce.org/%SUBDIR%/ \
1292         http://archive.al-us.xfce.org/%SUBDIR%/ \
1293         http://mirrors.tummy.com/pub/archive.xfce.org/%SUBDIR%/
1294 .endif
1295
1296 .if !defined(IGNORE_MASTER_SITE_XORG)
1297 MASTER_SITE_XORG+= \
1298         http://xorg.freedesktop.org/releases/%SUBDIR%/ \
1299         http://xorg.mirrors.pair.com/%SUBDIR%/ \
1300         http://mirror.us.leaseweb.net/xorg/%SUBDIR%/ \
1301         http://mirror.csclub.uwaterloo.ca/x.org/%SUBDIR%/ \
1302         http://artfiles.org/x.org/pub/%SUBDIR%/ \
1303         http://ftp.gwdg.de/pub/x11/x.org/pub/%SUBDIR%/ \
1304         http://gd.tuwien.ac.at/X11/%SUBDIR%/ \
1305         http://mi.mirror.garr.it/mirrors/x.org/%SUBDIR%/ \
1306         http://mirror.switch.ch/ftp/mirror/X11/pub/%SUBDIR%/ \
1307         http://mirrors.ircam.fr/pub/x.org/%SUBDIR%/ \
1308         http://www.mirrorservice.org/sites/ftp.x.org/pub/%SUBDIR%/ \
1309         http://www.portal-to-web.de/pub/mirrors/x.org/%SUBDIR%/ \
1310         http://x.cybermirror.org/%SUBDIR%/ \
1311         http://x.europnews.de/pub/%SUBDIR%/ \
1312         http://xorg.mirror.solnet.ch/pub/%SUBDIR%/ \
1313         http://mirror.nl.leaseweb.net/xorg/%SUBDIR%/ \
1314         http://mirror.de.leaseweb.net/xorg/%SUBDIR%/ \
1315         http://mirrors.go-part.com/xorg/%SUBDIR%/ \
1316         http://ftp.yz.yamagata-u.ac.jp/pub/X11/x.org/%SUBDIR%/ \
1317         http://ftp.kaist.ac.kr/x.org/%SUBDIR%/
1318 .endif
1319
1320 .if !defined(IGNORE_MASTER_SITE_KERNEL_ORG)
1321 MASTER_SITE_KERNEL_ORG+= \
1322         https://www.kernel.org/pub/%SUBDIR%/ \
1323         ftp://ftp.ntu.edu.tw/%SUBDIR%/ \
1324         http://ftp.sunet.se/pub/Linux/kernel.org/%SUBDIR%/ \
1325         http://ftp.yandex.ru/pub/%SUBDIR%/ \
1326         http://ftp.heanet.ie/pub/%SUBDIR%/ \
1327         http://slackware.cs.utah.edu/pub/kernel.org/pub/%SUBDIR%/
1328 .endif
1329
1330 # Macro magic
1331
1332 MASTER_SITES_ABBREVS=   CPAN:PERL_CPAN \
1333                         GH:GITHUB \
1334                         GHC:GITHUB_CLOUD \
1335                         GHL:GITHUB_LEGACY \
1336                         LODEV:LIBREOFFICE_DEV \
1337                         NL:NETLIB \
1338                         SF:SOURCEFORGE \
1339                         SFJP:SOURCEFORGE_JP \
1340                         RG:RUBYGEMS
1341 MASTER_SITES_SUBDIRS=   APACHE_JAKARTA:${PORTNAME:S,-,/,}/source \
1342                         BERLIOS:${PORTNAME:tl}.berlios \
1343                         CHEESESHOP:source/${DISTNAME:C/(.).*/\1/}/${DISTNAME:C/(.*)-[0-9].*/\1/} \
1344                         DEBIAN:pool/main/${PORTNAME:C/^((lib)?.).*$/\1/}/${PORTNAME} \
1345                         FARSIGHT:${PORTNAME} \
1346                         GCC:releases/${DISTNAME} \
1347                         GITHUB:${GH_ACCOUNT}/${GH_PROJECT}/tar.gz/${GH_TAGNAME}?dummy=/ \
1348                         GITHUB_CLOUD:${GH_ACCOUNT}/${GH_PROJECT}/ \
1349                         GITHUB_LEGACY:${GH_ACCOUNT}/${GH_PROJECT}/legacy.tar.gz/${GH_TAGNAME}?dummy=/ \
1350                         GNOME:sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} \
1351                         GIMP:${PORTNAME}/${PORTVERSION:R}/ \
1352                         GNU:${PORTNAME} \
1353                         GNU_ALPHA:${PORTNAME} \
1354                         HORDE:${PORTNAME} \
1355                         LIBREOFFICE_DEV:${PORTNAME} \
1356                         MATE:${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} \
1357                         MOZDEV:${PORTNAME:tl} \
1358                         NETLIB:${PORTNAME} \
1359                         PERL_CPAN:${PORTNAME:C/-.*//} \
1360                         SAVANNAH:${PORTNAME:tl} \
1361                         SOURCEFORGE:${PORTNAME:tl}/${PORTNAME:tl}/${PORTVERSION}
1362
1363 .if defined(MASTER_SITES) && ${MASTER_SITES:N*\:/*}
1364
1365 .for _site__ in ${MASTER_SITES}
1366 _site_=${_site__}
1367 .       if ${_site_:M*\:/*}
1368 MASTER_SITES_EXP+=      ${_site_}
1369 MASTER_SITES_EXP:=      ${MASTER_SITES_EXP}
1370 .       else
1371 _site_urlpath_= ${_site_:C@^(.*):[^/:]+$@\1@}
1372 .               if ${_site_urlpath_:M*/*}
1373 _site_url_=             ${_site_urlpath_:C@^([^/]+)/.*$@\1@}
1374 _site_subdir_=  ${_site_urlpath_:S/^${_site_urlpath_:C@^([^/]+)/.*$@\1@}//:S!^/!!:S!/$!!}
1375 .               else
1376 _site_url_=             ${_site_urlpath_}
1377 .undef _site_subdir_
1378 .               endif
1379 _site_group_=   ${_site_:S/^${_site_:C@^(.*):[^/:]+$@\1@}//:S/^://}
1380 .               for _abbrev_ in ${MASTER_SITES_ABBREVS}
1381 .                       if ${_site_url_} == ${_abbrev_:C/:.*//}
1382 _site_url_=     ${_abbrev_:C/.*://}
1383 .                       endif
1384 .               endfor
1385 .               for _subdir_ in ${MASTER_SITES_SUBDIRS}
1386 .                       if ${_site_url_} == ${_subdir_:C/:.*//} && !defined(MASTER_SITE_SUBDIR)
1387 _site_subdir_?= ${_subdir_:C/.*://}
1388 .                       endif
1389 .               endfor
1390 .               ifdef MASTER_SITE_${_site_url_}
1391 .                       ifdef _site_subdir_
1392 MASTER_SITES_EXP+=      ${MASTER_SITE_${_site_url_}:S^%SUBDIR%^${_site_subdir_}^:S/$/:${_site_group_}/:S/:$//}
1393 .                       else
1394 MASTER_SITES_EXP+=      ${MASTER_SITE_${_site_url_}:S/$/:${_site_group_}/:S/:$//}
1395 .                       endif
1396 MASTER_SITES_EXP:=      ${MASTER_SITES_EXP}
1397 .               endif
1398 .       endif
1399 .endfor
1400 MASTER_SITES=   ${MASTER_SITES_EXP}
1401
1402 .endif
1403
1404 .if defined(PATCH_SITES) && ${PATCH_SITES:N*\:/*}
1405
1406 .for _site__ in ${PATCH_SITES}
1407 _site_=${_site__}
1408 .       if ${_site_:M*\:/*}
1409 PATCH_SITES_EXP+=       ${_site_}
1410 PATCH_SITES_EXP:=       ${PATCH_SITES_EXP}
1411 .       else
1412 _site_urlpath_= ${_site_:C@^(.*):[^/:]+$@\1@}
1413 .               if ${_site_urlpath_:M*/*}
1414 _site_url_=             ${_site_urlpath_:C@^([^/]+)/.*$@\1@}
1415 _site_subdir_=  ${_site_urlpath_:S/^${_site_urlpath_:C@^([^/]+)/.*$@\1@}//:S!^/!!:S!/$!!}
1416 .               else
1417 _site_url_=             ${_site_urlpath_}
1418 .undef _site_subdir_
1419 .               endif
1420 _site_group_=   ${_site_:S/^${_site_:C@^(.*):[^/:]+$@\1@}//:S/^://}
1421 .               for _abbrev_ in ${MASTER_SITES_ABBREVS}
1422 .                       if ${_site_url_} == ${_abbrev_:C/:.*//}
1423 _site_url_=     ${_abbrev_:C/.*://}
1424 .                       endif
1425 .               endfor
1426 .               for _subdir_ in ${MASTER_SITES_SUBDIRS}
1427 .                       if ${_site_url_} == ${_subdir_:C/:.*//} && !defined(MASTER_SITE_SUBDIR)
1428 _site_subdir_?= ${_subdir_:C/.*://}
1429 .                       endif
1430 .               endfor
1431 .               ifdef MASTER_SITE_${_site_url_}
1432 .                       ifdef _site_subdir_
1433 PATCH_SITES_EXP+=       ${MASTER_SITE_${_site_url_}:S^%SUBDIR%^${_site_subdir_}^:S/$/:${_site_group_}/:S/:$//}
1434 .                       else
1435 PATCH_SITES_EXP+=       ${MASTER_SITE_${_site_url_}:S/$/:${_site_group_}/:S/:$//}
1436 .                       endif
1437 PATCH_SITES_EXP:=       ${PATCH_SITES_EXP}
1438 .               endif
1439 .       endif
1440 .endfor
1441 PATCH_SITES=    ${PATCH_SITES_EXP}
1442
1443 .endif