2014-01-17 09:37:53 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, perl, flex, bison, libpcap, libnl, c-ares
|
2014-01-17 10:10:58 +00:00
|
|
|
, gnutls, libgcrypt, geoip, heimdal, lua5, gtk, makeDesktopItem, python
|
2014-04-20 17:15:42 +01:00
|
|
|
, libcap
|
2011-11-14 15:11:23 +00:00
|
|
|
}:
|
2007-05-14 00:24:34 +01:00
|
|
|
|
2014-09-19 16:44:28 +01:00
|
|
|
let version = "1.12.1"; in
|
2013-02-27 14:07:28 +00:00
|
|
|
|
2011-11-14 15:11:23 +00:00
|
|
|
stdenv.mkDerivation {
|
2010-10-07 08:56:00 +01:00
|
|
|
name = "wireshark-${version}";
|
2011-11-14 15:11:23 +00:00
|
|
|
|
2007-05-14 00:24:34 +01:00
|
|
|
src = fetchurl {
|
2014-09-19 16:44:28 +01:00
|
|
|
url = "http://www.wireshark.org/download/src/wireshark-${version}.tar.bz2";
|
|
|
|
sha256 = "0jsqpr4s5smadvlm881l8fkhhw384ak3apkq4wxr05gc2va6pcl2";
|
2011-11-14 15:11:23 +00:00
|
|
|
};
|
|
|
|
|
2014-01-15 15:44:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
bison flex perl pkgconfig libpcap lua5 heimdal libgcrypt gnutls
|
2014-04-20 17:15:42 +01:00
|
|
|
geoip libnl c-ares gtk python libcap
|
2014-01-15 15:44:52 +00:00
|
|
|
];
|
2011-11-14 15:11:23 +00:00
|
|
|
|
2014-04-13 16:06:00 +01:00
|
|
|
patches = [ ./wireshark-lookup-dumpcap-in-path.patch ];
|
|
|
|
|
2014-01-17 10:10:58 +00:00
|
|
|
configureFlags = "--disable-usr-local --disable-silent-rules --with-gtk2 --without-gtk3 --without-qt --with-ssl";
|
2011-11-14 15:11:23 +00:00
|
|
|
|
2013-05-21 21:48:50 +01:00
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "Wireshark";
|
|
|
|
exec = "wireshark";
|
|
|
|
icon = "wireshark";
|
|
|
|
comment = "Powerful network protocol analysis suite";
|
|
|
|
desktopName = "Wireshark";
|
|
|
|
genericName = "Network packet analyzer";
|
|
|
|
categories = "Network;System";
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out"/share/applications/
|
|
|
|
mkdir -p "$out"/share/icons/
|
2014-01-15 15:44:52 +00:00
|
|
|
cp "$desktopItem/share/applications/"* "$out/share/applications/"
|
2013-05-21 21:48:50 +01:00
|
|
|
cp image/wsicon.svg "$out"/share/icons/wireshark.svg
|
|
|
|
'';
|
|
|
|
|
2014-01-17 10:10:58 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2011-11-14 15:11:23 +00:00
|
|
|
meta = {
|
2013-05-11 19:30:41 +01:00
|
|
|
homepage = http://www.wireshark.org/;
|
2011-11-14 15:11:23 +00:00
|
|
|
description = "a powerful network protocol analyzer";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
|
|
|
|
longDescription = ''
|
2013-05-21 21:48:50 +01:00
|
|
|
Wireshark (formerly known as "Ethereal") is a powerful network
|
2011-11-14 15:11:23 +00:00
|
|
|
protocol analyzer developed by an international team of networking
|
|
|
|
experts. It runs on UNIX, OS X and Windows.
|
|
|
|
'';
|
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-04-20 18:03:05 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ simons bjornfor ];
|
2007-05-14 00:24:34 +01:00
|
|
|
};
|
|
|
|
}
|