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