2013-11-12 00:04:20 -08:00
|
|
|
{ stdenv, fetchurl, pkgconfig, perl, flex, bison, libpcap, libnl, c-ares, gnutls, libgcrypt
|
|
|
|
, geoip, heimdal, lua5, gtk, makeDesktopItem
|
2011-11-14 07:11:23 -08:00
|
|
|
}:
|
2007-05-13 16:24:34 -07:00
|
|
|
|
2014-01-08 10:08:27 -08:00
|
|
|
let version = "1.10.5"; in
|
2013-02-27 06:07:28 -08:00
|
|
|
|
2011-11-14 07:11:23 -08:00
|
|
|
stdenv.mkDerivation {
|
2010-10-07 00:56:00 -07:00
|
|
|
name = "wireshark-${version}";
|
2011-11-14 07:11:23 -08:00
|
|
|
|
2007-05-13 16:24:34 -07:00
|
|
|
src = fetchurl {
|
2011-11-14 07:11:23 -08:00
|
|
|
url = "mirror://sourceforge/wireshark/wireshark-${version}.tar.bz2";
|
2014-01-08 10:08:27 -08:00
|
|
|
sha256 = "1xa1l6z8n1gwnyv5mq4zmyr0afy6s0qpl9wqflg3ipbkjpd908d0";
|
2011-11-14 07:11:23 -08:00
|
|
|
};
|
|
|
|
|
2013-02-27 06:07:28 -08:00
|
|
|
buildInputs =
|
2013-11-12 00:04:20 -08:00
|
|
|
[ bison flex perl pkgconfig libpcap lua5 heimdal libgcrypt gnutls geoip libnl c-ares gtk ];
|
2011-11-14 07:11:23 -08:00
|
|
|
|
2013-11-12 00:04:20 -08:00
|
|
|
configureFlags = "--disable-usr-local --enable-packet-editor --with-ssl";
|
2011-11-14 07:11:23 -08:00
|
|
|
|
2013-05-21 13:48:50 -07: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/
|
|
|
|
cp "$desktopItem"/share/applications/* "$out"/share/applications/
|
|
|
|
cp image/wsicon.svg "$out"/share/icons/wireshark.svg
|
|
|
|
'';
|
|
|
|
|
2011-11-14 07:11:23 -08:00
|
|
|
meta = {
|
2013-05-11 11:30:41 -07:00
|
|
|
homepage = http://www.wireshark.org/;
|
2011-11-14 07:11:23 -08:00
|
|
|
description = "a powerful network protocol analyzer";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
|
|
|
|
longDescription = ''
|
2013-05-21 13:48:50 -07:00
|
|
|
Wireshark (formerly known as "Ethereal") is a powerful network
|
2011-11-14 07:11:23 -08: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-13 16:24:34 -07:00
|
|
|
};
|
|
|
|
}
|