2021-04-10 10:39:25 +00:00
|
|
|
{ lib, stdenv, fetchurl, libpcap, perl }:
|
2007-01-16 14:35:08 +00:00
|
|
|
|
2019-10-02 12:26:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "tcpdump";
|
2021-07-04 15:52:29 +00:00
|
|
|
version = "4.99.1";
|
2008-09-01 13:00:24 +00:00
|
|
|
|
2017-09-06 12:53:09 +00:00
|
|
|
src = fetchurl {
|
2019-10-02 12:26:57 +00:00
|
|
|
url = "http://www.tcpdump.org/release/${pname}-${version}.tar.gz";
|
2021-07-04 15:52:29 +00:00
|
|
|
sha256 = "sha256-ebNphfsnAxRmGNh8Ss3j4Gi5HFU/uT8CGjN/F1/RDr4=";
|
2007-01-16 14:35:08 +00:00
|
|
|
};
|
2017-09-05 11:07:11 +00:00
|
|
|
|
2018-08-08 21:38:52 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ perl ];
|
|
|
|
|
2010-02-05 22:00:51 +00:00
|
|
|
buildInputs = [ libpcap ];
|
2008-09-01 13:00:24 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
configureFlags = lib.optional
|
2018-05-10 18:17:24 +00:00
|
|
|
(stdenv.hostPlatform != stdenv.buildPlatform)
|
|
|
|
"ac_cv_linux_vers=2";
|
2010-03-10 22:22:43 +00:00
|
|
|
|
2021-04-10 10:39:25 +00:00
|
|
|
meta = with lib; {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Network sniffer";
|
2021-04-10 10:39:25 +00:00
|
|
|
homepage = "https://www.tcpdump.org/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ globin ];
|
|
|
|
platforms = platforms.unix;
|
2008-09-01 13:00:24 +00:00
|
|
|
};
|
2007-01-16 14:35:08 +00:00
|
|
|
}
|