|
5 | 5 | * | Heng Guo <2085471348@qq.com> |
6 | 6 | * Contributors : Nil Null <nil@null.org> |
7 | 7 | * Created On : <2023-09-03> |
8 | | - * Last Modified : <2024-08-16> |
| 8 | + * Last Modified : <2025-07-31> |
9 | 9 | * ------------------------------------------------------------*/ |
10 | 10 |
|
11 | 11 | /** |
12 | 12 | * @update 2023-09-27 |
13 | 13 | * |
14 | | - * @note { |
| 14 | + * @note |
15 | 15 | * 2023-09-24: 以下三个USTC, NJU, Netease 均维护了 freebsd-pkg freebsd-ports |
16 | 16 | * 2023-09-27: 请务必保持Nju前面有至少一个镜像,原因请查看 freebsd 的换源函数 |
17 | | - * } |
18 | 17 | */ |
19 | 18 | static Source_t os_freebsd_sources[] = |
20 | 19 | { |
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}, |
25 | 24 | }; |
26 | 25 | def_sources_n(os_freebsd); |
27 | 26 |
|
28 | 27 | /** |
29 | | - * 参考: |
| 28 | + * @consult |
30 | 29 | * 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 |
31 | 30 | * 2. https://help.mirrors.cernet.edu.cn/FreeBSD-ports/ |
32 | 31 | * |
@@ -64,9 +63,9 @@ os_freebsd_setsrc (char *option) |
64 | 63 | br(); |
65 | 64 |
|
66 | 65 | 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 又要额外修改它自己的配置,比较麻烦 |
70 | 69 | bool git_exist = query_program_exist (xy_str_to_quietcmd ("git version"), "git", Noisy_When_Exist|Noisy_When_NonExist); |
71 | 70 | if (git_exist) |
72 | 71 | { |
@@ -132,4 +131,23 @@ os_freebsd_setsrc (char *option) |
132 | 131 | chsrc_conclude (&source); |
133 | 132 | } |
134 | 133 |
|
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); |
0 commit comments