2019-08-26 19:34:12 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, automake, autoconf
|
|
|
|
, openssl, zlib, libpcap, boost
|
|
|
|
, useCairo ? false, cairo
|
|
|
|
}:
|
2016-05-03 02:39:46 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-26 19:34:12 +02:00
|
|
|
pname = "tcpflow";
|
|
|
|
version = "1.5.2";
|
2016-05-03 02:39:46 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simsong";
|
2019-08-26 19:34:12 +02:00
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "063n3pfqa0lgzcwk4c0h01g2y5c3sli615j6a17dxpg95aw1zryy";
|
|
|
|
fetchSubmodules = true;
|
2014-04-11 09:08:22 +02:00
|
|
|
};
|
2016-05-03 02:39:46 +02:00
|
|
|
|
2019-08-26 19:34:12 +02:00
|
|
|
nativeBuildInputs = [ automake autoconf ];
|
|
|
|
buildInputs = [ openssl zlib libpcap boost ]
|
|
|
|
++ lib.optional useCairo cairo;
|
2016-05-03 02:39:46 +02:00
|
|
|
|
|
|
|
prePatch = ''
|
2019-08-26 19:34:12 +02:00
|
|
|
substituteInPlace bootstrap.sh \
|
|
|
|
--replace ".git" "" \
|
|
|
|
--replace "/bin/rm" "rm"
|
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace "1.5.1" "1.5.2"
|
2016-05-03 02:39:46 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = "bash ./bootstrap.sh";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-08-26 19:34:12 +02:00
|
|
|
description = "TCP stream extractor";
|
|
|
|
longDescription = ''
|
|
|
|
tcpflow is a program that captures data transmitted as part of TCP
|
|
|
|
connections (flows), and stores the data in a way that is convenient for
|
|
|
|
protocol analysis and debugging.
|
|
|
|
'';
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ primeos raskin obadz ];
|
2016-05-03 02:39:46 +02:00
|
|
|
platforms = platforms.linux;
|
2014-04-11 09:08:22 +02:00
|
|
|
};
|
|
|
|
}
|