2013-11-12 08:04:20 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, perl, flex, bison, libpcap, libnl, c-ares, gnutls, libgcrypt
|
2014-01-15 15:44:52 +00:00
|
|
|
, geoip, heimdal, lua5, gtk, makeDesktopItem, qt5
|
2011-11-14 15:11:23 +00:00
|
|
|
}:
|
2007-05-14 00:24:34 +01:00
|
|
|
|
2014-01-15 15:44:52 +00:00
|
|
|
let version = "1.11.2"; 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 {
|
2011-11-14 15:11:23 +00:00
|
|
|
url = "mirror://sourceforge/wireshark/wireshark-${version}.tar.bz2";
|
2014-01-15 15:44:52 +00:00
|
|
|
sha256 = "077hjnmqn44s8dx3pc38bxps5liicjnhzrnf6ky2x60m2cp7ngr3";
|
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
|
|
|
|
geoip libnl c-ares gtk qt5
|
|
|
|
];
|
2011-11-14 15:11:23 +00:00
|
|
|
|
2013-11-12 08:04:20 +00:00
|
|
|
configureFlags = "--disable-usr-local --enable-packet-editor --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
|
|
|
|
'';
|
|
|
|
|
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;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2007-05-14 00:24:34 +01:00
|
|
|
};
|
|
|
|
}
|