2018-08-08 21:38:52 +00:00
|
|
|
{ stdenv, fetchurl, libpcap, perl }:
|
2007-01-16 14:35:08 +00:00
|
|
|
|
2008-09-01 13:00:24 +00:00
|
|
|
stdenv.mkDerivation rec {
|
tcpdump: 4.8.1 -> 4.9.0 for multiple CVEs
Temporarily use the Debian mirros for the sources because upstream hasn't
released the new version. See https://www.debian.org/security/2017/dsa-3775.
Fixes: CVE-2016-7922, CVE-2016-7923, CVE-2016-7924, CVE-2016-7925,
CVE-2016-7926, CVE-2016-7927, CVE-2016-7928, CVE-2016-7929, CVE-2016-7930,
CVE-2016-7931, CVE-2016-7932, CVE-2016-7933, CVE-2016-7934, CVE-2016-7935,
CVE-2016-7936, CVE-2016-7937, CVE-2016-7938, CVE-2016-7939, CVE-2016-7940,
CVE-2016-7973, CVE-2016-7974, CVE-2016-7975, CVE-2016-7983, CVE-2016-7984,
CVE-2016-7985, CVE-2016-7986, CVE-2016-7992, CVE-2016-7993, CVE-2016-8574,
CVE-2016-8575, CVE-2017-5202, CVE-2017-5203, CVE-2017-5204, CVE-2017-5205,
CVE-2017-5341, CVE-2017-5342, CVE-2017-5482, CVE-2017-5483, CVE-2017-5484,
CVE-2017-5485, CVE-2017-5486.
2017-01-31 16:16:53 +00:00
|
|
|
name = "tcpdump-${version}";
|
2017-09-06 12:53:09 +00:00
|
|
|
version = "4.9.2";
|
2008-09-01 13:00:24 +00:00
|
|
|
|
2017-09-06 12:53:09 +00:00
|
|
|
# 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";
|
2007-01-16 14:35:08 +00:00
|
|
|
};
|
2017-09-06 12:53:09 +00:00
|
|
|
# src = fetchFromGitHub rec {
|
|
|
|
# owner = "the-tcpdump-group";
|
|
|
|
# repo = "tcpdump";
|
|
|
|
# rev = "${repo}-${version}";
|
|
|
|
# sha256 = "1vzrvn1q7x28h18yskqc390y357pzpg5xd3pzzj4xz3llnvsr64p";
|
|
|
|
# };
|
2017-09-05 11:07:11 +00:00
|
|
|
|
2018-08-08 21:38:52 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ perl ];
|
|
|
|
|
2010-02-05 22:00:51 +00:00
|
|
|
buildInputs = [ libpcap ];
|
2008-09-01 13:00:24 +00:00
|
|
|
|
2018-05-10 18:17:24 +00:00
|
|
|
configureFlags = stdenv.lib.optional
|
|
|
|
(stdenv.hostPlatform != stdenv.buildPlatform)
|
|
|
|
"ac_cv_linux_vers=2";
|
2010-03-10 22:22:43 +00:00
|
|
|
|
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";
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ ];
|
2018-11-15 21:57:00 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2008-09-01 13:00:24 +00:00
|
|
|
};
|
2007-01-16 14:35:08 +00:00
|
|
|
}
|