Update OS recipes

This commit is contained in:
Aoran Zeng 2025-07-21 18:54:07 +08:00
parent cf32d388fe
commit a3a8127543
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
9 changed files with 217 additions and 92 deletions

View File

@ -5,7 +5,7 @@
* Contributors : Yangmoooo <yangmoooo@outlook.com> * Contributors : Yangmoooo <yangmoooo@outlook.com>
* | * |
* Created On : <2023-09-24> * Created On : <2023-09-24>
* Last Modified : <2024-12-18> * Last Modified : <2025-07-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static SourceProvider_t os_alpine_upstream = static SourceProvider_t os_alpine_upstream =
@ -20,16 +20,16 @@ static SourceProvider_t os_alpine_upstream =
*/ */
static Source_t os_alpine_sources[] = static Source_t os_alpine_sources[] =
{ {
{&os_alpine_upstream, "http://dl-cdn.alpinelinux.org/alpine"}, {&os_alpine_upstream, "http://dl-cdn.alpinelinux.org/alpine", DelegateToUpstream},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/alpine"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/alpine", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/alpine"}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/alpine", DelegateToMirror},
{&Sustech, "https://mirrors.sustech.edu.cn/alpine"}, {&Sustech, "https://mirrors.sustech.edu.cn/alpine", DelegateToMirror},
{&Zju, "https://mirrors.zju.edu.cn/alpine"}, {&Zju, "https://mirrors.zju.edu.cn/alpine", DelegateToMirror},
{&Lzuoss, "https://mirror.lzu.edu.cn/alpine"}, {&Lzuoss, "https://mirror.lzu.edu.cn/alpine", DelegateToMirror},
{&Ali, "https://mirrors.aliyun.com/alpine"}, {&Ali, "https://mirrors.aliyun.com/alpine", DelegateToMirror},
{&Tencent, "https://mirrors.cloud.tencent.com/alpine"}, {&Tencent, "https://mirrors.cloud.tencent.com/alpine", DelegateToMirror},
// {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/alpine"}, // {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/alpine", DelegateToMirror},
{&Huawei, "https://mirrors.huaweicloud.com/alpine"} {&Huawei, "https://mirrors.huaweicloud.com/alpine", DelegateToMirror}
}; };
def_sources_n(os_alpine); def_sources_n(os_alpine);
@ -40,6 +40,7 @@ os_alpine_getsrc (char *option)
chsrc_view_file ("/etc/apk/repositories"); chsrc_view_file ("/etc/apk/repositories");
} }
/** /**
* @consult https://help.mirrors.cernet.edu.cn/alpine/ * @consult https://help.mirrors.cernet.edu.cn/alpine/
*/ */
@ -61,4 +62,22 @@ os_alpine_setsrc (char *option)
chsrc_conclude (&source); chsrc_conclude (&source);
} }
def_target(os_alpine);
Feature_t
os_alpine_feat (char *option)
{
Feature_t f = {0};
f.can_get = true;
f.can_reset = false;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = true;
f.can_user_define = false;
f.note = NULL;
return f;
}
def_target_gsf(os_alpine);

View File

@ -4,7 +4,7 @@
* File Authors : Heng Guo <2085471348@qq.com> * File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Aoran Zeng <ccmywish@qq.com> * Contributors : Aoran Zeng <ccmywish@qq.com>
* Created On : <2023-09-05> * Created On : <2023-09-05>
* Last Modified : <2025-06-20> * Last Modified : <2025-07-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
@ -13,14 +13,17 @@
static Source_t os_gentoo_sources[] = static Source_t os_gentoo_sources[] =
{ {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL},
{&Ali, "mirrors.aliyun.com"}, {&Ali, "mirrors.aliyun.com", DelegateToMirror },
{&Bfsu, "mirrors.bfsu.edu.cn"}, {&Bfsu, "mirrors.bfsu.edu.cn", DelegateToMirror},
{&Ustc, "mirrors.ustc.edu.cn"}, {&Ustc, "mirrors.ustc.edu.cn", DelegateToMirror},
{&Tuna, "mirrors.tuna.tsinghua.edu.cn"}, {&Tuna, "mirrors.tuna.tsinghua.edu.cn", DelegateToMirror},
{&Tencent, "mirrors.tencent.com"}, {&Tencent, "mirrors.tencent.com", DelegateToMirror},
// {&Tencent_Intra, "mirrors.tencentyun.com"}, // {&Tencent_Intra, "mirrors.tencentyun.com", DelegateToMirror},
// {&Netease, "mirrors.163.com"}, /* 不启用原因:过慢 */
// {&Sohu, "mirrors.sohu.com"} /* 不启用原因:过慢 */ /* 不启用原因:过慢 */
// {&Netease, "mirrors.163.com", DelegateToMirror},
/* 不启用原因:过慢 */
// {&Sohu, "mirrors.sohu.com", DelegateToMirror}
}; };
def_sources_n(os_gentoo); def_sources_n(os_gentoo);
@ -50,4 +53,23 @@ os_gentoo_setsrc (char *option)
chsrc_conclude (&source); chsrc_conclude (&source);
} }
def_target_s(os_gentoo);
Feature_t
os_gentoo_feat (char *option)
{
Feature_t f = {0};
f.can_get = false;
f.can_reset = false;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = true;
f.can_user_define = false;
f.note = NULL;
return f;
}
def_target_sf(os_gentoo);

View File

@ -6,7 +6,7 @@
* | happy game <happygame1024@gmail.com> * | happy game <happygame1024@gmail.com>
* | * |
* Created On : <2024-08-08> * Created On : <2024-08-08>
* Last Modified : <2024-12-18> * Last Modified : <2025-07-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static SourceProvider_t os_openwrt_upstream = static SourceProvider_t os_openwrt_upstream =
@ -20,16 +20,16 @@ static SourceProvider_t os_openwrt_upstream =
*/ */
static Source_t os_openwrt_sources[] = static Source_t os_openwrt_sources[] =
{ {
{&os_openwrt_upstream, "https://downloads.openwrt.org"}, {&os_openwrt_upstream, "https://downloads.openwrt.org", DelegateToUpstream},
{&MirrorZ, "https://mirrors.cernet.edu.cn/openwrt"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/openwrt", DelegateToMirror},
{&Ali, "https://mirrors.aliyun.com/openwrt"}, {&Ali, "https://mirrors.aliyun.com/openwrt", DelegateToMirror},
{&Tencent, "https://mirrors.cloud.tencent.com/openwrt"}, {&Tencent, "https://mirrors.cloud.tencent.com/openwrt", DelegateToMirror},
// {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/openwrt"}, // {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/openwrt", DelegateToMirror},
{&Tuna, "https://mirror.tuna.tsinghua.edu.cn/openwrt"}, {&Tuna, "https://mirror.tuna.tsinghua.edu.cn/openwrt", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/openwrt"}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/openwrt", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/openwrt"}, {&Ustc, "https://mirrors.ustc.edu.cn/openwrt", DelegateToMirror},
{&Pku, "https://mirrors.pku.edu.cn/openwrt"}, {&Pku, "https://mirrors.pku.edu.cn/openwrt", DelegateToMirror},
{&Sustech, "https://mirrors.sustech.edu.cn/openwrt"}, {&Sustech, "https://mirrors.sustech.edu.cn/openwrt", DelegateToMirror},
}; };
def_sources_n(os_openwrt); def_sources_n(os_openwrt);

View File

@ -5,7 +5,7 @@
* Contributors : Yangmoooo <yangmoooo@outlook.com> * Contributors : Yangmoooo <yangmoooo@outlook.com>
* | * |
* Created On : <2024-06-12> * Created On : <2024-06-12>
* Last Modified : <2024-12-18> * Last Modified : <2025-07-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static SourceProvider_t os_almalinux_upstream = static SourceProvider_t os_almalinux_upstream =
@ -19,17 +19,17 @@ static SourceProvider_t os_almalinux_upstream =
*/ */
static Source_t os_almalinux_sources[] = static Source_t os_almalinux_sources[] =
{ {
{&os_almalinux_upstream , "http://repo.almalinux.org/almalinux"}, {&os_almalinux_upstream , "http://repo.almalinux.org/almalinux", DelegateToUpstream},
{&Ali, "https://mirrors.aliyun.com/almalinux"}, {&Ali, "https://mirrors.aliyun.com/almalinux", DelegateToMirror},
{&Volcengine, "https://mirrors.volces.com/almalinux"}, {&Volcengine, "https://mirrors.volces.com/almalinux", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/almalinux"}, {&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/almalinux", DelegateToMirror},
{&Zju, "https://mirrors.zju.edu.cn/almalinux"}, {&Zju, "https://mirrors.zju.edu.cn/almalinux", DelegateToMirror},
{&Nju, "https://mirror.nju.edu.cn/almalinux"}, {&Nju, "https://mirror.nju.edu.cn/almalinux", DelegateToMirror},
}; };
def_sources_n(os_almalinux); def_sources_n(os_almalinux);
/** /**
* : https://developer.aliyun.com/mirror/almalinux * @consult: https://developer.aliyun.com/mirror/almalinux
*/ */
void void
os_almalinux_setsrc (char *option) os_almalinux_setsrc (char *option)
@ -48,4 +48,22 @@ os_almalinux_setsrc (char *option)
chsrc_conclude (&source); chsrc_conclude (&source);
} }
def_target_s(os_almalinux);
Feature_t
os_almalinux_feat (char *option)
{
Feature_t f = {0};
f.can_get = false;
f.can_reset = false;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = true;
f.can_user_define = false;
f.note = NULL;
return f;
}
def_target_sf(os_almalinux);

View File

@ -14,15 +14,15 @@
*/ */
static Source_t os_anolis_sources[] = static Source_t os_anolis_sources[] =
{ {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL, NULL},
{&Ali, "https://mirrors.aliyun.com/anolis"}, {&Ali, "https://mirrors.aliyun.com/anolis", DelegateToMirror},
{&Hust, "https://mirrors.hust.edu.cn/anolis"} {&Hust, "https://mirrors.hust.edu.cn/anolis", DelegateToMirror}
}; };
def_sources_n(os_anolis); def_sources_n(os_anolis);
/** /**
* : https://mirrors.hust.edu.cn/docs/anolis * @consult: https://mirrors.hust.edu.cn/docs/anolis
*/ */
void void
os_anolis_setsrc (char *option) os_anolis_setsrc (char *option)
@ -41,4 +41,22 @@ os_anolis_setsrc (char *option)
chsrc_conclude (&source); chsrc_conclude (&source);
} }
def_target_s(os_anolis);
Feature_t
os_anolis_feat (char *option)
{
Feature_t f = {0};
f.can_get = false;
f.can_reset = false;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = true;
f.can_user_define = false;
f.note = NULL;
return f;
}
def_target_sf(os_anolis);

View File

@ -6,7 +6,7 @@
* Contributors : Aoran Zeng <ccmywish@qq.com> * Contributors : Aoran Zeng <ccmywish@qq.com>
* | * |
* Created On : <2023-09-26> * Created On : <2023-09-26>
* Last Modified : <2025-06-20> * Last Modified : <2025-07-21>
* *
* Fedora Linux * Fedora Linux
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
@ -16,15 +16,18 @@
*/ */
static Source_t os_fedora_sources[] = static Source_t os_fedora_sources[] =
{ {
{&UpstreamProvider, "http://download.example/pub/fedora/linux"}, {&UpstreamProvider, "http://download.example/pub/fedora/linux", DelegateToUpstream},
{&Ali, "https://mirrors.aliyun.com/fedora"}, {&Ali, "https://mirrors.aliyun.com/fedora", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/fedora"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/fedora", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/fedora"}, {&Ustc, "https://mirrors.ustc.edu.cn/fedora", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/fedora"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/fedora", DelegateToMirror},
{&Tencent, "https://mirrors.tencent.com/fedora"}, {&Tencent, "https://mirrors.tencent.com/fedora", DelegateToMirror},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/fedora"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/fedora", DelegateToMirror},
// {&Netease, "https://mirrors.163.com/fedora"}, /* 不启用原因:过慢 */
// {&Sohu, "https://mirrors.sohu.com/fedora"} /* 不启用原因:过慢 */ /* 不启用原因:过慢 */
// {&Netease, "https://mirrors.163.com/fedora", DelegateToMirror},
/* 不启用原因:过慢 */
// {&Sohu, "https://mirrors.sohu.com/fedora", DelegateToMirror}"
}; };
def_sources_n(os_fedora); def_sources_n(os_fedora);
@ -99,4 +102,4 @@ os_fedora_feat (char *option)
return f; return f;
} }
def_target_sf(os_fedora); def_target_srf(os_fedora);

View File

@ -5,7 +5,7 @@
* Contributors : happy game <happygame1024@gmail.com> * Contributors : happy game <happygame1024@gmail.com>
* | * |
* Created On : <2023-09-24> * Created On : <2023-09-24>
* Last Modified : <2025-06-20> * Last Modified : <2025-07-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
@ -13,16 +13,19 @@
*/ */
static Source_t os_rockylinux_sources[] = static Source_t os_rockylinux_sources[] =
{ {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL, NULL},
{&MirrorZ, "https://mirrors.cernet.edu.cn/rocky"}, {&MirrorZ, "https://mirrors.cernet.edu.cn/rocky", DelegateToMirror},
{&Ali, "https://mirrors.aliyun.com/rockylinux"}, {&Ali, "https://mirrors.aliyun.com/rockylinux", DelegateToMirror},
{&Volcengine, "https://mirrors.volces.com/rockylinux"}, {&Volcengine, "https://mirrors.volces.com/rockylinux", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rocky"}, {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/rocky", DelegateToMirror},
{&Sustech, "https://mirrors.sustech.edu.cn/rocky-linux"}, {&Sustech, "https://mirrors.sustech.edu.cn/rocky-linux", DelegateToMirror},
{&Zju, "https://mirrors.zju.edu.cn/rocky"}, {&Zju, "https://mirrors.zju.edu.cn/rocky", DelegateToMirror},
{&Lzuoss, "https://mirror.lzu.edu.cn/rocky"}, {&Lzuoss, "https://mirror.lzu.edu.cn/rocky", DelegateToMirror},
// {&Netease, "https://mirrors.163.com/rocky"}, /* 不启用原因:过慢 */
// {&Sohu, "https://mirrors.sohu.com/Rocky"} /* 不启用原因:过慢 */ /* 不启用原因:过慢 */
// {&Netease, "https://mirrors.163.com/rocky", DelegateToMirror},
/* 不启用原因:过慢 */
// {&Sohu, "https://mirrors.sohu.com/Rocky", DelegateToMirror}
}; };
def_sources_n(os_rockylinux); def_sources_n(os_rockylinux);
@ -72,4 +75,21 @@ os_rockylinux_setsrc (char *option)
} }
def_target_s(os_rockylinux); Feature_t
os_rockylinux_feat (char *option)
{
Feature_t f = {0};
f.can_get = false;
f.can_reset = false;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = true;
f.can_user_define = false;
f.note = NULL;
return f;
}
def_target_sf(os_rockylinux);

View File

@ -7,7 +7,7 @@
* | happy game <happygame1024@gmail.com> * | happy game <happygame1024@gmail.com>
* | * |
* Created On : <2023-09-06> * Created On : <2023-09-06>
* Last Modified : <2025-06-20> * Last Modified : <2025-07-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static SourceProvider_t os_openEuler_upstream = static SourceProvider_t os_openEuler_upstream =
@ -22,15 +22,18 @@ static SourceProvider_t os_openEuler_upstream =
*/ */
static Source_t os_openeuler_sources[] = static Source_t os_openeuler_sources[] =
{ {
{&os_openEuler_upstream, "https://repo.openeuler.org/"}, {&os_openEuler_upstream, "https://repo.openeuler.org/", DelegateToUpstream},
{&Ali, "https://mirrors.aliyun.com/openeuler/"}, {&Ali, "https://mirrors.aliyun.com/openeuler/", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/openeuler/"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/openeuler/", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/openeuler/"}, {&Ustc, "https://mirrors.ustc.edu.cn/openeuler/", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/openeuler/"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/openeuler/", DelegateToMirror},
{&Tencent, "https://mirrors.tencent.com/openeuler/"}, {&Tencent, "https://mirrors.tencent.com/openeuler/", DelegateToMirror},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/openeuler/"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/openeuler/", DelegateToMirror},
// {&Netease, "https://mirrors.163.com/openeuler/"} /* 不启用原因:过慢 */
// {&Sohu, "https://mirrors.sohu.com/openeuler/"} /* 不启用原因:过慢 */ /* 不启用原因:过慢 */
// {&Netease, "https://mirrors.163.com/openeuler/", DelegateToMirror}
/* 不启用原因:过慢 */
// {&Sohu, "https://mirrors.sohu.com/openeuler/", DelegateToMirror}
}; };
def_sources_n(os_openeuler); def_sources_n(os_openeuler);

View File

@ -4,7 +4,7 @@
* File Authors : Heng Guo <2085471348@qq.com> * File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Aoran Zeng <ccmywish@qq.com> * Contributors : Aoran Zeng <ccmywish@qq.com>
* Created On : <2023-09-17> * Created On : <2023-09-17>
* Last Modified : <2025-06-20> * Last Modified : <2025-07-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** /**
@ -12,16 +12,19 @@
*/ */
static Source_t os_opensuse_sources[] = static Source_t os_opensuse_sources[] =
{ {
{&UpstreamProvider, NULL}, {&UpstreamProvider, NULL, NULL},
{&Ali, "https://mirrors.aliyun.com/opensuse"}, {&Ali, "https://mirrors.aliyun.com/opensuse", DelegateToMirror},
{&Volcengine, "https://mirrors.volces.com/opensuse"}, {&Volcengine, "https://mirrors.volces.com/opensuse", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/opensuse"}, {&Bfsu, "https://mirrors.bfsu.edu.cn/opensuse", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/opensuse"}, {&Ustc, "https://mirrors.ustc.edu.cn/opensuse", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/opensuse"}, {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/opensuse", DelegateToMirror},
{&Tencent, "https://mirrors.tencent.com/opensuse"}, {&Tencent, "https://mirrors.tencent.com/opensuse", DelegateToMirror},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/opensuse"}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/opensuse", DelegateToMirror},
// {&Netease, "https://mirrors.163.com/opensuse"}, /* 不启用原因:过慢 */
// {&Sohu, "https://mirrors.sohu.com/opensuse"} /* 不启用原因:过慢 */ /* 不启用原因:过慢 */
// {&Netease, "https://mirrors.163.com/opensuse", DelegateToMirror},
/* 不启用原因:过慢 */
// {&Sohu, "https://mirrors.sohu.com/opensuse", DelegateToMirror}
}; };
def_sources_n(os_opensuse); def_sources_n(os_opensuse);
@ -80,4 +83,23 @@ os_opensuse_setsrc (char *option)
chsrc_conclude (&source); chsrc_conclude (&source);
} }
def_target_s(os_opensuse);
Feature_t
os_opensuse_feat (char *option)
{
Feature_t f = {0};
f.can_get = false;
f.can_reset = false;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = false;
f.can_user_define = false;
f.note = NULL;
return f;
}
def_target_sf(os_opensuse);