Subject: [PATCHv3 4/9] gnu: Add libnetfilter-queue

From: fesoj000 <[email-masked]>
Date: Sun, 27 Mar 2022 00:34:23 +0100

* gnu/packages/linux.scm (libnetfilter-queue): New variable.
---
  gnu/packages/linux.scm | 25 +++++++++++++++++++++++++
  1 file changed, 25 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 5520478025..b6a5a19e18 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -7368,6 +7368,31 @@ (define-public libnetfilter-cthelper
     (supported-systems (filter target-linux? %supported-systems))
     (license license:gpl2+)))
  
+(define-public libnetfilter-queue
+  (package
+   (name "libnetfilter-queue")
+   (version "1.0.5")
+   (source
+    (origin
+     (method url-fetch)
+     (uri (string-append "https://netfilter.org/projects/"
+                         "libnetfilter_queue/files/"
+                         "libnetfilter_queue-"
+                         version ".tar.bz2"))
+     (sha256
+      (base32
+       "1xdra6i4p8jkv943ygjw646qx8df27f7p5852kc06vjx608krzzr"))))
+   (build-system gnu-build-system)
+   (native-inputs (list pkg-config))
+   (inputs (list libmnl libnfnetlink))
+   (synopsis "Userspace library for kernel netfilter infrastructure and state")
+   (description "libnetfilter_queue is a userspace library providing an API to
+packets that have been queued by the kernel packet filter. It is is part of a
+system that deprecates the old ip_queue / libipq mechanism.")
+   (home-page "https://netfilter.org/projects/libnetfilter_queue/index.html")
+   (supported-systems (filter target-linux? %supported-systems))
+   (license license:gpl2+)))
+
  (define-public proot
    (package
      (name "proot")
-- 
2.34.0