2010-03-10 22:22:43 +00:00
|
|
|
{ stdenv, fetchurl, libpcap, enableStatic ? false }:
|
2007-01-16 14:35:08 +00:00
|
|
|
|
2008-09-01 14:00:24 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-06-01 01:28:31 +01:00
|
|
|
name = "tcpdump-4.7.4";
|
2008-09-01 14:00:24 +01: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";
|
2015-06-01 01:28:31 +01:00
|
|
|
sha256 = "1byr8w6grk08fsq0444jmcz9ar89lq9nf4mjq2cny0w9k8k21rbb";
|
2007-01-16 14:35:08 +00:00
|
|
|
};
|
2008-09-01 14:00:24 +01:00
|
|
|
|
2010-02-05 22:00:51 +00:00
|
|
|
buildInputs = [ libpcap ];
|
2008-09-01 14:00:24 +01: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 14:00:24 +01:00
|
|
|
meta = {
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Network sniffer";
|
2008-09-01 14:00:24 +01:00
|
|
|
homepage = http://www.tcpdump.org/;
|
|
|
|
license = "BSD-style";
|
2015-06-22 07:25:07 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ mornfall jgeerds ];
|
2015-03-20 15:52:02 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-09-01 14:00:24 +01:00
|
|
|
};
|
2007-01-16 14:35:08 +00:00
|
|
|
}
|