2023-12-19 03:33:16 +00:00
|
|
|
{ lib, stdenv, fetchurl, libpcap, pkg-config, 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";
|
2023-04-15 09:16:42 +00:00
|
|
|
version = "4.99.4";
|
2008-09-01 13:00:24 +00:00
|
|
|
|
2017-09-06 12:53:09 +00:00
|
|
|
src = fetchurl {
|
2023-08-08 15:22:19 +00:00
|
|
|
url = "https://www.tcpdump.org/release/tcpdump-${version}.tar.gz";
|
2023-04-15 09:16:42 +00:00
|
|
|
hash = "sha256-AjIjG7LynWvyQm5woIp+DGOg1ZqbRIY7f14jV6bkn+o=";
|
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
|
|
|
|
'';
|
|
|
|
|
2023-12-19 03:33:16 +00:00
|
|
|
nativeBuildInputs = lib.optional (stdenv.hostPlatform.isStatic) [ pkg-config ];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ perl ];
|
2018-08-08 21:38:52 +00:00
|
|
|
|
2010-02-05 22:00:51 +00:00
|
|
|
buildInputs = [ libpcap ];
|
2008-09-01 13:00:24 +00:00
|
|
|
|
2023-01-22 21:56:45 +00:00
|
|
|
configureFlags = lib.optional (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;
|
2023-08-08 15:22:26 +00:00
|
|
|
mainProgram = "tcpdump";
|
2008-09-01 13:00:24 +00:00
|
|
|
};
|
2007-01-16 14:35:08 +00:00
|
|
|
}
|