- my $gnupath = $1;
- push @mirrors, "ftp://ftp.gnu.org/gnu/$gnupath";
- push @mirrors, "ftp://ftp.belnet.be/mirror/ftp.gnu.org/gnu/$gnupath";
- push @mirrors, "ftp://ftp.mirror.nl/pub/mirror/gnu/$gnupath";
- push @mirrors, "http://mirror.switch.ch/ftp/mirror/gnu/$gnupath";
- push @mirrors, "ftp://ftp.uu.net/archive/systems/gnu/$gnupath";
- push @mirrors, "ftp://ftp.eu.uu.net/pub/gnu/$gnupath";
- push @mirrors, "ftp://ftp.leo.org/pub/comp/os/unix/gnu/$gnupath";
- push @mirrors, "ftp://ftp.digex.net/pub/gnu/$gnupath";
- } else {
+ push @mirrors, "https://mirror.csclub.uwaterloo.ca/gnu/$1";
+ push @mirrors, "https://mirror.netcologne.de/gnu/$1";
+ push @mirrors, "http://ftp.kddilabs.jp/GNU/gnu/$1";
+ push @mirrors, "http://www.nic.funet.fi/pub/gnu/gnu/$1";
+ push @mirrors, "http://mirror.internode.on.net/pub/gnu/$1";
+ push @mirrors, "http://mirror.navercorp.com/gnu/$1";
+ push @mirrors, "ftp://mirrors.rit.edu/gnu/$1";
+ push @mirrors, "ftp://download.xs4all.nl/pub/gnu/";
+ } elsif ($mirror =~ /^\@SAVANNAH\/(.+)$/) {
+ push @mirrors, "https://mirror.netcologne.de/savannah/$1";
+ push @mirrors, "https://mirror.csclub.uwaterloo.ca/nongnu/$1";
+ push @mirrors, "http://ftp.acc.umu.se/mirror/gnu.org/savannah/$1";
+ push @mirrors, "http://nongnu.uib.no/$1";
+ push @mirrors, "http://ftp.igh.cnrs.fr/pub/nongnu/$1";
+ push @mirrors, "http://public.p-knowledge.co.jp/Savannah-nongnu-mirror/$1";
+ push @mirrors, "ftp://cdimage.debian.org/mirror/gnu.org/savannah/$1";
+ push @mirrors, "ftp://ftp.acc.umu.se/mirror/gnu.org/savannah/$1";
+ } elsif ($mirror =~ /^\@KERNEL\/(.+)$/) {
+ my @extra = ( $1 );
+ if ($filename =~ /linux-\d+\.\d+(?:\.\d+)?-rc/) {
+ push @extra, "$extra[0]/testing";
+ } elsif ($filename =~ /linux-(\d+\.\d+(?:\.\d+)?)/) {
+ push @extra, "$extra[0]/longterm/v$1";
+ }
+ foreach my $dir (@extra) {
+ push @mirrors, "https://cdn.kernel.org/pub/$dir";
+ push @mirrors, "https://mirror.rackspace.com/kernel.org/$dir";
+ push @mirrors, "http://download.xs4all.nl/ftp.kernel.org/pub/$dir";
+ push @mirrors, "http://mirrors.mit.edu/kernel/$dir";
+ push @mirrors, "http://ftp.nara.wide.ad.jp/pub/kernel.org/$dir";
+ push @mirrors, "http://www.ring.gr.jp/archives/linux/kernel.org/$dir";
+ push @mirrors, "ftp://ftp.riken.jp/Linux/kernel.org/$dir";
+ push @mirrors, "ftp://www.mirrorservice.org/sites/ftp.kernel.org/pub/$dir";
+ }
+ } elsif ($mirror =~ /^\@GNOME\/(.+)$/) {
+ push @mirrors, "https://mirror.csclub.uwaterloo.ca/gnome/sources/$1";
+ push @mirrors, "http://ftp.acc.umu.se/pub/GNOME/sources/$1";
+ push @mirrors, "http://ftp.kaist.ac.kr/gnome/sources/$1";
+ push @mirrors, "http://www.mirrorservice.org/sites/ftp.gnome.org/pub/GNOME/sources/$1";
+ push @mirrors, "http://mirror.internode.on.net/pub/gnome/sources/$1";
+ push @mirrors, "http://ftp.belnet.be/ftp.gnome.org/sources/$1";
+ push @mirrors, "ftp://ftp.cse.buffalo.edu/pub/Gnome/sources/$1";
+ push @mirrors, "ftp://ftp.nara.wide.ad.jp/pub/X11/GNOME/sources/$1";
+ }
+ else {