nixpkgs/pkgs/tools/networking/tcpdump/default.nix
Armijn Hemel f7ab7efff1 update tcpdump to 4.1.0, libpcap to 1.1.0
svn path=/nixpkgs/trunk/; revision=20938
2010-04-04 14:57:26 +00:00

25 lines
647 B
Nix

{ stdenv, fetchurl, libpcap, enableStatic ? false }:
stdenv.mkDerivation rec {
name = "tcpdump-4.1.0";
src = fetchurl {
url = "http://www.tcpdump.org/release/${name}.tar.gz";
sha256 = "1yhmz23cb0qx16nwnmyk2v7nnqai20lzcc4lx34v728qdpkmc1in";
};
buildInputs = [ libpcap ];
crossAttrs = {
LDFLAGS = if enableStatic then "-static" else "";
configureFlags = [ "ac_cv_linux_vers=2" ] ++ (stdenv.lib.optional
(stdenv.cross.platform.kernelMajor == "2.4") "--disable-ipv6");
};
meta = {
description = "tcpdump, a famous network sniffer";
homepage = http://www.tcpdump.org/;
license = "BSD-style";
};
}