Add netsniff-ng 0.5.9-rc4-40-g5107740: Linux networking toolkit
This commit is contained in:
parent
f93ce4faf1
commit
2f32d8f848
43
pkgs/tools/networking/netsniff-ng/default.nix
Normal file
43
pkgs/tools/networking/netsniff-ng/default.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, bison, flex, geoip, libnet, libnetfilter_conntrack, libnl
|
||||||
|
, libpcap, liburcu, ncurses, perl, pkgconfig, which, zlib }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "0.5.9-rc4-40-g5107740";
|
||||||
|
name = "netsniff-ng-${version}";
|
||||||
|
|
||||||
|
src = fetchFromGitHub rec { # Upstream recommends and supports git
|
||||||
|
repo = "netsniff-ng";
|
||||||
|
owner = repo;
|
||||||
|
rev = "5107740603d10feed6104afd75042970cb392843";
|
||||||
|
sha256 = "1z3b7pa5rhz37dhfb1riy1j9lg917bs4z7clqbxm1hzi1x2ln988";
|
||||||
|
};
|
||||||
|
|
||||||
|
# ./configure is not autoGNU but some home-brewn magic
|
||||||
|
preConfigure = "patchShebangs configure";
|
||||||
|
postConfigure = "substituteInPlace Makefile --replace ' tput ' ' true '";
|
||||||
|
|
||||||
|
# FIXME: missing nacl/libcli and a *working* libnetfilter_conntrack
|
||||||
|
# The following tools will be missing: curvetun flowtop mausezahn
|
||||||
|
buildInputs = [ bison flex geoip libnet libnl libnetfilter_conntrack
|
||||||
|
libpcap liburcu ncurses perl pkgconfig which zlib ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
# Tries to install to /etc, but they're more like /share files anyway
|
||||||
|
makeFlags = "PREFIX=$(out) ETCDIR=$(out)/etc";
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Swiss army knife for daily Linux network plumbing";
|
||||||
|
longDescription = ''
|
||||||
|
netsniff-ng is a free Linux networking toolkit. Its gain of performance
|
||||||
|
is reached by zero-copy mechanisms, so that on packet reception and
|
||||||
|
transmission the kernel does not need to copy packets from kernel space
|
||||||
|
to user space and vice versa. The toolkit can be used for network
|
||||||
|
development and analysis, debugging, auditing or network reconnaissance.
|
||||||
|
'';
|
||||||
|
homepage = http://netsniff-ng.org/;
|
||||||
|
license = with licenses; gpl2;
|
||||||
|
platforms = with platforms; linux;
|
||||||
|
maintainers = with maintainers; [ nckx ];
|
||||||
|
};
|
||||||
|
}
|
@ -1633,6 +1633,8 @@ let
|
|||||||
|
|
||||||
netperf = callPackage ../applications/networking/netperf { };
|
netperf = callPackage ../applications/networking/netperf { };
|
||||||
|
|
||||||
|
netsniff-ng = callPackage ../tools/networking/netsniff-ng { };
|
||||||
|
|
||||||
ninka = callPackage ../development/tools/misc/ninka { };
|
ninka = callPackage ../development/tools/misc/ninka { };
|
||||||
|
|
||||||
nodejs = callPackage ../development/web/nodejs { };
|
nodejs = callPackage ../development/web/nodejs { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user