forked from mirrors/nixpkgs
993a83d395
This is a security release theoretically under emgargo, but leaked by Mageia and Fedora. We have permission to deliver this prior to public release.
37 lines
1.2 KiB
Nix
37 lines
1.2 KiB
Nix
{ stdenv, fetchurl, fetchpatch, libpcap, enableStatic ? false
|
|
, hostPlatform
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "tcpdump-${version}";
|
|
version = "4.9.2";
|
|
|
|
# leaked embargoed security update
|
|
src = fetchurl {
|
|
url = "https://src.fedoraproject.org/lookaside/pkgs/tcpdump/tcpdump-4.9.2.tar.gz/sha512/e1bc19a5867d6e3628f3941bdf3ec831bf13784f1233ca1bccc46aac1702f47ee9357d7ff0ca62cddf211b3c8884488c21144cabddd92c861e32398cd8f7c44b/tcpdump-4.9.2.tar.gz";
|
|
sha256 = "0ygy0layzqaj838r5xd613iraz09wlfgpyh7pc6cwclql8v3b2vr";
|
|
};
|
|
# src = fetchFromGitHub rec {
|
|
# owner = "the-tcpdump-group";
|
|
# repo = "tcpdump";
|
|
# rev = "${repo}-${version}";
|
|
# sha256 = "1vzrvn1q7x28h18yskqc390y357pzpg5xd3pzzj4xz3llnvsr64p";
|
|
# };
|
|
|
|
buildInputs = [ libpcap ];
|
|
|
|
crossAttrs = {
|
|
LDFLAGS = if enableStatic then "-static" else "";
|
|
configureFlags = [ "ac_cv_linux_vers=2" ] ++ (stdenv.lib.optional
|
|
(hostPlatform.platform.kernelMajor == "2.4") "--disable-ipv6");
|
|
};
|
|
|
|
meta = {
|
|
description = "Network sniffer";
|
|
homepage = http://www.tcpdump.org/;
|
|
license = "BSD-style";
|
|
maintainers = with stdenv.lib.maintainers; [ mornfall jgeerds ];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|