1 ################################################################################
3 # mirrors - default list for mirror:// URI resolution
5 # Part of cygport - Cygwin packaging application
6 # Copyright (C) 2006-2020 Cygport authors
7 # Provided by the Cygwin project <https://cygwin.com/>
9 # cygport is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # cygport is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with cygport. If not, see <https://www.gnu.org/licenses/>.
22 ################################################################################
24 #****** Downloading/Mirrors
26 # Many large software projects and hosting sites provide multiple download
27 # mirrors for their projects, allowing users to choose a site closer to them
28 # and to help distribute the bandwidth demands around the world.
30 # Within cygport, the mirror:// notation can be used in SRC_URI and PATCH_URI
31 # to allow package maintainers both the ability to choose their favourite
32 # mirrors and use an abbreviated URI for common sites.
34 # The default mirrors are usually the central download site or a redirector.
35 # Users can select their favourite mirrors by redefining the mirror_*
36 # variables listed below (as a string containing one or more mirror sites)
37 # in their cygport.conf.
39 # Custom per-package "mirrors" can also be defined in a .cygport file. This
40 # can be useful if SRC_URI or PATCH_URI contain a large number of long URIs.
42 # Mirror providers change frequently. If you define your own default mirror,
43 # you may experience errors or delays downloading if your mirror goes offline.
46 #****d* Mirrors/mirror_apache
48 # Apache Software Foundation project hosting
50 # SRC_URI="mirror://apache/projectname/${P}.tar.bz2"
52 # https://downloads.apache.org
54 # https://www.apache.org/mirrors/index.html
56 # grep -h '^ <TD ALIGN="RIGHT"><A HREF=' index.html \
57 # | sed -e 's#<TD ALIGN="RIGHT"><A HREF="\(.*\)/">.*#\1#g' \
58 # | cut -d '"' -f 1 | sed -e 's#^ #\t#g' -e 's#/$##g'
59 mirror_apache+=" https://downloads.apache.org"
62 #****d* Mirrors/mirror_cpan
64 # Comprehensive Perl Archive Network
66 # SRC_URI="mirror://cpan/authors/id/A/AU/AUTHOR/${ORIG_PN}-${PV}.tar.gz"
68 # https://cpan.metacpan.org
70 # https://www.cpan.org/SITES.html
74 # cat SITES.html | grep -E '^ *<A HREF=.*(CPAN|cpan).*(ht|f)tp:' | \
75 # sed -e 's! *<A HREF="!\t!g' -e 's!">.*!!g' -e 's!/$!!g'
76 mirror_cpan+=" https://cpan.metacpan.org"
79 #****d* Mirrors/mirror_cran
81 # Comprehensive R Archive Network
83 # SRC_URI="mirror://cran/src/contrib/${ORIG_PN}_${PV/_/-}.tar.gz"
85 # https://cran.r-project.org/
87 # https://cran.r-project.org/mirrors.html
91 # grep -P '^http.*\n</a>' mirrors.html \
92 # | sed -e '/<\/a>/d' -e 's#^#\t#g' -e 's#/$##g'
93 mirror_cran+=" https://cran.r-project.org"
96 #****d* Mirrors/mirror_ctan
98 # Comprehensive TeX Archive Network
100 # SRC_URI="mirror://ctan/macros/latex/contrib/${ORIG_PN}.zip"
102 # http://mirror.ctan.org/
104 # http://mirror.ctan.org/tex-archive/CTAN.sites
108 # grep -E 'URL: (f|ht)tp:' CTAN.sites | sed -e 's| *URL: |\t|g' -e 's|/$||g'
109 mirror_ctan+=" http://mirror.ctan.org/"
112 #****d* Mirrors/mirror_debian
114 # Debian package pool
116 # SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.orig.tar.gz"
118 # https://deb.debian.org/debian
120 # https://www.debian.org/mirror/list
122 # grep '^ <td><a href' list | sed -e 's#.*"\(.*\)/".*#\t\1#g'
123 mirror_debian+=" http://deb.debian.org/debian"
126 #****d* Mirrors/mirror_gcc
128 # GCC releases and snapshots
130 # SRC_URI="mirror://gcc/releases/gcc-${PV}/gcc-core-${PV}.tar.bz2"
132 # https://gcc.gnu.org/pub/gcc/
134 # https://gcc.gnu.org/mirrors.html
138 # grep '^<li>' mirrors.html | sed -e 's|.*<a href="\([^"]*\).*|\1|g' -e 's|/$||g'
140 https://gcc.gnu.org/pub/gcc
141 ftp://gcc.gnu.org/pub/gcc
145 #****d* Mirrors/mirror_gentoo
147 # Gentoo Linux distfiles
149 # SRC_URI="mirror://gentoo/${P}.tar.bz2"
151 # https://gentoo.osuosl.org/distfiles
153 # https://www.gentoo.org/downloads/mirrors/
157 # grep -E '^<a href="(ht|f)tp:.*</a><br>$' mirrors.xml | \
158 # sed -e 's#<a href="\(.*\)".*</a>.*#\t\1#' -e 's#/$##' -e 's#$#/distfiles#'
159 mirror_gentoo+=" https://gentoo.osuosl.org/distfiles"
162 #****d* Mirrors/mirror_gnome
166 # SRC_URI="mirror://gnome/sources/${PN}/${PV}/${P}.tar.bz2"
168 # https://download.gnome.org/
170 # http://ftp.gnome.org/pub/GNOME/MIRRORS
174 # cat MIRRORS | grep 'tp:' | sed -e 's!/$!!g'
176 https://download.gnome.org
180 #****d* Mirrors/mirror_gnu
182 # GNU projects FTP hosting
184 # SRC_URI="mirror://gnu/projectname/${P}.tar.gz"
186 # https://ftpmirror.gnu.org/
188 # https://www.gnu.org/prep/ftp.html
190 # cat ftp.html | grep '<li><a' | \
191 # sed -e 's!.*<li><a href="!\t!g' -e 's!">.*!!g' -e 's!/$!!g'
193 https://ftpmirror.gnu.org
194 https://ftp.gnu.org/gnu
198 #****id* Mirrors/mirror_gnustep
202 # SRC_URI="mirror://gnustep/usr-apps/${ORIG_PN}-${PV}.tar.gz"
204 # http://ftp.gnustep.org/pub/gnustep
206 # http://www.gnustep.org/resources/sources.html
209 http://ftp.gnustep.org/pub/gnustep
210 ftp://ftp.gnustep.org/pub/gnustep
214 #****d* Mirrors/mirror_kde
218 # SRC_URI="mirror://kde/stable/${PV}/src/${P}.tar.bz2"
220 # https://download.kde.org/
222 # https://download.kde.org/?mirrorstats
226 # cat mirrors | grep '<td><a' | \
227 # sed -e 's!.*<td><a href="!\t!g' -e 's!">.*!!g' -e 's!/$!!g'
228 mirror_kde+=" https://download.kde.org"
231 #****d* Mirrors/mirror_mplayer
233 # MPlayer releases and skins
235 # SRC_URI="mirror://mplayer/releases/${P}.tar.bz2"
237 # https://www1.mplayerhq.hu/MPlayer
239 # http://www.mplayerhq.hu/dload.html
241 # MPlayer releases are often outdated; using a SVN checkout is recommended.
243 mirror_mplayer+=" http://www1.mplayerhq.hu/MPlayer"
246 #****d* Mirrors/mirror_mysql
248 # MySQL server and connector downloads
250 # SRC_URI="mirror://mysql/Downloads/MySQL-5.1/${P}.tar.gz"
252 # https://mirrors.dotsrc.org/mysql
254 # https://dotsrc.org/mirrors/
256 # grep '^ <td><a' mirrors.html | sed -e 's|.*href="\(.*\)">.*|\t\1|g' -e 's|/$||g'
257 # List primary mirrors first
259 https://mirrors.dotsrc.org/mysql
260 ftp://mirrors.dotsrc.org/mysql
261 https://ftp.gwdg.de/pub/misc/mysql
262 ftp://ftp.gwdg.de/pub/misc/mysql
263 https://www.mirrorservice.org/sites/ftp.mysql.com
264 ftp://ftp.mirrorservice.org/sites/ftp.mysql.com
268 #****d* Mirrors/mirror_portage
270 # Gentoo Linux Portage tree (via GitWeb)
272 # PATCH_URI="mirror://portage/cat-egory/packagename/files/${P}-whatever.patch"
274 # https://gitweb.gentoo.org/repo/gentoo.git/plain
280 mirror_portage+=" https://gitweb.gentoo.org/repo/gentoo.git/plain"
283 #****d* Mirrors/mirror_savannah
285 # Savannah GNU project hosting
287 # SRC_URI="mirror://savannah/projectname/${P}.tar.gz"
289 # https://download.savannah.nongnu.org/releases
291 # http://download.savannah.gnu.org/mirmon/savannah/
293 # sed -e 's|.* \(.*\)/|\t\1|g' 00_MIRRORS.txt
294 mirror_savannah+=" https://download.savannah.nongnu.org/releases"
297 #****d* Mirrors/mirror_sourceforge
299 # SourceForge project hosting
301 # SRC_URI="mirror://sourceforge/projectname/${P}.tar.bz2"
303 # http://downloads.sourceforge.net
305 # https://sourceforge.net/apps/trac/sourceforge/wiki/Mirrors
307 mirror_sourceforge+=" http://downloads.sourceforge.net"
310 #****d* Mirrors/mirror_sourceware
312 # Sourceware.org (aka sources.redhat.com) hosting
314 # SRC_URI="mirror://sourceware/projectname/${P}.tar.bz2"
316 # https://ftp.sourceware.org/pub
318 # https://sourceware.org/mirrors.html
321 https://ftp.sourceware.org/pub
322 ftp://ftp.sourceware.org/pub
326 #****d* Mirrors/mirror_qt
328 # Qt, QtCreator, and PySide downloads
330 # SRC_URI="mirror://qt/offical_releases/qt/${VERSION%.*}/${VERSION}/qt-everywhere-opensource-src-${VERSION}.tar.gz"
332 # http://download.qt-project.org/
334 # http://download.qt-project.org/static/mirrorlist/
336 mirror_qt+=" http://download.qt-project.org"
338 # curl https://tug.org/texlive/mirmon/ \
339 # | sed -n -e 's|^ <TD ALIGN=RIGHT><A HREF="\([^"]*\)/".*|\1|p'
341 http://ftp.math.utah.edu/pub/texlive/tlpretest
342 ftp://ftp.math.utah.edu/pub/texlive/tlpretest
343 http://ftp.cstug.cz/pub/tex/local/tlpretest
344 ftp://ftp.cstug.cz/pub/tex/local/tlpretest
345 http://ctan.ijs.si/mirror/tlpretest
348 #****id* Mirrors/mirror_trolltech
350 # This mirror is deprecated and remains only for backwards compatibility.
351 # New code should use mirror_qt.
353 mirror_trolltech+=" ${mirror_qt}"
356 #****d* Mirrors/mirror_vim
360 # SRC_URI="mirror://vim/unix/${P}.tar.bz2 mirror://vim/extra/${P}-extra.tar.gz"
362 # http://ftp.vim.org/pub/vim
364 # http://vim.sourceforge.net/mirrors.php
366 # cat mirrors.php | grep -E '^ <a href="(ht|f)tp:' | \
367 # sed -e 's# <a.*>\(.*\)</a>.*#\t\1#' -e 's#/$##'
368 mirror_vim+=" http://ftp.vim.org/pub/vim"
371 #****d* Mirrors/mirror_xfce
375 # SRC_URI="mirror://xfce/src/xfce/${PN}/${PV[1]}.${PV[2]}/${P}.tar.bz2"
377 # https://archive.xfce.org
379 # https://www.xfce.org/download/
383 mirror_xfce+=" https://archive.xfce.org"