2010-03-11 01:22:43 +03:00
|
|
|
{ stdenv, fetchurl, libpcap, enableStatic ? false }:
|
2007-01-16 17:35:08 +03:00
|
|
|
|
2008-09-01 17:00:24 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2014-10-08 21:29:49 +04:00
|
|
|
name = "tcpdump-4.6.2";
|
2008-09-01 17:00:24 +04:00
|
|
|
|
2007-01-16 17:35:08 +03:00
|
|
|
src = fetchurl {
|
2010-02-06 01:00:51 +03:00
|
|
|
url = "http://www.tcpdump.org/release/${name}.tar.gz";
|
2014-10-08 21:29:49 +04:00
|
|
|
sha256 = "1f701387jyxq7rjhv4hiig3b3g55m4b4403rd0zncv1sx3cf8kjj";
|
2007-01-16 17:35:08 +03:00
|
|
|
};
|
2008-09-01 17:00:24 +04:00
|
|
|
|
2010-02-06 01:00:51 +03:00
|
|
|
buildInputs = [ libpcap ];
|
2008-09-01 17:00:24 +04:00
|
|
|
|
2010-03-11 01:22:43 +03:00
|
|
|
crossAttrs = {
|
|
|
|
LDFLAGS = if enableStatic then "-static" else "";
|
|
|
|
configureFlags = [ "ac_cv_linux_vers=2" ] ++ (stdenv.lib.optional
|
|
|
|
(stdenv.cross.platform.kernelMajor == "2.4") "--disable-ipv6");
|
|
|
|
};
|
|
|
|
|
2008-09-01 17:00:24 +04:00
|
|
|
meta = {
|
2014-08-24 18:21:08 +04:00
|
|
|
description = "Network sniffer";
|
2008-09-01 17:00:24 +04:00
|
|
|
homepage = http://www.tcpdump.org/;
|
|
|
|
license = "BSD-style";
|
2014-09-13 15:51:39 +04:00
|
|
|
maintainers = [ stdenv.lib.maintainers.mornfall ];
|
2008-09-01 17:00:24 +04:00
|
|
|
};
|
2007-01-16 17:35:08 +03:00
|
|
|
}
|