Skip to content

Real-time network monitor + outbound firewall — see & block every connection. Privacy-first, local-first, Rust fleet agent, SIEM exports, 8 languages. / Moniteur réseau temps réel + pare-feu sortant, agent de flotte Rust, exports SIEM. 100 % local.

Make nfpm packaging actually build (validated locally)

MoneyLisa52d2812ef383
diff --git a/.gitignore b/.gitignore
index 1a91508..1a7f2c1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -36,3 +36,4 @@ logs/
.DS_Store
*.log
.env
+staging/
diff --git a/packaging/nfpm.yaml b/packaging/nfpm.yaml
index fabe215..b657e47 100644
--- a/packaging/nfpm.yaml
+++ b/packaging/nfpm.yaml
@@ -34,18 +34,13 @@ contents:
type: config|noreplace
overrides:
rpm:
- dependencies:
+ depends:
- python3
- libpcap
deb:
- dependencies:
+ depends:
- python3
- python3-venv
- libpcap0.8
scripts:
- postinstall: |
- #!/bin/sh
- id snitch >/dev/null 2>&1 || \
- useradd --system --no-create-home --shell /usr/sbin/nologin snitch
- systemctl daemon-reload >/dev/null 2>&1 || true
- echo "Enable with: systemctl enable --now snitch"
+ postinstall: packaging/postinstall.sh
diff --git a/packaging/postinstall.sh b/packaging/postinstall.sh
new file mode 100644
index 0000000..977db7f
--- /dev/null
+++ b/packaging/postinstall.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+# EN: nfpm postinstall — create the dedicated service user and reload
+# systemd so the shipped unit is known. Never fails the install.
+# FR: postinstall nfpm — crée l'utilisateur de service dédié et recharge
+# systemd pour que l'unité fournie soit connue. Ne fait jamais
+# échouer l'installation.
+id snitch >/dev/null 2>&1 || \
+ useradd --system --no-create-home --shell /usr/sbin/nologin snitch
+systemctl daemon-reload >/dev/null 2>&1 || true
+echo "Enable with: systemctl enable --now snitch"