@@ -7467,6 +7467,50 @@ (define-public libnetfilter-log
(home-page "https://netfilter.org/projects/libnetfilter_log/index.html")
(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)
+ (native-inputs (list pkg-config libnfnetlink libmnl libnetfilter-log
+ libnetfilter-conntrack libnetfilter-acct))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'install-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out-etc (string-append (assoc-ref outputs "out") "/etc"))
+ (ulogd.conf "ulogd.conf"))
+ (mkdir-p out-etc)
+ (copy-file ulogd.conf (string-append out-etc "/" ulogd.conf)))
+ #t)))))
+ (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, MySQL and PostgreSQL
+@item
+Text-based output formats: CSV, XML, Netfilter's LOG, Netfilter's conntrack
+@end enumerate
+")
+ (home-page "https://netfilter.org/projects/nfacct/index.html")
+ (license license:gpl2)))
+
(define-public proot
(package
(name "proot")