my $len = length($file_hash);
my $cmd;
- $len == 64 and return "mkhash sha256";
- $len == 32 and return "mkhash md5";
+ $len == 64 and return "$ENV{'MKHASH'} sha256";
+ $len == 32 and return "$ENV{'MKHASH'} md5";
return undef;
}
}
} elsif ($mirror =~ /^\@OPENWRT$/) {
# use OpenWrt source server directly
+ } elsif ($mirror =~ /^\@DEBIAN\/(.+)$/) {
+ push @mirrors, "https://ftp.debian.org/debian/$1";
+ push @mirrors, "https://mirror.leaseweb.com/debian/$1";
+ push @mirrors, "https://mirror.netcologne.de/debian/$1";
} elsif ($mirror =~ /^\@APACHE\/(.+)$/) {
push @mirrors, "https://mirror.netcologne.de/apache.org/$1";
push @mirrors, "https://mirror.aarnet.edu.au/pub/apache/$1";
push @mirrors, "ftp://www.mirrorservice.org/sites/ftp.kernel.org/pub/$dir";
}
} elsif ($mirror =~ /^\@GNOME\/(.+)$/) {
+ push @mirrors, "https://download.gnome.org/sources/$1";
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";
}
$SIG{INT} = \&cleanup;
-