Update recipes

This commit is contained in:
Aoran Zeng 2025-07-31 16:56:16 +08:00
parent 60ce1ba580
commit f17a1c70b8
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
4 changed files with 42 additions and 25 deletions

View File

@ -32,13 +32,13 @@
* | BingChunMoLi <bingchunmoli@bingchunmoli.com>
* |
* Created On : <2023-08-28>
* Last Modified : <2025-07-28>
* Last Modified : <2025-07-31>
*
* chsrc: Change Source
* ------------------------------------------------------------*/
#define Chsrc_Version "0.2.2.1-dev1"
#define Chsrc_Release_Date "2025/07/26"
#define Chsrc_Version "0.2.2.1-dev2"
#define Chsrc_Release_Date "2025/07/31"
#define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc"
#define Chsrc_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc"
@ -803,4 +803,4 @@ not_matched:
chsrc_error (msg);
return Exit_Unknown;
}
}
}

View File

@ -4,20 +4,19 @@
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org>
* Created On : <2023-08-30>
* Last Modified : <2024-11-22>
* Last Modified : <2025-07-31>
* ------------------------------------------------------------*/
/**
* @update 2024-09-14
* @note
*/
static Source_t pl_php_sources[] =
{
{&UpstreamProvider, NULL},
{&Ali, "https://mirrors.aliyun.com/composer/"},
{&Tencent, "https://mirrors.tencent.com/composer/"},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/composer/"},
{&Huawei, "https://mirrors.huaweicloud.com/repository/php/"}
{&UpstreamProvider, NULL, NULL},
{&Ali, "https://mirrors.aliyun.com/composer/", DelegateToMirror},
{&Tencent, "https://mirrors.tencent.com/composer/", DelegateToMirror},
// {&Tencent_Intra, "https://mirrors.tencentyun.com/composer/", DelegateToMirror},
{&Huawei, "https://mirrors.huaweicloud.com/repository/php/", DelegateToMirror}
};
def_sources_n(pl_php);

View File

@ -5,28 +5,27 @@
* | Heng Guo <2085471348@qq.com>
* Contributors : Nil Null <nil@null.org>
* Created On : <2023-09-03>
* Last Modified : <2024-08-16>
* Last Modified : <2025-07-31>
* ------------------------------------------------------------*/
/**
* @update 2023-09-27
*
* @note {
* @note
* 2023-09-24: USTC, NJU, Netease freebsd-pkg freebsd-ports
* 2023-09-27: Nju前面有至少一个镜像 freebsd
* }
*/
static Source_t os_freebsd_sources[] =
{
{&UpstreamProvider, NULL},
{&Ustc, "mirrors.ustc.edu.cn"},
{&Nju, "mirror.nju.edu.cn"},
{&Netease, "mirrors.163.com"},
{&UpstreamProvider, NULL, NULL},
{&Ustc, "mirrors.ustc.edu.cn", DelegateToMirror},
{&Nju, "mirror.nju.edu.cn", DelegateToMirror},
{&Netease, "mirrors.163.com", DelegateToMirror},
};
def_sources_n(os_freebsd);
/**
* :
* @consult
* 1. https://book.bsdcn.org/di-3-zhang-ruan-jian-yuan-ji-bao-guan-li-qi/di-3.2-jie-freebsd-huan-yuan-fang-shi.html
* 2. https://help.mirrors.cernet.edu.cn/FreeBSD-ports/
*
@ -64,9 +63,9 @@ os_freebsd_setsrc (char *option)
br();
chsrc_log2 ("2. 修改 freebsd-ports 源");
// @ccmywish: [2023-09-27] 据 @ykla , NJU的freebsd-ports源没有设置 Git
// 但是我认为由于使用Git还是要比非Git方便许多我们尽可能坚持使用Git
// 而 gitup 又要额外修改它自己的配置,比较麻烦
// @ccmywish: 2023-09-27 据 @ykla , NJU的freebsd-ports源没有设置 Git
// 但是我认为由于使用Git还是要比非Git方便许多我们尽可能坚持使用Git
// 而 gitup 又要额外修改它自己的配置,比较麻烦
bool git_exist = query_program_exist (xy_str_to_quietcmd ("git version"), "git", Noisy_When_Exist|Noisy_When_NonExist);
if (git_exist)
{
@ -132,4 +131,23 @@ os_freebsd_setsrc (char *option)
chsrc_conclude (&source);
}
def_target_s(os_freebsd);
Feature_t
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

@ -4,7 +4,7 @@
* File Authors : Heng Guo <2085471348@qq.com>
* Contributors : Aoran Zeng <ccmywish@qq.com>
* Created On : <2023-09-05>
* Last Modified : <2025-07-21>
* Last Modified : <2025-07-31>
* ------------------------------------------------------------*/
/**
@ -12,7 +12,7 @@
*/
static Source_t os_gentoo_sources[] =
{
{&UpstreamProvider, NULL},
{&UpstreamProvider, NULL, NULL},
{&Ali, "mirrors.aliyun.com", DelegateToMirror },
{&Bfsu, "mirrors.bfsu.edu.cn", DelegateToMirror},
{&Ustc, "mirrors.ustc.edu.cn", DelegateToMirror},