Update os recipes using framework v2

This commit is contained in:
Aoran Zeng 2025-08-10 09:54:52 +08:00
parent fd0907bf4b
commit d146a8a62a
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
30 changed files with 709 additions and 1083 deletions

View File

@ -46,9 +46,9 @@ chef_ensure_trailing_slash (char *str)
} }
#define chef_has_getfn() this->getfn = t##_getsrc; #define chef_has_get() this->getfn = t##_getsrc;
#define chef_has_setfn() this->setfn = t##_setsrc; #define chef_has_set() this->setfn = t##_setsrc;
#define chef_has_resetsrc() this->resetfn = t##_resetsrc; #define chef_has_reset() this->resetfn = t##_resetsrc;
void void

View File

@ -1,30 +1,42 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Shengwei Chen <414685209@qq.com>
* Contributors : Aoran Zeng <ccmywish@qq.com>
* | Yangmoooo <yangmoooo@outlook.com>
* |
* Created On : <2024-06-14>
* Last Modified : <2025-07-14>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** def_target(os_armbian);
* @update 2024-11-21
*/ void
static Source_t os_armbian_sources[] = os_armbian_prelude ()
{ {
{&UpstreamProvider, "http://apt.armbian.com", NULL}, use_this(os_armbian);
{&MirrorZ, "https://mirrors.cernet.edu.cn/armbian", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian", DelegateToMirror}, chef_set_created_on (this, "2024-06-14");
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian", DelegateToMirror}, chef_set_last_updated (this, "2025-08-10");
{&Bfsu, "https://mirrors.bfsu.edu.cn/armbian", DelegateToMirror}, chef_set_sources_last_updated (this, "2024-11-21");
{&Sustech, "https://mirrors.sustech.edu.cn/armbian", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/armbian", DelegateToMirror}, chef_set_authors (this, 1, "Shengwei Chen", "414685209@qq.com");
{&Nju, "https://mirrors.nju.edu.cn/armbian", DelegateToMirror}, chef_set_chef (this, NULL, NULL);
{&Ali, "https://mirrors.aliyun.com/armbian", DelegateToMirror}, chef_set_sous_chefs (this, 0);
}; chef_set_contributors (this, 2,
def_sources_n(os_armbian); "Aoran Zeng", "ccmywish@qq.com",
"Yangmoooo", "yangmoooo@outlook.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
def_upstream("http://apt.armbian.com");
def_sources_begin(os_armbian)
{&upstream, "http://apt.armbian.com", DelegateToUpstream},
{&MirrorZ, "https://mirrors.cernet.edu.cn/armbian", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/armbian", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/armbian", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/armbian", DelegateToMirror},
{&Sustech, "https://mirrors.sustech.edu.cn/armbian", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/armbian", DelegateToMirror},
{&Nju, "https://mirrors.nju.edu.cn/armbian", DelegateToMirror},
{&Ali, "https://mirrors.aliyun.com/armbian", DelegateToMirror}
def_sources_end()
}
void void
@ -70,21 +82,3 @@ os_armbian_resetsrc (char *option)
{ {
os_armbian_setsrc (option); os_armbian_setsrc (option);
} }
Feature_t
os_armbian_feat (char *option)
{
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
f.cap_locally = CanNot;
f.can_english = true;
f.can_user_define = true;
return f;
}
def_target_gsrf(os_armbian);

View File

@ -1,63 +1,68 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com>
* | Heng Guo <2085471348@qq.com>
* Contributors : Yangmoooo <yangmoooo@outlook.com>
* | GitHub Copilot <https://github.com/copilot>
* |
* Created On : <2023-09-02>
* Major Revision : 3
* Last Modified : <2025-07-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
#define OS_Debian_Speed_URL_Postfix "/dists/bookworm/main/Contents-all.gz" #define OS_Debian_Speed_URL_Postfix "/dists/bookworm/main/Contents-all.gz"
static SourceProvider_t os_debian_upstream = def_target(os_debian);
{
def_upstream, "https://ftp.debian.org/debian/",
{NotSkip, NA, NA, "https://ftp.debian.org/debian/dists/bookworm/main/Contents-all.gz", ACCURATE} // 32MB
};
void
/** os_debian_prelude ()
* @update 2025-07-11
*/
static Source_t os_debian_sources[] =
{ {
{&os_debian_upstream, "http://deb.debian.org/debian", DelegateToUpstream}, use_this(os_debian);
chef_set_created_on (this, "2023-09-02");
chef_set_last_updated (this, "2025-08-10");
chef_set_sources_last_updated (this, "2025-07-11");
chef_set_authors (this, 2,
"Aoran Zeng", "ccmywish@qq.com",
"Heng Guo", "2085471348@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 2,
"Yangmoooo", "yangmoooo@outlook.com",
"GitHub Copilot", "https://github.com/copilot");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
def_upstream("http://deb.debian.org/debian");
def_sources_begin(os_debian)
{&upstream, "http://deb.debian.org/debian", DelegateToUpstream},
/* MirrorZ 的速度这么测也是可以的 */ /* MirrorZ 的速度这么测也是可以的 */
{&MirrorZ, "https://mirrors.cernet.edu.cn/debian/", {&MirrorZ, "https://mirrors.cernet.edu.cn/debian/",
"https://mirrors.cernet.edu.cn/debian/" OS_Debian_Speed_URL_Postfix}, "https://mirrors.cernet.edu.cn/debian/" OS_Debian_Speed_URL_Postfix},
{&Ali, "https://mirrors.aliyun.com/debian", {&Ali, "https://mirrors.aliyun.com/debian",
"https://mirrors.aliyun.com/debian" OS_Debian_Speed_URL_Postfix}, "https://mirrors.aliyun.com/debian" OS_Debian_Speed_URL_Postfix},
{&Volcengine, "https://mirrors.volces.com/debian", {&Volcengine, "https://mirrors.volces.com/debian",
"https://mirrors.volces.com/debian" OS_Debian_Speed_URL_Postfix}, "https://mirrors.volces.com/debian" OS_Debian_Speed_URL_Postfix},
{&Bfsu, "https://mirrors.bfsu.edu.cn/debian", {&Bfsu, "https://mirrors.bfsu.edu.cn/debian",
"https://mirrors.bfsu.edu.cn/debian" OS_Debian_Speed_URL_Postfix}, "https://mirrors.bfsu.edu.cn/debian" OS_Debian_Speed_URL_Postfix},
{&Ustc, "https://mirrors.ustc.edu.cn/debian", {&Ustc, "https://mirrors.ustc.edu.cn/debian",
"https://mirrors.ustc.edu.cn/debian" OS_Debian_Speed_URL_Postfix}, "https://mirrors.ustc.edu.cn/debian" OS_Debian_Speed_URL_Postfix},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/debian", {&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/debian",
"https://mirrors.tuna.tsinghua.edu.cn/debian" OS_Debian_Speed_URL_Postfix}, "https://mirrors.tuna.tsinghua.edu.cn/debian" OS_Debian_Speed_URL_Postfix},
{&Tencent, "https://mirrors.tencent.com/debian", {&Tencent, "https://mirrors.tencent.com/debian",
"https://mirrors.tencent.com/debian" OS_Debian_Speed_URL_Postfix}, "https://mirrors.tencent.com/debian" OS_Debian_Speed_URL_Postfix}
// {&Tencent_Intra, "https://mirrors.tencentyun.com/debian", FeedBySourcesPrepare}, // {&Tencent_Intra, "https://mirrors.tencentyun.com/debian", FeedBySourcesPrepare},
/* 不启用原因:过慢 */ /* 不启用原因:过慢 */
// {&Netease, "https://mirrors.163.com/debian", FeedBySourcesPrepare}, // {&Netease, "https://mirrors.163.com/debian", FeedBySourcesPrepare},
/* 不启用原因:过慢 */ /* 不启用原因:过慢 */
// {&Sohu, "https://mirrors.sohu.com/debian", FeedBySourcesPrepare} // {&Sohu, "https://mirrors.sohu.com/debian", FeedBySourcesPrepare}
}; def_sources_end()
def_sources_n(os_debian); }
void void
@ -191,23 +196,3 @@ os_debian_resetsrc (char* option)
{ {
os_debian_setsrc (option); os_debian_setsrc (option);
} }
Feature_t
os_debian_feat (char *option)
{
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = false;
f.can_user_define = true;
f.note = NULL;
return f;
}
def_target_gsrf(os_debian);

View File

@ -1,40 +1,42 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Yangmoooo <yangmoooo@outlook.com>
* | Happy Game <happygame1024@gmail.com>
* |
* Created On : <2023-09-29>
* Last Modified : <2025-07-21>
*
* Kali Linux Debian Testing branch
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static SourceProvider_t os_kali_upstream = def_target(os_kali);
{
def_upstream, "http://http.kali.org/kali",
// https://github.com/RubyMetric/chsrc/issues/121
{NotSkip, NA, NA, "https://http.kali.org/kali/dists/kali-dev/Contents-amd64.gz", ACCURATE} // 47MB
};
/** void
* @update 2025-06-20 os_kali_prelude ()
*/
static Source_t os_kali_sources[] =
{ {
{&os_kali_upstream, "http://http.kali.org/kali", DelegateToUpstream}, use_this(os_kali);
{&MirrorZ, "https://mirrors.cernet.edu.cn/kali", DelegateToMirror},
{&Ali, "https://mirrors.aliyun.com/kali", DelegateToMirror},
{&Volcengine, "https://mirrors.volces.com/kali", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/kali", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/kali", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/kali", DelegateToMirror},
chef_set_created_on (this, "2023-09-29");
chef_set_last_updated (this, "2025-08-10");
chef_set_sources_last_updated (this, "2025-06-20");
chef_set_authors (this, 1, "Heng Guo", "2085471348@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 2,
"Yangmoooo", "yangmoooo@outlook.com",
"Happy Game", "happygame1024@gmail.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
def_upstream("http://http.kali.org/kali");
def_sources_begin(os_kali)
{&upstream, "http://http.kali.org/kali", DelegateToUpstream},
{&MirrorZ, "https://mirrors.cernet.edu.cn/kali", DelegateToMirror},
{&Ali, "https://mirrors.aliyun.com/kali", DelegateToMirror},
{&Volcengine, "https://mirrors.volces.com/kali", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/kali", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.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_n(os_kali); }
void void
os_kali_getsrc (char *option) os_kali_getsrc (char *option)
@ -68,24 +70,3 @@ os_kali_resetsrc (char *option)
{ {
os_kali_setsrc (option); os_kali_setsrc (option);
} }
Feature_t
os_kali_feat (char *option)
{
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = true;
f.can_user_define = true;
f.note = NULL;
return f;
}
def_target_gsrf(os_kali);

View File

@ -1,30 +1,36 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Yangmoooo <yangmoooo@outlook.com>
* |
* Created On : <2023-09-29>
* Last Modified : <2025-07-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static SourceProvider_t os_linuxlite_upstream = def_target(os_linuxlite);
{
def_upstream, "http://repo.linuxliteos.com/linuxlite/",
{NotSkip, NA, NA, "http://repo.linuxliteos.com/linuxlite/isos/7.2/linux-lite-7.2-64bit.iso", ACCURATE} // 2.9GB
};
/** void
* @update 2024-11-21 os_linuxlite_prelude ()
*/
static Source_t os_linuxlite_sources[] =
{ {
{&os_linuxlite_upstream, "http://repo.linuxliteos.com/linuxlite/", DelegateToUpstream}, use_this(os_linuxlite);
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/", DelegateToMirror}, chef_set_created_on (this, "2023-09-29");
{&Nju, "https://mirror.nju.edu.cn/linuxliteos/", DelegateToMirror} chef_set_last_updated (this, "2025-08-10");
}; chef_set_sources_last_updated (this, "2024-11-21");
def_sources_n(os_linuxlite);
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 1,
"Yangmoooo", "yangmoooo@outlook.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
def_upstream("http://repo.linuxliteos.com/linuxlite/");
def_sources_begin(os_linuxlite)
{&upstream, "http://repo.linuxliteos.com/linuxlite/", DelegateToUpstream},
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/", DelegateToMirror},
{&Nju, "https://mirror.nju.edu.cn/linuxliteos/", DelegateToMirror}
def_sources_end()
}
void void
@ -59,24 +65,3 @@ os_linuxlite_resetsrc (char *option)
{ {
os_linuxlite_setsrc (option); os_linuxlite_setsrc (option);
} }
Feature_t
os_linuxlite_feat (char *option)
{
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = true;
f.can_user_define = true;
f.note = NULL;
return f;
}
def_target_gsrf(os_linuxlite);

View File

@ -1,36 +1,48 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Happy Game <happygame1024@gmail.com>
* |
* Created On : <2023-09-29>
* Last Modified : <2025-07-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** def_target(os_linuxmint);
* @update 2024-11-21
* @note Ubuntu的不太一样 void
*/ os_linuxmint_prelude ()
static Source_t os_linuxmint_sources[] =
{ {
{&UpstreamProvider, NULL, NULL}, use_this(os_linuxmint);
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/", DelegateToMirror},
{&Ali, "http://mirrors.aliyun.com/linuxmint-packages/", DelegateToMirror}, chef_set_created_on (this, "2023-09-29");
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/linuxmint/", DelegateToMirror}, chef_set_last_updated (this, "2025-08-10");
{&Bfsu, "https://mirrors.bfsu.edu.cn/linuxmint/", DelegateToMirror}, chef_set_sources_last_updated (this, "2024-11-21");
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/linuxmint/", DelegateToMirror},
{&Jlu, "https://mirrors.jlu.edu.cn/linuxmint/", DelegateToMirror}, chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
{&Ustc, "https://mirrors.ustc.edu.cn/linuxmint/", DelegateToMirror}, chef_set_chef (this, NULL, NULL);
{&Bjtu, "https://mirror.bjtu.edu.cn/linuxmint/", DelegateToMirror}, chef_set_sous_chefs (this, 0);
{&Zju, "https://mirrors.zju.edu.cn/linuxmint/", DelegateToMirror}, chef_set_contributors (this, 1,
{&Sustech, "https://mirrors.sustech.edu.cn/linuxmint/", DelegateToMirror}, "Happy Game", "happygame1024@gmail.com");
{&Iscas, "https://mirror.iscas.ac.cn/linuxmint/", DelegateToMirror},
{&Scau, "https://mirrors.scau.edu.cn/linuxmint/", DelegateToMirror}, chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
/* @note 实际上镜像站里的内容和Ubuntu的不太一样 */
def_upstream("http://packages.linuxmint.com");
def_sources_begin(os_linuxmint)
{&upstream, "http://packages.linuxmint.com", DelegateToUpstream},
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/", DelegateToMirror},
{&Ali, "http://mirrors.aliyun.com/linuxmint-packages/", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/linuxmint/", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/linuxmint/", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/linuxmint/", DelegateToMirror},
{&Jlu, "https://mirrors.jlu.edu.cn/linuxmint/", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/linuxmint/", DelegateToMirror},
{&Bjtu, "https://mirror.bjtu.edu.cn/linuxmint/", DelegateToMirror},
{&Zju, "https://mirrors.zju.edu.cn/linuxmint/", DelegateToMirror},
{&Sustech, "https://mirrors.sustech.edu.cn/linuxmint/", DelegateToMirror},
{&Iscas, "https://mirror.iscas.ac.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_n(os_linuxmint); }
void void
@ -70,22 +82,4 @@ os_linuxmint_setsrc (char *option)
Feature_t
os_linuxmint_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 = true;
f.note = NULL;
return f;
}
def_target_gsf(os_linuxmint);

View File

@ -1,34 +1,47 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Aoran Zeng <ccmywish@qq.com>
* | zouri <guoshuaisun@outlook.com>
* |
* Created On : <2023-09-03>
* Last Modified : <2025-07-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** def_target(os_ros);
* @update 2024-04-18
*/
static Source_t os_ros_sources[] =
{
{&UpstreamProvider, NULL, NULL},
{&Ali, "https://mirrors.aliyun.com", DelegateToMirror}, void
{&Bfsu, "https://mirrors.bfsu.edu.cn", DelegateToMirror}, os_ros_prelude ()
{&Ustc, "https://mirrors.ustc.edu.cn", DelegateToMirror}, {
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn", DelegateToMirror}, use_this(os_ros);
{&Tencent, "https://mirrors.tencent.com", DelegateToMirror},
chef_set_created_on (this, "2023-09-03");
chef_set_last_updated (this, "2025-08-10");
chef_set_sources_last_updated (this, "2024-04-18");
chef_set_authors (this, 1, "Heng Guo", "2085471348@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 2,
"Aoran Zeng", "ccmywish@qq.com",
"zouri", "guoshuaisun@outlook.com");
chef_has_get();
chef_has_set();
chef_has_reset();
this.note = "该换源方案中URL存在拼凑因此不能手动使用某URL来换源";
def_upstream("http://packages.ros.org");
def_sources_begin(os_ros)
{&upstream, "http://packages.ros.org", DelegateToUpstream},
{&Ali, "https://mirrors.aliyun.com", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn", 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_n(os_ros); }
void void
@ -62,23 +75,3 @@ os_ros_setsrc (char *option)
chsrc_determine_chgtype (ChgType_Untested); chsrc_determine_chgtype (ChgType_Untested);
chsrc_conclude (&source); chsrc_conclude (&source);
} }
Feature_t
os_ros_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 = "该换源方案中URL存在拼凑因此不能手动使用某URL来换源";
return f;
}
def_target_gsf(os_ros);

View File

@ -1,29 +1,41 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Yangmoooo <yangmoooo@outlook.com>
* Created On : <2023-09-29>
* Last Modified : <2025-07-21>
*
* Raspberry Pi OS Raspbian
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** def_target(os_raspberrypi);
* @update 2023-09-29
*/ void
static Source_t os_raspberrypi_sources[] = os_raspberrypi_prelude ()
{ {
use_this(os_raspberrypi);
chef_set_created_on (this, "2023-09-29");
chef_set_last_updated (this, "2025-08-10");
chef_set_sources_last_updated (this, "2023-09-29");
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 1,
"Yangmoooo", "yangmoooo@outlook.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetfn();
/* Raspberry Pi OS 树莓派操作系统,以前称为 Raspbian */
def_upstream("https://archive.raspberrypi.com/");
def_sources_begin(os_raspberrypi)
// https://archive.raspberrypi.org/ until Debian "bullseye" release // https://archive.raspberrypi.org/ until Debian "bullseye" release
{&UpstreamProvider, "https://archive.raspberrypi.com/", DelegateToUpstream}, {&upstream, "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_n(os_raspberrypi); }
void void
@ -60,22 +72,4 @@ os_raspberrypi_resetsrc (char *option)
} }
Feature_t
os_raspberrypi_feat (char *option)
{
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = false;
f.can_user_define = true;
f.note = NULL;
return f;
}
def_target_gsrf(os_raspberrypi);

View File

@ -1,40 +1,48 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nul None <nul@none.org>
* Created On : <2025-03-04>
* Last Modified : <2025-03-04>
*
* recipe bootstrapper
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** def_target(os_termux);
* @update 2025-03-04
*/
static Source_t
os_termux_sources[] = {
{&UpstreamProvider, NULL},
{&Ustc, "https://mirrors.ustc.edu.cn/termux/", NULL},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/termux/", NULL},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/termux/", NULL},
{&Bfsu, "https://mirrors.bfsu.edu.cn/termux/", NULL},
{&Pku, "https://mirrors.pku.edu.cn/termux/", NULL},
{&Nyist, "https://mirror.nyist.edu.cn/termux/", NULL},
{&Nju, "https://mirror.nju.edu.cn/termux/", NULL},
{&Sustech, "https://mirrors.sustech.edu.cn/termux/", NULL},
{&Iscas, "https://mirror.iscas.ac.cn/termux/", NULL},
{&Zju, "https://mirrors.zju.edu.cn/termux/", NULL},
{&Sdu, "https://mirrors.sdu.edu.cn/termux/", NULL},
{&Cqupt, "https://mirrors.cqupt.edu.cn/termux/", NULL}
}; void
def_sources_n(os_termux); os_termux_prelude ()
{
use_this(os_termux);
chef_set_created_on (this, "2025-03-04");
chef_set_last_updated (this, "2025-08-10");
chef_set_sources_last_updated (this, "2025-03-04");
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 1,
"Nul None", "nul@none.org");
chef_has_get();
chef_has_set();
chef_has_reset();
this.note = "该 recipe 存在对应的 bootstrapper";
def_upstream("https://packages.termux.org/apt/termux-main/");
def_sources_begin(os_termux)
{&upstream, "https://packages.termux.org/apt/termux-main/", DelegateToUpstream},
{&Ustc, "https://mirrors.ustc.edu.cn/termux/", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/termux/", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/termux/", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/termux/", DelegateToMirror},
{&Pku, "https://mirrors.pku.edu.cn/termux/", DelegateToMirror},
{&Nyist, "https://mirror.nyist.edu.cn/termux/", DelegateToMirror},
{&Nju, "https://mirror.nju.edu.cn/termux/", DelegateToMirror},
{&Sustech, "https://mirrors.sustech.edu.cn/termux/", DelegateToMirror},
{&Iscas, "https://mirror.iscas.ac.cn/termux/", DelegateToMirror},
{&Zju, "https://mirrors.zju.edu.cn/termux/", DelegateToMirror},
{&Sdu, "https://mirrors.sdu.edu.cn/termux/", DelegateToMirror},
{&Cqupt, "https://mirrors.cqupt.edu.cn/termux/", DelegateToMirror}
def_sources_end()
}
/**
* chsrc get termux
*/
void void
os_termux_getsrc (char *option) os_termux_getsrc (char *option)
{ {
@ -67,39 +75,8 @@ os_termux_setsrc (char *option)
chsrc_conclude (&source); chsrc_conclude (&source);
} }
/**
* chsrc reset termux
*
*
*/
void void
os_termux_resetsrc (char *option) os_termux_resetsrc (char *option)
{ {
os_termux_setsrc (option); os_termux_setsrc (option);
} }
/**
* chsrc ls termux
*/
Feature_t
os_termux_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 = false;
f.can_user_define = false;
f.note = NULL;
return f;
}
def_target_gsf(os_termux);

View File

@ -1,27 +1,39 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org>
* Created On : <2023-09-29>
* Last Modified : <2025-07-21>
*
* Trisquel基于Ubuntu开发使 Linux-libre
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** def_target(os_trisquel);
* @update 2024-11-21
*/ void
static Source_t os_trisquel_sources[] = os_trisquel_prelude ()
{ {
{&UpstreamProvider, NULL, NULL}, use_this(os_trisquel);
{&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/", DelegateToMirror},
{&Ali, "https://mirrors.aliyun.com/trisquel/", DelegateToMirror}, chef_set_created_on (this, "2023-09-29");
{&Nju, "https://mirror.nju.edu.cn/trisquel/", DelegateToMirror}, chef_set_last_updated (this, "2025-08-10");
{&Ustc, "https://mirrors.ustc.edu.cn/trisquel/", DelegateToMirror}, chef_set_sources_last_updated (this, "2024-11-21");
{&Iscas, "https://mirror.iscas.ac.cn/trisquel/", DelegateToMirror}
}; chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
def_sources_n(os_trisquel); chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 1,
"Nil Null", "nil@null.org");
chef_has_get();
chef_has_set();
chef_has_reset();
/* Trisquel基于Ubuntu开发不含任何专有软件及专有固件内核使用 Linux-libre */
def_upstream("http://archive.trisquel.info/trisquel/");
def_sources_begin(os_trisquel)
{&upstream, "http://archive.trisquel.info/trisquel/", DelegateToUpstream},
{&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/", DelegateToMirror},
{&Ali, "https://mirrors.aliyun.com/trisquel/", DelegateToMirror},
{&Nju, "https://mirror.nju.edu.cn/trisquel/", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/trisquel/", DelegateToMirror},
{&Iscas, "https://mirror.iscas.ac.cn/trisquel/", DelegateToMirror}
def_sources_end()
}
void void
@ -53,22 +65,8 @@ os_trisquel_setsrc (char *option)
} }
Feature_t void
os_trisquel_feat (char *option) os_trisquel_resetsrc (char *option)
{ {
Feature_t f = {0}; os_trisquel_setsrc (option);
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 = true;
f.note = NULL;
return f;
} }
def_target_gsf(os_trisquel);

View File

@ -1,14 +1,30 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com>
* | Heng Guo <2085471348@qq.com>
* Contributors : Zhao <1792582687@qq.com>
* |
* Created On : <2023-08-30>
* Last Modified : <2025-07-11>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
def_target(os_ubuntu);
void
os_ubuntu_prelude ()
{
use_this(os_ubuntu);
chef_set_created_on (this, "2023-08-30");
chef_set_last_updated (this, "2025-08-10");
chef_set_sources_last_updated (this, "2025-07-11");
chef_set_authors (this, 2,
"Aoran Zeng", "ccmywish@qq.com",
"Heng Guo", "2085471348@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 1,
"Zhao", "1792582687@qq.com");
chef_has_getfn;
chef_has_setfn;
chef_has_resetsrc;
#define OS_Ubuntu_Speed_URL_Postfix "/dists/noble/Contents-amd64.gz" #define OS_Ubuntu_Speed_URL_Postfix "/dists/noble/Contents-amd64.gz"
static SourceProvider_t os_ubuntu_upstream = static SourceProvider_t os_ubuntu_upstream =
@ -167,23 +183,3 @@ os_ubuntu_resetsrc (char *option)
{ {
os_ubuntu_setsrc (option); os_ubuntu_setsrc (option);
} }
Feature_t
os_ubuntu_feat (char *option)
{
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = true;
f.can_user_define = true;
f.note = NULL;
return f;
}
def_target_gsrf(os_ubuntu);

View File

@ -1,33 +1,43 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Yangmoooo <yangmoooo@outlook.com>
* Created On : <2023-09-26>
* Last Modified : <2025-07-21>
*
* deepinDeepin
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** def_target(os_deepin);
* @update 2024-09-14
*/
static Source_t os_deepin_sources[] =
{
{&UpstreamProvider, "https://community-packages.deepin.com/deepin", DelegateToUpstream},
{&Ali, "https://mirrors.aliyun.com/deepin", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/deepin", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/deepin", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/deepin", DelegateToMirror},
{&Tencent, "https://mirrors.tencent.com/deepin", DelegateToMirror},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/deepin", DelegateToMirror},
void
os_deepin_prelude ()
{
use_this(os_deepin);
chef_set_created_on (this, "2023-09-26");
chef_set_last_updated (this, "2025-08-10");
chef_set_sources_last_updated (this, "2024-09-14");
chef_set_authors (this, 1, "Heng Guo", "2085471348@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 1,
"Yangmoooo", "yangmoooo@outlook.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
def_upstream("https://community-packages.deepin.com/deepin");
def_sources_begin(os_deepin)
{&upstream, "https://community-packages.deepin.com/deepin", DelegateToUpstream},
{&Ali, "https://mirrors.aliyun.com/deepin", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/deepin", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/deepin", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/deepin", DelegateToMirror},
{&Tencent, "https://mirrors.tencent.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},
/* 不启用原因:过慢 */ /* 不启用原因:过慢 */
// {&Sohu, "https://mirrors.sohu.com/deepin", DelegateToMirror} // {&Sohu, "https://mirrors.sohu.com/deepin", DelegateToMirror}
}; def_sources_end()
def_sources_n(os_deepin); }
void void
@ -65,24 +75,3 @@ os_deepin_resetsrc (char *option)
{ {
os_deepin_setsrc (option); os_deepin_setsrc (option);
} }
Feature_t
os_deepin_feat (char *option)
{
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = true;
f.can_user_define = true;
f.note = NULL;
return f;
}
def_target_gsrf(os_deepin);

View File

@ -1,25 +1,37 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Aoran Zeng <ccmywish@qq.com>
* Created On : <2023-09-06>
* Last Modified : <2025-07-21>
*
* openKylin直接基于Linux内核开发DebianopenSUSEFedoraArch
*
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** def_target(os_openkylin);
* @update 2023-09-29
*/ void
static Source_t os_openkylin_sources[] = os_openkylin_prelude ()
{ {
{&UpstreamProvider, "https://archive.openkylin.top/openkylin/", DelegateToUpstream}, use_this(os_openkylin);
{&Ali, "https://mirrors.aliyun.com/openkylin/", DelegateToMirror},
{&Netease, "https://mirrors.163.com/openkylin/", DelegateToMirror}, chef_set_created_on (this, "2023-09-06");
}; chef_set_last_updated (this, "2025-08-10");
def_sources_n(os_openkylin); chef_set_sources_last_updated (this, "2023-09-29");
chef_set_authors (this, 1, "Heng Guo", "2085471348@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 1,
"Aoran Zeng", "ccmywish@qq.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetfn();
/* openKylin直接基于Linux内核开发属于和Debian、openSUSE、Fedora、Arch
* */
def_upstream("https://archive.openkylin.top/openkylin/");
def_sources_begin(os_openkylin)
{&upstream, "https://archive.openkylin.top/openkylin/", DelegateToUpstream},
{&Ali, "https://mirrors.aliyun.com/openkylin/", DelegateToMirror},
{&Netease, "https://mirrors.163.com/openkylin/", DelegateToMirror}
def_sources_end()
}
void void
os_openkylin_getsrc (char *option) os_openkylin_getsrc (char *option)
@ -50,24 +62,3 @@ os_openkylin_resetsrc (char *option)
{ {
os_openkylin_setsrc (option); os_openkylin_setsrc (option);
} }
Feature_t
os_openkylin_feat (char *option)
{
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = true;
f.can_user_define = true;
f.note = NULL;
return f;
}
def_target_gsrf(os_openkylin);

View File

@ -1,11 +1,5 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Yangmoooo <yangmoooo@outlook.com>
* |
* Created On : <2023-09-24>
* Last Modified : <2025-07-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static SourceProvider_t os_alpine_upstream = static SourceProvider_t os_alpine_upstream =
@ -14,24 +8,45 @@ static SourceProvider_t os_alpine_upstream =
{NotSkip, NA, NA, "https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/alpine-standard-3.21.0-x86_64.iso", ACCURATE} {NotSkip, NA, NA, "https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/alpine-standard-3.21.0-x86_64.iso", ACCURATE}
}; };
def_target(os_alpine);
/** void
* @update 2024-09-14 os_alpine_prelude ()
*/
static Source_t os_alpine_sources[] =
{ {
{&os_alpine_upstream, "http://dl-cdn.alpinelinux.org/alpine", DelegateToUpstream}, use_this(os_alpine);
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/alpine", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/alpine", DelegateToMirror}, chef_set_created_on (this, "2023-09-24");
{&Sustech, "https://mirrors.sustech.edu.cn/alpine", DelegateToMirror}, chef_set_last_updated (this, "2025-08-10");
{&Zju, "https://mirrors.zju.edu.cn/alpine", DelegateToMirror}, chef_set_sources_last_updated (this, "2024-09-14");
{&Lzuoss, "https://mirror.lzu.edu.cn/alpine", DelegateToMirror},
{&Ali, "https://mirrors.aliyun.com/alpine", DelegateToMirror}, chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
{&Tencent, "https://mirrors.cloud.tencent.com/alpine", DelegateToMirror}, chef_set_chef (this, NULL, NULL);
// {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/alpine", DelegateToMirror}, chef_set_sous_chefs (this, 0);
{&Huawei, "https://mirrors.huaweicloud.com/alpine", DelegateToMirror} chef_set_contributors (this, 1,
}; "Yangmoooo", "yangmoooo@outlook.com");
def_sources_n(os_alpine);
chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = true;
this.can_user_define = false;
this.note = NULL;
def_upstream_provider(os_alpine_upstream);
def_sources_begin()
{&upstream, "http://dl-cdn.alpinelinux.org/alpine", DelegateToUpstream},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/alpine", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/alpine", DelegateToMirror},
{&Sustech, "https://mirrors.sustech.edu.cn/alpine", DelegateToMirror},
{&Zju, "https://mirrors.zju.edu.cn/alpine", DelegateToMirror},
{&Lzuoss, "https://mirror.lzu.edu.cn/alpine", DelegateToMirror},
{&Ali, "https://mirrors.aliyun.com/alpine", DelegateToMirror},
{&Tencent, "https://mirrors.cloud.tencent.com/alpine", DelegateToMirror},
{&Huawei, "https://mirrors.huaweicloud.com/alpine", DelegateToMirror}
def_sources_end()
}
void void
@ -49,7 +64,8 @@ os_alpine_setsrc (char *option)
{ {
// chsrc_ensure_root(); // HELP: 不确定是否需要root // chsrc_ensure_root(); // HELP: 不确定是否需要root
chsrc_yield_source_and_confirm (os_alpine); use_this(os_alpine);
Source_t source = chsrc_yield_source_and_confirm (this, option);
char* cmd = xy_strjoin (3, char* cmd = xy_strjoin (3,
"sed -i 's#https\\?://dl-cdn.alpinelinux.org/alpine#", source.url, "#g' /etc/apk/repositories" "sed -i 's#https\\?://dl-cdn.alpinelinux.org/alpine#", source.url, "#g' /etc/apk/repositories"
@ -61,23 +77,3 @@ os_alpine_setsrc (char *option)
chsrc_determine_chgtype (ChgType_Untested); chsrc_determine_chgtype (ChgType_Untested);
chsrc_conclude (&source); chsrc_conclude (&source);
} }
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

@ -1,12 +1,8 @@
/** ------------------------------------------------------------ chef_set_created_on ("2023-09-03");
* SPDX-License-Identifier: GPL-3.0-or-later chef_set_authors ("Aoran Zeng <ccmywish@qq.com>", "Heng Guo <2085471348@qq.com>");
* ------------------------------------------------------------- chef_set_contributors ("Nil Null <nil@null.org>");
* File Authors : Aoran Zeng <ccmywish@qq.com> chef_has_setfn;
* | Heng Guo <2085471348@qq.com> use_this;
* Contributors : Nil Null <nil@null.org>
* Created On : <2023-09-03>
* Last Modified : <2025-07-31>
* ------------------------------------------------------------*/
/** /**
* @update 2023-09-27 * @update 2023-09-27
@ -132,22 +128,4 @@ os_freebsd_setsrc (char *option)
} }
Feature_t def_target(os_freebsd);
os_freebsd_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_freebsd);

View File

@ -1,12 +1,9 @@
/** ------------------------------------------------------------ chef_set_created_on ("2023-09-05");
* SPDX-License-Identifier: GPL-3.0-or-later chef_set_authors ("Aoran Zeng <ccmywish@qq.com>", "Heng Guo <2085471348@qq.com>");
* ------------------------------------------------------------- chef_set_contributors ("Nil Null <nil@null.org>");
* File Authors : Aoran Zeng <ccmywish@qq.com> chef_has_getfn;
* | Heng Guo <2085471348@qq.com> chef_has_setfn;
* Contributors : Nil Null <nil@null.org> use_this;
* Created On : <2023-09-05>
* Last Modified : <2025-07-31>
* ------------------------------------------------------------*/
/** /**
* @update 2025-07-31 * @update 2025-07-31
@ -64,21 +61,4 @@ os_netbsd_setsrc (char *option)
} }
Feature_t def_target(os_netbsd);
os_netbsd_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_netbsd);

View File

@ -1,12 +1,9 @@
/** ------------------------------------------------------------ chef_set_created_on ("2023-09-03");
* SPDX-License-Identifier: GPL-3.0-or-later chef_set_authors ("Heng Guo <2085471348@qq.com>", "Aoran Zeng <ccmywish@qq.com>");
* ------------------------------------------------------------- chef_set_contributors ("Nil Null <nil@null.org>");
* File Authors : Heng Guo <2085471348@qq.com> chef_has_getfn;
* | Aoran Zeng <ccmywish@qq.com> chef_has_setfn;
* Contributors : Nil Null <nil@null.org> use_this;
* Created On : <2023-09-03>
* Last Modified : <2025-07-31>
* ------------------------------------------------------------*/
/** /**
* @update 2025-07-31 * @update 2025-07-31
@ -58,22 +55,4 @@ os_openbsd_setsrc (char *option)
} }
Feature_t def_target(os_openbsd);
os_openbsd_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 = true;
f.note = NULL;
return f;
}
def_target_gsf(os_openbsd);

View File

@ -1,31 +1,43 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Aoran Zeng <ccmywish@qq.com>
* Created On : <2023-09-05>
* Last Modified : <2025-07-31>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** def_target(os_gentoo);
* @update 2025-06-20
*/
static Source_t os_gentoo_sources[] =
{
{&UpstreamProvider, NULL, NULL},
{&Ali, "mirrors.aliyun.com", DelegateToMirror },
{&Bfsu, "mirrors.bfsu.edu.cn", DelegateToMirror},
{&Ustc, "mirrors.ustc.edu.cn", DelegateToMirror},
{&Tuna, "mirrors.tuna.tsinghua.edu.cn", DelegateToMirror},
{&Tencent, "mirrors.tencent.com", DelegateToMirror},
// {&Tencent_Intra, "mirrors.tencentyun.com", DelegateToMirror},
/* 不启用原因:过慢 */ void
// {&Netease, "mirrors.163.com", DelegateToMirror}, os_gentoo_prelude ()
/* 不启用原因:过慢 */ {
// {&Sohu, "mirrors.sohu.com", DelegateToMirror} use_this(os_gentoo);
};
def_sources_n(os_gentoo); chef_set_created_on (this, "2023-09-05");
chef_set_last_updated (this, "2025-08-10");
chef_set_sources_last_updated (this, "2025-06-20");
chef_set_authors (this, 1, "Heng Guo", "2085471348@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 1,
"Aoran Zeng", "ccmywish@qq.com");
// chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = true;
this.can_user_define = false;
this.note = NULL;
def_upstream("https://www.gentoo.org/downloads/mirrors/");
def_sources_begin()
{&upstream, "rsync://rsync.gentoo.org/gentoo-portage", DelegateToUpstream},
{&Ali, "mirrors.aliyun.com", DelegateToMirror},
{&Bfsu, "mirrors.bfsu.edu.cn", DelegateToMirror},
{&Ustc, "mirrors.ustc.edu.cn", DelegateToMirror},
{&Tuna, "mirrors.tuna.tsinghua.edu.cn", DelegateToMirror},
{&Tencent, "mirrors.tencent.com", DelegateToMirror}
def_sources_end()
}
/** /**
@ -36,7 +48,8 @@ os_gentoo_setsrc (char *option)
{ {
chsrc_ensure_root (); chsrc_ensure_root ();
chsrc_yield_source_and_confirm (os_gentoo); use_this(os_gentoo);
Source_t source = chsrc_yield_source_and_confirm (this, option);
chsrc_backup ("/etc/portage/repos.conf/gentoo.conf"); chsrc_backup ("/etc/portage/repos.conf/gentoo.conf");
@ -52,24 +65,3 @@ os_gentoo_setsrc (char *option)
chsrc_determine_chgtype (ChgType_Untested); chsrc_determine_chgtype (ChgType_Untested);
chsrc_conclude (&source); chsrc_conclude (&source);
} }
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

@ -1,12 +1,5 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Yangmoooo <yangmoooo@outlook.com>
* | happy game <happygame1024@gmail.com>
* |
* Created On : <2024-08-08>
* Last Modified : <2025-07-21>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static SourceProvider_t os_openwrt_upstream = static SourceProvider_t os_openwrt_upstream =
@ -15,24 +8,46 @@ static SourceProvider_t os_openwrt_upstream =
{NotSkip, NA, NA, "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", ACCURATE} {NotSkip, NA, NA, "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", ACCURATE}
}; };
/** def_target(os_openwrt);
* @update 2024-12-14
*/
static Source_t os_openwrt_sources[] =
{
{&os_openwrt_upstream, "https://downloads.openwrt.org", DelegateToUpstream},
{&MirrorZ, "https://mirrors.cernet.edu.cn/openwrt", DelegateToMirror},
{&Ali, "https://mirrors.aliyun.com/openwrt", DelegateToMirror},
{&Tencent, "https://mirrors.cloud.tencent.com/openwrt", DelegateToMirror},
// {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/openwrt", DelegateToMirror},
{&Tuna, "https://mirror.tuna.tsinghua.edu.cn/openwrt", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/openwrt", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/openwrt", DelegateToMirror},
{&Pku, "https://mirrors.pku.edu.cn/openwrt", DelegateToMirror},
{&Sustech, "https://mirrors.sustech.edu.cn/openwrt", DelegateToMirror},
};
def_sources_n(os_openwrt); void
os_openwrt_prelude ()
{
use_this(os_openwrt);
chef_set_created_on (this, "2024-08-08");
chef_set_last_updated (this, "2025-08-10");
chef_set_sources_last_updated (this, "2024-12-14");
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 2,
"Yangmoooo", "yangmoooo@outlook.com",
"happy game", "happygame1024@gmail.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = true;
this.can_user_define = true;
this.note = NULL;
def_upstream_provider(os_openwrt_upstream);
def_sources_begin()
{&upstream, "https://downloads.openwrt.org", DelegateToUpstream},
{&MirrorZ, "https://mirrors.cernet.edu.cn/openwrt", DelegateToMirror},
{&Ali, "https://mirrors.aliyun.com/openwrt", DelegateToMirror},
{&Tencent, "https://mirrors.cloud.tencent.com/openwrt", DelegateToMirror},
{&Tuna, "https://mirror.tuna.tsinghua.edu.cn/openwrt", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/openwrt", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/openwrt", DelegateToMirror},
{&Pku, "https://mirrors.pku.edu.cn/openwrt", DelegateToMirror},
{&Sustech, "https://mirrors.sustech.edu.cn/openwrt", DelegateToMirror}
def_sources_end()
}
#define OS_OpenWRT_SourceConfig "/etc/opkg/distfeeds.conf" #define OS_OpenWRT_SourceConfig "/etc/opkg/distfeeds.conf"
@ -53,7 +68,8 @@ os_openwrt_setsrc (char *option)
{ {
chsrc_ensure_root (); chsrc_ensure_root ();
chsrc_yield_source_and_confirm (os_openwrt); use_this(os_openwrt);
Source_t source = chsrc_yield_source_and_confirm (this, option);
chsrc_backup (OS_OpenWRT_SourceConfig); chsrc_backup (OS_OpenWRT_SourceConfig);
@ -72,24 +88,3 @@ os_openwrt_resetsrc (char *option)
{ {
os_openwrt_setsrc (option); os_openwrt_setsrc (option);
} }
Feature_t
os_openwrt_feat (char *option)
{
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = true;
f.can_user_define = true;
f.note = NULL;
return f;
}
def_target_gsrf(os_openwrt);

View File

@ -1,23 +1,41 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org>
* Created On : <2023-09-29>
* Last Modified : <2025-07-14>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** def_target(os_solus);
* @update 2023-09-29
*/ void
static Source_t os_solus_sources[] = os_solus_prelude ()
{ {
{&UpstreamProvider, NULL, NULL}, use_this(os_solus);
{&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}, chef_set_created_on (this, "2023-09-29");
{&Nju, "https://mirror.nju.edu.cn/solus/packages/shannon/eopkg-index.xml.xz", DelegateToMirror} chef_set_last_updated (this, "2025-08-10");
}; chef_set_sources_last_updated (this, "2023-09-29");
def_sources_n(os_solus);
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 1,
"Nil Null", "nil@null.org");
// chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = false;
this.can_user_define = true;
this.note = NULL;
def_upstream("https://packages.getsol.us/");
def_sources_begin()
{&upstream, "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},
{&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}
def_sources_end()
}
/** /**
@ -28,7 +46,8 @@ os_solus_setsrc (char *option)
{ {
chsrc_ensure_root (); chsrc_ensure_root ();
chsrc_yield_source_and_confirm (os_solus); use_this(os_solus);
Source_t source = chsrc_yield_source_and_confirm (this, option);
char *cmd = xy_2strjoin ("eopkg add-repo Solus ", source.url); char *cmd = xy_2strjoin ("eopkg add-repo Solus ", source.url);
chsrc_run (cmd, RunOpt_Default); chsrc_run (cmd, RunOpt_Default);
@ -36,23 +55,3 @@ os_solus_setsrc (char *option)
chsrc_determine_chgtype (ChgType_Auto); chsrc_determine_chgtype (ChgType_Auto);
chsrc_conclude (&source); chsrc_conclude (&source);
} }
Feature_t
os_solus_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 = true;
f.note = NULL;
return f;
}
def_target_sf(os_solus);

View File

@ -1,11 +1,5 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Yangmoooo <yangmoooo@outlook.com>
* |
* Created On : <2023-09-24>
* Last Modified : <2025-07-14>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
static SourceProvider_t os_voidlinux_upstream = static SourceProvider_t os_voidlinux_upstream =
@ -14,17 +8,40 @@ static SourceProvider_t os_voidlinux_upstream =
{NotSkip, NA, NA, "https://repo-default.voidlinux.org/live/20240314/void-live-x86_64-musl-20240314-xfce.iso", ACCURATE} {NotSkip, NA, NA, "https://repo-default.voidlinux.org/live/20240314/void-live-x86_64-musl-20240314-xfce.iso", ACCURATE}
}; };
/** def_target(os_voidlinux);
* @update 2024-12-18
*/ void
static Source_t os_voidlinux_sources[] = os_voidlinux_prelude ()
{ {
{&os_voidlinux_upstream, "https://repo-default.voidlinux.org", DelegateToUpstream}, use_this(os_voidlinux);
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/voidlinux", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/voidlinux", DelegateToMirror}, chef_set_created_on (this, "2023-09-24");
{&Bfsu, "https://mirrors.bfsu.edu.cn/voidlinux", DelegateToMirror} chef_set_last_updated (this, "2025-08-10");
}; chef_set_sources_last_updated (this, "2024-12-18");
def_sources_n(os_voidlinux);
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 1,
"Yangmoooo", "yangmoooo@outlook.com");
chef_has_getfn();
chef_has_setfn();
chef_has_resetsrc();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = false;
this.can_user_define = true;
this.note = NULL;
def_upstream_provider(os_voidlinux_upstream);
def_sources_begin()
{&upstream, "https://repo-default.voidlinux.org", DelegateToUpstream},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/voidlinux", DelegateToMirror},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/voidlinux", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/voidlinux", DelegateToMirror}
def_sources_end()
}
void void
@ -42,7 +59,8 @@ os_voidlinux_setsrc (char *option)
{ {
chsrc_ensure_root (); chsrc_ensure_root ();
chsrc_yield_source_and_confirm (os_voidlinux); use_this(os_voidlinux);
Source_t source = chsrc_yield_source_and_confirm (this, option);
chsrc_ensure_dir ("/etc/xbps.d"); chsrc_ensure_dir ("/etc/xbps.d");
char *cmd = "cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/"; char *cmd = "cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/";
@ -70,23 +88,3 @@ os_voidlinux_resetsrc (char *option)
{ {
os_voidlinux_setsrc (option); os_voidlinux_setsrc (option);
} }
Feature_t
os_voidlinux_feat (char *option)
{
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = false;
f.can_user_define = true;
f.note = NULL;
return f;
}
def_target_gsrf(os_voidlinux);

View File

@ -1,12 +1,8 @@
/** ------------------------------------------------------------ chef_set_created_on ("2024-06-12");
* SPDX-License-Identifier: GPL-3.0-or-later chef_set_authors ("Aoran Zeng <ccmywish@qq.com>");
* ------------------------------------------------------------- chef_set_contributors ("Yangmoooo <yangmoooo@outlook.com>");
* File Authors : Aoran Zeng <ccmywish@qq.com> chef_has_setfn;
* Contributors : Yangmoooo <yangmoooo@outlook.com> use_this;
* |
* Created On : <2024-06-12>
* Last Modified : <2025-07-21>
* ------------------------------------------------------------*/
static SourceProvider_t os_almalinux_upstream = static SourceProvider_t os_almalinux_upstream =
{ {
@ -49,21 +45,4 @@ os_almalinux_setsrc (char *option)
} }
Feature_t def_target(os_almalinux);
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

@ -1,13 +1,8 @@
/** ------------------------------------------------------------ chef_set_created_on ("2023-09-24");
* SPDX-License-Identifier: GPL-3.0-or-later chef_set_authors ("Aoran Zeng <ccmywish@qq.com>");
* ------------------------------------------------------------- chef_set_contributors ("Nil Null <nil@null.org>");
* File Authors : Aoran Zeng <ccmywish@qq.com> chef_has_setfn;
* Contributors : Nil Null <nil@null.org> use_this;
* Created On : <2023-09-24>
* Last Modified : <2024-08-16>
*
* Anolis OS OpenAnolis()
* ------------------------------------------------------------*/
/** /**
* @update 2024-06-12 * @update 2024-06-12
@ -42,21 +37,4 @@ os_anolis_setsrc (char *option)
} }
Feature_t def_target(os_anolis);
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

@ -1,15 +1,9 @@
/** ------------------------------------------------------------ chef_set_created_on ("2023-09-26");
* SPDX-License-Identifier: GPL-3.0-or-later chef_set_authors ("Heng Guo <2085471348@qq.com>", "happy game <happygame1024@gmail.com>");
* ------------------------------------------------------------- chef_set_contributors ("Aoran Zeng <ccmywish@qq.com>");
* File Authors : Heng Guo <2085471348@qq.com> chef_has_setfn;
* | happy game <happygame1024@gmail.com> chef_has_resetsrc;
* Contributors : Aoran Zeng <ccmywish@qq.com> use_this;
* |
* Created On : <2023-09-26>
* Last Modified : <2025-07-21>
*
* Fedora Linux
* ------------------------------------------------------------*/
/** /**
* @update 2025-06-20 * @update 2025-06-20
@ -87,19 +81,4 @@ os_fedora_resetsrc (char *option)
} }
Feature_t def_target(os_fedora);
os_fedora_feat (char *option)
{
Feature_t f = {0};
f.can_get = false;
f.can_reset = true;
f.cap_locally = CanNot;
f.can_english = false;
f.can_user_define = true;
return f;
}
def_target_srf(os_fedora);

View File

@ -1,12 +1,9 @@
/** ------------------------------------------------------------ chef_set_created_on ("2023-09-24");
* SPDX-License-Identifier: GPL-3.0-or-later chef_set_authors ("Aoran Zeng <ccmywish@qq.com>");
* ------------------------------------------------------------- chef_set_contributors ("happy game <happygame1024@gmail.com>");
* File Authors : Aoran Zeng <ccmywish@qq.com> chef_has_setfn;
* Contributors : happy game <happygame1024@gmail.com> chef_has_resetsrc;
* | use_this;
* Created On : <2023-09-24>
* Last Modified : <2025-07-21>
* ------------------------------------------------------------*/
/** /**
* @update 2025-06-20 * @update 2025-06-20
@ -75,21 +72,4 @@ os_rockylinux_setsrc (char *option)
} }
Feature_t def_target(os_rockylinux);
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

@ -1,14 +1,8 @@
/** ------------------------------------------------------------ chef_set_created_on ("2023-09-06");
* SPDX-License-Identifier: GPL-3.0-or-later chef_set_authors ("Heng Guo <2085471348@qq.com>");
* ------------------------------------------------------------- chef_set_contributors ("Aoran Zeng <ccmywish@qq.com>", "Yangmoooo <yangmoooo@outlook.com>", "happy game <happygame1024@gmail.com>");
* File Authors : Heng Guo <2085471348@qq.com> chef_has_setfn;
* Contributors : Aoran Zeng <ccmywish@qq.com> use_this;
* | Yangmoooo <yangmoooo@outlook.com>
* | happy game <happygame1024@gmail.com>
* |
* Created On : <2023-09-06>
* Last Modified : <2025-07-21>
* ------------------------------------------------------------*/
static SourceProvider_t os_openEuler_upstream = static SourceProvider_t os_openEuler_upstream =
{ {
@ -91,22 +85,6 @@ os_openeuler_resetsrc (char *option)
/** /**
* chsrc ls openeuler * chsrc ls openeuler
*/ */
Feature_t chef_has_getfn;
os_openeuler_feat (char *option) chef_has_resetsrc;
{ def_target(os_openeuler);
Feature_t f = {0};
f.can_get = true;
f.can_reset = true;
f.cap_locally = CanNot;
f.cap_locally_explain = NULL;
f.can_english = true;
f.can_user_define = true;
f.note = NULL;
return f;
}
def_target_gsrf(os_openeuler);

View File

@ -1,33 +1,44 @@
/** ------------------------------------------------------------ /** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later * SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Aoran Zeng <ccmywish@qq.com>
* Created On : <2023-09-17>
* Major Revision : 1
* Last Modified : <2025-08-09>
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
/** def_target(os_opensuse);
* @update 2025-06-20
*/
static Source_t os_opensuse_sources[] =
{
{&UpstreamProvider, NULL, NULL},
{&Ali, "https://mirrors.aliyun.com/opensuse", DelegateToMirror},
{&Volcengine, "https://mirrors.volces.com/opensuse", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/opensuse", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/opensuse", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/opensuse", DelegateToMirror},
{&Tencent, "https://mirrors.tencent.com/opensuse", DelegateToMirror},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/opensuse", DelegateToMirror},
/* 不启用原因:过慢 */ void
// {&Netease, "https://mirrors.163.com/opensuse", DelegateToMirror}, os_opensuse_prelude ()
/* 不启用原因:过慢 */ {
// {&Sohu, "https://mirrors.sohu.com/opensuse", DelegateToMirror} use_this(os_opensuse);
};
def_sources_n(os_opensuse); chef_set_created_on (this, "2023-09-17");
chef_set_last_updated (this, "2025-08-10");
chef_set_sources_last_updated (this, "2025-06-20");
chef_set_authors (this, 1, "Heng Guo", "2085471348@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 1,
"Aoran Zeng", "ccmywish@qq.com");
// chef_has_getfn();
chef_has_setfn();
// chef_has_resetsrc();
this.cap_locally = CanNot;
this.cap_locally_explain = NULL;
this.can_english = false;
this.can_user_define = false;
this.note = NULL;
def_upstream("https://download.opensuse.org/");
def_sources_begin()
{&upstream, "https://download.opensuse.org/", DelegateToUpstream},
{&Ali, "https://mirrors.aliyun.com/opensuse", DelegateToMirror},
{&Volcengine, "https://mirrors.volces.com/opensuse", DelegateToMirror},
{&Bfsu, "https://mirrors.bfsu.edu.cn/opensuse", DelegateToMirror},
{&Ustc, "https://mirrors.ustc.edu.cn/opensuse", DelegateToMirror},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/opensuse", DelegateToMirror},
{&Tencent, "https://mirrors.tencent.com/opensuse", DelegateToMirror}
def_sources_end()
}
/** /**
@ -38,7 +49,8 @@ os_opensuse_setsrc (char *option)
{ {
// chsrc_ensure_root (); // chsrc_ensure_root ();
chsrc_yield_source_and_confirm (os_opensuse); use_this(os_opensuse);
Source_t source = chsrc_yield_source_and_confirm (this, option);
while (1) { while (1) {
chsrc_note2 ("请选择你的操作系统为:"); chsrc_note2 ("请选择你的操作系统为:");
@ -80,24 +92,3 @@ os_opensuse_setsrc (char *option)
chsrc_determine_chgtype (ChgType_Untested); chsrc_determine_chgtype (ChgType_Untested);
chsrc_conclude (&source); chsrc_conclude (&source);
} }
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);

View File

@ -1,13 +1,10 @@
/** ------------------------------------------------------------ chef_set_created_on ("2023-09-05");
* SPDX-License-Identifier: GPL-3.0-or-later chef_set_authors ("Aoran Zeng <ccmywish@qq.com>", "Heng Guo <2085471348@qq.com>");
* ------------------------------------------------------------- chef_set_contributors ("happy game <happygame1024@gmail.com>");
* File Authors : Aoran Zeng <ccmywish@qq.com> chef_has_getfn;
* | Heng Guo <2085471348@qq.com> chef_has_setfn;
* Contributors : happy game <happygame1024@gmail.com> chef_note("可额外使用 chsrc set archlinuxcn 来更换 Arch Linux CN Repository 源");
* | use_this;
* Created On : <2023-09-05>
* Last Modified : <2025-06-20>
* ------------------------------------------------------------*/
/** /**
* @update 2025-06-20 * @update 2025-06-20
@ -154,39 +151,13 @@ os_archlinuxcn_setsrc (char *option)
#undef OS_Pacman_ArchLinuxCN_MirrorList #undef OS_Pacman_ArchLinuxCN_MirrorList
Feature_t def_target_has_note("可额外使用 chsrc set arch 来更换 Arch Linux 源");
os_arch_feat (char *option) def_target(os_arch);
{
Feature_t f = {0};
f.can_get = true; chef_set_created_on ("2023-09-05");
f.can_reset = false; chef_set_authors ("Aoran Zeng <ccmywish@qq.com>", "Heng Guo <2085471348@qq.com>");
chef_set_contributors ("happy game <happygame1024@gmail.com>");
f.cap_locally = CanNot; chef_has_getfn;
f.can_english = true; chef_has_setfn;
f.can_user_define = true; chef_note("可额外使用 chsrc set arch 来更换 Arch Linux 源");
def_target(os_archlinuxcn);
f.note = "可额外使用 chsrc set archlinuxcn 来更换 Arch Linux CN Repository 源";
return f;
}
Feature_t
os_archlinuxcn_feat (char *option)
{
Feature_t f = {0};
f.can_get = true;
f.can_reset = false;
f.cap_locally = CanNot;
f.can_english = true;
f.can_user_define = true;
f.note = "可额外使用 chsrc set arch 来更换 Arch Linux 源";
return f;
}
def_target_gsf(os_arch);
def_target_gsf(os_archlinuxcn);

View File

@ -1,11 +1,8 @@
/** ------------------------------------------------------------ chef_set_created_on ("2023-09-06");
* SPDX-License-Identifier: GPL-3.0-or-later chef_set_authors ("Heng Guo <2085471348@qq.com>");
* ------------------------------------------------------------- chef_set_contributors ("Aoran Zeng <ccmywish@qq.com>");
* File Authors : Heng Guo <2085471348@qq.com> chef_has_setfn;
* Contributors : Aoran Zeng <ccmywish@qq.com> use_this;
* Created On : <2023-09-06>
* Last Modified : <2025-06-20>
* ------------------------------------------------------------*/
/** /**
* @update 2025-06-20 * @update 2025-06-20
@ -55,20 +52,4 @@ os_msys2_setsrc (char *option)
} }
Feature_t def_target(os_msys2);
os_msys2_feat (char *option)
{
Feature_t f = {0};
f.can_get = false;
f.can_reset = false;
f.cap_locally = CanNot;
f.can_english = false;
f.can_user_define = true;
f.note = NULL;
return f;
}
def_target_sf(os_msys2);

View File

@ -1,13 +1,8 @@
/** ------------------------------------------------------------ chef_set_created_on ("2023-09-06");
* SPDX-License-Identifier: GPL-3.0-or-later chef_set_authors ("Heng Guo <2085471348@qq.com>");
* ------------------------------------------------------------- chef_set_contributors ("Nil Null <nil@null.org>");
* File Authors : Heng Guo <2085471348@qq.com> chef_has_setfn;
* Contributors : Nil Null <nil@null.org> use_this;
* Created On : <2023-09-06>
* Last Modified : <2024-08-16>
*
* Manjaro LinuxManjaroArch Linux
* ------------------------------------------------------------*/
/** /**
* GUI * GUI
@ -25,4 +20,4 @@ os_manjaro_setsrc (char *option)
chsrc_conclude (NULL); chsrc_conclude (NULL);
} }
Target_t os_manjaro_target = {NULL, os_manjaro_setsrc, NULL, NULL, 0}; def_target(os_manjaro);