2021-02-05 17:12:51 +00:00
|
|
|
{ fetchurl, lib, stdenv, flex, bison, pkg-config, libmnl, libnfnetlink
|
2020-04-24 23:36:52 +00:00
|
|
|
, libnetfilter_conntrack, libnetfilter_queue, libnetfilter_cttimeout
|
2023-07-15 17:15:38 +00:00
|
|
|
, libnetfilter_cthelper, libtirpc
|
|
|
|
, systemdSupport ? true, systemd
|
2020-10-16 20:44:37 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "conntrack-tools";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.4.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-09 19:29:22 +00:00
|
|
|
url = "https://www.netfilter.org/projects/conntrack-tools/files/${pname}-${version}.tar.xz";
|
|
|
|
hash = "sha256-BnZ39MX2VkgZ547TqdSomAk16pJz86uyKkIOowq13tY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libmnl libnfnetlink libnetfilter_conntrack libnetfilter_queue
|
2023-07-15 17:15:38 +00:00
|
|
|
libnetfilter_cttimeout libnetfilter_cthelper libtirpc
|
|
|
|
] ++ lib.optionals systemdSupport [
|
|
|
|
systemd
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ flex bison pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
configureFlags = [
|
|
|
|
(lib.enableFeature systemdSupport "systemd")
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://conntrack-tools.netfilter.org/";
|
|
|
|
description = "Connection tracking userspace tools";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
};
|
|
|
|
}
|