From a1a6a73c564aadd7b6e8725dba35e6b3a4222419 Mon Sep 17 00:00:00 2001 From: Hanketsu Date: Sat, 22 Feb 2025 15:54:35 +0100 Subject: battering: Fix iptables on opensnitch daemon. * battering/packages/opensnitch.scm (go-github-com-evilsocket-opensnitch-daemon) [arguments] Add new phase 'fix-iptables-path. [inputs] Add iptables to inputs. --- battering/packages/opensnitch.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/battering/packages/opensnitch.scm b/battering/packages/opensnitch.scm index e7845cf..b2959a7 100644 --- a/battering/packages/opensnitch.scm +++ b/battering/packages/opensnitch.scm @@ -163,6 +163,12 @@ Opensnitch to monitor traffic via eBPF rules.") #:unpack-path "github.com/evilsocket/opensnitch" #:tests? #f #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'fix-iptables-path + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path "/firewall/iptables") + (substitute* '("monitor.go" "iptables.go") + (("\"(iptables|ip6tables)\"," all iptables-executable) + (string-append "\"" #$iptables "/sbin/" iptables-executable "\",")))))) (add-before 'build 'make-proto-definitions (lambda* (#:key unpack-path #:allow-other-keys) (with-directory-excursion (format #f "src/~a/proto/" unpack-path) @@ -186,7 +192,8 @@ Opensnitch to monitor traffic via eBPF rules.") go-github-com-golang-protobuf go-github-com-fsnotify-fsnotify libnetfilter-queue - libnfnetlink)) + libnfnetlink + iptables)) (native-inputs (list protobuf protoc-gen-go go-google-golang-org-grpc-cmd-protoc-gen-go-grpc pkg-config)) -- cgit v1.2.3