2014-01-17 09:37:53 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, perl, flex, bison, libpcap, libnl, c-ares
|
|
|
|
, gnutls, libgcrypt, geoip, heimdal, lua5, gtk3, makeDesktopItem
|
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
|
2014-01-17 09:37:53 +00:00
|
|
|
geoip libnl c-ares gtk3
|
2014-01-15 15:44:52 +00:00
|
|
|
];
|
2011-11-14 15:11:23 +00:00
|
|
|
|
2014-01-17 09:37:53 +00:00
|
|
|
configureFlags = "--disable-usr-local --disable-silent-rules --with-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
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|