help: netbsd: init

This commit is contained in:
Jiajie Chen 2023-01-30 11:00:14 +08:00
parent f65da05366
commit b39dea34b3
3 changed files with 26 additions and 0 deletions

View File

@ -298,6 +298,8 @@ mirror_desc:
desc: NixOS 的安装镜像和虚拟机镜像
- name: openbsd
desc: OpenBSD 软件包镜像源
- name: netbsd
desc: NetBSD 系统镜像源
- name: u.sb
desc: 为 Debian / Ubuntu 编译的最新版 nginx
- name: nodejs-release

View File

@ -24,6 +24,7 @@ echo http://{{ site.hostname }}/pkgsrc/packages/NetBSD/amd64/9.3/All > /usr/pkg/
注意该镜像不包括 joyent 内容,即 `MacOS``SmartOS``Linux` 中二进制包。
### distfile 使用
如果想使用该镜像的 distfile 强制替换全部 distfile 的下载路径,编辑`$PKGSRCDIR/mk/defaults/mk.conf`,并添加
```
MASTER_SITE_BACKUP= https://{{ site.hostname }}/pkgsrc/distfiles/

View File

@ -0,0 +1,23 @@
---
category: help
layout: help
mirrorid: NetBSD
---
## NetBSD 镜像使用帮助
### pkgsrc
修改 `/usr/pkg/etc/pkgin/repositories.conf` 内容为:
```
https://{{ site.hostname }}/pkgsrc/packages/NetBSD/$arch/9.3/All
```
### sysupgrade
升级 NetBSD 时,指定 sysupgrade 的下载地址为镜像源,以 NetBSD 9.3 amd64 为例:
```shell
sysupgrade auto https://{{ site.hostname }}/NetBSD/NetBSD-9.3/amd64
```