Пакет: убрать docker.io из metadata и улучшить help/docs layout
Удалён Recommends: docker.io из control. Ужесточено предупреждение, что --install не является production-path. В .deb docs переведены на repo-like структуру (/usr/share/doc/awg2-harness/repo/...), чтобы не ломались относительные ссылки.
This commit is contained in:
+9
-7
@@ -70,8 +70,8 @@ Flags:
|
||||
--skip-fmt Skip cargo fmt --check
|
||||
--help Show this help
|
||||
Notes:
|
||||
--install is for manual source-tree installs (staging/debug).
|
||||
Preferred production flow is package-based deployment via apt install ./awg2-harness_<version>_amd64.deb
|
||||
--install is not the production deployment path; it is for manual source-tree installs (staging/debug).
|
||||
Use generated .deb packages on production hosts: apt install ./awg2-harness_<version>_amd64.deb
|
||||
EOF
|
||||
}
|
||||
|
||||
@@ -295,13 +295,16 @@ package_deb() {
|
||||
install -d -m 0755 "$staging/DEBIAN"
|
||||
install -d -m 0755 "$staging/usr/sbin"
|
||||
install -d -m 0755 "$staging/lib/systemd/system"
|
||||
install -d -m 0755 "$staging/usr/share/doc/awg2-harness"
|
||||
install -d -m 0755 "$staging/usr/share/doc/awg2-harness/repo"
|
||||
install -d -m 0755 "$staging/usr/share/doc/awg2-harness/repo/docs"
|
||||
install -d -m 0755 "$staging/usr/share/doc/awg2-harness/repo/tools"
|
||||
|
||||
install -m 0755 "$TARGET_BIN" "$staging/usr/sbin/awg2-harness"
|
||||
install -m 0644 "$ROOT_DIR/awg2-harness.service" "$staging/lib/systemd/system/awg2-harness.service"
|
||||
install -m 0644 "$ROOT_DIR/config.example.toml" "$staging/usr/share/doc/awg2-harness/config.example.toml"
|
||||
install -m 0644 "$ROOT_DIR/README.md" "$staging/usr/share/doc/awg2-harness/README.md"
|
||||
install -m 0644 "$ROOT_DIR/docs/INSTALLATION.md" "$staging/usr/share/doc/awg2-harness/INSTALLATION.md"
|
||||
install -m 0644 "$ROOT_DIR/config.example.toml" "$staging/usr/share/doc/awg2-harness/repo/config.example.toml"
|
||||
install -m 0644 "$ROOT_DIR/README.md" "$staging/usr/share/doc/awg2-harness/repo/README.md"
|
||||
install -m 0644 "$ROOT_DIR/docs/INSTALLATION.md" "$staging/usr/share/doc/awg2-harness/repo/docs/INSTALLATION.md"
|
||||
install -m 0644 "$ROOT_DIR/tools/README.md" "$staging/usr/share/doc/awg2-harness/repo/tools/README.md"
|
||||
|
||||
cat >"$staging/DEBIAN/control" <<EOF
|
||||
Package: awg2-harness
|
||||
@@ -311,7 +314,6 @@ Priority: optional
|
||||
Architecture: amd64
|
||||
Maintainer: AWG2 Harness
|
||||
Depends: libc6, iproute2, wireguard-tools, nftables, kmod, util-linux, procps, systemd
|
||||
Recommends: docker.io
|
||||
Description: Host-side orchestrator for AmneziaWG traffic shaping and lifecycle recovery
|
||||
AWG2 Harness manages AmneziaWG traffic shaping, IFB ingress shaping,
|
||||
nftables anti-torrent guard, reboot scheduling, swap setup and daemonized
|
||||
|
||||
Reference in New Issue
Block a user