Skip to content

Commit c7015c6

Browse files
committed
Update OS recipes
1 parent 78e863a commit c7015c6

File tree

10 files changed

+308
-106
lines changed

10 files changed

+308
-106
lines changed

src/recipe/os/APT/Kali-Linux.c

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* | Happy Game <[email protected]>
77
* |
88
* Created On : <2023-09-29>
9-
* Last Modified : <2025-06-20>
9+
* Last Modified : <2025-07-21>
1010
*
1111
* Kali Linux 基于 Debian Testing branch
1212
* ------------------------------------------------------------*/
@@ -23,14 +23,16 @@ static SourceProvider_t os_kali_upstream =
2323
*/
2424
static Source_t os_kali_sources[] =
2525
{
26-
{&os_kali_upstream, "http://http.kali.org/kali"},
27-
{&MirrorZ, "https://mirrors.cernet.edu.cn/kali"},
28-
{&Ali, "https://mirrors.aliyun.com/kali"},
29-
{&Volcengine, "https://mirrors.volces.com/kali"},
30-
{&Bfsu, "https://mirrors.bfsu.edu.cn/kali"},
31-
{&Ustc, "https://mirrors.ustc.edu.cn/kali"},
32-
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/kali"},
33-
// {&Huawei, "https://mirrors.huaweicloud.com/kali"}, // 未与上游同步
26+
{&os_kali_upstream, "http://http.kali.org/kali", DelegateToUpstream},
27+
{&MirrorZ, "https://mirrors.cernet.edu.cn/kali", DelegateToMirror},
28+
{&Ali, "https://mirrors.aliyun.com/kali", DelegateToMirror},
29+
{&Volcengine, "https://mirrors.volces.com/kali", DelegateToMirror},
30+
{&Bfsu, "https://mirrors.bfsu.edu.cn/kali", DelegateToMirror},
31+
{&Ustc, "https://mirrors.ustc.edu.cn/kali", DelegateToMirror},
32+
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/kali", DelegateToMirror},
33+
34+
/* 不启用原因: 未与上游同步 */
35+
// {&Huawei, "https://mirrors.huaweicloud.com/kali", DelegateToMirror},
3436
};
3537
def_sources_n(os_kali);
3638

@@ -60,4 +62,30 @@ os_kali_setsrc (char *option)
6062
chsrc_conclude (&source);
6163
}
6264

63-
def_target(os_kali);
65+
66+
void
67+
os_kali_resetsrc (char *option)
68+
{
69+
os_kali_setsrc (option);
70+
}
71+
72+
73+
Feature_t
74+
os_kali_feat (char *option)
75+
{
76+
Feature_t f = {0};
77+
78+
f.can_get = true;
79+
f.can_reset = true;
80+
81+
f.cap_locally = CanNot;
82+
f.cap_locally_explain = NULL;
83+
84+
f.can_english = true;
85+
f.can_user_define = true;
86+
87+
f.note = NULL;
88+
return f;
89+
}
90+
91+
def_target_gsrf(os_kali);

src/recipe/os/APT/Linux-Lite.c

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Contributors : Yangmoooo <[email protected]>
66
* |
77
* Created On : <2023-09-29>
8-
* Last Modified : <2024-12-18>
8+
* Last Modified : <2025-07-21>
99
* ------------------------------------------------------------*/
1010

1111
static SourceProvider_t os_linuxlite_upstream =
@@ -19,10 +19,10 @@ static SourceProvider_t os_linuxlite_upstream =
1919
*/
2020
static Source_t os_linuxlite_sources[] =
2121
{
22-
{&os_linuxlite_upstream, "http://repo.linuxliteos.com/linuxlite/"},
23-
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/"},
24-
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/"},
25-
{&Nju, "https://mirror.nju.edu.cn/linuxliteos/"}
22+
{&os_linuxlite_upstream, "http://repo.linuxliteos.com/linuxlite/", DelegateToUpstream},
23+
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxliteos/", DelegateToMirror},
24+
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/linuxliteos/", DelegateToMirror},
25+
{&Nju, "https://mirror.nju.edu.cn/linuxliteos/", DelegateToMirror}
2626
};
2727
def_sources_n(os_linuxlite);
2828

@@ -53,4 +53,30 @@ os_linuxlite_setsrc (char *option)
5353
chsrc_conclude (&source);
5454
}
5555

56-
def_target(os_linuxlite);
56+
57+
void
58+
os_linuxlite_resetsrc (char *option)
59+
{
60+
os_linuxlite_setsrc (option);
61+
}
62+
63+
64+
Feature_t
65+
os_linuxlite_feat (char *option)
66+
{
67+
Feature_t f = {0};
68+
69+
f.can_get = true;
70+
f.can_reset = true;
71+
72+
f.cap_locally = CanNot;
73+
f.cap_locally_explain = NULL;
74+
75+
f.can_english = true;
76+
f.can_user_define = true;
77+
78+
f.note = NULL;
79+
return f;
80+
}
81+
82+
def_target_gsrf(os_linuxlite);

src/recipe/os/APT/Linux-Mint.c

Lines changed: 37 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Contributors : Happy Game <[email protected]>
66
* |
77
* Created On : <2023-09-29>
8-
* Last Modified : <2025-01-07>
8+
* Last Modified : <2025-07-21>
99
* ------------------------------------------------------------*/
1010

1111
/**
@@ -14,20 +14,21 @@
1414
*/
1515
static Source_t os_linuxmint_sources[] =
1616
{
17-
{&UpstreamProvider, NULL},
18-
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/"},
19-
{&Ali, "http://mirrors.aliyun.com/linuxmint-packages/"},
20-
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/linuxmint/"},
21-
{&Bfsu, "https://mirrors.bfsu.edu.cn/linuxmint/"},
22-
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/linuxmint/"},
23-
{&Jlu, "https://mirrors.jlu.edu.cn/linuxmint/"},
24-
{&Ustc, "https://mirrors.ustc.edu.cn/linuxmint/"},
25-
{&Bjtu, "https://mirror.bjtu.edu.cn/linuxmint/"},
26-
{&Zju, "https://mirrors.zju.edu.cn/linuxmint/"},
27-
{&Sustech, "https://mirrors.sustech.edu.cn/linuxmint/"},
28-
{&Iscas, "https://mirror.iscas.ac.cn/linuxmint/"},
29-
{&Scau, "https://mirrors.scau.edu.cn/linuxmint/"},
30-
// {&Netease, "https://mirrors.163.com/linuxmint/packages/"} /* 不启用原因:过慢 */
17+
{&UpstreamProvider, NULL, NULL},
18+
{&MirrorZ, "https://mirrors.cernet.edu.cn/linuxmint/", DelegateToMirror},
19+
{&Ali, "http://mirrors.aliyun.com/linuxmint-packages/", DelegateToMirror},
20+
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/linuxmint/", DelegateToMirror},
21+
{&Bfsu, "https://mirrors.bfsu.edu.cn/linuxmint/", DelegateToMirror},
22+
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/linuxmint/", DelegateToMirror},
23+
{&Jlu, "https://mirrors.jlu.edu.cn/linuxmint/", DelegateToMirror},
24+
{&Ustc, "https://mirrors.ustc.edu.cn/linuxmint/", DelegateToMirror},
25+
{&Bjtu, "https://mirror.bjtu.edu.cn/linuxmint/", DelegateToMirror},
26+
{&Zju, "https://mirrors.zju.edu.cn/linuxmint/", DelegateToMirror},
27+
{&Sustech, "https://mirrors.sustech.edu.cn/linuxmint/", DelegateToMirror},
28+
{&Iscas, "https://mirror.iscas.ac.cn/linuxmint/", DelegateToMirror},
29+
{&Scau, "https://mirrors.scau.edu.cn/linuxmint/", DelegateToMirror},
30+
/* 不启用原因:过慢 */
31+
// {&Netease, "https://mirrors.163.com/linuxmint/packages/", DelegateToMirror}
3132
};
3233
def_sources_n(os_linuxmint);
3334

@@ -67,4 +68,24 @@ os_linuxmint_setsrc (char *option)
6768
chsrc_warn2 ("已自动更换mint主要源, 但mint也使用基于debian或ubuntu的基础源, 可参考对应的debian或ubuntu换源方法进行手动换源");
6869
}
6970

70-
def_target(os_linuxmint);
71+
72+
73+
Feature_t
74+
os_linuxmint_feat (char *option)
75+
{
76+
Feature_t f = {0};
77+
78+
f.can_get = true;
79+
f.can_reset = false;
80+
81+
f.cap_locally = CanNot;
82+
f.cap_locally_explain = NULL;
83+
84+
f.can_english = true;
85+
f.can_user_define = true;
86+
87+
f.note = NULL;
88+
return f;
89+
}
90+
91+
def_target_gsf(os_linuxmint);

src/recipe/os/APT/ROS.c

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,27 @@
66
* | zouri <[email protected]>
77
* |
88
* Created On : <2023-09-03>
9-
* Last Modified : <2024-12-06>
9+
* Last Modified : <2025-07-21>
1010
* ------------------------------------------------------------*/
1111

1212
/**
1313
* @update 2024-04-18
1414
*/
1515
static Source_t os_ros_sources[] =
1616
{
17-
{&UpstreamProvider, NULL},
18-
{&Ali, "https://mirrors.aliyun.com"},
19-
{&Bfsu, "https://mirrors.bfsu.edu.cn"},
20-
{&Ustc, "https://mirrors.ustc.edu.cn"},
21-
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn"},
22-
{&Tencent, "https://mirrors.tencent.com"},
23-
// {&Tencent_Intra, "https://mirrors.tencentyun.com"},
24-
{&Huawei, "https://mirrors.huaweicloud.com"},
25-
// {&Netease, "https://mirrors.163.com"}, /* 不启用原因:过慢 */
26-
// {&Sohu, "https://mirrors.sohu.com"} /* 不启用原因:过慢 */
17+
{&UpstreamProvider, NULL, NULL},
18+
19+
{&Ali, "https://mirrors.aliyun.com", DelegateToMirror},
20+
{&Bfsu, "https://mirrors.bfsu.edu.cn", DelegateToMirror},
21+
{&Ustc, "https://mirrors.ustc.edu.cn", DelegateToMirror},
22+
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn", DelegateToMirror},
23+
{&Tencent, "https://mirrors.tencent.com", DelegateToMirror},
24+
// {&Tencent_Intra, "https://mirrors.tencentyun.com", DelegateToMirror},
25+
{&Huawei, "https://mirrors.huaweicloud.com", DelegateToMirror},
26+
/* 不启用原因:过慢 */
27+
// {&Netease, "https://mirrors.163.com", DelegateToMirror},
28+
/* 不启用原因:过慢 */
29+
// {&Sohu, "https://mirrors.sohu.com", DelegateToMirror}
2730
};
2831
def_sources_n(os_ros);
2932

src/recipe/os/APT/Raspberry-Pi-OS.c

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* File Authors : Aoran Zeng <[email protected]>
55
* Contributors : Yangmoooo <[email protected]>
66
* Created On : <2023-09-29>
7-
* Last Modified : <2024-10-02>
7+
* Last Modified : <2025-07-21>
88
*
99
* Raspberry Pi OS 树莓派操作系统,以前称为 Raspbian
1010
* ------------------------------------------------------------*/
@@ -14,13 +14,14 @@
1414
*/
1515
static Source_t os_raspberrypi_sources[] =
1616
{
17-
{&UpstreamProvider, "https://archive.raspberrypi.com/"}, // https://archive.raspberrypi.org/ until Debian "bullseye" release
18-
{&MirrorZ, "https://mirrors.cernet.edu.cn/raspberrypi/"},
19-
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/"},
20-
{&Bfsu, "https://mirrors.bfsu.edu.cn/raspberrypi/"},
21-
{&Ustc, "https://mirrors.ustc.edu.cn/raspberrypi/"},
22-
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/raspberrypi/"},
23-
{&Sustech, "https://mirrors.sustech.edu.cn/raspberrypi/"}
17+
// https://archive.raspberrypi.org/ until Debian "bullseye" release
18+
{&UpstreamProvider, "https://archive.raspberrypi.com/", DelegateToUpstream},
19+
{&MirrorZ, "https://mirrors.cernet.edu.cn/raspberrypi/", DelegateToMirror},
20+
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/", DelegateToMirror},
21+
{&Bfsu, "https://mirrors.bfsu.edu.cn/raspberrypi/", DelegateToMirror},
22+
{&Ustc, "https://mirrors.ustc.edu.cn/raspberrypi/", DelegateToMirror},
23+
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/raspberrypi/", DelegateToMirror},
24+
{&Sustech, "https://mirrors.sustech.edu.cn/raspberrypi/", DelegateToMirror}
2425
};
2526
def_sources_n(os_raspberrypi);
2627

@@ -51,4 +52,30 @@ os_raspberrypi_setsrc (char *option)
5152
chsrc_conclude (&source);
5253
}
5354

54-
def_target(os_raspberrypi);
55+
56+
void
57+
os_raspberrypi_resetsrc (char *option)
58+
{
59+
os_raspberrypi_setsrc (option);
60+
}
61+
62+
63+
Feature_t
64+
os_raspberrypi_feat (char *option)
65+
{
66+
Feature_t f = {0};
67+
68+
f.can_get = true;
69+
f.can_reset = true;
70+
71+
f.cap_locally = CanNot;
72+
f.cap_locally_explain = NULL;
73+
74+
f.can_english = false;
75+
f.can_user_define = true;
76+
77+
f.note = NULL;
78+
return f;
79+
}
80+
81+
def_target_gsrf(os_raspberrypi);

src/recipe/os/APT/Trisquel.c

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* File Authors : Aoran Zeng <[email protected]>
55
* Contributors : Nil Null <[email protected]>
66
* Created On : <2023-09-29>
7-
* Last Modified : <2024-11-21>
7+
* Last Modified : <2025-07-21>
88
*
99
* Trisquel基于Ubuntu开发,不含任何专有软件及专有固件,内核使用 Linux-libre
1010
* ------------------------------------------------------------*/
@@ -14,12 +14,12 @@
1414
*/
1515
static Source_t os_trisquel_sources[] =
1616
{
17-
{&UpstreamProvider, NULL},
18-
{&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/"},
19-
{&Ali, "https://mirrors.aliyun.com/trisquel/"},
20-
{&Nju, "https://mirror.nju.edu.cn/trisquel/"},
21-
{&Ustc, "https://mirrors.ustc.edu.cn/trisquel/"},
22-
{&Iscas, "https://mirror.iscas.ac.cn/trisquel/"}
17+
{&UpstreamProvider, NULL, NULL},
18+
{&MirrorZ, "https://mirrors.cernet.edu.cn/trisquel/", DelegateToMirror},
19+
{&Ali, "https://mirrors.aliyun.com/trisquel/", DelegateToMirror},
20+
{&Nju, "https://mirror.nju.edu.cn/trisquel/", DelegateToMirror},
21+
{&Ustc, "https://mirrors.ustc.edu.cn/trisquel/", DelegateToMirror},
22+
{&Iscas, "https://mirror.iscas.ac.cn/trisquel/", DelegateToMirror}
2323
};
2424
def_sources_n(os_trisquel);
2525

@@ -32,7 +32,7 @@ os_trisquel_getsrc (char *option)
3232

3333

3434
/**
35-
* @consult: https://help.mirrors.cernet.edu.cn/trisquel/
35+
* @consult https://help.mirrors.cernet.edu.cn/trisquel/
3636
*/
3737
void
3838
os_trisquel_setsrc (char *option)
@@ -53,4 +53,22 @@ os_trisquel_setsrc (char *option)
5353
}
5454

5555

56-
def_target(os_trisquel);
56+
Feature_t
57+
os_trisquel_feat (char *option)
58+
{
59+
Feature_t f = {0};
60+
61+
f.can_get = true;
62+
f.can_reset = false;
63+
64+
f.cap_locally = CanNot;
65+
f.cap_locally_explain = NULL;
66+
67+
f.can_english = true;
68+
f.can_user_define = true;
69+
70+
f.note = NULL;
71+
return f;
72+
}
73+
74+
def_target_gsf(os_trisquel);

0 commit comments

Comments
 (0)