Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions pkgs/development/libraries/libnetfilter_cthelper/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ stdenv, fetchurl, pkgconfig, libmnl }:

stdenv.mkDerivation rec {
name = "libnetfilter_cthelper-${version}";
version = "1.0.0";

src = fetchurl {
url = "http://netfilter.org/projects/libnetfilter_cthelper/files/${name}.tar.bz2";
sha256 = "07618e71c4d9a6b6b3dc1986540486ee310a9838ba754926c7d14a17d8fccf3d";
};

buildInputs = [ pkgconfig libmnl ];

meta = {
description = "Userspace library that provides the programming interface to the user-space connection tracking helper infrastructure.";
longDescription = ''
libnetfilter_cthelper is the userspace library that provides the programming interface
to the user-space helper infrastructure available since Linux kernel 3.6. With this
library, you register, configure, enable and disable user-space helpers. This library
is used by conntrack-tools.
'';
homepage = http://www.netfilter.org/projects/libnetfilter_cthelper/;
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux;
};
}
26 changes: 26 additions & 0 deletions pkgs/development/libraries/libnetfilter_cttimeout/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ stdenv, fetchurl, pkgconfig, libmnl }:

stdenv.mkDerivation rec {
name = "libnetfilter_cttimeout-${version}";
version = "1.0.0";

src = fetchurl {
url = "http://netfilter.org/projects/libnetfilter_cttimeout/files/${name}.tar.bz2";
sha256 = "aeab12754f557cba3ce2950a2029963d817490df7edb49880008b34d7ff8feba";
};

buildInputs = [ pkgconfig libmnl ];

meta = {
description = "Userspace library that provides the programming interface to the connection tracking timeout infrastructure.";
longDescription = ''
libnetfilter_cttimeout is the userspace library that provides the programming
interface to the fine-grain connection tracking timeout infrastructure.
With this library, you can create, update and delete timeout policies that can
be attached to traffic flows. This library is used by conntrack-tools.
'';
homepage = http://netfilter.org/projects/libnetfilter_cttimeout/;
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.linux;
};
}
24 changes: 24 additions & 0 deletions pkgs/os-specific/linux/conntrack-tools/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ fetchurl, stdenv, flex, bison, pkgconfig, libmnl, libnfnetlink
, libnetfilter_conntrack, libnetfilter_queue, libnetfilter_cttimeout
, libnetfilter_cthelper }:

stdenv.mkDerivation rec {
name = "conntrack-tools-${version}";
version = "1.4.2";

src = fetchurl {
url = "http://www.netfilter.org/projects/conntrack-tools/files/${name}.tar.bz2";
sha256 = "e5c423dc077f9ca8767eaa6cf40446943905711c6a8fe27f9cc1977d4d6aa11e";
};

buildInputs = [ libmnl libnfnetlink libnetfilter_conntrack libnetfilter_queue
libnetfilter_cttimeout libnetfilter_cthelper ];
nativeBuildInputs = [ flex bison pkgconfig ];

meta = with stdenv.lib; {
homepage = http://conntrack-tools.netfilter.org/;
description = "Connection tracking userspace tools";
platforms = platforms.linux;
license = licenses.gpl2Plus;
};
}
6 changes: 6 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6000,6 +6000,10 @@ let

libnetfilter_conntrack = callPackage ../development/libraries/libnetfilter_conntrack { };

libnetfilter_cthelper = callPackage ../development/libraries/libnetfilter_cthelper { };

libnetfilter_cttimeout = callPackage ../development/libraries/libnetfilter_cttimeout { };

libnetfilter_queue = callPackage ../development/libraries/libnetfilter_queue { };

libnfnetlink = callPackage ../development/libraries/libnfnetlink { };
Expand Down Expand Up @@ -7888,6 +7892,8 @@ let
weatherXoap = config.conky.weatherXoap or false;
};

conntrack_tools = callPackage ../os-specific/linux/conntrack-tools { };

cpufrequtils = callPackage ../os-specific/linux/cpufrequtils { };

cryopid = callPackage ../os-specific/linux/cryopid { };
Expand Down