treewide: adjust tencent mirror

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2021-03-11 14:57:01 +08:00
parent 6d9545423e
commit cd48c34584
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
4 changed files with 7 additions and 6 deletions

View File

@ -10,7 +10,7 @@ PKG_VERSION:=2.88.2
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://mirrors.cloud.tencent.com/npm/$(PKG_NPM_NAME)/-/ \ PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
https://registry.npm.taobao.org/$(PKG_NPM_NAME)/-/ \ https://registry.npm.taobao.org/$(PKG_NPM_NAME)/-/ \
https://registry.npmjs.org/$(PKG_NPM_NAME)/-/ https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
PKG_HASH:=e86dae884084b90a300096972f5954c815ebe5877c590df7fd170e8b71724242 PKG_HASH:=e86dae884084b90a300096972f5954c815ebe5877c590df7fd170e8b71724242

View File

@ -26,7 +26,7 @@ sed -i 's/\"services\"/\"nas\"/g' /usr/lib/lua/luci/controller/xunlei.lua
ln -sf /sbin/ip /usr/bin/ip ln -sf /sbin/ip /usr/bin/ip
sed -i 's#https://downloads.openwrt.org#https://mirrors.cloud.tencent.com/lede#g' /etc/opkg/distfeeds.conf sed -i 's#https://downloads.openwrt.org#https://mirrors.tencent.com/lede#g' /etc/opkg/distfeeds.conf
sed -i "s/# //g" /etc/opkg/distfeeds.conf sed -i "s/# //g" /etc/opkg/distfeeds.conf
sed -i 's/root::0:0:99999:7:::/root:$1$V4UetPzk$CYXluq4wUazHjmCDBCqXF.:0:0:99999:7:::/g' /etc/shadow sed -i 's/root::0:0:99999:7:::/root:$1$V4UetPzk$CYXluq4wUazHjmCDBCqXF.:0:0:99999:7:::/g' /etc/shadow

View File

@ -19,8 +19,8 @@ PKG_BUILD_PARALLEL:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= \ PKG_SOURCE_URL:= \
https://mirrors.cloud.tencent.com/openssl/source/ \ https://mirrors.tencent.com/openssl/source/ \
https://mirrors.cloud.tencent.com/openssl/source/old/$(PKG_BASE)/ \ https://mirrors.tencent.com/openssl/source/old/$(PKG_BASE)/ \
https://www.openssl.org/source/ \ https://www.openssl.org/source/ \
https://www.openssl.org/source/old/$(PKG_BASE)/ \ https://www.openssl.org/source/old/$(PKG_BASE)/ \
https://ftp.fi.muni.cz/pub/openssl/source/ \ https://ftp.fi.muni.cz/pub/openssl/source/ \

View File

@ -197,7 +197,7 @@ foreach my $mirror (@ARGV) {
} elsif ($mirror =~ /^\@OPENWRT$/) { } elsif ($mirror =~ /^\@OPENWRT$/) {
# use OpenWrt source server directly # use OpenWrt source server directly
} elsif ($mirror =~ /^\@APACHE\/(.+)$/) { } elsif ($mirror =~ /^\@APACHE\/(.+)$/) {
push @mirrors, "https://mirrors.cloud.tencent.com/apache/$1"; push @mirrors, "https://mirrors.tencent.com/apache/$1";
push @mirrors, "https://mirrors.aliyun.com/apache/$1"; push @mirrors, "https://mirrors.aliyun.com/apache/$1";
push @mirrors, "https://mirrors.tuna.tsinghua.edu.cn/apache/$1"; push @mirrors, "https://mirrors.tuna.tsinghua.edu.cn/apache/$1";
push @mirrors, "https://mirrors.ustc.edu.cn/apache/$1"; push @mirrors, "https://mirrors.ustc.edu.cn/apache/$1";
@ -215,12 +215,13 @@ foreach my $mirror (@ARGV) {
my $i = 0; my $i = 0;
# replace the 2nd '/' with '@' for jsDelivr mirror # replace the 2nd '/' with '@' for jsDelivr mirror
push @mirrors, "https://cdn.jsdelivr.net/gh/". $dir =~ s{\/}{++$i == 2 ? '@' : $&}ger; push @mirrors, "https://cdn.jsdelivr.net/gh/". $dir =~ s{\/}{++$i == 2 ? '@' : $&}ger;
push @mirrors, "https://raw.sevencdn.com/$dir";
# give github a few more tries (different mirrors) # give github a few more tries (different mirrors)
for (1 .. 5) { for (1 .. 5) {
push @mirrors, "https://raw.githubusercontent.com/$dir"; push @mirrors, "https://raw.githubusercontent.com/$dir";
} }
} elsif ($mirror =~ /^\@GNU\/(.+)$/) { } elsif ($mirror =~ /^\@GNU\/(.+)$/) {
push @mirrors, "https://mirrors.cloud.tencent.com/gnu/$1"; push @mirrors, "https://mirrors.tencent.com/gnu/$1";
push @mirrors, "https://mirrors.tuna.tsinghua.edu.cn/gnu/$1"; push @mirrors, "https://mirrors.tuna.tsinghua.edu.cn/gnu/$1";
push @mirrors, "https://mirrors.cqu.edu.cn/gnu/$1"; push @mirrors, "https://mirrors.cqu.edu.cn/gnu/$1";
push @mirrors, "https://mirrors.ustc.edu.cn/gnu/$1"; push @mirrors, "https://mirrors.ustc.edu.cn/gnu/$1";