Skip to content

Commit f17a1c7

Browse files
committed
Update recipes
1 parent 60ce1ba commit f17a1c7

File tree

4 files changed

+42
-25
lines changed

4 files changed

+42
-25
lines changed

src/chsrc-main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
* | BingChunMoLi <[email protected]>
3333
* |
3434
* Created On : <2023-08-28>
35-
* Last Modified : <2025-07-28>
35+
* Last Modified : <2025-07-31>
3636
*
3737
* chsrc: Change Source —— 全平台通用命令行换源工具
3838
* ------------------------------------------------------------*/
3939

40-
#define Chsrc_Version "0.2.2.1-dev1"
41-
#define Chsrc_Release_Date "2025/07/26"
40+
#define Chsrc_Version "0.2.2.1-dev2"
41+
#define Chsrc_Release_Date "2025/07/31"
4242
#define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc"
4343
#define Chsrc_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc"
4444

@@ -803,4 +803,4 @@ main (int argc, char const *argv[])
803803
chsrc_error (msg);
804804
return Exit_Unknown;
805805
}
806-
}
806+
}

src/recipe/lang/PHP.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,19 @@
44
* File Authors : Aoran Zeng <[email protected]>
55
* Contributors : Nil Null <[email protected]>
66
* Created On : <2023-08-30>
7-
* Last Modified : <2024-11-22>
7+
* Last Modified : <2025-07-31>
88
* ------------------------------------------------------------*/
99

1010
/**
1111
* @update 2024-09-14
12-
* @note 缺少教育网或开源社区软件源
1312
*/
1413
static Source_t pl_php_sources[] =
1514
{
16-
{&UpstreamProvider, NULL},
17-
{&Ali, "https://mirrors.aliyun.com/composer/"},
18-
{&Tencent, "https://mirrors.tencent.com/composer/"},
19-
// {&Tencent_Intra, "https://mirrors.tencentyun.com/composer/"},
20-
{&Huawei, "https://mirrors.huaweicloud.com/repository/php/"}
15+
{&UpstreamProvider, NULL, NULL},
16+
{&Ali, "https://mirrors.aliyun.com/composer/", DelegateToMirror},
17+
{&Tencent, "https://mirrors.tencent.com/composer/", DelegateToMirror},
18+
// {&Tencent_Intra, "https://mirrors.tencentyun.com/composer/", DelegateToMirror},
19+
{&Huawei, "https://mirrors.huaweicloud.com/repository/php/", DelegateToMirror}
2120
};
2221
def_sources_n(pl_php);
2322

src/recipe/os/BSD/FreeBSD.c

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,27 @@
55
* | Heng Guo <[email protected]>
66
* Contributors : Nil Null <[email protected]>
77
* Created On : <2023-09-03>
8-
* Last Modified : <2024-08-16>
8+
* Last Modified : <2025-07-31>
99
* ------------------------------------------------------------*/
1010

1111
/**
1212
* @update 2023-09-27
1313
*
14-
* @note {
14+
* @note
1515
* 2023-09-24: 以下三个USTC, NJU, Netease 均维护了 freebsd-pkg freebsd-ports
1616
* 2023-09-27: 请务必保持Nju前面有至少一个镜像,原因请查看 freebsd 的换源函数
17-
* }
1817
*/
1918
static Source_t os_freebsd_sources[] =
2019
{
21-
{&UpstreamProvider, NULL},
22-
{&Ustc, "mirrors.ustc.edu.cn"},
23-
{&Nju, "mirror.nju.edu.cn"},
24-
{&Netease, "mirrors.163.com"},
20+
{&UpstreamProvider, NULL, NULL},
21+
{&Ustc, "mirrors.ustc.edu.cn", DelegateToMirror},
22+
{&Nju, "mirror.nju.edu.cn", DelegateToMirror},
23+
{&Netease, "mirrors.163.com", DelegateToMirror},
2524
};
2625
def_sources_n(os_freebsd);
2726

2827
/**
29-
* 参考:
28+
* @consult
3029
* 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
3130
* 2. https://help.mirrors.cernet.edu.cn/FreeBSD-ports/
3231
*
@@ -64,9 +63,9 @@ os_freebsd_setsrc (char *option)
6463
br();
6564

6665
chsrc_log2 ("2. 修改 freebsd-ports 源");
67-
// @ccmywish: [2023-09-27] 据 @ykla , NJU的freebsd-ports源没有设置 Git,
68-
// 但是我认为由于使用Git还是要比非Git方便许多,我们尽可能坚持使用Git
69-
// 而 gitup 又要额外修改它自己的配置,比较麻烦
66+
// @ccmywish: 2023-09-27 据 @ykla , NJU的freebsd-ports源没有设置 Git,
67+
// 但是我认为由于使用Git还是要比非Git方便许多,我们尽可能坚持使用Git
68+
// 而 gitup 又要额外修改它自己的配置,比较麻烦
7069
bool git_exist = query_program_exist (xy_str_to_quietcmd ("git version"), "git", Noisy_When_Exist|Noisy_When_NonExist);
7170
if (git_exist)
7271
{
@@ -132,4 +131,23 @@ os_freebsd_setsrc (char *option)
132131
chsrc_conclude (&source);
133132
}
134133

135-
def_target_s(os_freebsd);
134+
135+
Feature_t
136+
os_freebsd_feat (char *option)
137+
{
138+
Feature_t f = {0};
139+
140+
f.can_get = false;
141+
f.can_reset = false;
142+
143+
f.cap_locally = CanNot;
144+
f.cap_locally_explain = NULL;
145+
f.can_english = false;
146+
f.can_user_define = false;
147+
148+
f.note = NULL;
149+
return f;
150+
}
151+
152+
153+
def_target_sf(os_freebsd);

src/recipe/os/Gentoo-Linux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
* File Authors : Heng Guo <[email protected]>
55
* Contributors : Aoran Zeng <[email protected]>
66
* Created On : <2023-09-05>
7-
* Last Modified : <2025-07-21>
7+
* Last Modified : <2025-07-31>
88
* ------------------------------------------------------------*/
99

1010
/**
1111
* @update 2025-06-20
1212
*/
1313
static Source_t os_gentoo_sources[] =
1414
{
15-
{&UpstreamProvider, NULL},
15+
{&UpstreamProvider, NULL, NULL},
1616
{&Ali, "mirrors.aliyun.com", DelegateToMirror },
1717
{&Bfsu, "mirrors.bfsu.edu.cn", DelegateToMirror},
1818
{&Ustc, "mirrors.ustc.edu.cn", DelegateToMirror},

0 commit comments

Comments
 (0)