mirror of
https://github.com/RubyMetric/chsrc
synced 2025-08-14 00:20:47 +08:00
All recipes use UpstreamProvider
This commit is contained in:
parent
1be3dc2a0b
commit
24a0aff66d
@ -172,7 +172,7 @@ TargetRegisterInfo_t;
|
|||||||
#define use_this(t) Target_t *this = &t##_target;
|
#define use_this(t) Target_t *this = &t##_target;
|
||||||
#define use_this_source(t) use_this(t); Source_t source = chsrc_yield_source_and_confirm (this, option);
|
#define use_this_source(t) use_this(t); Source_t source = chsrc_yield_source_and_confirm (this, option);
|
||||||
|
|
||||||
#define def_sources_begin() SourceProvider_t upstream = UpstreamProvider; Source_t sources[] = {
|
#define def_sources_begin() Source_t sources[] = {
|
||||||
#define def_sources_end() }; \
|
#define def_sources_end() }; \
|
||||||
this->sources_n = xy_arylen(sources); \
|
this->sources_n = xy_arylen(sources); \
|
||||||
char *_sources_storage = xy_malloc0 (sizeof(sources)); \
|
char *_sources_storage = xy_malloc0 (sizeof(sources)); \
|
||||||
|
@ -24,7 +24,7 @@ pl_clojure_prelude ()
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, NULL, DelegateToUpstream},
|
{&UpstreamProvider, NULL, DelegateToUpstream},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/clojars/", DelegateToMirror},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/clojars/", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/clojars/", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/clojars/", DelegateToMirror},
|
||||||
{&Nju, "https://mirror.nju.edu.cn/clojars/", DelegateToMirror},
|
{&Nju, "https://mirror.nju.edu.cn/clojars/", DelegateToMirror},
|
||||||
|
@ -26,11 +26,11 @@ pl_dart_flutter_prelude (void)
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://storage.googleapis.com", FeedByPrelude},
|
{&UpstreamProvider, "https://storage.googleapis.com", FeedByPrelude},
|
||||||
{&FlutterCN, "https://storage.flutter-io.cn", FeedByPrelude},
|
{&FlutterCN, "https://storage.flutter-io.cn", FeedByPrelude},
|
||||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn", FeedByPrelude }, /* 官方文档也没有给后缀,怀疑是否存在问题 */
|
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn", FeedByPrelude }, /* 官方文档也没有给后缀,怀疑是否存在问题 */
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/flutter", FeedByPrelude},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/flutter", FeedByPrelude},
|
||||||
{&Nju, "https://mirror.nju.edu.cn/flutter", FeedByPrelude}
|
{&Nju, "https://mirror.nju.edu.cn/flutter", FeedByPrelude}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
|
|
||||||
chsrc_set_sources_speed_measure_url_with_postfix (this, "/flutter_infra_release/releases/stable/linux/flutter_linux_v1.0.0-stable.tar.xz");
|
chsrc_set_sources_speed_measure_url_with_postfix (this, "/flutter_infra_release/releases/stable/linux/flutter_linux_v1.0.0-stable.tar.xz");
|
||||||
|
@ -26,11 +26,11 @@ pl_dart_prelude (void)
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://pub.dev", FeedByPrelude},
|
{&UpstreamProvider, "https://pub.dev", FeedByPrelude},
|
||||||
{&FlutterCN, "https://pub.flutter-io.cn", FeedByPrelude},
|
{&FlutterCN, "https://pub.flutter-io.cn", FeedByPrelude},
|
||||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/dart-pub", FeedByPrelude},
|
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/dart-pub", FeedByPrelude},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/dart-pub", FeedByPrelude},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/dart-pub", FeedByPrelude},
|
||||||
{&Nju, "https://mirror.nju.edu.cn/dart-pub", FeedByPrelude}
|
{&Nju, "https://mirror.nju.edu.cn/dart-pub", FeedByPrelude}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
|
|
||||||
chsrc_set_sources_speed_measure_url_with_postfix (this, "/packages/flutter_vision/versions/1.1.4.tar.gz");
|
chsrc_set_sources_speed_measure_url_with_postfix (this, "/packages/flutter_vision/versions/1.1.4.tar.gz");
|
||||||
|
@ -41,14 +41,14 @@ pl_go_prelude ()
|
|||||||
|
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://proxy.golang.org", DelegateToUpstream},
|
{&UpstreamProvider, "https://proxy.golang.org", DelegateToUpstream},
|
||||||
{&GoProxyCN, "https://goproxy.cn", DelegateToMirror},
|
{&GoProxyCN, "https://goproxy.cn", DelegateToMirror},
|
||||||
{&Ali, "https://mirrors.aliyun.com/goproxy/", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com/goproxy/", DelegateToMirror},
|
||||||
|
|
||||||
// 暂时停用华为镜像源, 详见 https://github.com/RubyMetric/chsrc/issues/227
|
// 暂时停用华为镜像源, 详见 https://github.com/RubyMetric/chsrc/issues/227
|
||||||
// {&Huawei, "https://mirrors.huaweicloud.com/goproxy/", DelegateToMirror},
|
// {&Huawei, "https://mirrors.huaweicloud.com/goproxy/", DelegateToMirror},
|
||||||
|
|
||||||
{&GoProxyIO, "https://goproxy.io", DelegateToMirror}
|
{&GoProxyIO, "https://goproxy.io", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ pl_haskell_prelude ()
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, NULL, DelegateToUpstream},
|
{&UpstreamProvider, NULL, DelegateToUpstream},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/hackage", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/hackage", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/hackage", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/hackage", DelegateToMirror},
|
||||||
{&Nju, "https://mirror.nju.edu.cn/hackage", DelegateToMirror},
|
{&Nju, "https://mirror.nju.edu.cn/hackage", DelegateToMirror},
|
||||||
|
@ -25,7 +25,7 @@ pl_java_prelude ()
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://repo1.maven.org/maven2/", DelegateToUpstream},
|
{&UpstreamProvider, "https://repo1.maven.org/maven2/", DelegateToUpstream},
|
||||||
{&Ali, "https://maven.aliyun.com/repository/public/", DelegateToMirror},
|
{&Ali, "https://maven.aliyun.com/repository/public/", DelegateToMirror},
|
||||||
{&Huawei, "https://mirrors.huaweicloud.com/repository/maven/", DelegateToMirror},
|
{&Huawei, "https://mirrors.huaweicloud.com/repository/maven/", DelegateToMirror},
|
||||||
|
|
||||||
|
@ -33,10 +33,10 @@ pl_js_group_prelude (void)
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://registry.npmjs.org/", FeedByPrelude}, /* @note 根据 pnpm 官网,有最后的斜线 */
|
{&UpstreamProvider, "https://registry.npmjs.org/", FeedByPrelude}, /* @note 根据 pnpm 官网,有最后的斜线 */
|
||||||
{&NpmMirror, "https://registry.npmmirror.com", FeedByPrelude},
|
{&NpmMirror, "https://registry.npmmirror.com", FeedByPrelude},
|
||||||
{&Huawei, "https://mirrors.huaweicloud.com/repository/npm/", FeedByPrelude},
|
{&Huawei, "https://mirrors.huaweicloud.com/repository/npm/", FeedByPrelude},
|
||||||
{&Tencent, "https://mirrors.cloud.tencent.com/npm/", FeedByPrelude}
|
{&Tencent, "https://mirrors.cloud.tencent.com/npm/", FeedByPrelude}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
|
|
||||||
// 29MB 大小
|
// 29MB 大小
|
||||||
@ -67,7 +67,7 @@ pl_js_nodejs_binary_prelude (void)
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://nodejs.org/dist/", FeedByPrelude},
|
{&UpstreamProvider, "https://nodejs.org/dist/", FeedByPrelude},
|
||||||
{&NpmMirror, "https://npmmirror.com/mirrors", FeedByPrelude},
|
{&NpmMirror, "https://npmmirror.com/mirrors", FeedByPrelude},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/",FeedByPrelude},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/",FeedByPrelude},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/nodejs-release/",FeedByPrelude},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/nodejs-release/",FeedByPrelude},
|
||||||
|
@ -24,7 +24,7 @@ pl_julia_prelude ()
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, NULL, DelegateToUpstream},
|
{&UpstreamProvider, NULL, DelegateToUpstream},
|
||||||
{&Pku, "https://mirrors.pku.edu.cn/julia", DelegateToMirror},
|
{&Pku, "https://mirrors.pku.edu.cn/julia", DelegateToMirror},
|
||||||
{&Nju, "https://mirror.nju.edu.cn/julia", DelegateToMirror},
|
{&Nju, "https://mirror.nju.edu.cn/julia", DelegateToMirror},
|
||||||
{&Iscas, "https://mirror.iscas.ac.cn/julia", DelegateToMirror}
|
{&Iscas, "https://mirror.iscas.ac.cn/julia", DelegateToMirror}
|
||||||
|
@ -31,7 +31,7 @@ pl_lua_prelude ()
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, NULL, DelegateToUpstream},
|
{&UpstreamProvider, NULL, DelegateToUpstream},
|
||||||
{&Api7, "https://luarocks.cn", DelegateToMirror}
|
{&Api7, "https://luarocks.cn", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,7 @@ pl_nuget_prelude ()
|
|||||||
chef_forbid_user_define(this);
|
chef_forbid_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://www.nuget.org/api/v3/", DelegateToUpstream},
|
{&UpstreamProvider, "https://www.nuget.org/api/v3/", DelegateToUpstream},
|
||||||
{&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3", DelegateToMirror}
|
{&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,8 @@ pl_ocaml_prelude ()
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, NULL, DelegateToUpstream},
|
{&UpstreamProvider, NULL, DelegateToUpstream},
|
||||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git", DelegateToMirror}
|
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/git/opam-repository.git", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ pl_php_prelude ()
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, NULL, DelegateToUpstream},
|
{&UpstreamProvider, NULL, DelegateToUpstream},
|
||||||
{&Ali, "https://mirrors.aliyun.com/composer/", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com/composer/", DelegateToMirror},
|
||||||
{&Tencent, "https://mirrors.tencent.com/composer/", DelegateToMirror},
|
{&Tencent, "https://mirrors.tencent.com/composer/", DelegateToMirror},
|
||||||
// {&Tencent_Intra, "https://mirrors.tencentyun.com/composer/", DelegateToMirror},
|
// {&Tencent_Intra, "https://mirrors.tencentyun.com/composer/", DelegateToMirror},
|
||||||
|
@ -24,7 +24,7 @@ pl_perl_prelude ()
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, NULL, DelegateToUpstream},
|
{&UpstreamProvider, NULL, DelegateToUpstream},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/CPAN/", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/CPAN/", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CPAN/", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CPAN/", DelegateToMirror},
|
||||||
{&Bjtu, "https://mirror.bjtu.edu.cn/cpan/", DelegateToMirror},
|
{&Bjtu, "https://mirror.bjtu.edu.cn/cpan/", DelegateToMirror},
|
||||||
|
@ -42,7 +42,7 @@ pl_python_group_prelude (void)
|
|||||||
|
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://pypi.org/simple", FeedByPrelude},
|
{&UpstreamProvider, "https://pypi.org/simple", FeedByPrelude},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/pypi/web/simple",FeedByPrelude},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/pypi/web/simple",FeedByPrelude},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple", FeedByPrelude},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple", FeedByPrelude},
|
||||||
/* 不要添加Zju,浙大的PyPI服务在校外访问会自动转向Tuna */
|
/* 不要添加Zju,浙大的PyPI服务在校外访问会自动转向Tuna */
|
||||||
|
@ -25,7 +25,7 @@ pl_r_prelude ()
|
|||||||
|
|
||||||
// 以下注释的,是不含有bioconductor的镜像站,我们在换cran的同时,也直接帮助用户换bioconductor
|
// 以下注释的,是不含有bioconductor的镜像站,我们在换cran的同时,也直接帮助用户换bioconductor
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, NULL, DelegateToUpstream},
|
{&UpstreamProvider, NULL, DelegateToUpstream},
|
||||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/cran/", DelegateToMirror},
|
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/cran/", DelegateToMirror},
|
||||||
// {&Ali, "https://mirrors.aliyun.com/CRAN/", DelegateToMirror},
|
// {&Ali, "https://mirrors.aliyun.com/CRAN/", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CRAN/", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CRAN/", DelegateToMirror},
|
||||||
|
@ -31,9 +31,9 @@ pl_ruby_prelude (void)
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://rubygems.org", "https://rubygems.org/gems/nokogiri-1.15.0-java.gem"},
|
{&UpstreamProvider, "https://rubygems.org", "https://rubygems.org/gems/nokogiri-1.15.0-java.gem"},
|
||||||
{&RubyChina, "https://gems.ruby-china.com/", DelegateToMirror},
|
{&RubyChina, "https://gems.ruby-china.com/", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/rubygems/", DelegateToMirror}
|
{&Ustc, "https://mirrors.ustc.edu.cn/rubygems/", DelegateToMirror}
|
||||||
|
|
||||||
// {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rubygems/", DelegateToMirror},
|
// {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rubygems/", DelegateToMirror},
|
||||||
// {&Bfsu, "https://mirrors.bfsu.edu.cn/rubygems/", DelegateToMirror},
|
// {&Bfsu, "https://mirrors.bfsu.edu.cn/rubygems/", DelegateToMirror},
|
||||||
|
@ -28,13 +28,10 @@ pl_rust_cargo_prelude (void)
|
|||||||
|
|
||||||
// 以下都支持稀疏索引,我们换源时都将默认添加 `sparse+`。链接末尾的 `/` 不能缺少
|
// 以下都支持稀疏索引,我们换源时都将默认添加 `sparse+`。链接末尾的 `/` 不能缺少
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://crates.io/", "https://crates.io/api/v1/crates/windows/0.58.0/download"},
|
{&UpstreamProvider, "https://crates.io/", "https://crates.io/api/v1/crates/windows/0.58.0/download"},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/crates.io-index/", DelegateToMirror},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/crates.io-index/", DelegateToMirror},
|
||||||
{&RsProxyCN, "https://rsproxy.cn/index/", DelegateToMirror},
|
{&RsProxyCN, "https://rsproxy.cn/index/", DelegateToMirror},
|
||||||
|
{&Ali, "https://mirrors.aliyun.com/crates.io-index/", FeedByPrelude},
|
||||||
{&Ali, "https://mirrors.aliyun.com/crates.io-index/",
|
|
||||||
"https://mirrors.aliyun.com/crates/api/v1/crates/windows/0.58.0/download"},
|
|
||||||
|
|
||||||
{&Zju, "https://mirrors.zju.edu.cn/crates.io-index/", DelegateToMirror},
|
{&Zju, "https://mirrors.zju.edu.cn/crates.io-index/", DelegateToMirror},
|
||||||
|
|
||||||
/* 注释原因: (2025-06-17) 镜像同步失败,多数包都不可用 */
|
/* 注释原因: (2025-06-17) 镜像同步失败,多数包都不可用 */
|
||||||
|
@ -29,16 +29,16 @@ pl_rust_rustup_prelude (void)
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://static.rust-lang.org", FeedByPrelude},
|
{&UpstreamProvider, "https://static.rust-lang.org", FeedByPrelude},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/rustup", FeedByPrelude},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/rustup", FeedByPrelude},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rustup", FeedByPrelude},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/rustup", FeedByPrelude},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/rust-static", FeedByPrelude},
|
{&Ustc, "https://mirrors.ustc.edu.cn/rust-static", FeedByPrelude},
|
||||||
{&Nju, "https://mirror.nju.edu.cn/rustup", FeedByPrelude},
|
{&Nju, "https://mirror.nju.edu.cn/rustup", FeedByPrelude},
|
||||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rust-static", FeedByPrelude},
|
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rust-static", FeedByPrelude},
|
||||||
{&Zju, "https://mirrors.zju.edu.cn/rustup", FeedByPrelude},
|
{&Zju, "https://mirrors.zju.edu.cn/rustup", FeedByPrelude},
|
||||||
{&Iscas, "https://mirror.iscas.ac.cn/rustup", FeedByPrelude},
|
{&Iscas, "https://mirror.iscas.ac.cn/rustup", FeedByPrelude},
|
||||||
{&Ali, "https://mirrors.aliyun.com/rustup", FeedByPrelude},
|
{&Ali, "https://mirrors.aliyun.com/rustup", FeedByPrelude},
|
||||||
{&RsProxyCN, "https://rsproxy.cn", FeedByPrelude}
|
{&RsProxyCN, "https://rsproxy.cn", FeedByPrelude}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
|
|
||||||
// 20MB大小
|
// 20MB大小
|
||||||
|
@ -28,15 +28,15 @@ os_armbian_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "http://apt.armbian.com", DelegateToUpstream},
|
{&UpstreamProvider, "http://apt.armbian.com", DelegateToUpstream},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/armbian", DelegateToMirror},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/armbian", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian", DelegateToMirror},
|
||||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian", DelegateToMirror},
|
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/armbian", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/armbian", DelegateToMirror},
|
||||||
{&Sustech, "https://mirrors.sustech.edu.cn/armbian", DelegateToMirror},
|
{&Sustech, "https://mirrors.sustech.edu.cn/armbian", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/armbian", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/armbian", DelegateToMirror},
|
||||||
{&Nju, "https://mirrors.nju.edu.cn/armbian", DelegateToMirror},
|
{&Nju, "https://mirrors.nju.edu.cn/armbian", DelegateToMirror},
|
||||||
{&Ali, "https://mirrors.aliyun.com/armbian", DelegateToMirror}
|
{&Ali, "https://mirrors.aliyun.com/armbian", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,14 +29,14 @@ os_debian_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "http://deb.debian.org/debian", FeedByPrelude},
|
{&UpstreamProvider, "http://deb.debian.org/debian", FeedByPrelude},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/debian/", FeedByPrelude},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/debian/", FeedByPrelude},
|
||||||
{&Ali, "https://mirrors.aliyun.com/debian", FeedByPrelude},
|
{&Ali, "https://mirrors.aliyun.com/debian", FeedByPrelude},
|
||||||
{&Volcengine, "https://mirrors.volces.com/debian", FeedByPrelude},
|
{&Volcengine, "https://mirrors.volces.com/debian", FeedByPrelude},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/debian", FeedByPrelude},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/debian", FeedByPrelude},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/debian", FeedByPrelude},
|
{&Ustc, "https://mirrors.ustc.edu.cn/debian", FeedByPrelude},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/debian", FeedByPrelude},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/debian", FeedByPrelude},
|
||||||
{&Tencent, "https://mirrors.tencent.com/debian", FeedByPrelude}
|
{&Tencent, "https://mirrors.tencent.com/debian", FeedByPrelude}
|
||||||
|
|
||||||
// {&Tencent_Intra, "https://mirrors.tencentyun.com/debian", FeedByPrelude},
|
// {&Tencent_Intra, "https://mirrors.tencentyun.com/debian", FeedByPrelude},
|
||||||
|
|
||||||
|
@ -28,13 +28,13 @@ os_kali_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "http://http.kali.org/kali", DelegateToUpstream},
|
{&UpstreamProvider, "http://http.kali.org/kali", DelegateToUpstream},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/kali", DelegateToMirror},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/kali", DelegateToMirror},
|
||||||
{&Ali, "https://mirrors.aliyun.com/kali", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com/kali", DelegateToMirror},
|
||||||
{&Volcengine, "https://mirrors.volces.com/kali", DelegateToMirror},
|
{&Volcengine, "https://mirrors.volces.com/kali", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/kali", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/kali", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/kali", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/kali", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/kali", DelegateToMirror}
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/kali", DelegateToMirror}
|
||||||
/* 不启用原因: 未与上游同步 */
|
/* 不启用原因: 未与上游同步 */
|
||||||
// {&Huawei, "https://mirrors.huaweicloud.com/kali", DelegateToMirror},
|
// {&Huawei, "https://mirrors.huaweicloud.com/kali", DelegateToMirror},
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
|
@ -27,10 +27,10 @@ os_linuxlite_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "http://repo.linuxliteos.com/linuxlite/", DelegateToUpstream},
|
{&UpstreamProvider, "http://repo.linuxliteos.com/linuxlite/", DelegateToUpstream},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/", DelegateToMirror},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/", DelegateToMirror},
|
||||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/", DelegateToMirror},
|
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/", DelegateToMirror},
|
||||||
{&Nju, "https://mirror.nju.edu.cn/linuxliteos/", DelegateToMirror}
|
{&Nju, "https://mirror.nju.edu.cn/linuxliteos/", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,19 +27,19 @@ os_linuxmint_prelude ()
|
|||||||
|
|
||||||
/* @note 实际上镜像站里的内容和Ubuntu的不太一样 */
|
/* @note 实际上镜像站里的内容和Ubuntu的不太一样 */
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "http://packages.linuxmint.com", DelegateToUpstream},
|
{&UpstreamProvider, "http://packages.linuxmint.com", DelegateToUpstream},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/", DelegateToMirror},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/", DelegateToMirror},
|
||||||
{&Ali, "http://mirrors.aliyun.com/linuxmint-packages/", DelegateToMirror},
|
{&Ali, "http://mirrors.aliyun.com/linuxmint-packages/", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/linuxmint/", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/linuxmint/", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/linuxmint/", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/linuxmint/", DelegateToMirror},
|
||||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/linuxmint/", DelegateToMirror},
|
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/linuxmint/", DelegateToMirror},
|
||||||
{&Jlu, "https://mirrors.jlu.edu.cn/linuxmint/", DelegateToMirror},
|
{&Jlu, "https://mirrors.jlu.edu.cn/linuxmint/", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/linuxmint/", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/linuxmint/", DelegateToMirror},
|
||||||
{&Bjtu, "https://mirror.bjtu.edu.cn/linuxmint/", DelegateToMirror},
|
{&Bjtu, "https://mirror.bjtu.edu.cn/linuxmint/", DelegateToMirror},
|
||||||
{&Zju, "https://mirrors.zju.edu.cn/linuxmint/", DelegateToMirror},
|
{&Zju, "https://mirrors.zju.edu.cn/linuxmint/", DelegateToMirror},
|
||||||
{&Sustech, "https://mirrors.sustech.edu.cn/linuxmint/", DelegateToMirror},
|
{&Sustech, "https://mirrors.sustech.edu.cn/linuxmint/", DelegateToMirror},
|
||||||
{&Iscas, "https://mirror.iscas.ac.cn/linuxmint/", DelegateToMirror},
|
{&Iscas, "https://mirror.iscas.ac.cn/linuxmint/", DelegateToMirror},
|
||||||
{&Scau, "https://mirrors.scau.edu.cn/linuxmint/", DelegateToMirror}
|
{&Scau, "https://mirrors.scau.edu.cn/linuxmint/", DelegateToMirror}
|
||||||
/* 不启用原因:过慢 */
|
/* 不启用原因:过慢 */
|
||||||
// {&Netease, "https://mirrors.163.com/linuxmint/packages/", DelegateToMirror}
|
// {&Netease, "https://mirrors.163.com/linuxmint/packages/", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
|
@ -28,18 +28,18 @@ os_ros_prelude ()
|
|||||||
chef_set_note(this, "该换源方案中,URL存在拼凑,因此不能手动使用某URL来换源", "In this switching method, URLs are constructed, so manual URL specification is not supported");
|
chef_set_note(this, "该换源方案中,URL存在拼凑,因此不能手动使用某URL来换源", "In this switching method, URLs are constructed, so manual URL specification is not supported");
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "http://packages.ros.org", DelegateToUpstream},
|
{&UpstreamProvider, "http://packages.ros.org", DelegateToUpstream},
|
||||||
{&Ali, "https://mirrors.aliyun.com", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn", DelegateToMirror},
|
||||||
{&Tencent, "https://mirrors.tencent.com", DelegateToMirror},
|
{&Tencent, "https://mirrors.tencent.com", DelegateToMirror},
|
||||||
// {&Tencent_Intra, "https://mirrors.tencentyun.com", DelegateToMirror},
|
// {&Tencent_Intra, "https://mirrors.tencentyun.com", DelegateToMirror},
|
||||||
{&Huawei, "https://mirrors.huaweicloud.com", DelegateToMirror}
|
{&Huawei, "https://mirrors.huaweicloud.com", DelegateToMirror}
|
||||||
/* 不启用原因:过慢 */
|
/* 不启用原因:过慢 */
|
||||||
// {&Netease, "https://mirrors.163.com", DelegateToMirror},
|
// {&Netease, "https://mirrors.163.com", DelegateToMirror},
|
||||||
/* 不启用原因:过慢 */
|
/* 不启用原因:过慢 */
|
||||||
// {&Sohu, "https://mirrors.sohu.com", DelegateToMirror}
|
// {&Sohu, "https://mirrors.sohu.com", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,13 +30,13 @@ os_raspberrypi_prelude ()
|
|||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
// https://archive.raspberrypi.org/ until Debian "bullseye" release
|
// https://archive.raspberrypi.org/ until Debian "bullseye" release
|
||||||
{&upstream, "https://archive.raspberrypi.com/", DelegateToUpstream},
|
{&UpstreamProvider, "https://archive.raspberrypi.com/", DelegateToUpstream},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/raspberrypi/", DelegateToMirror},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/raspberrypi/", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/raspberrypi/", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/raspberrypi/", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/raspberrypi/", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/raspberrypi/", DelegateToMirror},
|
||||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/raspberrypi/", DelegateToMirror},
|
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/raspberrypi/", DelegateToMirror},
|
||||||
{&Sustech, "https://mirrors.sustech.edu.cn/raspberrypi/", DelegateToMirror}
|
{&Sustech, "https://mirrors.sustech.edu.cn/raspberrypi/", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,19 +26,19 @@ os_termux_prelude ()
|
|||||||
chef_set_note(this, "该 recipe 存在对应的 bootstrapper", "This recipe has a corresponding bootstrapper");
|
chef_set_note(this, "该 recipe 存在对应的 bootstrapper", "This recipe has a corresponding bootstrapper");
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://packages.termux.org/apt/termux-main/", DelegateToUpstream},
|
{&UpstreamProvider, "https://packages.termux.org/apt/termux-main/", DelegateToUpstream},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/termux/", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/termux/", DelegateToMirror},
|
||||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/termux/", DelegateToMirror},
|
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/termux/", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/termux/", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/termux/", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/termux/", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/termux/", DelegateToMirror},
|
||||||
{&Pku, "https://mirrors.pku.edu.cn/termux/", DelegateToMirror},
|
{&Pku, "https://mirrors.pku.edu.cn/termux/", DelegateToMirror},
|
||||||
{&Nyist, "https://mirror.nyist.edu.cn/termux/", DelegateToMirror},
|
{&Nyist, "https://mirror.nyist.edu.cn/termux/", DelegateToMirror},
|
||||||
{&Nju, "https://mirror.nju.edu.cn/termux/", DelegateToMirror},
|
{&Nju, "https://mirror.nju.edu.cn/termux/", DelegateToMirror},
|
||||||
{&Sustech, "https://mirrors.sustech.edu.cn/termux/", DelegateToMirror},
|
{&Sustech, "https://mirrors.sustech.edu.cn/termux/", DelegateToMirror},
|
||||||
{&Iscas, "https://mirror.iscas.ac.cn/termux/", DelegateToMirror},
|
{&Iscas, "https://mirror.iscas.ac.cn/termux/", DelegateToMirror},
|
||||||
{&Zju, "https://mirrors.zju.edu.cn/termux/", DelegateToMirror},
|
{&Zju, "https://mirrors.zju.edu.cn/termux/", DelegateToMirror},
|
||||||
{&Sdu, "https://mirrors.sdu.edu.cn/termux/", DelegateToMirror},
|
{&Sdu, "https://mirrors.sdu.edu.cn/termux/", DelegateToMirror},
|
||||||
{&Cqupt, "https://mirrors.cqupt.edu.cn/termux/", DelegateToMirror}
|
{&Cqupt, "https://mirrors.cqupt.edu.cn/termux/", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,12 +28,12 @@ os_trisquel_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "http://archive.trisquel.info/trisquel/", DelegateToUpstream},
|
{&UpstreamProvider, "http://archive.trisquel.info/trisquel/", DelegateToUpstream},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/", DelegateToMirror},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/", DelegateToMirror},
|
||||||
{&Ali, "https://mirrors.aliyun.com/trisquel/", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com/trisquel/", DelegateToMirror},
|
||||||
{&Nju, "https://mirror.nju.edu.cn/trisquel/", DelegateToMirror},
|
{&Nju, "https://mirror.nju.edu.cn/trisquel/", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/trisquel/", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/trisquel/", DelegateToMirror},
|
||||||
{&Iscas, "https://mirror.iscas.ac.cn/trisquel/", DelegateToMirror}
|
{&Iscas, "https://mirror.iscas.ac.cn/trisquel/", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ os_ubuntu_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "http://archive.ubuntu.com/ubuntu/", FeedByPrelude}, /* 不支持https */
|
{&UpstreamProvider, "http://archive.ubuntu.com/ubuntu/", FeedByPrelude}, /* 不支持https */
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/ubuntu/",FeedByPrelude},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/ubuntu/",FeedByPrelude},
|
||||||
{&Ali, "https://mirrors.aliyun.com/ubuntu",FeedByPrelude},
|
{&Ali, "https://mirrors.aliyun.com/ubuntu",FeedByPrelude},
|
||||||
{&Volcengine, "https://mirrors.volces.com/ubuntu",FeedByPrelude},
|
{&Volcengine, "https://mirrors.volces.com/ubuntu",FeedByPrelude},
|
||||||
|
@ -27,12 +27,12 @@ os_deepin_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://community-packages.deepin.com/deepin", DelegateToUpstream},
|
{&UpstreamProvider, "https://community-packages.deepin.com/deepin", DelegateToUpstream},
|
||||||
{&Ali, "https://mirrors.aliyun.com/deepin", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com/deepin", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/deepin", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/deepin", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/deepin", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/deepin", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/deepin", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/deepin", DelegateToMirror},
|
||||||
{&Tencent, "https://mirrors.tencent.com/deepin", DelegateToMirror}
|
{&Tencent, "https://mirrors.tencent.com/deepin", DelegateToMirror}
|
||||||
// {&Tencent_Intra, "https://mirrors.tencentyun.com/deepin", DelegateToMirror},
|
// {&Tencent_Intra, "https://mirrors.tencentyun.com/deepin", DelegateToMirror},
|
||||||
/* 不启用原因:过慢 */
|
/* 不启用原因:过慢 */
|
||||||
// {&Netease, "https://mirrors.163.com/deepin", DelegateToMirror},
|
// {&Netease, "https://mirrors.163.com/deepin", DelegateToMirror},
|
||||||
|
@ -30,9 +30,9 @@ os_openkylin_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://archive.openkylin.top/openkylin/", DelegateToUpstream},
|
{&UpstreamProvider, "https://archive.openkylin.top/openkylin/", DelegateToUpstream},
|
||||||
{&Ali, "https://mirrors.aliyun.com/openkylin/", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com/openkylin/", DelegateToMirror},
|
||||||
{&Netease, "https://mirrors.163.com/openkylin/", DelegateToMirror}
|
{&Netease, "https://mirrors.163.com/openkylin/", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,15 +27,15 @@ os_alpine_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "http://dl-cdn.alpinelinux.org/alpine", FeedByPrelude},
|
{&UpstreamProvider, "http://dl-cdn.alpinelinux.org/alpine", FeedByPrelude},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/alpine", FeedByPrelude},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/alpine", FeedByPrelude},
|
||||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/alpine", FeedByPrelude},
|
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/alpine", FeedByPrelude},
|
||||||
{&Sustech, "https://mirrors.sustech.edu.cn/alpine", FeedByPrelude},
|
{&Sustech, "https://mirrors.sustech.edu.cn/alpine", FeedByPrelude},
|
||||||
{&Zju, "https://mirrors.zju.edu.cn/alpine", FeedByPrelude},
|
{&Zju, "https://mirrors.zju.edu.cn/alpine", FeedByPrelude},
|
||||||
{&Lzuoss, "https://mirror.lzu.edu.cn/alpine", FeedByPrelude},
|
{&Lzuoss, "https://mirror.lzu.edu.cn/alpine", FeedByPrelude},
|
||||||
{&Ali, "https://mirrors.aliyun.com/alpine", FeedByPrelude},
|
{&Ali, "https://mirrors.aliyun.com/alpine", FeedByPrelude},
|
||||||
{&Tencent, "https://mirrors.cloud.tencent.com/alpine", FeedByPrelude},
|
{&Tencent, "https://mirrors.cloud.tencent.com/alpine", FeedByPrelude},
|
||||||
{&Huawei, "https://mirrors.huaweicloud.com/alpine", FeedByPrelude}
|
{&Huawei, "https://mirrors.huaweicloud.com/alpine", FeedByPrelude}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
|
|
||||||
chsrc_set_sources_speed_measure_url_with_postfix (this, "/latest-stable/releases/x86_64/alpine-standard-3.21.0-x86_64.iso");
|
chsrc_set_sources_speed_measure_url_with_postfix (this, "/latest-stable/releases/x86_64/alpine-standard-3.21.0-x86_64.iso");
|
||||||
|
@ -27,7 +27,7 @@ os_freebsd_prelude ()
|
|||||||
// 2023-09-24: 以下三个USTC, NJU, Netease 均维护了 freebsd-pkg freebsd-ports
|
// 2023-09-24: 以下三个USTC, NJU, Netease 均维护了 freebsd-pkg freebsd-ports
|
||||||
// 2023-09-27: 请务必保持Nju前面有至少一个镜像,原因请查看 freebsd 的换源函数
|
// 2023-09-27: 请务必保持Nju前面有至少一个镜像,原因请查看 freebsd 的换源函数
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, NULL, DelegateToUpstream},
|
{&UpstreamProvider, NULL, DelegateToUpstream},
|
||||||
{&Ustc, "mirrors.ustc.edu.cn", DelegateToMirror},
|
{&Ustc, "mirrors.ustc.edu.cn", DelegateToMirror},
|
||||||
{&Nju, "mirror.nju.edu.cn", DelegateToMirror},
|
{&Nju, "mirror.nju.edu.cn", DelegateToMirror},
|
||||||
{&Netease, "mirrors.163.com", DelegateToMirror},
|
{&Netease, "mirrors.163.com", DelegateToMirror},
|
||||||
|
@ -25,7 +25,7 @@ os_netbsd_prelude ()
|
|||||||
chef_forbid_user_define(this);
|
chef_forbid_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, NULL, DelegateToUpstream},
|
{&UpstreamProvider, NULL, DelegateToUpstream},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/pkgsrc/packages/NetBSD/", DelegateToMirror},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/pkgsrc/packages/NetBSD/", DelegateToMirror},
|
||||||
{&Ali, "https://mirrors.aliyun.com/pkgsrc/packages/NetBSD/", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com/pkgsrc/packages/NetBSD/", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/pkgsrc/packages/NetBSD/", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/pkgsrc/packages/NetBSD/", DelegateToMirror},
|
||||||
|
@ -24,7 +24,7 @@ os_openbsd_prelude ()
|
|||||||
chef_forbid_user_define(this);
|
chef_forbid_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, NULL, DelegateToUpstream},
|
{&UpstreamProvider, NULL, DelegateToUpstream},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/OpenBSD/", DelegateToMirror},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/OpenBSD/", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/OpenBSD/", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/OpenBSD/", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/OpenBSD/", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/OpenBSD/", DelegateToMirror},
|
||||||
|
@ -27,12 +27,12 @@ os_gentoo_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "rsync://rsync.gentoo.org/gentoo-portage", DelegateToUpstream},
|
{&UpstreamProvider, "rsync://rsync.gentoo.org/gentoo-portage", DelegateToUpstream},
|
||||||
{&Ali, "mirrors.aliyun.com", DelegateToMirror},
|
{&Ali, "mirrors.aliyun.com", DelegateToMirror},
|
||||||
{&Bfsu, "mirrors.bfsu.edu.cn", DelegateToMirror},
|
{&Bfsu, "mirrors.bfsu.edu.cn", DelegateToMirror},
|
||||||
{&Ustc, "mirrors.ustc.edu.cn", DelegateToMirror},
|
{&Ustc, "mirrors.ustc.edu.cn", DelegateToMirror},
|
||||||
{&Tuna, "mirrors.tuna.tsinghua.edu.cn", DelegateToMirror},
|
{&Tuna, "mirrors.tuna.tsinghua.edu.cn", DelegateToMirror},
|
||||||
{&Tencent, "mirrors.tencent.com", DelegateToMirror}
|
{&Tencent, "mirrors.tencent.com", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,18 +28,18 @@ os_openwrt_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://downloads.openwrt.org", DelegateToUpstream},
|
{&UpstreamProvider, "https://downloads.openwrt.org", DelegateToUpstream},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/openwrt", DelegateToMirror},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/openwrt", DelegateToMirror},
|
||||||
{&Ali, "https://mirrors.aliyun.com/openwrt", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com/openwrt", DelegateToMirror},
|
||||||
{&Tencent, "https://mirrors.cloud.tencent.com/openwrt", DelegateToMirror},
|
{&Tencent, "https://mirrors.cloud.tencent.com/openwrt", DelegateToMirror},
|
||||||
{&Tuna, "https://mirror.tuna.tsinghua.edu.cn/openwrt", DelegateToMirror},
|
{&Tuna, "https://mirror.tuna.tsinghua.edu.cn/openwrt", DelegateToMirror},
|
||||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/openwrt", DelegateToMirror},
|
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/openwrt", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/openwrt", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/openwrt", DelegateToMirror},
|
||||||
{&Pku, "https://mirrors.pku.edu.cn/openwrt", DelegateToMirror},
|
{&Pku, "https://mirrors.pku.edu.cn/openwrt", DelegateToMirror},
|
||||||
{&Sustech, "https://mirrors.sustech.edu.cn/openwrt", DelegateToMirror}
|
{&Sustech, "https://mirrors.sustech.edu.cn/openwrt", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
|
|
||||||
chsrc_set_provider_speed_measure_url (&upstream, "https://downloads.openwrt.org/releases/23.05.5/targets/x86/64/openwrt-sdk-23.05.5-x86-64_gcc-12.3.0_musl.Linux-x86_64.tar.xz");
|
chsrc_set_provider_speed_measure_url (&UpstreamProvider, "https://downloads.openwrt.org/releases/23.05.5/targets/x86/64/openwrt-sdk-23.05.5-x86-64_gcc-12.3.0_musl.Linux-x86_64.tar.xz");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,10 +27,10 @@ os_solus_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://packages.getsol.us/shannon/eopkg-index.xml.xz", DelegateToUpstream},
|
{&UpstreamProvider, "https://packages.getsol.us/shannon/eopkg-index.xml.xz", DelegateToUpstream},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/solus/packages/shannon/eopkg-index.xml.xz", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/solus/packages/shannon/eopkg-index.xml.xz", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/solus/packages/shannon/eopkg-index.xml.xz", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/solus/packages/shannon/eopkg-index.xml.xz", DelegateToMirror},
|
||||||
{&Nju, "https://mirror.nju.edu.cn/solus/packages/shannon/eopkg-index.xml.xz", DelegateToMirror}
|
{&Nju, "https://mirror.nju.edu.cn/solus/packages/shannon/eopkg-index.xml.xz", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,10 +27,10 @@ os_voidlinux_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://repo-default.voidlinux.org", FeedByPrelude},
|
{&UpstreamProvider, "https://repo-default.voidlinux.org", FeedByPrelude},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/voidlinux", FeedByPrelude},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/voidlinux", FeedByPrelude},
|
||||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/voidlinux", FeedByPrelude},
|
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/voidlinux", FeedByPrelude},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/voidlinux", FeedByPrelude}
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/voidlinux", FeedByPrelude}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
|
|
||||||
chsrc_set_sources_speed_measure_url_with_postfix (this, "/live/20240314/void-live-x86_64-musl-20240314-xfce.iso");
|
chsrc_set_sources_speed_measure_url_with_postfix (this, "/live/20240314/void-live-x86_64-musl-20240314-xfce.iso");
|
||||||
|
@ -27,15 +27,15 @@ os_almalinux_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "http://repo.almalinux.org/almalinux", FeedByPrelude},
|
{&UpstreamProvider, "http://repo.almalinux.org/almalinux", FeedByPrelude},
|
||||||
{&Ali, "https://mirrors.aliyun.com/almalinux", FeedByPrelude},
|
{&Ali, "https://mirrors.aliyun.com/almalinux", FeedByPrelude},
|
||||||
{&Volcengine, "https://mirrors.volces.com/almalinux", FeedByPrelude},
|
{&Volcengine, "https://mirrors.volces.com/almalinux", FeedByPrelude},
|
||||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/almalinux", FeedByPrelude},
|
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/almalinux", FeedByPrelude},
|
||||||
{&Zju, "https://mirrors.zju.edu.cn/almalinux", FeedByPrelude},
|
{&Zju, "https://mirrors.zju.edu.cn/almalinux", FeedByPrelude},
|
||||||
{&Nju, "https://mirror.nju.edu.cn/almalinux", FeedByPrelude}
|
{&Nju, "https://mirror.nju.edu.cn/almalinux", FeedByPrelude}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
|
|
||||||
chsrc_set_provider_speed_measure_url (&upstream, "https://raw.repo.almalinux.org/almalinux/9.5/isos/x86_64/AlmaLinux-9-latest-x86_64-minimal.iso");
|
chsrc_set_provider_speed_measure_url (&UpstreamProvider, "https://raw.repo.almalinux.org/almalinux/9.5/isos/x86_64/AlmaLinux-9-latest-x86_64-minimal.iso");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,9 +26,9 @@ os_anolis_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://mirrors.openanolis.cn/anolis", DelegateToUpstream},
|
{&UpstreamProvider, "https://mirrors.openanolis.cn/anolis", DelegateToUpstream},
|
||||||
{&Ali, "https://mirrors.aliyun.com/anolis", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com/anolis", DelegateToMirror},
|
||||||
{&Hust, "https://mirrors.hust.edu.cn/anolis", DelegateToMirror}
|
{&Hust, "https://mirrors.hust.edu.cn/anolis", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,12 +29,12 @@ os_fedora_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "http://download.example/pub/fedora/linux", DelegateToUpstream},
|
{&UpstreamProvider, "http://download.example/pub/fedora/linux", DelegateToUpstream},
|
||||||
{&Ali, "https://mirrors.aliyun.com/fedora", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com/fedora", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/fedora", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/fedora", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/fedora", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/fedora", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/fedora", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/fedora", DelegateToMirror},
|
||||||
{&Tencent, "https://mirrors.tencent.com/fedora", DelegateToMirror}
|
{&Tencent, "https://mirrors.tencent.com/fedora", DelegateToMirror}
|
||||||
// {&Tencent_Intra, "https://mirrors.tencentyun.com/fedora", DelegateToMirror},
|
// {&Tencent_Intra, "https://mirrors.tencentyun.com/fedora", DelegateToMirror},
|
||||||
|
|
||||||
/* 不启用原因:过慢 */
|
/* 不启用原因:过慢 */
|
||||||
|
@ -25,7 +25,7 @@ os_rockylinux_prelude ()
|
|||||||
chef_forbid_user_define(this);
|
chef_forbid_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://dl.rockylinux.org", DelegateToUpstream},
|
{&UpstreamProvider, "https://dl.rockylinux.org", DelegateToUpstream},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/rocky", DelegateToMirror},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/rocky", DelegateToMirror},
|
||||||
{&Ali, "https://mirrors.aliyun.com/rockylinux", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com/rockylinux", DelegateToMirror},
|
||||||
{&Volcengine, "https://mirrors.volces.com/rockylinux", DelegateToMirror},
|
{&Volcengine, "https://mirrors.volces.com/rockylinux", DelegateToMirror},
|
||||||
|
@ -30,12 +30,12 @@ os_openeuler_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://repo.openeuler.org/", FeedByPrelude},
|
{&UpstreamProvider, "https://repo.openeuler.org/", FeedByPrelude},
|
||||||
{&Ali, "https://mirrors.aliyun.com/openeuler/", FeedByPrelude},
|
{&Ali, "https://mirrors.aliyun.com/openeuler/", FeedByPrelude},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/openeuler/", FeedByPrelude},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/openeuler/", FeedByPrelude},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/openeuler/", FeedByPrelude},
|
{&Ustc, "https://mirrors.ustc.edu.cn/openeuler/", FeedByPrelude},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/openeuler/", FeedByPrelude},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/openeuler/", FeedByPrelude},
|
||||||
{&Tencent, "https://mirrors.tencent.com/openeuler/", FeedByPrelude}
|
{&Tencent, "https://mirrors.tencent.com/openeuler/", FeedByPrelude}
|
||||||
// {&Tencent_Intra, "https://mirrors.tencentyun.com/openeuler/", FeedByPrelude},
|
// {&Tencent_Intra, "https://mirrors.tencentyun.com/openeuler/", FeedByPrelude},
|
||||||
|
|
||||||
/* 不启用原因:过慢 */
|
/* 不启用原因:过慢 */
|
||||||
|
@ -27,13 +27,13 @@ os_opensuse_prelude ()
|
|||||||
chef_set_note(this, NULL, NULL);
|
chef_set_note(this, NULL, NULL);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://download.opensuse.org/", DelegateToUpstream},
|
{&UpstreamProvider, "https://download.opensuse.org/", DelegateToUpstream},
|
||||||
{&Ali, "https://mirrors.aliyun.com/opensuse", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com/opensuse", DelegateToMirror},
|
||||||
{&Volcengine, "https://mirrors.volces.com/opensuse", DelegateToMirror},
|
{&Volcengine, "https://mirrors.volces.com/opensuse", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/opensuse", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/opensuse", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/opensuse", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/opensuse", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/opensuse", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/opensuse", DelegateToMirror},
|
||||||
{&Tencent, "https://mirrors.tencent.com/opensuse", DelegateToMirror}
|
{&Tencent, "https://mirrors.tencent.com/opensuse", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ os_arch_prelude ()
|
|||||||
* @note 不要给后面加 / ,因为ARM情况下,还要额外加一个 arm 后缀
|
* @note 不要给后面加 / ,因为ARM情况下,还要额外加一个 arm 后缀
|
||||||
*/
|
*/
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://repo.archlinux.org", DelegateToUpstream},
|
{&UpstreamProvider, "https://repo.archlinux.org", DelegateToUpstream},
|
||||||
{&Ali, "https://mirrors.aliyun.com/archlinux", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com/archlinux", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/archlinux", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/archlinux", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/archlinux", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/archlinux", DelegateToMirror},
|
||||||
@ -139,7 +139,7 @@ os_archlinuxcn_prelude ()
|
|||||||
|
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://repo.archlinuxcn.org/", DelegateToUpstream},
|
{&UpstreamProvider, "https://repo.archlinuxcn.org/", DelegateToUpstream},
|
||||||
{&Ali, "https://mirrors.aliyun.com/archlinuxcn/", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com/archlinuxcn/", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/archlinuxcn/", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/archlinuxcn/", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/archlinuxcn/", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/archlinuxcn/", DelegateToMirror},
|
||||||
|
@ -25,7 +25,7 @@ os_msys2_prelude ()
|
|||||||
chef_forbid_user_define(this);
|
chef_forbid_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, NULL, DelegateToUpstream},
|
{&UpstreamProvider, NULL, DelegateToUpstream},
|
||||||
{&Ali, "https://mirrors.aliyun.com/msys2", DelegateToMirror},
|
{&Ali, "https://mirrors.aliyun.com/msys2", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/msys2", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/msys2", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/msys2", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/msys2", DelegateToMirror},
|
||||||
|
@ -23,7 +23,7 @@ os_manjaro_prelude ()
|
|||||||
chef_forbid_user_define(this);
|
chef_forbid_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, NULL, DelegateToUpstream}
|
{&UpstreamProvider, NULL, DelegateToUpstream}
|
||||||
/* Manjaro uses GUI tool, no manual sources needed */
|
/* Manjaro uses GUI tool, no manual sources needed */
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ void
|
|||||||
chef_set_note ("备注说明...", "Note...");
|
chef_set_note ("备注说明...", "Note...");
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "上游地址,若维护者暂时未知,可填NULL,这个主要用于reset", DelegateToUpstream}
|
{&UpstreamProvider, "上游地址,若维护者暂时未知,可填NULL,这个主要用于reset", DelegateToUpstream}
|
||||||
{&RubyMetric, "https://rubymetirc.com/target", DelegateToMirror},
|
{&RubyMetric, "https://rubymetirc.com/target", DelegateToMirror},
|
||||||
{&RubyInstaller, "https://rubyinstaller.cn/target", DelegateToMirror},
|
{&RubyInstaller, "https://rubyinstaller.cn/target", DelegateToMirror},
|
||||||
{&Gitee, "https://gitee.com/RubyMetric/chsrc", DelegateToMirror},
|
{&Gitee, "https://gitee.com/RubyMetric/chsrc", DelegateToMirror},
|
||||||
|
@ -28,17 +28,17 @@ wr_anaconda_prelude ()
|
|||||||
chef_forbid_user_define(this);
|
chef_forbid_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://repo.anaconda.com", DelegateToUpstream},
|
{&UpstreamProvider, "https://repo.anaconda.com", DelegateToUpstream},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn", DelegateToMirror},
|
||||||
{&Bjtu, "https://mirror.bjtu.edu.cn", DelegateToMirror},
|
{&Bjtu, "https://mirror.bjtu.edu.cn", DelegateToMirror},
|
||||||
{&Nju, "https://mirror.nju.edu.cn", DelegateToMirror},
|
{&Nju, "https://mirror.nju.edu.cn", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn", DelegateToMirror},
|
||||||
{&Zju, "https://mirrors.zju.edu.cn", DelegateToMirror},
|
{&Zju, "https://mirrors.zju.edu.cn", DelegateToMirror},
|
||||||
{&Pku, "https://mirrors.pku.edu.cn", DelegateToMirror},
|
{&Pku, "https://mirrors.pku.edu.cn", DelegateToMirror},
|
||||||
{&NJTech, "https://mirrors.njtech.edu.cn", DelegateToMirror},
|
{&NJTech, "https://mirrors.njtech.edu.cn", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn", DelegateToMirror},
|
||||||
{&Sjtug_Siyuan, "https://mirror.sjtu.edu.cn", DelegateToMirror},
|
{&Sjtug_Siyuan, "https://mirror.sjtu.edu.cn", DelegateToMirror},
|
||||||
{&Lzuoss, "https://mirror.lzu.edu.cn", DelegateToMirror}
|
{&Lzuoss, "https://mirror.lzu.edu.cn", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,11 +25,11 @@ wr_cocoapods_prelude ()
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://github.com/CocoaPods/Specs.git", DelegateToUpstream},
|
{&UpstreamProvider, "https://github.com/CocoaPods/Specs.git", DelegateToUpstream},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror},
|
||||||
{&Nju, "https://mirror.nju.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror},
|
{&Nju, "https://mirror.nju.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror},
|
||||||
{&Nyist, "https://mirror.nyist.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror}
|
{&Nyist, "https://mirror.nyist.edu.cn/git/CocoaPods/Specs.git", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,9 +43,9 @@ wr_docker_prelude ()
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://hub.docker.com/", DelegateToUpstream},
|
{&UpstreamProvider, "https://hub.docker.com/", DelegateToUpstream},
|
||||||
{&DaoCloud, "https://docker.m.daocloud.io", DelegateToMirror},
|
{&DaoCloud, "https://docker.m.daocloud.io", DelegateToMirror},
|
||||||
{&Fit2Cloud, "https://docker.1panel.live", DelegateToMirror}
|
{&Fit2Cloud, "https://docker.1panel.live", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,14 +34,14 @@ wr_emacs_prelude ()
|
|||||||
"Emacs users typically only need to switch sources once and rarely call chsrc, so we only provide documentation to users");
|
"Emacs users typically only need to switch sources once and rarely call chsrc, so we only provide documentation to users");
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://elpa.gnu.org/", DelegateToUpstream},
|
{&UpstreamProvider, "https://elpa.gnu.org/", DelegateToUpstream},
|
||||||
{&MirrorZ, "https://help.mirrors.cernet.edu.cn/elpa/", DelegateToMirror},
|
{&MirrorZ, "https://help.mirrors.cernet.edu.cn/elpa/", DelegateToMirror},
|
||||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/docs/emacs-elpa", DelegateToMirror},
|
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/docs/emacs-elpa", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/elpa/", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/help/elpa/", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/help/elpa/", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/help/elpa/", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/help/elpa.html", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/help/elpa.html", DelegateToMirror},
|
||||||
{&Zju, "https://mirrors.zju.edu.cn/docs/elpa/", DelegateToMirror},
|
{&Zju, "https://mirrors.zju.edu.cn/docs/elpa/", DelegateToMirror},
|
||||||
{&EmacsChina, "https://elpamirror.emacs-china.org/", DelegateToMirror}
|
{&EmacsChina, "https://elpamirror.emacs-china.org/", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,15 +28,15 @@ wr_flatpak_prelude ()
|
|||||||
"The test file for Flathub is very small, causing inaccurate speed test results. If you know a URL suitable for speed testing, welcome to contribute: chsrc issue");
|
"The test file for Flathub is very small, causing inaccurate speed test results. If you know a URL suitable for speed testing, welcome to contribute: chsrc issue");
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://flathub.org/repo", DelegateToUpstream},
|
{&UpstreamProvider, "https://flathub.org/repo", DelegateToUpstream},
|
||||||
{&Sjtug_Siyuan, "https://mirror.sjtu.edu.cn/flathub", DelegateToMirror},
|
{&Sjtug_Siyuan, "https://mirror.sjtu.edu.cn/flathub", DelegateToMirror},
|
||||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/flathub", DelegateToMirror},
|
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/flathub", DelegateToMirror},
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
|
|
||||||
|
|
||||||
chsrc_set_provider_speed_measure_url (&upstream, "https://flathub.org/repo/flathub.gpg");
|
chsrc_set_provider_speed_measure_url (&UpstreamProvider, "https://flathub.org/repo/flathub.gpg");
|
||||||
/* upstream 默认是 ACCURATE 的,但是我们给了一个超小的文件,测速效果严重失真,所以改为 ROUGH */
|
/* upstream 默认是 ACCURATE 的,但是我们给了一个超小的文件,测速效果严重失真,所以改为 ROUGH */
|
||||||
chsrc_set_provider_speed_measure_accuracy (&upstream, ROUGH);
|
chsrc_set_provider_speed_measure_accuracy (&UpstreamProvider, ROUGH);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @note 下述上海交大两个镜像站都可使用,但实际使用时出现过无法访问的情况 (GitHub-#178),
|
* @note 下述上海交大两个镜像站都可使用,但实际使用时出现过无法访问的情况 (GitHub-#178),
|
||||||
|
@ -27,8 +27,8 @@ wr_guix_prelude ()
|
|||||||
"Currently only one source available, guixcn source availability unknown");
|
"Currently only one source available, guixcn source availability unknown");
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://git.savannah.gnu.org/git/guix.git", DelegateToUpstream},
|
{&UpstreamProvider, "https://git.savannah.gnu.org/git/guix.git", DelegateToUpstream},
|
||||||
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/git/guix.git", DelegateToMirror}
|
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/git/guix.git", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,11 +30,11 @@ wr_homebrew_prelude ()
|
|||||||
"This source switching is implemented by writing environment variables. If switching sources multiple times, please manually clean the profile file");
|
"This source switching is implemented by writing environment variables. If switching sources multiple times, please manually clean the profile file");
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://github.com/Homebrew/brew.git", DelegateToUpstream},
|
{&UpstreamProvider, "https://github.com/Homebrew/brew.git", DelegateToUpstream},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/", DelegateToMirror},
|
||||||
{&Nju, "https://mirror.nju.edu.cn/", DelegateToMirror},
|
{&Nju, "https://mirror.nju.edu.cn/", DelegateToMirror},
|
||||||
{&Nyist, "https://mirror.nyist.edu.cn/", DelegateToMirror}
|
{&Nyist, "https://mirror.nyist.edu.cn/", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,14 +24,14 @@ wr_nix_prelude ()
|
|||||||
chef_forbid_user_define(this);
|
chef_forbid_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://channels.nixos.org/", DelegateToUpstream},
|
{&UpstreamProvider, "https://channels.nixos.org/", DelegateToUpstream},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/nix-channels/", DelegateToMirror},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/nix-channels/", DelegateToMirror},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/", DelegateToMirror},
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/", DelegateToMirror},
|
||||||
{&Nju, "https://mirror.nju.edu.cn/nix-channels/", DelegateToMirror},
|
{&Nju, "https://mirror.nju.edu.cn/nix-channels/", DelegateToMirror},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/nix-channels/", DelegateToMirror},
|
{&Ustc, "https://mirrors.ustc.edu.cn/nix-channels/", DelegateToMirror},
|
||||||
{&Sjtug_Siyuan, "https://mirror.sjtu.edu.cn/nix-channels/", DelegateToMirror},
|
{&Sjtug_Siyuan, "https://mirror.sjtu.edu.cn/nix-channels/", DelegateToMirror},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/nix-channels/", DelegateToMirror},
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/nix-channels/", DelegateToMirror},
|
||||||
{&Iscas, "https://mirror.iscas.ac.cn/nix-channels/", DelegateToMirror}
|
{&Iscas, "https://mirror.iscas.ac.cn/nix-channels/", DelegateToMirror}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,22 +27,22 @@ wr_tex_prelude ()
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://ctan.org/tex-archive/systems/texlive/tlnet", DelegateToUpstream},
|
{&UpstreamProvider, "https://ctan.org/tex-archive/systems/texlive/tlnet", DelegateToUpstream},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/CTAN/systems/texlive/tlnet", DelegateToMirror},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/CTAN/systems/texlive/tlnet", DelegateToMirror},
|
||||||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/ctan/systems/texlive/tlnet",
|
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/ctan/systems/texlive/tlnet",
|
||||||
"https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"},
|
"https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"},
|
||||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet",
|
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet",
|
||||||
"https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"},
|
"https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"},
|
||||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/CTAN/systems/texlive/tlnet",
|
{&Bfsu, "https://mirrors.bfsu.edu.cn/CTAN/systems/texlive/tlnet",
|
||||||
"https://mirrors.bfsu.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"},
|
"https://mirrors.bfsu.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"},
|
||||||
{&Bjtu, "https://mirror.bjtu.edu.cn/ctan/systems/texlive/tlnet",
|
{&Bjtu, "https://mirror.bjtu.edu.cn/ctan/systems/texlive/tlnet",
|
||||||
"https://mirror.bjtu.edu.cn/ctan/systems/texlive/tlnet/archive/fandol.tar.xz"},
|
"https://mirror.bjtu.edu.cn/ctan/systems/texlive/tlnet/archive/fandol.tar.xz"},
|
||||||
{&Lzuoss, "https://mirror.lzu.edu.cn/CTAN/systems/texlive/tlnet",
|
{&Lzuoss, "https://mirror.lzu.edu.cn/CTAN/systems/texlive/tlnet",
|
||||||
"https://mirror.lzu.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"},
|
"https://mirror.lzu.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"},
|
||||||
{&Jlu, "https://mirrors.jlu.edu.cn/CTAN/systems/texlive/tlnet",
|
{&Jlu, "https://mirrors.jlu.edu.cn/CTAN/systems/texlive/tlnet",
|
||||||
"https://mirrors.jlu.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"},
|
"https://mirrors.jlu.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"},
|
||||||
{&Sustech, "https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet",
|
{&Sustech, "https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet",
|
||||||
"https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"}
|
"https://mirrors.sustech.edu.cn/CTAN/systems/texlive/tlnet/archive/fandol.tar.xz"}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,12 +23,12 @@ wr_winget_prelude ()
|
|||||||
chef_allow_user_define(this);
|
chef_allow_user_define(this);
|
||||||
|
|
||||||
def_sources_begin()
|
def_sources_begin()
|
||||||
{&upstream, "https://cdn.winget.microsoft.com/cache", NULL},
|
{&UpstreamProvider, "https://cdn.winget.microsoft.com/cache", NULL},
|
||||||
{&MirrorZ, "https://mirrors.cernet.edu.cn/winget-source", NULL},
|
{&MirrorZ, "https://mirrors.cernet.edu.cn/winget-source", NULL},
|
||||||
{&Ustc, "https://mirrors.ustc.edu.cn/winget-source", NULL},
|
{&Ustc, "https://mirrors.ustc.edu.cn/winget-source", NULL},
|
||||||
{&Nju, "https://mirror.nju.edu.cn/winget-source", NULL},
|
{&Nju, "https://mirror.nju.edu.cn/winget-source", NULL},
|
||||||
{&Nyist, "https://mirror.nyist.edu.cn/winget-source", NULL},
|
{&Nyist, "https://mirror.nyist.edu.cn/winget-source", NULL},
|
||||||
{&Xjtu, "https://mirrors.xjtu.edu.cn/winget-source", NULL}
|
{&Xjtu, "https://mirrors.xjtu.edu.cn/winget-source", NULL}
|
||||||
def_sources_end()
|
def_sources_end()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user