summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-11-22 14:55:14 +0000
committerPeter Volkov <pva@gentoo.org>2008-11-22 14:55:14 +0000
commit7ba175f71d096d9d9f85b30684aeb22e6c01695c (patch)
tree6523885e98cdd4da82245f5dfa91514a77da2efc /net-analyzer
parentKeeping fastdb for history (bug on removal #247494). kpogre is already in the... (diff)
downloadpva-7ba175f71d096d9d9f85b30684aeb22e6c01695c.tar.gz
pva-7ba175f71d096d9d9f85b30684aeb22e6c01695c.tar.bz2
pva-7ba175f71d096d9d9f85b30684aeb22e6c01695c.zip
Updated misc-warnings patch, need testing
svn path=/; revision=223
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/wireshark/ChangeLog566
-rw-r--r--net-analyzer/wireshark/Manifest7
-rw-r--r--net-analyzer/wireshark/files/wireshark-1.1.1--as-needed.patch11
-rw-r--r--net-analyzer/wireshark/files/wireshark-1.1.1-misc-warnings.patch160
-rw-r--r--net-analyzer/wireshark/files/wireshark-except-double-free.diff16
-rw-r--r--net-analyzer/wireshark/metadata.xml37
-rw-r--r--net-analyzer/wireshark/wireshark-1.1.1.ebuild161
7 files changed, 958 insertions, 0 deletions
diff --git a/net-analyzer/wireshark/ChangeLog b/net-analyzer/wireshark/ChangeLog
new file mode 100644
index 0000000..28be27f
--- /dev/null
+++ b/net-analyzer/wireshark/ChangeLog
@@ -0,0 +1,566 @@
+# ChangeLog for net-analyzer/wireshark
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.133 2008/11/15 17:42:03 dertobi123 Exp $
+
+ 15 Nov 2008; Tobias Scherbaum <dertobi123@gentoo.org>
+ wireshark-1.0.4.ebuild:
+ ppc stable, bug #242996
+
+ 30 Oct 2008; Peter Volkov <pva@gentoo.org>
+ +files/wireshark-1.0.4-zlib-build.patch, wireshark-1.0.4.ebuild:
+ Build fails without zlib, this patch fixes it, bug #244931, thank emos696
+ AT hotmail.com for this work.
+
+ 22 Oct 2008; Guy Martin <gmsoft@gentoo.org> wireshark-1.0.4.ebuild:
+ hppa stable, #242996
+
+ 22 Oct 2008; Raúl Porcel <armin76@gentoo.org> wireshark-1.0.4.ebuild:
+ alpha/ia64/x86 stable wrt #242996
+
+ 21 Oct 2008; Markus Rothe <corsair@gentoo.org> wireshark-1.0.4.ebuild:
+ Stable on ppc64; bug #242996
+
+ 21 Oct 2008; Ferris McCormick <fmccor@gentoo.org> wireshark-1.0.4.ebuild:
+ Sparc stable --- Security Bug #242996 --- appears to work fine.
+
+ 21 Oct 2008; Jeremy Olexa <darkside@gentoo.org> wireshark-1.0.4.ebuild:
+ amd64 stable, accelerated due to security. bug #242996
+
+*wireshark-1.0.4 (21 Oct 2008)
+
+ 21 Oct 2008; Peter Volkov <pva@gentoo.org> +wireshark-1.0.4.ebuild,
+ wireshark-1.1.1.ebuild:
+ Version bump.
+
+ 17 Oct 2008; Peter Volkov <pva@gentoo.org>
+ +files/wireshark-1.1.1--as-needed.patch,
+ +files/wireshark-1.1.1-misc-warnings.patch, wireshark-1.1.1.ebuild:
+ Fixed build issue with --as-needed and lua enabled. Fixed build issues with
+ -ftracer, bug #239941, thank Thomas Pegeot for report.
+
+*wireshark-1.1.1 (10 Oct 2008)
+
+ 10 Oct 2008; Peter Volkov <pva@gentoo.org>
+ -files/wireshark-1.1.0-as-needed.patch, -wireshark-1.1.0.ebuild,
+ +wireshark-1.1.1.ebuild:
+ Version bump. Some cleanups in ebuild.
+
+ 04 Oct 2008; Peter Volkov <pva@gentoo.org> metadata.xml,
+ wireshark-1.1.0.ebuild:
+ Change c-ares USE flag to ares, as other packages already USE ares.
+
+ 18 Sep 2008; Peter Volkov <pva@gentoo.org> wireshark-1.1.0.ebuild:
+ Fixed dependency on c-ares and configuration.
+
+*wireshark-1.1.0 (17 Sep 2008)
+
+ 17 Sep 2008; Peter Volkov <pva@gentoo.org>
+ +files/wireshark-1.1.0-as-needed.patch, metadata.xml,
+ -wireshark-1.0.2.ebuild, +wireshark-1.1.0.ebuild:
+ Bump development version.
+
+ 10 Sep 2008; Olivier Crête <tester@gentoo.org> wireshark-1.0.3.ebuild:
+ amd64 stable, bug #236515
+
+ 10 Sep 2008; Brent Baude <ranger@gentoo.org> wireshark-1.0.3.ebuild:
+ Marking wireshark-1.0.3 ppc64 and ppc for bug 236515
+
+ 10 Sep 2008; Raúl Porcel <armin76@gentoo.org> wireshark-1.0.3.ebuild:
+ alpha/ia64/sparc/x86 stable wrt #236515
+
+ 10 Sep 2008; Jeroen Roovers <jer@gentoo.org> wireshark-1.0.3.ebuild:
+ Stable for HPPA (bug #236515).
+
+*wireshark-1.0.3 (10 Sep 2008)
+
+ 10 Sep 2008; Peter Volkov <pva@gentoo.org> +wireshark-1.0.3.ebuild:
+ Version bump, fixes security issues #236515, thank Robert Buchholz for
+ report.
+
+ 04 Aug 2008; Jeroen Roovers <jer@gentoo.org> metadata.xml:
+ Describe local USE flags for GLEP 56.
+
+ 03 Aug 2008; Cédric Krier <cedk@gentoo.org> wireshark-1.0.2.ebuild:
+ Add gtk m4 for bug #233158
+
+ 20 Jul 2008; Peter Volkov <pva@gentoo.org> -wireshark-1.0.0.ebuild,
+ -wireshark-1.0.1.ebuild:
+ Removing vulnerable versions.
+
+ 17 Jul 2008; Kenneth Prugh <ken69267@gentoo.org> wireshark-1.0.2.ebuild:
+ amd64 stable, bug #231587
+
+ 15 Jul 2008; Tobias Scherbaum <dertobi123@gentoo.org>
+ wireshark-1.0.2.ebuild:
+ ppc stable, bug #231587
+
+ 15 Jul 2008; Markus Rothe <corsair@gentoo.org> wireshark-1.0.2.ebuild:
+ Stable on ppc64; bug #231587
+
+ 14 Jul 2008; Jeroen Roovers <jer@gentoo.org> wireshark-1.0.2.ebuild:
+ Stable for HPPA (bug #231587).
+
+ 13 Jul 2008; Raúl Porcel <armin76@gentoo.org> wireshark-1.0.2.ebuild:
+ alpha/ia64/sparc/x86 stable wrt #231587
+
+*wireshark-1.0.2 (12 Jul 2008)
+
+ 12 Jul 2008; Marcelo Goes <vanquirius@gentoo.org> +wireshark-1.0.2.ebuild:
+ 1.0.2 version bump for security bug 231587. Thanks to 7v5w7go9ub0o
+ <7v5w7go9ub0o at gmail dot com>.
+
+ 05 Jul 2008; Markus Meier <maekke@gentoo.org> wireshark-1.0.1.ebuild:
+ amd64 stable, bug #230411
+
+ 05 Jul 2008; Brent Baude <ranger@gentoo.org> wireshark-1.0.1.ebuild:
+ Marking wireshark-1.0.1 ppc64 for bug 230411
+
+ 05 Jul 2008; Tobias Scherbaum <dertobi123@gentoo.org>
+ wireshark-1.0.1.ebuild:
+ ppc stable, bug #230411
+
+ 04 Jul 2008; Jeroen Roovers <jer@gentoo.org> wireshark-1.0.1.ebuild:
+ Stable for HPPA (bug #230411).
+
+ 03 Jul 2008; Raúl Porcel <armin76@gentoo.org> wireshark-1.0.1.ebuild:
+ alpha/ia64/sparc/x86 stable wrt #230411
+
+*wireshark-1.0.1 (03 Jul 2008)
+
+ 03 Jul 2008; Peter Volkov <pva@gentoo.org>
+ -files/wireshark-0.99.8-libpcap-compile.patch, -wireshark-0.99.8.ebuild,
+ +wireshark-1.0.1.ebuild:
+ Version bump, bug #230411, thank 7v5w7go9ub0o for report.
+
+ 10 Apr 2008; Peter Volkov <pva@gentoo.org> wireshark-1.0.0.ebuild:
+ cap_kill is not required in wireshark-1.0.0, bug #217061, thank Justin
+ Bronder for report.
+
+ 03 Apr 2008; Tobias Scherbaum <dertobi123@gentoo.org>
+ wireshark-1.0.0.ebuild:
+ ppc stable, bug #215276
+
+ 03 Apr 2008; Peter Volkov <pva@gentoo.org> wireshark-1.0.0.ebuild:
+ Fixed build with profile USE flag and -fomit-frame-pointer, bug #215806,
+ thank Joel Thompson for report and Mikael Magnusson for solution.
+
+ 02 Apr 2008; Markus Rothe <corsair@gentoo.org> wireshark-1.0.0.ebuild:
+ Stable on ppc64; bug #215276
+
+ 02 Apr 2008; Jeroen Roovers <jer@gentoo.org> wireshark-1.0.0.ebuild:
+ Stable for HPPA (bug #215276).
+
+ 02 Apr 2008; Raúl Porcel <armin76@gentoo.org> wireshark-1.0.0.ebuild:
+ alpha/ia64/sparc stable wrt security #215276
+
+ 02 Apr 2008; Christian Faulhammer <opfer@gentoo.org>
+ wireshark-1.0.0.ebuild:
+ stable x86, security bug 215276
+
+ 02 Apr 2008; Richard Freeman <rich0@gentoo.org> wireshark-1.0.0.ebuild:
+ amd64 stable - 215276
+
+*wireshark-1.0.0 (01 Apr 2008)
+
+ 01 Apr 2008; Peter Volkov <pva@gentoo.org>
+ -files/wireshark-1.0.0_rc1-fix-setcap-EPERM.patch,
+ -files/wireshark-1.0.0_rc1-fix-stop-capture.patch,
+ -wireshark-1.0.0_rc1.ebuild, -wireshark-1.0.0_rc1-r1.ebuild,
+ +wireshark-1.0.0.ebuild:
+ Version bump, as usual security fixes, bug #215276, thank Robert Buchholz
+ and Christian Faulhammer for report.
+
+*wireshark-1.0.0_rc1-r1 (23 Mar 2008)
+
+ 23 Mar 2008; Peter Volkov <pva@gentoo.org>
+ +files/wireshark-1.0.0_rc1-fix-setcap-EPERM.patch,
+ +files/wireshark-1.0.0_rc1-fix-stop-capture.patch,
+ +wireshark-1.0.0_rc1-r1.ebuild:
+ Fix wireshark stop when built with caps.
+
+*wireshark-1.0.0_rc1 (19 Mar 2008)
+
+ 19 Mar 2008; Peter Volkov <pva@gentoo.org>
+ -files/wireshark-0.99.7-libgcrypt.patch, -wireshark-0.99.7.ebuild,
+ +wireshark-1.0.0_rc1.ebuild:
+ Bump to 1.0.0pre1. Removed old vulnerable.
+
+ 19 Mar 2008; Markus Rothe <corsair@gentoo.org> wireshark-0.99.8.ebuild:
+ Stable on ppc64; bug #212149
+
+ 18 Mar 2008; Peter Volkov <pva@gentoo.org>
+ -files/wireshark-0.99.7-crash-emem.c.patch,
+ -files/wireshark-0.99.7-exit.patch,
+ -files/wireshark-0.99.7-glib-1.2-compile-fix.patch,
+ -wireshark-0.99.7-r1.ebuild, -wireshark-0.99.7-r2.ebuild,
+ -wireshark-0.99.8_rc1.ebuild, wireshark-0.99.8.ebuild:
+ Removed unused ebuilds. Made pcap USE flag enabled by default to avoid
+ further questions why wireshark is unable to capture packets.
+
+ 18 Mar 2008; Tobias Scherbaum <dertobi123@gentoo.org>
+ wireshark-0.99.8.ebuild:
+ ppc stable, bug #212149
+
+ 18 Mar 2008; Raúl Porcel <armin76@gentoo.org> wireshark-0.99.8.ebuild:
+ alpha/ia64/sparc stable wrt security #212149
+
+ 17 Mar 2008; Jeroen Roovers <jer@gentoo.org> wireshark-0.99.8.ebuild:
+ Stable for HPPA (bug #212149).
+
+ 17 Mar 2008; Peter Volkov <pva@gentoo.org> wireshark-0.99.8.ebuild:
+ Fixed build problem with heimdal, bug #213705, thank Doug Goldstein for
+ report.
+
+ 17 Mar 2008; Dawid Węgliński <cla@gentoo.org> wireshark-0.99.8.ebuild:
+ Stable on x86 (bug #212149)
+
+ 17 Mar 2008; Olivier Crête <tester@gentoo.org> wireshark-0.99.8.ebuild:
+ Stable on amd64, bug #212149
+
+ 17 Mar 2008; Peter Volkov <pva@gentoo.org>
+ +files/wireshark-0.99.8-libpcap-compile.patch:
+ Missed patch added, thank steev for IRC notification.
+
+*wireshark-0.99.8 (16 Mar 2008)
+
+ 16 Mar 2008; Peter Volkov <pva@gentoo.org> +wireshark-0.99.8.ebuild:
+ Finally version bump, fixes security bug #212149, reported by Robert
+ Buchholz. Fixes libsmi autodep, bug #211324, reported by Fabio Erculiani.
+ Many other fixes here and there... Dropped check for minimal USE flag in perl.
+
+ 21 Feb 2008; <pva@gentoo.org> +files/wireshark-0.99.8-as-needed.patch,
+ wireshark-0.99.8_rc1.ebuild:
+ Fixed regression: compilation failure with --as-needed, bug 210998, reported
+ by Mike Auty and Hanno Böck.
+
+*wireshark-0.99.8_rc1 (20 Feb 2008)
+
+ 20 Feb 2008; <pva@gentoo.org> metadata.xml, +wireshark-0.99.8_rc1.ebuild:
+ Version bump to pre-release. Took maintainance.
+
+*wireshark-0.99.7-r2 (27 Jan 2008)
+
+ 27 Jan 2008; <pva@gentoo.org>
+ +files/wireshark-0.99.7-glib-1.2-compile-fix.patch,
+ +wireshark-0.99.7-r2.ebuild:
+ Enable lua support, bug 206151, thank you Jaroslaw Niec <zuljin AT go2.pl>.
+
+*wireshark-0.99.7-r1 (10 Jan 2008)
+
+ 10 Jan 2008; <pva@gentoo.org> -files/wireshark-0.99.6-asneeded.patch,
+ -files/wireshark-0.99.6-asneeded-r1.patch,
+ -files/wireshark-0.99.6-gint64-warnings.patch,
+ -files/wireshark-0.99.6-libgcrypt.patch, -files/wireshark-0.99.6-lm.patch,
+ +files/wireshark-0.99.7-crash-emem.c.patch,
+ +files/wireshark-0.99.7-exit.patch,
+ -files/wireshark-epan_dissectors_packet-diameter.diff,
+ -wireshark-0.99.6.ebuild, -wireshark-0.99.6-r1.ebuild,
+ +wireshark-0.99.7-r1.ebuild:
+ Fixed crash on bad bLength. Fixed crash if user is not in wireshark group,
+ thank you M. Edward Borasky <znmeb AT cesmail.net> for report and Kevin Pyle
+ <kevin.pyle AT bluecoat.com> for investigation and work with upstream to
+ make this fixed. Removed old and vulnerable.
+
+ 26 Dec 2007; Peter Weller <welp@gentoo.org> wireshark-0.99.7.ebuild:
+ Stable on amd64; bug 199958
+
+ 24 Dec 2007; Raúl Porcel <armin76@gentoo.org> wireshark-0.99.7.ebuild:
+ alpha/ia64/sparc stable wrt #199958
+
+ 24 Dec 2007; Jeroen Roovers <jer@gentoo.org> wireshark-0.99.7.ebuild:
+ Stable for HPPA (bug #199958).
+
+ 23 Dec 2007; Markus Meier <maekke@gentoo.org> wireshark-0.99.7.ebuild:
+ x86 stable, security bug #199958
+
+ 23 Dec 2007; Brent Baude <ranger@gentoo.org> wireshark-0.99.7.ebuild:
+ Marking wireshark-0.99.7 ppc and ppc64 stable for bug 199958
+
+ 20 Dec 2007; <pva@gentoo.org> +files/wireshark-0.99.7-asneeded.patch,
+ +files/wireshark-0.99.7-libgcrypt.patch:
+ Missed patches added, bug 202866 reported by <kroemmelbein AT gmx.de>
+
+*wireshark-0.99.7 (20 Dec 2007)
+
+ 20 Dec 2007; <pva@gentoo.org> +wireshark-0.99.7.ebuild:
+ New release. Fixes security issues, bug #199958. Thank Robert Buchholz <rbu
+ AT gentoo.org> for lots of usefull suggestions on how to improve ebuild.
+
+ 02 Aug 2007; Raphael Marichez <falco@gentoo.org> wireshark-0.99.6.ebuild,
+ wireshark-0.99.6-r1.ebuild:
+ Remove redundant econf lines, reported by steev
+
+ 26 Jul 2007; Chris Gianelloni <wolf31o2@gentoo.org>
+ wireshark-0.99.6.ebuild, wireshark-0.99.6-r1.ebuild:
+ Cosmetic changes only... rearranged some of the post-merge output so it fits
+ properly on 80 columns.
+
+ 24 Jul 2007; Markus Ullmann <jokey@gentoo.org>
+ -files/wireshark-0.99.5-sizet.patch, -wireshark-0.99.5.ebuild:
+ Clean out old stuff
+
+*wireshark-0.99.6-r1 (24 Jul 2007)
+
+ 24 Jul 2007; <pva@gentoo.org> +files/wireshark-0.99.6-asneeded-r1.patch,
+ +files/wireshark-0.99.6-gint64-warnings.patch,
+ +files/wireshark-0.99.6-libgcrypt.patch, +files/wireshark-0.99.6-lm.patch,
+ +wireshark-0.99.6-r1.ebuild:
+ Fixed -lm problem with ulibc (bug #186424; thank Natanael Copa
+ <natanael.copa AT gmail.com> for report. Commited fix for bug #184529 and
+ enabled warnings treated as errors for gtk-2.0 build like upstream wants us.
+ Fix for libgcrypt problem reported by armin76 and fixed by drac.
+
+ 20 Jul 2007; Tobias Scherbaum <dertobi123@gentoo.org>
+ wireshark-0.99.6.ebuild:
+ ppc stable, bug #183520
+
+ 16 Jul 2007; Jeroen Roovers <jer@gentoo.org> wireshark-0.99.6.ebuild:
+ Stable for HPPA (bug #183520).
+
+ 16 Jul 2007; Markus Rothe <corsair@gentoo.org> wireshark-0.99.6.ebuild:
+ Stable on ppc64; bug #183520
+
+ 16 Jul 2007; Marcus D. Hanwell <cryos@gentoo.org> wireshark-0.99.6.ebuild:
+ Marked stable on amd64, bug 183520.
+
+ 16 Jul 2007; Raúl Porcel <armin76@gentoo.org> wireshark-0.99.6.ebuild:
+ alpha/ia64/x86 stable wrt security #183520
+
+ 16 Jul 2007; Gustavo Zacarias <gustavoz@gentoo.org>
+ wireshark-0.99.6.ebuild:
+ Stable on sparc wrt security #183520
+
+ 15 Jul 2007; Samuli Suominen <drac@gentoo.org>
+ +files/wireshark-0.99.6-asneeded.patch, wireshark-0.99.6.ebuild:
+ Fix building with asneeded for bug 184668.
+
+ 09 Jul 2007; Raúl Porcel <armin76@gentoo.org> wireshark-0.99.6.ebuild:
+ Fix bug #184529, blame Jokey
+
+*wireshark-0.99.6 (06 Jul 2007)
+
+ 06 Jul 2007; Markus Ullmann <jokey@gentoo.org> +wireshark-0.99.6.ebuild:
+ Security version bump wrt bug #183520
+
+ 18 Apr 2007; Markus Ullmann <jokey@gentoo.org> -wireshark-0.99.4.ebuild,
+ -wireshark-0.99.4-r1.ebuild, wireshark-0.99.5.ebuild:
+ Fix gcc 3.4 bug #165340 thanks to Guenther Brunthaler for the solution, do
+ some cleanup as well
+
+ 17 Apr 2007; Gustavo Zacarias <gustavoz@gentoo.org>
+ wireshark-0.99.5.ebuild:
+ Stable on sparc wrt #174625
+
+ 17 Apr 2007; Bryan Østergaard <kloeri@gentoo.org>
+ wireshark-0.99.5.ebuild:
+ Stable on Alpha, bug 174625.
+
+ 16 Apr 2007; Raúl Porcel <armin76@gentoo.org> wireshark-0.99.5.ebuild:
+ ia64 stable wrt bug 174625
+
+ 15 Apr 2007; Andrej Kacian <ticho@gentoo.org> wireshark-0.99.5.ebuild:
+ Stable on x86, bug #174625.
+
+ 15 Apr 2007; Markus Rothe <corsair@gentoo.org> wireshark-0.99.5.ebuild:
+ Stable on ppc64; bug #174625
+
+ 15 Apr 2007; Olivier Crête <tester@gentoo.org> wireshark-0.99.5.ebuild:
+ Stable on amd64, bug #174625
+
+ 14 Apr 2007; Jeroen Roovers <jer@gentoo.org> wireshark-0.99.5.ebuild:
+ Stable for HPPA (bug #174625).
+
+ 24 Feb 2007; Daniel Black <dragonheart@gentoo.org>
+ wireshark-0.99.4.ebuild, wireshark-0.99.4-r1.ebuild,
+ wireshark-0.99.5.ebuild:
+ removed unused autotools import thanks to Flameeyes
+
+ 16 Feb 2007; Daniel Black <dragonheart@gentoo.org>
+ +files/wireshark-0.99.5-sizet.patch, wireshark-0.99.5.ebuild:
+ upstream patch to fix bug #165896 - hopefully
+
+ 10 Feb 2007; Martin Jackson <mjolnir@gentoo.org>
+ +files/wireshark-epan_dissectors_packet-diameter.diff,
+ wireshark-0.99.5.ebuild:
+ Add patch from FC3/FreeBSD to fix GCC 3.4 link error (#165340)
+
+*wireshark-0.99.5 (03 Feb 2007)
+
+ 03 Feb 2007; Marcelo Goes <vanquirius@gentoo.org>
+ +wireshark-0.99.5.ebuild:
+ 0.99.5 version bump for bug 165077, reported by Executioner <executioner at
+ phobik dot org>.
+
+ 16 Nov 2006; Roy Marples <uberlord@gentoo.org> wireshark-0.99.4.ebuild,
+ wireshark-0.99.4-r1.ebuild:
+ Added ~x86-fbsd keyword.
+
+*wireshark-0.99.4-r1 (12 Nov 2006)
+
+ 12 Nov 2006; Daniel Black <dragonheart@gentoo.org>
+ +files/wireshark-except-double-free.diff, -wireshark-0.99.3.ebuild,
+ +wireshark-0.99.4-r1.ebuild:
+ Thanks a7x, didier who made great efforts with upstream to prove it was a
+ Gentoo compiler bug. bug #145974 and bug #133092. removed sec vulnerable
+ version
+
+ 05 Nov 2006; Brent Baude <ranger@gentoo.org> wireshark-0.99.4.ebuild:
+ Marking wireshark-0.99.4 ppc64 stable for bug #152951
+
+ 02 Nov 2006; Olivier Crête <tester@gentoo.org> wireshark-0.99.4.ebuild:
+ Stable on amd64 for security bug #152951
+
+ 02 Nov 2006; Jeroen Roovers <jer@gentoo.org> wireshark-0.99.4.ebuild:
+ Stable for HPPA (bug #152951).
+
+ 01 Nov 2006; Bryan Østergaard <kloeri@gentoo.org>
+ wireshark-0.99.4.ebuild:
+ Stable on ia64, bug 152951.
+
+ 01 Nov 2006; Bryan Østergaard <kloeri@gentoo.org>
+ wireshark-0.99.4.ebuild:
+ Stable on Alpha, bug 152951.
+
+ 01 Nov 2006; Andrej Kacian <ticho@gentoo.org> wireshark-0.99.4.ebuild:
+ Stable on x86, security bug #152951.
+
+ 01 Nov 2006; Gustavo Zacarias <gustavoz@gentoo.org>
+ wireshark-0.99.4.ebuild:
+ Stable on sparc wrt security #152951
+
+ 01 Nov 2006; Tobias Scherbaum <dertobi123@gentoo.org>
+ wireshark-0.99.4.ebuild:
+ ppc stable, bug #152951
+
+*wireshark-0.99.4 (01 Nov 2006)
+
+ 01 Nov 2006; Daniel Black <dragonheart@gentoo.org>
+ +wireshark-0.99.4.ebuild:
+ version bump as per security bug #152951. Also fixes dead symlink - bug
+ #145067, wifiscanner & wireshark: File collision /usr/lib/libwiretap.la bug
+ #146286
+
+ 18 Sep 2006; Benjamin Smee <strerror@gentoo.org> wireshark-0.99.3.ebuild:
+ Small change for bug #147814
+
+ 12 Sep 2006; Markus Ullmann <jokey@gentoo.org> wireshark-0.99.3.ebuild:
+ Fixing built_with_use check for non-existant IUSE ( bug #146839 )
+
+ 30 Aug 2006; Daniel Black <dragonheart@gentoo.org>
+ wireshark-0.99.3.ebuild:
+ changed description to emerge -s ethereal will find it
+
+ 29 Aug 2006; Bryan Østergaard <kloeri@gentoo.org>
+ wireshark-0.99.3.ebuild:
+ Stable on ia64.
+
+ 27 Aug 2006; Daniel Black <dragonheart@gentoo.org>
+ -files/wireshark-0.99.2-libgcrypt-asneeded.patch,
+ -wireshark-0.99.2.ebuild:
+ purge vulnerable version
+
+ 27 Aug 2006; Rene Nussbaumer <killerfox@gentoo.org>
+ wireshark-0.99.3.ebuild:
+ Stable on hppa. See bug #144946.
+
+ 25 Aug 2006; Daniel Black <dragonheart@gentoo.org>
+ wireshark-0.99.3.ebuild:
+ seemed to have dropped hppa - re-added
+
+ 25 Aug 2006; Bryan Østergaard <kloeri@gentoo.org>
+ wireshark-0.99.3.ebuild:
+ Stable on alpha, bug 144946.
+
+ 25 Aug 2006; Olivier Crête <tester@gentoo.org> wireshark-0.99.3.ebuild:
+ Stable on amd64 per security bug #144946
+
+ 25 Aug 2006; <ticho@gentoo.org> wireshark-0.99.3.ebuild:
+ Stable on x86, security bug #144946.
+
+ 25 Aug 2006; Jason Wever <weeve@gentoo.org> wireshark-0.99.3.ebuild:
+ Stable on SPARC wrt security bug #144946.
+
+ 24 Aug 2006; Tobias Scherbaum <dertobi123@gentoo.org>
+ wireshark-0.99.3.ebuild:
+ ppc stable, bug #144946
+
+ 24 Aug 2006; Markus Rothe <corsair@gentoo.org> wireshark-0.99.3.ebuild:
+ Stable on ppc64; bug #144946
+
+*wireshark-0.99.3 (24 Aug 2006)
+
+ 24 Aug 2006; Daniel Black <dragonheart@gentoo.org>
+ +wireshark-0.99.3.ebuild:
+ version bump - security bug #144946
+
+ 19 Aug 2006; Jeroen Roovers <jer@gentoo.org> wireshark-0.99.2.ebuild:
+ Stable for HPPA.
+
+ 30 Jul 2006; Daniel Black <dragonheart@gentoo.org>
+ wireshark-0.99.2.ebuild:
+ added filter-flags -fstack-protector thanks to Richard Hansen and Kevin F.
+ Quinn see bug #133092
+
+ 25 Jul 2006; Daniel Black <dragonheart@gentoo.org>
+ wireshark-0.99.2.ebuild:
+ added RDEPEND on selinux-wireshark for USE=selinux. Thanks to Petre bug #141156
+ removed RDEPEND=!net-analyzer in preparation for ethereal->wireshark move.
+ added ethereal -> wireshark and tethereal -> tshark symlinks thanks to
+ suggestion from solar
+
+ 20 Jul 2006; Gustavo Zacarias <gustavoz@gentoo.org>
+ wireshark-0.99.2.ebuild:
+ Stable on sparc wrt security #140856
+
+ 20 Jul 2006; Joshua Jackson <tsunam@gentoo.org> wireshark-0.99.2.ebuild:
+ Stable x86; bug #140856
+
+ 19 Jul 2006; Daniel Black <dragonheart@gentoo.org>
+ +files/wireshark-0.99.2-libgcrypt-asneeded.patch, wireshark-0.99.2.ebuild:
+ added patch to include gcrypt libraries to solve bug #141021. Thanks to
+ Alberto Ornaghi for the bug report
+
+ 19 Jul 2006; Simon Stelling <blubb@gentoo.org> wireshark-0.99.2.ebuild:
+ stable wrt bug 140856
+
+ 19 Jul 2006; Tobias Scherbaum <dertobi123@gentoo.org>
+ wireshark-0.99.2.ebuild:
+ ppc stable, bug #140856
+
+ 19 Jul 2006; <tcort@gentoo.org> wireshark-0.99.2.ebuild:
+ Stable on alpha wrt security Bug #140856.
+
+ 19 Jul 2006; Markus Rothe <corsair@gentoo.org> wireshark-0.99.2.ebuild:
+ Stable on ppc64; bug #140856
+
+*wireshark-0.99.2 (18 Jul 2006)
+
+ 18 Jul 2006; Markus Ullmann <jokey@gentoo.org>
+ -files/wireshark-0.99.1_pre1-as-needed.patch,
+ -wireshark-0.99.1_pre1.ebuild, +wireshark-0.99.2.ebuild:
+ Security version bump wrt bug #140856
+
+ 17 Jul 2006; Daniel Black <dragonheart@gentoo.org>
+ wireshark-0.99.1_pre1.ebuild:
+ added keywords (~alpha ~ia64 ~ppc64) as this is off the same codebase as
+ ethereal - bug #136729
+
+ 16 Jul 2006; Daniel Gryniewicz <dang@gentoo.org>
+ wireshark-0.99.1_pre1.ebuild:
+ Marked ~amd64 per bug #136729
+
+ 15 Jul 2006; Stephanie Lockwood-Childs <wormo@gentoo.org>
+ wireshark-0.99.1_pre1.ebuild:
+ mark ~ppc (Bug #136729)
+
+ 01 Jul 2006; Jason Wever <weeve@gentoo.org> wireshark-0.99.1_pre1.ebuild:
+ Added ~sparc keyword.
+
+*wireshark-0.99.1_pre1 (30 Jun 2006)
+
+ 30 Jun 2006; Markus Ullmann <jokey@gentoo.org>
+ +files/wireshark-0.99.1_pre1-as-needed.patch, +metadata.xml,
+ +wireshark-0.99.1_pre1.ebuild:
+ Initial import, fixes bug #136729 , thanks to gentooperson@yahoo.com for
+ providing an ebuild
+
diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
new file mode 100644
index 0000000..5b193b9
--- /dev/null
+++ b/net-analyzer/wireshark/Manifest
@@ -0,0 +1,7 @@
+AUX wireshark-1.1.1--as-needed.patch 314 RMD160 5a9af8d8c1c2a6d2109413201659bd00f04a7bcd SHA1 87015021390434032716f244bc5432993c37f00f SHA256 f01cb55439c550c337f76354edd6f837e242544971a1f2dd3b45e911e75b42a7
+AUX wireshark-1.1.1-misc-warnings.patch 5519 RMD160 24b02a98a96861621f3ebd14534bc16ab162b4a6 SHA1 2110476f7079b15982c384fa9e0c0754162a6b52 SHA256 ff335d097283d3d32a47952c33684e2485e7f506f26088957deb3c4a06121d30
+AUX wireshark-except-double-free.diff 664 RMD160 2b61f03f5148975f6438351c11de18a500deabc5 SHA1 0239e19ba0ebd2cfb4ab4987a8a4c56646cd9250 SHA256 dc02a5f3e4bdbd128a2ba08f38880358f747661a93ca0b3fe1918c67b255c369
+DIST wireshark-1.1.1.tar.gz 17856811 RMD160 522a717e9163b844e452cb3d50376f113335aca9 SHA1 5d6d57a6e67b30fbbd8241c9305002d410a3e920 SHA256 e55f72b7910a4556411bace181e9ecdb3c7da6b8510ade7a632a5144cee4a94a
+EBUILD wireshark-1.1.1.ebuild 4877 RMD160 41554c22880caec66f8cd7bb4f6166e77a4f17e8 SHA1 7fdd83bed14bebbda885a73f21d75b96edbf33d7 SHA256 743847dde1635d343813d1b7a0a9c2cb4e0f63ad0c2c7719ef7ae454da812823
+MISC ChangeLog 20664 RMD160 c8393d0423a9ab71c3917a97efd3358007a6ebe8 SHA1 6ed2132b4c917c216040c600612dd7b599c7e12e SHA256 aa90b6076876c04da782cc91939a830ca2dcc6d15a7e0cb7f110883101f86eb3
+MISC metadata.xml 2154 RMD160 01af8905d25e6c387902d30766daedcd37d94e0e SHA1 d68e79d413654ce72c553d508d7aa96f27fe85b5 SHA256 48c540fcec9cf1e5eebe132d7f90e8330b413f4eb6469761a88720eaa6a2233a
diff --git a/net-analyzer/wireshark/files/wireshark-1.1.1--as-needed.patch b/net-analyzer/wireshark/files/wireshark-1.1.1--as-needed.patch
new file mode 100644
index 0000000..bf708c5
--- /dev/null
+++ b/net-analyzer/wireshark/files/wireshark-1.1.1--as-needed.patch
@@ -0,0 +1,11 @@
+--- ./epan/wslua/Makefile.am.orig 2008-10-17 12:08:43.000000000 +0400
++++ ./epan/wslua/Makefile.am 2008-10-17 12:08:48.000000000 +0400
+@@ -47,7 +47,7 @@
+ init_wslua.c \
+ wslua.h
+
+-libwslua_la_LIBADD = @LUA_LIBS@
++libwslua_la_LIBADD = @LUA_LIBS@ ../../wiretap/libwiretap.la
+
+ BUILT_SOURCES = \
+ taps_wslua.c \
diff --git a/net-analyzer/wireshark/files/wireshark-1.1.1-misc-warnings.patch b/net-analyzer/wireshark/files/wireshark-1.1.1-misc-warnings.patch
new file mode 100644
index 0000000..8e6d339
--- /dev/null
+++ b/net-analyzer/wireshark/files/wireshark-1.1.1-misc-warnings.patch
@@ -0,0 +1,160 @@
+--- ./epan/dissectors/packet-ldp.c.orig 2008-10-16 22:58:47.000000000 +0400
++++ ./epan/dissectors/packet-ldp.c 2008-10-16 22:59:03.000000000 +0400
+@@ -2484,7 +2484,7 @@
+ int length_remaining;
+ guint16 plen;
+ int length;
+- tvbuff_t *next_tvb;
++ tvbuff_t *volatile next_tvb;
+
+ while (tvb_reported_length_remaining(tvb, offset) != 0) {
+ length_remaining = tvb_length_remaining(tvb, offset);
+--- ./epan/dissectors/packet-tpkt.c.orig 2008-10-16 23:24:58.000000000 +0400
++++ ./epan/dissectors/packet-tpkt.c 2008-10-16 23:25:27.000000000 +0400
+@@ -217,7 +217,7 @@
+ int mgcp_version = 0;
+ int mgcp_reserved = 0;
+ volatile int length;
+- tvbuff_t *next_tvb;
++ tvbuff_t *volatile next_tvb;
+ const char *saved_proto;
+ guint8 string[4];
+ /*
+@@ -372,7 +372,7 @@
+ int length_remaining;
+ int data_len;
+ volatile int length;
+- tvbuff_t *next_tvb;
++ tvbuff_t *volatile next_tvb;
+ const char *saved_proto;
+
+ /*
+--- ./epan/dissectors/packet-gssapi.c.orig 2008-10-16 22:55:09.000000000 +0400
++++ ./epan/dissectors/packet-gssapi.c 2008-10-16 22:56:06.000000000 +0400
+@@ -172,8 +172,8 @@
+ dissect_gssapi_work(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
+ gboolean is_verifier)
+ {
+- proto_item *item;
+- proto_tree *subtree;
++ proto_item *volatile item;
++ proto_tree *volatile subtree;
+ volatile int return_offset = 0;
+ gssapi_conv_info_t *volatile gss_info;
+ gssapi_oid_value *oidvalue;
+--- ./epan/dissectors/packet-tds.c.orig 2008-10-16 23:22:27.000000000 +0400
++++ ./epan/dissectors/packet-tds.c 2008-10-16 23:22:40.000000000 +0400
+@@ -1725,7 +1725,7 @@
+ guint8 type;
+ guint16 plen;
+ guint length;
+- tvbuff_t *next_tvb;
++ tvbuff_t *volatile next_tvb;
+ proto_item *tds_item = NULL;
+ proto_tree *tds_tree = NULL;
+
+--- ./epan/dissectors/packet-isl.c.orig 2008-10-16 22:57:53.000000000 +0400
++++ ./epan/dissectors/packet-isl.c 2008-10-16 22:58:15.000000000 +0400
+@@ -149,7 +149,7 @@
+ {
+ proto_tree *volatile fh_tree = NULL;
+ proto_item *ti, *hidden_item;
+- guint8 type;
++ volatile guint8 type;
+ volatile guint16 length;
+ gint captured_length;
+ tvbuff_t *volatile payload_tvb = NULL;
+--- ./epan/dissectors/packet-ieee802154.c.orig 2008-10-16 22:56:53.000000000 +0400
++++ ./epan/dissectors/packet-ieee802154.c 2008-10-16 22:57:23.000000000 +0400
+@@ -484,7 +484,7 @@
+ static void
+ dissect_ieee802154_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint options)
+ {
+- tvbuff_t *payload_tvb;
++ tvbuff_t *volatile payload_tvb;
+ proto_tree *volatile ieee802154_tree = NULL;
+ proto_item *volatile proto_root = NULL;
+ proto_item *ti;
+--- ./epan/dissectors/packet-tr.c.orig 2008-10-16 23:25:37.000000000 +0400
++++ ./epan/dissectors/packet-tr.c 2008-10-16 23:26:20.000000000 +0400
+@@ -326,10 +326,10 @@
+ {
+ proto_tree *tr_tree, *bf_tree;
+ proto_item *ti, *hidden_item;
+- int frame_type;
+ guint8 rcf1, rcf2;
+ tvbuff_t *next_tvb;
+
++ volatile int frame_type;
+ volatile int fixoffset = 0;
+ volatile int source_routed = 0;
+ volatile guint8 trn_rif_bytes;
+--- ./epan/dissectors/packet-bgp.c.orig 2008-10-16 22:40:35.000000000 +0400
++++ ./epan/dissectors/packet-bgp.c 2008-10-16 22:49:31.000000000 +0400
+@@ -2623,7 +2623,7 @@
+ }
+
+ static void
+-dissect_bgp_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
++dissect_bgp_pdu(tvbuff_t *volatile tvb, packet_info *pinfo, proto_tree *tree,
+ gboolean first)
+ {
+ guint16 bgp_len; /* Message length */
+@@ -2740,7 +2740,7 @@
+ guint length_remaining;
+ guint length;
+ volatile gboolean first = TRUE; /* TRUE for the first BGP message in packet */
+- tvbuff_t *next_tvb;
++ tvbuff_t *volatile next_tvb;
+
+ if (check_col(pinfo->cinfo, COL_PROTOCOL))
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "BGP");
+--- ./epan/dissectors/packet-ethertype.c.orig 2008-10-16 22:51:48.000000000 +0400
++++ ./epan/dissectors/packet-ethertype.c 2008-10-16 22:52:25.000000000 +0400
+@@ -193,7 +193,7 @@
+ guint length_before;
+ gint captured_length, reported_length;
+ volatile gboolean dissector_found = FALSE;
+- const char *saved_proto;
++ const char *volatile saved_proto;
+
+ /* Add the Ethernet type to the protocol tree */
+ if (tree) {
+--- ./epan/dissectors/packet-vlan.c.orig 2008-10-16 23:26:42.000000000 +0400
++++ ./epan/dissectors/packet-vlan.c 2008-10-16 23:27:07.000000000 +0400
+@@ -74,7 +74,8 @@
+ dissect_vlan(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+ {
+ proto_tree *ti;
+- guint16 tci,encap_proto;
++ guint16 tci;
++ volatile guint16 encap_proto;
+ volatile gboolean is_802_2;
+ proto_tree *volatile vlan_tree;
+
+=== modified file 'epan/dissectors/packet-scsi.h'
+--- epan/dissectors/packet-scsi.h 2008-11-22 14:42:31 +0000
++++ epan/dissectors/packet-scsi.h 2008-11-22 14:45:00 +0000
+@@ -241,7 +241,7 @@
+ */
+ #define TRY_SCSI_CDB_ALLOC_LEN(pinfo, tvb, offset, length) \
+ { \
+- gboolean short_packet; \
++ volatile gboolean short_packet; \
+ tvbuff_t *new_tvb; \
+ guint32 end_data_offset=0; \
+ \
+
+=== modified file 'epan/dissectors/packet-x11.c'
+--- epan/dissectors/packet-x11.c 2008-11-22 14:42:31 +0000
++++ epan/dissectors/packet-x11.c 2008-11-22 14:50:41 +0000
+@@ -4066,7 +4066,7 @@
+ conversation_t *conversation;
+ x11_conv_data_t *volatile state;
+ int length;
+- tvbuff_t *next_tvb;
++ tvbuff_t *volatile next_tvb;
+
+ while (tvb_reported_length_remaining(tvb, offset) != 0) {
+ /*
+
diff --git a/net-analyzer/wireshark/files/wireshark-except-double-free.diff b/net-analyzer/wireshark/files/wireshark-except-double-free.diff
new file mode 100644
index 0000000..a7ca896
--- /dev/null
+++ b/net-analyzer/wireshark/files/wireshark-except-double-free.diff
@@ -0,0 +1,16 @@
+Index: except.c
+===================================================================
+--- except.c (revision 19876)
++++ except.c (working copy)
+@@ -192,6 +192,11 @@
+
+ assert (top->except_type == XCEPT_CATCHER);
+ except_free(catcher->except_obj.except_dyndata);
++ /* make sure no else can free this pointer again
++ See http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1001
++ http://bugs.gentoo.org/show_bug.cgi?id=133092
++ http://bugs.gentoo.org/show_bug.cgi?id=145974 */
++ catcher->except_obj.except_dyndata = NULL;
+
+ for (i = 0; i < catcher->except_size; pi++, i++) {
+ if (match(&except->except_id, pi)) {
diff --git a/net-analyzer/wireshark/metadata.xml b/net-analyzer/wireshark/metadata.xml
new file mode 100644
index 0000000..059e62c
--- /dev/null
+++ b/net-analyzer/wireshark/metadata.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>netmon</herd>
+<maintainer>
+ <email>pva@gentoo.org</email>
+ <name>Peter Volkov</name>
+</maintainer>
+<longdescription>
+ Wireshark is the world's foremost network protocol analyzer, and is the de
+ facto (and often de jure) standard across many industries and educational
+ institutions. Wireshark has a rich feature set which includes 1) deep
+ inspection of hundreds of protocols, with more being added all the time, 2)
+ live capture and offline analysis, 3) standard three-pane packet browser, 4)
+ captured network data can be browsed via a GUI, or via the TTY-mode TShark
+ utility, 5) the most powerful display filters in the industry, 6) rich VoIP
+ analysis, 7) read/write many different capture file formats: tcpdump
+ (libpcap), Catapult DCT2000, Cisco Secure IDS iplog, Microsoft Network
+ Monitor, Network General Sniffer® (compressed and uncompressed), Sniffer®
+ Pro, and NetXray®, Network Instruments Observer, Novell LANalyzer, RADCOM
+ WAN/LAN Analyzer, Shomiti/Finisar Surveyor, Tektronix K12xx, Visual Networks
+ Visual UpTime, WildPackets EtherPeek/TokenPeek/AiroPeek, and many others, 8)
+ capture files compressed with gzip can be decompressed on the fly, 9) live
+ data can be read from Ethernet, IEEE 802.11, PPP/HDLC, ATM, Bluetooth, USB,
+ Token Ring, Frame Relay, FDDI, and others, 10) decryption support for many
+ protocols, including IPsec, ISAKMP, Kerberos, SNMPv3, SSL/TLS, WEP, and
+ WPA/WPA2, 11) coloring rules can be applied to the packet list for quick,
+ intuitive analysis, 12) output can be exported to XML, PostScript®, CSV, or
+ plain text
+</longdescription>
+<use>
+<flag name='gcrypt'>Use GNU crypto library (<pkg>dev-libs/libgcrypt</pkg>) to decrypt SSL traffic</flag>
+<flag name='ares'>Use GNU <pkg>net-dns/c-ares</pkg> library to resolve DNS names</flag>
+<flag name='pcap'>Use <pkg>net-libs/libpcap</pkg> for network packet capturing (build dumpcap, rawshark)</flag>
+<flag name='smi'>Use <pkg>net-libs/libsmi</pkg> to resolve numeric OIDs into human readable format</flag>
+</use>
+</pkgmetadata>
diff --git a/net-analyzer/wireshark/wireshark-1.1.1.ebuild b/net-analyzer/wireshark/wireshark-1.1.1.ebuild
new file mode 100644
index 0000000..2054ed7
--- /dev/null
+++ b/net-analyzer/wireshark/wireshark-1.1.1.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-1.1.1.ebuild,v 1.3 2008/10/21 05:51:38 pva Exp $
+
+EAPI=1
+inherit autotools libtool flag-o-matic eutils toolchain-funcs
+
+DESCRIPTION="A network protocol analyzer formerly known as ethereal"
+HOMEPAGE="http://www.wireshark.org/"
+
+# _rc versions has different download location.
+[[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && {
+SRC_URI="http://www.wireshark.org/download/prerelease/${PN}-${PV/_rc/pre}.tar.gz";
+S=${WORKDIR}/${PN}-${PV/_rc/pre} ; } || \
+SRC_URI="http://www.wireshark.org/download/src/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="adns +gtk ipv6 lua portaudio gnutls ares gcrypt zlib kerberos threads profile smi +pcap pcre +caps selinux"
+
+RDEPEND=">=dev-libs/glib-2.4.0:2
+ zlib? ( sys-libs/zlib )
+ smi? ( net-libs/libsmi )
+ gtk? ( >=x11-libs/gtk+-2.4.0:2
+ x11-libs/pango
+ dev-libs/atk )
+ gnutls? ( net-libs/gnutls )
+ gcrypt? ( dev-libs/libgcrypt )
+ pcap? ( net-libs/libpcap )
+ pcre? ( dev-libs/libpcre )
+ caps? ( sys-libs/libcap )
+ kerberos? ( virtual/krb5 )
+ portaudio? ( media-libs/portaudio )
+ ares? ( >=net-dns/c-ares-1.5 )
+ !ares? ( adns? ( net-libs/adns ) )
+ lua? ( >=dev-lang/lua-5.1 )
+ selinux? ( sec-policy/selinux-wireshark )"
+
+DEPEND="${RDEPEND}
+ >=dev-util/pkgconfig-0.15.0
+ dev-lang/perl
+ sys-devel/bison
+ sys-devel/flex"
+
+pkg_setup() {
+ if ! use gtk; then
+ ewarn "USE=-gtk will means no gui called wireshark will be created and"
+ ewarn "only command line utils are available"
+ fi
+
+ if use ares && use adns; then
+ einfo "You asked for both, ares and adns, but we can use only one of them."
+ einfo "c-ares supersedes adns resolver thus using c-ares (ares USE flag)."
+ myconf="$(use_with ares c-ares) --without-adns"
+ else
+ myconf="$(use_with adns) $(use_with ares c-ares)"
+ fi
+
+ # Add group for users allowed to sniff.
+ enewgroup wireshark
+}
+
+src_unpack() {
+ unpack ${A}
+
+ # our hardened toolchain bug...
+ cd "${S}"/epan
+ epatch "${FILESDIR}/wireshark-except-double-free.diff"
+
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-misc-warnings.patch"
+ # made dependent on lua as generally dissectors shouldn't depend on wiretap
+ use lua && epatch "${FILESDIR}/${P}--as-needed.patch"
+ eautoreconf
+}
+
+src_compile() {
+ # optimization bug, see bug #165340, bug #40660
+ if [[ $(gcc-version) == 3.4 ]] ; then
+ elog "Found gcc 3.4, forcing -O3 into CFLAGS"
+ replace-flags -O? -O3
+ elif [[ $(gcc-version) == 3.3 || $(gcc-version) == 3.2 ]] ; then
+ elog "Found <=gcc-3.3, forcing -O into CFLAGS"
+ replace-flags -O? -O
+ fi
+
+ # see bug #133092; bugs.wireshark.org/bugzilla/show_bug.cgi?id=1001
+ # our hardened toolchain bug
+ filter-flags -fstack-protector
+
+ # profile and -fomit-frame-pointer are incompatible, bug #215806
+ use profile && filter-flags -fomit-frame-pointer
+
+ # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
+ # --with-ssl to ./configure. (Mimics code from acinclude.m4).
+ if use kerberos; then
+ case `krb5-config --libs` in
+ *-lcrypto*) myconf="${myconf} --with-ssl" ;;
+ esac
+ fi
+
+ # dumpcap requires libcap, setuid-install requires dumpcap
+ econf $(use_enable gtk wireshark) \
+ $(use_enable profile profile-build) \
+ $(use_with gnutls) \
+ $(use_with gcrypt) \
+ $(use_enable ipv6) \
+ $(use_enable threads) \
+ $(use_with lua) \
+ $(use_with kerberos krb5) \
+ $(use_with smi libsmi) \
+ $(use_with pcap) \
+ $(use_with zlib) \
+ $(use_with pcre) \
+ $(use_with portaudio) \
+ $(use_with caps libcap) \
+ $(use_enable pcap setuid-install) \
+ --sysconfdir=/etc/wireshark \
+ ${myconf}
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ fowners 0:wireshark /usr/bin/tshark
+ fperms 6550 /usr/bin/tshark
+ use pcap && fowners 0:wireshark /usr/bin/dumpcap
+ use pcap && fperms 6550 /usr/bin/dumpcap
+
+ insinto /usr/include/wiretap
+ doins wiretap/wtap.h
+
+ # FAQ is not required as is installed from help/faq.txt
+ dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} doc/randpkt.txt
+
+ if use gtk; then
+ for c in hi lo; do
+ for d in 16 32 48; do
+ insinto /usr/share/icons/${c}color/${d}x${d}/apps
+ newins image/${c}${d}-app-wireshark.png wireshark.png
+ done
+ done
+ insinto /usr/share/applications
+ doins wireshark.desktop
+ fi
+}
+
+pkg_postinst() {
+ echo
+ ewarn "With version 0.99.7, all function calls that require elevated privileges"
+ ewarn "have been moved out of the GUI to dumpcap. WIRESHARK CONTAINS OVER ONE"
+ ewarn "POINT FIVE MILLION LINES OF SOURCE CODE. DO NOT RUN THEM AS ROOT."
+ ewarn
+ ewarn "NOTE: To run wireshark as normal user you have to add yourself into"
+ ewarn "wireshark group. This security measure ensures that only trusted"
+ ewarn "users allowed to sniff your traffic."
+ echo
+}