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 {
|
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}";
|
|
|
|
version = "4.9.0";
|
2008-09-01 15:00:24 +02:00
|
|
|
|
2007-01-16 15:35:08 +01:00
|
|
|
src = fetchurl {
|
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
|
|
|
#url = "http://www.tcpdump.org/release/${name}.tar.gz";
|
|
|
|
url = "mirror://debian/pool/main/t/tcpdump/tcpdump_${version}.orig.tar.gz";
|
|
|
|
sha256 = "0pjsxsy8l71i813sa934cwf1ryp9xbr7nxwsvnzavjdirchq3sga";
|
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
|
|
|
}
|