2018-08-08 23:38:52 +02:00
|
|
|
{ stdenv, fetchurl, libpcap, perl }:
|
2007-01-16 15:35:08 +01:00
|
|
|
|
2008-09-01 15:00:24 +02: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 17:16:53 +01:00
|
|
|
name = "tcpdump-${version}";
|
2017-09-06 14:53:09 +02:00
|
|
|
version = "4.9.2";
|
2008-09-01 15:00:24 +02:00
|
|
|
|
2017-09-06 14:53:09 +02: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 15:35:08 +01:00
|
|
|
};
|
2017-09-06 14:53:09 +02:00
|
|
|
# src = fetchFromGitHub rec {
|
|
|
|
# owner = "the-tcpdump-group";
|
|
|
|
# repo = "tcpdump";
|
|
|
|
# rev = "${repo}-${version}";
|
|
|
|
# sha256 = "1vzrvn1q7x28h18yskqc390y357pzpg5xd3pzzj4xz3llnvsr64p";
|
|
|
|
# };
|
2017-09-05 13:07:11 +02:00
|
|
|
|
2018-08-08 23:38:52 +02:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ perl ];
|
|
|
|
|
2010-02-05 23:00:51 +01:00
|
|
|
buildInputs = [ libpcap ];
|
2008-09-01 15:00:24 +02:00
|
|
|
|
2018-05-10 20:17:24 +02:00
|
|
|
configureFlags = stdenv.lib.optional
|
|
|
|
(stdenv.hostPlatform != stdenv.buildPlatform)
|
|
|
|
"ac_cv_linux_vers=2";
|
2010-03-10 23:22:43 +01:00
|
|
|
|
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";
|
2018-01-17 06:13:23 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ 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
|
|
|
}
|