mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
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";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgconfig libnfnetlink libmnl ];
|
||||
buildInputs = [ pkgconfig libmnl ];
|
||||
propagatedBuildInputs = [ libnfnetlink ];
|
||||
|
||||
meta = {
|
||||
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;
|
||||
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = stdenv.lib.maintainers.nckx;
|
||||
};
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, bison, flex, geoip, libnet, libnetfilter_conntrack, libnl
|
||||
, libpcap, liburcu, ncurses, perl, pkgconfig, which, zlib }:
|
||||
{ stdenv, fetchFromGitHub, bison, flex, geoip, libcli, libnet
|
||||
, libnetfilter_conntrack, libnl, libpcap, libsodium, liburcu, ncurses, perl
|
||||
, pkgconfig, which, zlib }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.5.9-rc4-40-g5107740";
|
||||
@ -12,14 +13,14 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1z3b7pa5rhz37dhfb1riy1j9lg917bs4z7clqbxm1hzi1x2ln988";
|
||||
};
|
||||
|
||||
# ./configure is not autoGNU but some home-brewn magic
|
||||
preConfigure = "patchShebangs configure";
|
||||
postConfigure = "substituteInPlace Makefile --replace ' tput ' ' true '";
|
||||
buildInputs = [ bison flex geoip libcli libnet libnl libnetfilter_conntrack
|
||||
libpcap libsodium liburcu ncurses perl pkgconfig which zlib ];
|
||||
|
||||
# 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 ];
|
||||
# ./configure is not autoGNU but some home-brewn magic
|
||||
configurePhase = ''
|
||||
patchShebangs configure
|
||||
NACL_INC_DIR=${libsodium}/include/sodium NACL_LIB=sodium ./configure
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
@ -5831,6 +5831,8 @@ let
|
||||
|
||||
libchop = callPackage ../development/libraries/libchop { };
|
||||
|
||||
libcli = callPackage ../development/libraries/libcli { };
|
||||
|
||||
libcm = callPackage ../development/libraries/libcm { };
|
||||
|
||||
inherit (gnome3) libcroco;
|
||||
|
Loading…
Reference in New Issue
Block a user