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