diff options
author | 2008-03-18 20:30:43 +0000 | |
---|---|---|
committer | 2008-03-18 20:30:43 +0000 | |
commit | c6c5b73529090743cf20c47556cb12b0e0dbb66f (patch) | |
tree | d3e7b4422074a2e8589fcbbfb7b5d9cfb5ffe634 /net-analyzer | |
parent | Re-add ~sparc (diff) | |
download | gentoo-2-c6c5b73529090743cf20c47556cb12b0e0dbb66f.tar.gz gentoo-2-c6c5b73529090743cf20c47556cb12b0e0dbb66f.tar.bz2 gentoo-2-c6c5b73529090743cf20c47556cb12b0e0dbb66f.zip |
Removed unused ebuilds. Made pcap USE flag enabled by default to avoid further questions why wireshark is unable to capture packets.
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/wireshark/ChangeLog | 13 | ||||
-rw-r--r-- | net-analyzer/wireshark/files/wireshark-0.99.7-crash-emem.c.patch | 32 | ||||
-rw-r--r-- | net-analyzer/wireshark/files/wireshark-0.99.7-exit.patch | 63 | ||||
-rw-r--r-- | net-analyzer/wireshark/files/wireshark-0.99.7-glib-1.2-compile-fix.patch | 12 | ||||
-rw-r--r-- | net-analyzer/wireshark/wireshark-0.99.7-r1.ebuild | 172 | ||||
-rw-r--r-- | net-analyzer/wireshark/wireshark-0.99.7-r2.ebuild | 176 | ||||
-rw-r--r-- | net-analyzer/wireshark/wireshark-0.99.8.ebuild | 11 | ||||
-rw-r--r-- | net-analyzer/wireshark/wireshark-0.99.8_rc1.ebuild | 167 |
8 files changed, 13 insertions, 633 deletions
diff --git a/net-analyzer/wireshark/ChangeLog b/net-analyzer/wireshark/ChangeLog index 681f47209034..6e53d5050ab3 100644 --- a/net-analyzer/wireshark/ChangeLog +++ b/net-analyzer/wireshark/ChangeLog @@ -1,6 +1,15 @@ # 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.87 2008/03/18 18:06:06 dertobi123 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.88 2008/03/18 20:30:42 pva Exp $ + + 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: @@ -31,7 +40,7 @@ 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... + 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: diff --git a/net-analyzer/wireshark/files/wireshark-0.99.7-crash-emem.c.patch b/net-analyzer/wireshark/files/wireshark-0.99.7-crash-emem.c.patch deleted file mode 100644 index ef58cc4d7513..000000000000 --- a/net-analyzer/wireshark/files/wireshark-0.99.7-crash-emem.c.patch +++ /dev/null @@ -1,32 +0,0 @@ -http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2012 -http://anonsvn.wireshark.org/viewvc/viewvc.py?view=rev&revision=23557 -Author: gerald -Date: Fri Nov 23 23:31:21 2007 UTC (6 weeks, 3 days ago) -Log Message: - -Catch a bad bLength, which may cause a loop. Fixes bug 2012. - ---- trunk/epan/dissectors/packet-usb.c 2007/11/23 20:16:41 23556 -+++ trunk/epan/dissectors/packet-usb.c 2007/11/23 23:31:21 23557 -@@ -34,6 +34,7 @@ - #include <epan/emem.h> - #include <epan/tap.h> - #include <epan/conversation.h> -+#include <epan/expert.h> - #include <string.h> - #include "packet-usb.h" - -@@ -652,6 +653,13 @@ - proto_tree_add_item(tree, hf_usb_bLength, tvb, offset, 1, TRUE); - bLength = tvb_get_guint8(tvb, offset); - offset++; -+ if (bLength < 3) { -+ item = proto_tree_add_text(parent_tree, tvb, offset - 1, 1, -+ "Invalid bLength: %u", bLength); -+ expert_add_info_format(pinfo, item, PI_MALFORMED, PI_ERROR, -+ "Invalid bLength: %u", bLength); -+ return offset; -+ } - - /* bDescriptorType */ - proto_tree_add_item(tree, hf_usb_bDescriptorType, tvb, offset, 1, TRUE); diff --git a/net-analyzer/wireshark/files/wireshark-0.99.7-exit.patch b/net-analyzer/wireshark/files/wireshark-0.99.7-exit.patch deleted file mode 100644 index 3fa306997caf..000000000000 --- a/net-analyzer/wireshark/files/wireshark-0.99.7-exit.patch +++ /dev/null @@ -1,63 +0,0 @@ -http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2177 - -http://anonsvn.wireshark.org/viewvc/viewvc.py?view=rev&revision=24040 -Author: guy -Date: Wed Jan 9 11:40:38 2008 UTC (28 hours, 3 minutes ago) -Log Message: - -Use dup2() rather than eth_close() followed by dup() to ensure that a -given file descriptor get duped to another descriptor. - -Handle exec errors in sync_pipe_open_command() the same way they're -handled in sync_pipe_start(); that fixes bug 2177. - ---- trunk/capture_sync.c 2008/01/09 09:34:19 24039 -+++ trunk/capture_sync.c 2008/01/09 11:40:38 24040 -@@ -507,13 +507,12 @@ - * Child process - run dumpcap with the right arguments to make - * it just capture with the specified capture parameters - */ -- eth_close(2); -- dup(sync_pipe[PIPE_WRITE]); -+ dup2(sync_pipe[PIPE_WRITE], 2); - eth_close(sync_pipe[PIPE_READ]); - execv(argv[0], (gpointer)argv); - g_snprintf(errmsg, sizeof errmsg, "Couldn't run %s in child process: %s", - argv[0], strerror(errno)); -- sync_pipe_errmsg_to_parent(1, errmsg, ""); -+ sync_pipe_errmsg_to_parent(2, errmsg, ""); - - /* Exit with "_exit()", so that we don't close the connection - to the X server (and cause stuff buffered up by our parent but -@@ -589,6 +588,7 @@ - PROCESS_INFORMATION pi; - int i; - #else -+ char errmsg[1024+1]; - int sync_pipe[2]; /* pipe used to send messages from child to parent */ - enum PIPES { PIPE_READ, PIPE_WRITE }; /* Constants 0 and 1 for PIPE_READ and PIPE_WRITE */ - #endif -@@ -678,13 +678,18 @@ - * Child process - run dumpcap with the right arguments to make - * it just capture with the specified capture parameters - */ -- eth_close(1); -- dup(sync_pipe[PIPE_WRITE]); -+ dup2(sync_pipe[PIPE_WRITE], 1); - eth_close(sync_pipe[PIPE_READ]); - execv(argv[0], (gpointer)argv); -- *msg = g_strdup_printf("Couldn't run %s in child process: %s", -- argv[0], strerror(errno)); -- return CANT_RUN_DUMPCAP; -+ g_snprintf(errmsg, sizeof errmsg, "Couldn't run %s in child process: %s", -+ argv[0], strerror(errno)); -+ sync_pipe_errmsg_to_parent(1, errmsg, ""); -+ -+ /* Exit with "_exit()", so that we don't close the connection -+ to the X server (and cause stuff buffered up by our parent but -+ not yet sent to be sent, as that stuff should only be sent by -+ our parent). */ -+ _exit(2); - } - - *read_fd = sync_pipe[PIPE_READ]; diff --git a/net-analyzer/wireshark/files/wireshark-0.99.7-glib-1.2-compile-fix.patch b/net-analyzer/wireshark/files/wireshark-0.99.7-glib-1.2-compile-fix.patch deleted file mode 100644 index 93ee1a79b782..000000000000 --- a/net-analyzer/wireshark/files/wireshark-0.99.7-glib-1.2-compile-fix.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- epan/wslua/wslua.h.orig 2008-01-27 18:47:07.000000000 +0300 -+++ epan/wslua/wslua.h 2008-01-27 18:46:27.000000000 +0300 -@@ -53,6 +53,9 @@ - #include <epan/funnel.h> - #include <epan/tvbparse.h> - #include <epan/epan.h> -+#if GLIB_MAJOR_VERSION < 2 -+#include <dirent.h> -+#endif - - #include "declare_wslua.h" - diff --git a/net-analyzer/wireshark/wireshark-0.99.7-r1.ebuild b/net-analyzer/wireshark/wireshark-0.99.7-r1.ebuild deleted file mode 100644 index 035759c63820..000000000000 --- a/net-analyzer/wireshark/wireshark-0.99.7-r1.ebuild +++ /dev/null @@ -1,172 +0,0 @@ -# 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-0.99.7-r1.ebuild,v 1.1 2008/01/10 18:36:34 pva Exp $ - -WANT_AUTOMAKE="1.9" -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/all-versions/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="adns gtk ipv6 portaudio snmp ssl kerberos threads selinux" - -RDEPEND="sys-libs/zlib - snmp? ( net-analyzer/net-snmp ) - gtk? ( >=dev-libs/glib-2.0.4 - =x11-libs/gtk+-2* - x11-libs/pango - dev-libs/atk ) - !gtk? ( =dev-libs/glib-1.2* ) - ssl? ( dev-libs/openssl ) - !ssl? ( net-libs/gnutls ) - net-libs/libpcap - dev-libs/libpcre - sys-libs/libcap - adns? ( net-libs/adns ) - kerberos? ( virtual/krb5 ) - portaudio? ( media-libs/portaudio ) - selinux? ( sec-policy/selinux-wireshark )" - -DEPEND="${RDEPEND} - >=dev-util/pkgconfig-0.15.0 - dev-lang/perl - sys-devel/bison - sys-devel/flex - sys-apps/sed" - -pkg_setup() { - # bug 119208 - if has_version "<=dev-lang/perl-5.8.8_rc1" && built_with_use dev-lang/perl minimal ; then - ewarn "wireshark will not build if dev-lang/perl is compiled with" - ewarn "USE=minimal. Rebuild dev-lang/perl with USE=-minimal and try again." - ebeep 5 - die "dev-lang/perl compiled with USE=minimal" - fi - - if ! use gtk; then - ewarn "USE=-gtk will mean no gui called wireshark will be created and" - ewarn "only command line utils are available" - fi - - # Add group for users allowed to sniff. - enewgroup wireshark || die "Failed to create wireshark group" -} - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${PN}-0.99.7-libgcrypt.patch - epatch "${FILESDIR}"/${PN}-0.99.7-asneeded.patch - - cd "${S}"/epan - epatch "${FILESDIR}"/wireshark-except-double-free.diff - - cd "${S}" - # http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2012 - epatch "${FILESDIR}"/${P}-crash-emem.c.patch - # http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2177 - epatch "${FILESDIR}"/${P}-exit.patch - AT_M4DIR="${S}/aclocal-fallback" - 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 - filter-flags -fstack-protector - - local myconf - - if use gtk; then - einfo "Building with gtk support" - else - einfo "Building without gtk support" - myconf="${myconf} --disable-wireshark --disable-warnings-as-errors" - # the asn1 plugin needs gtk - sed -i -e '/plugins.asn1/d' Makefile.in || die "sed failed" - sed -i -e '/^SUBDIRS/s/asn1//' plugins/Makefile.in || die "sed failed" - fi - - # $(use_with lua) \ - econf $(use_with ssl) \ - $(use_enable ipv6) \ - $(use_with adns) \ - $(use_with kerberos krb5) \ - $(use_with snmp net-snmp) \ - $(use_with portaudio) \ - $(use_enable gtk gtk2) \ - $(use_enable threads) \ - --with-libcap \ - --enable-setuid-install \ - --without-ucd-snmp \ - --enable-dftest \ - --enable-randpkt \ - --sysconfdir=/etc/wireshark \ - --enable-editcap \ - --enable-capinfos \ - --enable-text2pcap \ - ${myconf} || die "econf failed" - - # fixes an access violation caused by libnetsnmp - see bug 79068 - use snmp && export MIBDIRS="${D}/usr/share/snmp/mibs" - - emake || die "emake failed" -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - - for file in /usr/bin/tshark /usr/bin/dumpcap - do - fowners 0:wireshark ${file} - fperms 6550 ${file} - done - - insinto /usr/include/wiretap - doins wiretap/wtap.h - - dodoc AUTHORS ChangeLog NEWS README* - - if use gtk ; then - insinto /usr/share/icons/hicolor/16x16/apps - newins image/hi16-app-wireshark.png wireshark.png - insinto /usr/share/icons/hicolor/32x32/apps - newins image/hi32-app-wireshark.png wireshark.png - insinto /usr/share/icons/hicolor/48x48/apps - newins image/hi48-app-wireshark.png wireshark.png - insinto /usr/share/applications - # Wireshark should not be ran as root in KDE. - # Bug: http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2127 - sed -i '/X-KDE-SubstituteUID/d' wireshark.desktop - 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 -} diff --git a/net-analyzer/wireshark/wireshark-0.99.7-r2.ebuild b/net-analyzer/wireshark/wireshark-0.99.7-r2.ebuild deleted file mode 100644 index bab211b9099b..000000000000 --- a/net-analyzer/wireshark/wireshark-0.99.7-r2.ebuild +++ /dev/null @@ -1,176 +0,0 @@ -# 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-0.99.7-r2.ebuild,v 1.1 2008/01/26 15:52:12 pva Exp $ - -WANT_AUTOMAKE="1.9" -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/all-versions/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="adns gtk ipv6 lua portaudio snmp ssl kerberos threads selinux" - -RDEPEND="sys-libs/zlib - snmp? ( net-analyzer/net-snmp ) - gtk? ( >=dev-libs/glib-2.0.4 - =x11-libs/gtk+-2* - x11-libs/pango - dev-libs/atk ) - !gtk? ( =dev-libs/glib-1.2* ) - ssl? ( dev-libs/openssl ) - !ssl? ( net-libs/gnutls ) - net-libs/libpcap - dev-libs/libpcre - sys-libs/libcap - adns? ( net-libs/adns ) - kerberos? ( virtual/krb5 ) - portaudio? ( media-libs/portaudio ) - 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 - sys-apps/sed" - -pkg_setup() { - # bug 119208 - if has_version "<=dev-lang/perl-5.8.8_rc1" && built_with_use dev-lang/perl minimal ; then - ewarn "wireshark will not build if dev-lang/perl is compiled with" - ewarn "USE=minimal. Rebuild dev-lang/perl with USE=-minimal and try again." - ebeep 5 - die "dev-lang/perl compiled with USE=minimal" - fi - - if ! use gtk; then - ewarn "USE=-gtk will mean no gui called wireshark will be created and" - ewarn "only command line utils are available" - fi - - # Add group for users allowed to sniff. - enewgroup wireshark || die "Failed to create wireshark group" -} - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}"/${PN}-0.99.7-libgcrypt.patch - epatch "${FILESDIR}"/${PN}-0.99.7-asneeded.patch - - cd "${S}"/epan - epatch "${FILESDIR}"/wireshark-except-double-free.diff - - cd "${S}" - # http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2012 - epatch "${FILESDIR}"/${P}-crash-emem.c.patch - # http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2177 - epatch "${FILESDIR}"/${P}-exit.patch - - # http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2224 - epatch "${FILESDIR}"/${P}-glib-1.2-compile-fix.patch - AT_M4DIR="${S}/aclocal-fallback" - 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 - filter-flags -fstack-protector - - local myconf - - if use gtk; then - einfo "Building with gtk support" - else - einfo "Building without gtk support" - myconf="${myconf} --disable-wireshark --disable-warnings-as-errors" - # the asn1 plugin needs gtk - sed -i -e '/plugins.asn1/d' Makefile.in || die "sed failed" - sed -i -e '/^SUBDIRS/s/asn1//' plugins/Makefile.in || die "sed failed" - fi - - econf $(use_with ssl) \ - $(use_enable ipv6) \ - $(use_with lua) \ - $(use_with adns) \ - $(use_with kerberos krb5) \ - $(use_with snmp net-snmp) \ - $(use_with portaudio) \ - $(use_enable gtk gtk2) \ - $(use_enable threads) \ - --with-libcap \ - --enable-setuid-install \ - --without-ucd-snmp \ - --enable-dftest \ - --enable-randpkt \ - --sysconfdir=/etc/wireshark \ - --enable-editcap \ - --enable-capinfos \ - --enable-text2pcap \ - ${myconf} || die "econf failed" - - # fixes an access violation caused by libnetsnmp - see bug 79068 - use snmp && export MIBDIRS="${D}/usr/share/snmp/mibs" - - emake || die "emake failed" -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - - for file in /usr/bin/tshark /usr/bin/dumpcap - do - fowners 0:wireshark ${file} - fperms 6550 ${file} - done - - insinto /usr/include/wiretap - doins wiretap/wtap.h - - dodoc AUTHORS ChangeLog NEWS README* - - if use gtk ; then - insinto /usr/share/icons/hicolor/16x16/apps - newins image/hi16-app-wireshark.png wireshark.png - insinto /usr/share/icons/hicolor/32x32/apps - newins image/hi32-app-wireshark.png wireshark.png - insinto /usr/share/icons/hicolor/48x48/apps - newins image/hi48-app-wireshark.png wireshark.png - insinto /usr/share/applications - # Wireshark should not be ran as root in KDE. - # Bug: http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2127 - sed -i '/X-KDE-SubstituteUID/d' wireshark.desktop - 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 -} diff --git a/net-analyzer/wireshark/wireshark-0.99.8.ebuild b/net-analyzer/wireshark/wireshark-0.99.8.ebuild index 903bb0c3ae6f..88494a70c3fc 100644 --- a/net-analyzer/wireshark/wireshark-0.99.8.ebuild +++ b/net-analyzer/wireshark/wireshark-0.99.8.ebuild @@ -1,13 +1,6 @@ # 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-0.99.8.ebuild,v 1.8 2008/03/18 18:06:06 dertobi123 Exp $ - -# ChangeLog: -# 1. Droped check for perl minimal USE flag. We do not have perl with minimal -# USE flag in portage. -# 2. Droped snmp USE flag. snmp dissector rewriten and now uses libsmi for OID -# handling. -# 3. Added smi USE flag. +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-0.99.8.ebuild,v 1.9 2008/03/18 20:30:42 pva Exp $ EAPI=1 WANT_AUTOMAKE="1.9" @@ -25,7 +18,7 @@ SRC_URI="http://www.wireshark.org/download/src/all-versions/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 hppa ia64 ppc ~ppc64 sparc x86 ~x86-fbsd" -IUSE="adns gtk ipv6 lua portaudio gnutls gcrypt zlib kerberos threads profile smi pcap pcre +caps selinux" +IUSE="adns gtk ipv6 lua portaudio gnutls gcrypt zlib kerberos threads profile smi +pcap pcre +caps selinux" RDEPEND="zlib? ( sys-libs/zlib ) smi? ( net-libs/libsmi ) diff --git a/net-analyzer/wireshark/wireshark-0.99.8_rc1.ebuild b/net-analyzer/wireshark/wireshark-0.99.8_rc1.ebuild deleted file mode 100644 index 7cc61756a32b..000000000000 --- a/net-analyzer/wireshark/wireshark-0.99.8_rc1.ebuild +++ /dev/null @@ -1,167 +0,0 @@ -# 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-0.99.8_rc1.ebuild,v 1.2 2008/02/21 20:44:13 pva Exp $ - -WANT_AUTOMAKE="1.9" -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/all-versions/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" -IUSE="adns gtk ipv6 lua portaudio snmp ssl kerberos threads selinux" - -RDEPEND="sys-libs/zlib - snmp? ( net-analyzer/net-snmp ) - gtk? ( >=dev-libs/glib-2.0.4 - =x11-libs/gtk+-2* - x11-libs/pango - dev-libs/atk ) - !gtk? ( =dev-libs/glib-1.2* ) - ssl? ( dev-libs/openssl ) - !ssl? ( net-libs/gnutls ) - net-libs/libpcap - dev-libs/libpcre - sys-libs/libcap - adns? ( net-libs/adns ) - kerberos? ( virtual/krb5 ) - portaudio? ( media-libs/portaudio ) - 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 - sys-apps/sed" - -pkg_setup() { - # bug 119208 - if has_version "<=dev-lang/perl-5.8.8_rc1" && built_with_use dev-lang/perl minimal ; then - ewarn "wireshark will not build if dev-lang/perl is compiled with" - ewarn "USE=minimal. Rebuild dev-lang/perl with USE=-minimal and try again." - ebeep 5 - die "dev-lang/perl compiled with USE=minimal" - fi - - if ! use gtk; then - ewarn "USE=-gtk will mean no gui called wireshark will be created and" - ewarn "only command line utils are available" - fi - - # Add group for users allowed to sniff. - enewgroup wireshark || die "Failed to create wireshark group" -} - -src_unpack() { - unpack ${A} - - cd "${S}" - epatch "${FILESDIR}"/${PN}-0.99.7-asneeded.patch - epatch "${FILESDIR}"/${PN}-0.99.8-as-needed.patch - - cd "${S}"/epan - epatch "${FILESDIR}"/wireshark-except-double-free.diff - - cd "${S}" - AT_M4DIR="${S}/aclocal-fallback" - 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 - filter-flags -fstack-protector - - local myconf - - if use gtk; then - einfo "Building with gtk support" - else - einfo "Building without gtk support" - myconf="${myconf} --disable-wireshark --disable-warnings-as-errors" - # the asn1 plugin needs gtk - sed -i -e '/plugins.asn1/d' Makefile.in || die "sed failed" - sed -i -e '/^SUBDIRS/s/asn1//' plugins/Makefile.in || die "sed failed" - fi - - econf $(use_with ssl) \ - $(use_enable ipv6) \ - $(use_with lua) \ - $(use_with adns) \ - $(use_with kerberos krb5) \ - $(use_with snmp net-snmp) \ - $(use_with portaudio) \ - $(use_enable gtk gtk2) \ - $(use_enable threads) \ - --with-libcap \ - --enable-setuid-install \ - --without-ucd-snmp \ - --enable-dftest \ - --enable-randpkt \ - --sysconfdir=/etc/wireshark \ - --enable-editcap \ - --enable-capinfos \ - --enable-text2pcap \ - ${myconf} || die "econf failed" - - # fixes an access violation caused by libnetsnmp - see bug 79068 - use snmp && export MIBDIRS="${D}/usr/share/snmp/mibs" - - emake || die "emake failed" -} - -src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - - for file in /usr/bin/tshark /usr/bin/dumpcap - do - fowners 0:wireshark ${file} - fperms 6550 ${file} - done - - insinto /usr/include/wiretap - doins wiretap/wtap.h - - dodoc AUTHORS ChangeLog NEWS README* - - if use gtk ; then - insinto /usr/share/icons/hicolor/16x16/apps - newins image/hi16-app-wireshark.png wireshark.png - insinto /usr/share/icons/hicolor/32x32/apps - newins image/hi32-app-wireshark.png wireshark.png - insinto /usr/share/icons/hicolor/48x48/apps - newins image/hi48-app-wireshark.png wireshark.png - 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 -} |