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