all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: fesoj000 <fesoj000@gmail.com>
To: 54457@debbugs.gnu.org
Subject: [bug#54457] [PATCHv3 9/9] gnu: Add ulogd
Date: Sun, 27 Mar 2022 00:34:31 +0100	[thread overview]
Message-ID: <8b915636-f5d6-0de5-2489-c9675df66387@gmail.com> (raw)
In-Reply-To: <871b5ef4-87f1-bd27-0d24-0725064b2894@gmail.com>

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

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 6dc42439f5..7dba2cd9c6 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -99,6 +99,7 @@ (define-module (gnu packages linux)
    #:use-module (gnu packages compression)
    #:use-module (gnu packages dbm)
    #:use-module (gnu packages datastructures)
+  #:use-module (gnu packages databases)
    #:use-module (gnu packages docbook)
    #:use-module (gnu packages documentation)
    #:use-module (gnu packages elf)
@@ -7524,6 +7525,80 @@ (define-public libnetfilter-log
     (supported-systems (filter target-linux? %supported-systems))
     (license license:gpl2+)))
  
+(define-public ulogd
+  (package
+   (name "ulogd")
+   (version "2.0.7")
+   (source
+    (origin
+     (method url-fetch)
+     (uri (string-append "https://netfilter.org/projects/" name "/files/" name
+                         "-" version ".tar.bz2"))
+     (sha256
+      (base32
+       "0ax9959c4bapq78n13bbaibcf1gwjir3ngx8l2dh45lw9m4ha2lr"))))
+   (build-system gnu-build-system)
+   (outputs '("out"
+              ;; additonal non-default output plugins
+              "json" "pcap" "sqlite3" "pgsql" "mysql"))
+   (native-inputs (list pkg-config))
+   (inputs (list libnfnetlink libmnl libnetfilter-log libnetfilter-conntrack
+                 libnetfilter-acct sqlite libpcap jansson postgresql mysql zlib
+                 openssl))
+   (arguments
+    (list #:configure-flags
+          #~(list (string-append "--with-pgsql="
+                                 (assoc-ref %build-inputs "postgresql"))
+                  (string-append "--with-mysql="
+                                 (assoc-ref %build-inputs "mysql")))
+          #:phases
+          #~(modify-phases %standard-phases
+              (add-after 'install 'install-doc
+                (lambda _
+                  (let ((out-etc (string-append #$output "/etc"))
+                        (ulogd.conf "ulogd.conf"))
+                    (mkdir-p out-etc)
+                    (copy-file ulogd.conf (string-append out-etc "/"
+                                                         ulogd.conf)))))
+              (add-after 'install 'setup-plugin-outputs
+                (lambda* (#:key outputs #:allow-other-keys)
+                  (with-directory-excursion
+                      (string-append #$output "/lib/ulogd/")
+                    (for-each
+                     (lambda (output-name)
+                       (let ((output-dir (string-append
+                                          (assoc-ref outputs output-name)
+                                          "/lib/ulogd/")))
+                         (mkdir-p output-dir)
+                         (for-each
+                          (lambda (plugin)
+                            (copy-file plugin (string-append output-dir plugin))
+                            (delete-file plugin))
+                          (find-files "."
+                           (string-append "ulogd_output_"
+                                          (string-upcase output-name)
+                                          ".*$")))))
+                     (list "json" "pcap" "sqlite3" "pgsql" "mysql"))))))))
+   (synopsis "Userspace logging daemon for netfilter/iptables.")
+   (description "ulogd is a userspace logging daemon for netfilter/iptables
+related logging. This includes per-packet logging of security violations,
+per-packet logging for accounting, per-flow logging and flexible user-defined
+accounting.
+@enumerate
+@item
+Packet and flow-based traffic accounting
+@item
+Flexible user-defined traffic accounting via nfacct infrastructure
+@item
+SQL database back-end support: SQLite3, PostgreSQL, MySQL
+@item
+Text-based output formats: CSV, XML, Netfilter's LOG, Netfilter's conntrack
+@end enumerate
+")
+   (home-page "https://netfilter.org/projects/nfacct/index.html")
+   (supported-systems (filter target-linux? %supported-systems))
+   (license license:gpl2)))
+
  (define-public proot
    (package
      (name "proot")
-- 
2.34.0





      parent reply	other threads:[~2022-03-26 23:35 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-19  0:19 [bug#54457] [PATCH 0/9] Add netfilter tools and libraries fesoj000
2022-03-19  0:47 ` [bug#54457] [PATCH 1/9] gnu: Add libnetfilter-conntrack fesoj000
2022-03-19  0:47 ` [bug#54457] [PATCH 2/9] gnu: Add libnetfilter-cttimeout fesoj000
2022-03-19  0:47 ` [bug#54457] [PATCH 3/9] gnu: Add libnetfilter-cthelper fesoj000
2022-03-19 23:26   ` Maxime Devos
2022-03-19 23:27   ` Maxime Devos
2022-03-19 23:28   ` Maxime Devos
2022-03-19 23:29   ` Maxime Devos
2022-03-19 23:29   ` Maxime Devos
2022-03-19  0:47 ` [bug#54457] [PATCH 4/9] gnu: Add libnetfilter-queue fesoj000
2022-03-19 23:22   ` Maxime Devos
2022-03-21 19:49     ` fesoj000
2022-03-21 20:08       ` Maxime Devos
2022-03-19 23:23   ` Maxime Devos
2022-03-21 19:49     ` fesoj000
2022-03-19 23:25   ` Maxime Devos
2022-03-19  0:47 ` [bug#54457] [PATCH 5/9] gnu: Add conntrack-tools fesoj000
2022-03-19 13:54   ` Maxime Devos
2022-03-21 20:15     ` fesoj000
2022-03-19 23:19   ` Maxime Devos
2022-03-19  0:47 ` [bug#54457] [PATCH 6/9] gnu: Add libnetfilter-acct fesoj000
2022-03-19  0:47 ` [bug#54457] [PATCH 7/9] gnu: Add nfacct fesoj000
2022-03-19 23:20   ` Maxime Devos
2022-03-19  0:47 ` [bug#54457] [PATCH 8/9] gnu: Add libnetfilter-log fesoj000
2022-03-19  0:47 ` [bug#54457] [PATCH 9/9] gnu: Add ulogd fesoj000
2022-03-19 13:54   ` Maxime Devos
2022-03-21 21:19 ` [bug#54457] [PATCH 0/9] Add netfilter tools and libraries v2 fesoj000
2022-03-23 19:39   ` Maxime Devos
2022-03-21 21:19 ` [bug#54457] [PATCH 1/9] gnu: Add libnetfilter-conntrack fesoj000
2022-03-23 19:48   ` Maxime Devos
2022-03-21 21:20 ` [bug#54457] [PATCH 2/9] gnu: Add libnetfilter-cttimeout fesoj000
2022-03-23 19:38   ` Maxime Devos
2022-03-21 21:20 ` [bug#54457] [PATCH 3/9] gnu: Add libnetfilter-cthelper fesoj000
2022-03-21 21:20 ` [bug#54457] [PATCH 4/9] gnu: Add libnetfilter-queue fesoj000
2022-03-21 21:20 ` [bug#54457] [PATCH 5/9] gnu: Add conntrack-tools fesoj000
2022-03-21 21:20 ` [bug#54457] [PATCH 6/9] gnu: Add libnetfilter-acct fesoj000
2022-03-21 21:31   ` fesoj000
2022-03-21 21:20 ` [bug#54457] [PATCH 7/9] gnu: Add nfacct fesoj000
2022-03-21 21:20 ` [bug#54457] [PATCH 8/9] gnu: Add libnetfilter-log fesoj000
2022-03-21 21:31   ` fesoj000
2022-03-21 21:20 ` [bug#54457] [PATCH 9/9] gnu: Add ulogd fesoj000
2022-03-23 19:41   ` Maxime Devos
2022-03-23 21:28     ` fesoj000
2022-03-26 12:31       ` fesoj000
2022-03-26 18:30         ` Maxime Devos
2022-03-23 19:42   ` Maxime Devos
2022-03-23 19:46   ` Maxime Devos
2022-03-21 21:32 ` [bug#54457] [PATCH 6/9] gnu: Add libnetfilter-acct fesoj000
2022-03-21 21:32 ` [bug#54457] [PATCH 8/9] gnu: Add libnetfilter-log fesoj000
2022-03-26 23:34 ` [bug#54457] [PATCHv3 0/9] Add netfilter tools and libraries fesoj000
2022-04-01 12:48   ` fesoj000
2022-04-11 12:01   ` bug#54457: [PATCH " Ludovic Courtès
2022-03-26 23:34 ` [bug#54457] [PATCHv3 1/9] gnu: Add libnetfilter-conntrack fesoj000
2022-03-26 23:34 ` [bug#54457] [PATCHv3 2/9] gnu: Add libnetfilter-cttimeout fesoj000
2022-03-26 23:34 ` [bug#54457] [PATCHv3 3/9] gnu: Add libnetfilter-cthelper fesoj000
2022-03-26 23:34 ` [bug#54457] [PATCHv3 4/9] gnu: Add libnetfilter-queue fesoj000
2022-03-26 23:34 ` [bug#54457] [PATCHv3 5/9] gnu: Add conntrack-tools fesoj000
2022-03-26 23:34 ` [bug#54457] [PATCHv3 6/9] gnu: Add libnetfilter-acct fesoj000
2022-03-26 23:34 ` [bug#54457] [PATCHv3 7/9] gnu: Add nfacct fesoj000
2022-03-26 23:34 ` [bug#54457] [PATCHv3 8/9] gnu: Add libnetfilter-log fesoj000
2022-03-26 23:34 ` fesoj000 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8b915636-f5d6-0de5-2489-c9675df66387@gmail.com \
    --to=fesoj000@gmail.com \
    --cc=54457@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.