mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-20 18:05:08 +08:00
Update os recipes using framework v2
This commit is contained in:
@@ -1,25 +1,37 @@
|
||||
/** ------------------------------------------------------------
|
||||
* 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内核开发,属于和Debian、openSUSE、Fedora、Arch
|
||||
* 同一级别的、根社区发布的系统
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @update 2023-09-29
|
||||
*/
|
||||
static Source_t os_openkylin_sources[] =
|
||||
def_target(os_openkylin);
|
||||
|
||||
void
|
||||
os_openkylin_prelude ()
|
||||
{
|
||||
{&UpstreamProvider, "https://archive.openkylin.top/openkylin/", DelegateToUpstream},
|
||||
{&Ali, "https://mirrors.aliyun.com/openkylin/", DelegateToMirror},
|
||||
{&Netease, "https://mirrors.163.com/openkylin/", DelegateToMirror},
|
||||
};
|
||||
def_sources_n(os_openkylin);
|
||||
use_this(os_openkylin);
|
||||
|
||||
chef_set_created_on (this, "2023-09-06");
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
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
|
||||
os_openkylin_getsrc (char *option)
|
||||
@@ -50,24 +62,3 @@ os_openkylin_resetsrc (char *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);
|
||||
|
Reference in New Issue
Block a user