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