define dl_method
$(strip \
$(if $(2),$(2), \
- $(if $(filter @GNOME/% @GNU/% @KERNEL/% @SF/% @SAVANNAH/% ftp://% http://% https://% file://%,$(1)),default, \
+ $(if $(filter @GNOME/% @GNU/% @SF/% @SAVANNAH/% ftp://% http://% https://% file://%,$(1)),default, \
$(if $(filter git://%,$(1)),git, \
$(if $(filter svn://%,$(1)),svn, \
$(if $(filter cvs://%,$(1)),cvs, \
push @mirrors, "http://nongnu.uib.no/$1";
push @mirrors, "http://ftp.igh.cnrs.fr/pub/nongnu/$1";
push @mirrors, "http://download-mirror.savannah.gnu.org/releases/$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, "ftp://ftp.all.kernel.org/pub/$dir";
- push @mirrors, "http://ftp.all.kernel.org/pub/$dir";
- }
+
} elsif ($mirror =~ /^\@GNOME\/(.+)$/) {
push @mirrors, "http://ftp.gnome.org/pub/GNOME/sources/$1";
push @mirrors, "http://ftp.unina.it/pub/linux/GNOME/sources/$1";
}
#push @mirrors, 'http://mirror1.librecmc.org';
-push @mirrors, 'http://mirror2.openwrt.org/sources';
-push @mirrors, 'http://downloads.openwrt.org/sources';
+push @mirrors, 'http://downloads.librecmc.org/sources/v1.3.1';
+push @mirrors, 'http://hype.downloads.librecmc.org/sources';
+
while (!$ok) {
my $mirror = shift @mirrors;