2017-05-20 08:51:36 +02:00
|
|
|
{ stdenv, fetchurl, libpcap, tcpdump }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "tcpreplay";
|
2019-04-07 16:22:55 +02:00
|
|
|
version = "4.3.2";
|
2017-05-20 08:51:36 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/appneta/tcpreplay/releases/download/v${version}/tcpreplay-${version}.tar.gz";
|
2019-04-07 16:22:55 +02:00
|
|
|
sha256 = "0ld9v88g5xs2rykimksmhlkwbv2r97575c4aqmqdxbvc37crnisg";
|
2017-05-20 08:51:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libpcap ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-local-libopts"
|
|
|
|
"--disable-libopts-install"
|
|
|
|
"--enable-dynamic-link"
|
|
|
|
"--enable-shared"
|
|
|
|
"--enable-tcpreplay-edit"
|
|
|
|
"--with-libpcap=${libpcap}"
|
|
|
|
"--with-tcpdump=${tcpdump}/bin"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A suite of utilities for editing and replaying network traffic";
|
|
|
|
homepage = http://tcpreplay.appneta.com/;
|
|
|
|
license = with licenses; [ bsd3 gpl3 ];
|
|
|
|
maintainers = with maintainers; [ eleanor ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|