mirror of
https://github.com/RubyMetric/chsrc
synced 2025-08-01 14:49:31 +08:00
Update recipes
This commit is contained in:
parent
60ce1ba580
commit
f17a1c70b8
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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},
|
||||
|
Loading…
x
Reference in New Issue
Block a user