2010-03-10 22:22:43 +00:00
|
|
|
{ stdenv, fetchurl, libpcap, enableStatic ? false }:
|
2007-01-16 14:35:08 +00:00
|
|
|
|
2008-09-01 13:00:24 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-10-08 17:29:49 +00:00
|
|
|
name = "tcpdump-4.6.2";
|
2008-09-01 13:00:24 +00:00
|
|
|
|
2007-01-16 14:35:08 +00:00
|
|
|
src = fetchurl {
|
2010-02-05 22:00:51 +00:00
|
|
|
url = "http://www.tcpdump.org/release/${name}.tar.gz";
|
2014-10-08 17:29:49 +00:00
|
|
|
sha256 = "1f701387jyxq7rjhv4hiig3b3g55m4b4403rd0zncv1sx3cf8kjj";
|
2007-01-16 14:35:08 +00:00
|
|
|
};
|
2008-09-01 13:00:24 +00:00
|
|
|
|
2010-02-05 22:00:51 +00:00
|
|
|
buildInputs = [ libpcap ];
|
2008-09-01 13:00:24 +00:00
|
|
|
|
2010-03-10 22:22:43 +00: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 13:00:24 +00:00
|
|
|
meta = {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Network sniffer";
|
2008-09-01 13:00:24 +00:00
|
|
|
homepage = http://www.tcpdump.org/;
|
|
|
|
license = "BSD-style";
|
2014-09-13 11:51:39 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.mornfall ];
|
2008-09-01 13:00:24 +00:00
|
|
|
};
|
2007-01-16 14:35:08 +00:00
|
|
|
}
|