mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-08 10:23:47 +08:00
treewide: adjust tencent mirror
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
6d9545423e
commit
cd48c34584
@ -10,7 +10,7 @@ PKG_VERSION:=2.88.2
|
||||
PKG_RELEASE:=1
|
||||
|
||||
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.npmjs.org/$(PKG_NPM_NAME)/-/
|
||||
PKG_HASH:=e86dae884084b90a300096972f5954c815ebe5877c590df7fd170e8b71724242
|
||||
|
@ -26,7 +26,7 @@ sed -i 's/\"services\"/\"nas\"/g' /usr/lib/lua/luci/controller/xunlei.lua
|
||||
|
||||
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/root::0:0:99999:7:::/root:$1$V4UetPzk$CYXluq4wUazHjmCDBCqXF.:0:0:99999:7:::/g' /etc/shadow
|
||||
|
@ -19,8 +19,8 @@ PKG_BUILD_PARALLEL:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:= \
|
||||
https://mirrors.cloud.tencent.com/openssl/source/ \
|
||||
https://mirrors.cloud.tencent.com/openssl/source/old/$(PKG_BASE)/ \
|
||||
https://mirrors.tencent.com/openssl/source/ \
|
||||
https://mirrors.tencent.com/openssl/source/old/$(PKG_BASE)/ \
|
||||
https://www.openssl.org/source/ \
|
||||
https://www.openssl.org/source/old/$(PKG_BASE)/ \
|
||||
https://ftp.fi.muni.cz/pub/openssl/source/ \
|
||||
|
@ -197,7 +197,7 @@ foreach my $mirror (@ARGV) {
|
||||
} elsif ($mirror =~ /^\@OPENWRT$/) {
|
||||
# use OpenWrt source server directly
|
||||
} 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.tuna.tsinghua.edu.cn/apache/$1";
|
||||
push @mirrors, "https://mirrors.ustc.edu.cn/apache/$1";
|
||||
@ -215,12 +215,13 @@ foreach my $mirror (@ARGV) {
|
||||
my $i = 0;
|
||||
# replace the 2nd '/' with '@' for jsDelivr mirror
|
||||
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)
|
||||
for (1 .. 5) {
|
||||
push @mirrors, "https://raw.githubusercontent.com/$dir";
|
||||
}
|
||||
} 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.cqu.edu.cn/gnu/$1";
|
||||
push @mirrors, "https://mirrors.ustc.edu.cn/gnu/$1";
|
||||
|
Loading…
x
Reference in New Issue
Block a user