mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 17:44:44 +00:00
ulogd: init at 2.0.8
Heavily based on original work by xvuko. Co-authored-by: xvuko <nix@vuko.pl>
This commit is contained in:
parent
c3161d81bd
commit
77763b4c88
72
pkgs/os-specific/linux/ulogd/default.nix
Normal file
72
pkgs/os-specific/linux/ulogd/default.nix
Normal file
@ -0,0 +1,72 @@
|
||||
{ stdenv, lib, fetchurl, gnumake, libnetfilter_acct, libnetfilter_conntrack
|
||||
, libnetfilter_log, libmnl, libnfnetlink, automake, autoconf, autogen, libtool
|
||||
, pkg-config, libpcap, linuxdoc-tools, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.0.8";
|
||||
pname = "ulogd";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://netfilter.org/projects/${pname}/files/${pname}-${version}.tar.bz2";
|
||||
hash = "sha256-Tq1sOXDD9X+h6J/i18xIO6b+K9GwhwFSHgs6/WZ98pE=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "doc" "man" ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace ulogd.8 --replace "/usr/share/doc" "$doc/share/doc"
|
||||
'';
|
||||
|
||||
postBuild = ''
|
||||
pushd doc/
|
||||
linuxdoc --backend=txt --filter ulogd.sgml
|
||||
linuxdoc --backend=html --split=0 ulogd.sgml
|
||||
popd
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -Dm444 -t $out/share/doc/${pname} ulogd.conf doc/ulogd.txt doc/ulogd.html README doc/*table
|
||||
install -Dm444 -t $out/share/doc/${pname}-mysql doc/mysql*.sql
|
||||
install -Dm444 -t $out/share/doc/${pname}-pgsql doc/pgsql*.sql
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
libnetfilter_acct
|
||||
libnetfilter_conntrack
|
||||
libnetfilter_log
|
||||
libmnl
|
||||
libnfnetlink
|
||||
libpcap
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
automake
|
||||
autoconf
|
||||
autogen
|
||||
libtool
|
||||
linuxdoc-tools
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Userspace logging daemon for netfilter/iptables";
|
||||
|
||||
longDescription = ''
|
||||
Logging daemon that reads event messages coming from the Netfilter
|
||||
connection tracking, the Netfilter packet logging subsystem and from the
|
||||
Netfilter accounting subsystem. You have to enable support for connection
|
||||
tracking event delivery; ctnetlink and the NFLOG target in your Linux
|
||||
kernel 2.6.x or load their respective modules. The deprecated ULOG target
|
||||
(which has been superseded by NFLOG) is also supported.
|
||||
|
||||
The received messages can be logged into files or into a MySQL, SQLite3
|
||||
or PostgreSQL database. IPFIX and Graphite output are also supported.
|
||||
'';
|
||||
|
||||
homepage = "https://www.netfilter.org/projects/ulogd/index.html";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ p-h ];
|
||||
};
|
||||
}
|
@ -13093,6 +13093,8 @@ with pkgs;
|
||||
inherit (chickenPackages_4) eggDerivation fetchegg;
|
||||
};
|
||||
|
||||
ulogd = callPackage ../os-specific/linux/ulogd { };
|
||||
|
||||
unar = callPackage ../tools/archivers/unar {
|
||||
inherit (darwin.apple_sdk.frameworks) Foundation AppKit;
|
||||
stdenv = clangStdenv;
|
||||
|
Loading…
Reference in New Issue
Block a user