Subject: [PATCHv3 3/9] gnu: Add libnetfilter-cthelper

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

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

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 4e9d8867dd..5520478025 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -7334,6 +7334,40 @@ (define-public libnetfilter-cttimeout
     (supported-systems (filter target-linux? %supported-systems))
     (license license:gpl2)))
  
+(define-public libnetfilter-cthelper
+  (package
+   (name "libnetfilter-cthelper")
+   (version "1.0.0")
+   (source
+    (origin
+     (method url-fetch)
+     (uri (string-append "https://netfilter.org/projects/"
+                         "libnetfilter_cthelper/files/"
+                         "libnetfilter_cthelper-"
+                         version ".tar.bz2"))
+     (sha256
+      (base32
+       "0gfgzkc1fjniqwk4jxds72c0lcgfhq2591hrvjrvd9nrqiqqwq87"))))
+   (build-system gnu-build-system)
+   (native-inputs (list pkg-config))
+   (inputs (list libmnl))
+   (synopsis "Library for user-space connection tracking helpers")
+   (description "libnetfilter_cthelper is a userspace library that provides a
+programming interface to user-space connection tracking helpers.
+@enumerate
+@item
+register new user-space connection tracking helpers
+@item
+unregister user-space connection tracking helpers
+@item
+list existing registered user-space connection tracking helpers
+@end enumerate
+")
+   (home-page (string-append
+               "https://netfilter.org/projects/libnetfilter_cthelper/index.html"))
+   (supported-systems (filter target-linux? %supported-systems))
+   (license license:gpl2+)))
+
  (define-public proot
    (package
      (name "proot")
-- 
2.34.0