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