Merge pull request #5814 from nckx/netsniff
netsniff-ng: add what's needed to/and build missing tools
This commit is contained in:
commit
48eea20e69
23
pkgs/development/libraries/libcli/default.nix
Normal file
23
pkgs/development/libraries/libcli/default.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{ stdenv, fetchurl }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "1.9.7";
|
||||||
|
name = "libcli-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/dparrish/libcli/archive/v${version}.tar.gz";
|
||||||
|
sha256 = "0v4867jbach5zd1nq0sspq5q95vvbpnljzm2yf64k8a4w2vadpbx";
|
||||||
|
};
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
makeFlags = "PREFIX=$(out)";
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Emulate a Cisco-style telnet command-line interface";
|
||||||
|
homepage = http://sites.dparrish.com/libcli;
|
||||||
|
license = with licenses; lgpl21Plus;
|
||||||
|
platforms = with platforms; linux;
|
||||||
|
maintainers = with maintainers; [ nckx ];
|
||||||
|
};
|
||||||
|
}
|
@ -8,7 +8,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0zcwjav1qgr7ikmvfmy7g3nc7s1kj4j4939d18mpyha9mwy4mv6r";
|
sha256 = "0zcwjav1qgr7ikmvfmy7g3nc7s1kj4j4939d18mpyha9mwy4mv6r";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgconfig libnfnetlink libmnl ];
|
buildInputs = [ pkgconfig libmnl ];
|
||||||
|
propagatedBuildInputs = [ libnfnetlink ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Userspace library providing an API to the in-kernel connection tracking state table";
|
description = "Userspace library providing an API to the in-kernel connection tracking state table";
|
||||||
@ -22,5 +23,6 @@ stdenv.mkDerivation rec {
|
|||||||
license = stdenv.lib.licenses.gpl2Plus;
|
license = stdenv.lib.licenses.gpl2Plus;
|
||||||
|
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
maintainers = stdenv.lib.maintainers.nckx;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub, bison, flex, geoip, libnet, libnetfilter_conntrack, libnl
|
{ stdenv, fetchFromGitHub, bison, flex, geoip, libcli, libnet
|
||||||
, libpcap, liburcu, ncurses, perl, pkgconfig, which, zlib }:
|
, libnetfilter_conntrack, libnl, libpcap, libsodium, liburcu, ncurses, perl
|
||||||
|
, pkgconfig, which, zlib }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.5.9-rc4-40-g5107740";
|
version = "0.5.9-rc4-40-g5107740";
|
||||||
@ -12,14 +13,14 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1z3b7pa5rhz37dhfb1riy1j9lg917bs4z7clqbxm1hzi1x2ln988";
|
sha256 = "1z3b7pa5rhz37dhfb1riy1j9lg917bs4z7clqbxm1hzi1x2ln988";
|
||||||
};
|
};
|
||||||
|
|
||||||
# ./configure is not autoGNU but some home-brewn magic
|
buildInputs = [ bison flex geoip libcli libnet libnl libnetfilter_conntrack
|
||||||
preConfigure = "patchShebangs configure";
|
libpcap libsodium liburcu ncurses perl pkgconfig which zlib ];
|
||||||
postConfigure = "substituteInPlace Makefile --replace ' tput ' ' true '";
|
|
||||||
|
|
||||||
# FIXME: missing nacl/libcli and a *working* libnetfilter_conntrack
|
# ./configure is not autoGNU but some home-brewn magic
|
||||||
# The following tools will be missing: curvetun flowtop mausezahn
|
configurePhase = ''
|
||||||
buildInputs = [ bison flex geoip libnet libnl libnetfilter_conntrack
|
patchShebangs configure
|
||||||
libpcap liburcu ncurses perl pkgconfig which zlib ];
|
NACL_INC_DIR=${libsodium}/include/sodium NACL_LIB=sodium ./configure
|
||||||
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
@ -5831,6 +5831,8 @@ let
|
|||||||
|
|
||||||
libchop = callPackage ../development/libraries/libchop { };
|
libchop = callPackage ../development/libraries/libchop { };
|
||||||
|
|
||||||
|
libcli = callPackage ../development/libraries/libcli { };
|
||||||
|
|
||||||
libcm = callPackage ../development/libraries/libcm { };
|
libcm = callPackage ../development/libraries/libcm { };
|
||||||
|
|
||||||
inherit (gnome3) libcroco;
|
inherit (gnome3) libcroco;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user