summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrChandra <gentooperson@yahoo.com>2006-06-29 22:42:03 +0000
committerDrChandra <gentooperson@yahoo.com>2006-06-29 22:42:03 +0000
commitede5e43f236594fe4fe1cc04068b6ea7e9f4cd89 (patch)
tree670ac57ecebd5209e95f122810285520260fb570 /net-analyzer
parentnet-www/mod_auth_nufw - bug 138378 (diff)
downloadsunrise-ede5e43f236594fe4fe1cc04068b6ea7e9f4cd89.tar.gz
sunrise-ede5e43f236594fe4fe1cc04068b6ea7e9f4cd89.tar.bz2
sunrise-ede5e43f236594fe4fe1cc04068b6ea7e9f4cd89.zip
net-analyzer/wireshark-0.99.1_pre1 - bug 136729 thanks to Daniel Black
svn path=/sunrise/; revision=378
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/wireshark/ChangeLog10
-rw-r--r--net-analyzer/wireshark/Manifest16
-rw-r--r--net-analyzer/wireshark/files/digest-wireshark-0.99.1_pre13
-rw-r--r--net-analyzer/wireshark/files/wireshark-0.99.1_pre1-as-needed.patch12
-rw-r--r--net-analyzer/wireshark/wireshark-0.99.1_pre1.ebuild132
5 files changed, 173 insertions, 0 deletions
diff --git a/net-analyzer/wireshark/ChangeLog b/net-analyzer/wireshark/ChangeLog
new file mode 100644
index 000000000..eb60eef57
--- /dev/null
+++ b/net-analyzer/wireshark/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for <CATEGORY>/<PACKAGE_NAME>
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*wireshark-0.99.1_pre1 (29 Jun 2006)
+
+ 29 Jun 2006; DrChandra gentooperson@yahoo.com Initial import
+ Ebuild submitted by DrChandra <gentooperson@yahoo.com>.
+ Taken from ethereal-0.99.0-r1.ebuild
+ Original ebuild submitted by Daniel Black <dragonheart@gentoo.org>
diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
new file mode 100644
index 000000000..bca17df4e
--- /dev/null
+++ b/net-analyzer/wireshark/Manifest
@@ -0,0 +1,16 @@
+AUX wireshark-0.99.1_pre1-as-needed.patch 939 RMD160 cf9ef5378783881a193c35606c3edf3ed310232f SHA1 74ed27014bfd18d58ba8e117efeafc66ac35cbff SHA256 57e405fefff48024fa06b5d4632f5cc7e888417471a1ba81b743c355ff7c8863
+MD5 9e02d41b59850b077faa7b96613069a6 files/wireshark-0.99.1_pre1-as-needed.patch 939
+RMD160 cf9ef5378783881a193c35606c3edf3ed310232f files/wireshark-0.99.1_pre1-as-needed.patch 939
+SHA256 57e405fefff48024fa06b5d4632f5cc7e888417471a1ba81b743c355ff7c8863 files/wireshark-0.99.1_pre1-as-needed.patch 939
+DIST wireshark-0.99.1pre1.tar.gz 11258134 RMD160 70d730b3c3b3150853ee41734e5f631e3d025657 SHA1 759ebdb0ba359ac5a20ef6023f36c5e0458ac6e2 SHA256 b8cc4eb246c7464360746d3563c8cc1e870c5c91bc5424804a1284071cc8a060
+EBUILD wireshark-0.99.1_pre1.ebuild 3856 RMD160 f11867cda786123b93ea08e1fc77111193d3b37a SHA1 e3f6bb7e642d4a221ce631573087314a19315eca SHA256 d6299571b8efb7214a9752cead89e8281a7dc9301a2083fb26caf64c072f45c4
+MD5 ae995f87e9bd036ba04783b0f7429fbe wireshark-0.99.1_pre1.ebuild 3856
+RMD160 f11867cda786123b93ea08e1fc77111193d3b37a wireshark-0.99.1_pre1.ebuild 3856
+SHA256 d6299571b8efb7214a9752cead89e8281a7dc9301a2083fb26caf64c072f45c4 wireshark-0.99.1_pre1.ebuild 3856
+MISC ChangeLog 390 RMD160 b32ff2131993816ede07cf9796519d62aef3b48d SHA1 48b705c45a30c36a29e9a0a4a1bed53c57c007e4 SHA256 996f6031aab000f6572c66d952f01e3d71c2287813abe7db3c236dd819bb76e3
+MD5 0a5daf9d1967d6c50aa3706055107844 ChangeLog 390
+RMD160 b32ff2131993816ede07cf9796519d62aef3b48d ChangeLog 390
+SHA256 996f6031aab000f6572c66d952f01e3d71c2287813abe7db3c236dd819bb76e3 ChangeLog 390
+MD5 1af7d91ed4e2f8a09df958d9a0625fd1 files/digest-wireshark-0.99.1_pre1 268
+RMD160 d9f0b1efda93b13c994d6efeb7953c1fadefd7b9 files/digest-wireshark-0.99.1_pre1 268
+SHA256 70b1edef99ce9dd28b7f4569c9dfb13a59b4fe2d9c78fe5f36429d83bcd869cd files/digest-wireshark-0.99.1_pre1 268
diff --git a/net-analyzer/wireshark/files/digest-wireshark-0.99.1_pre1 b/net-analyzer/wireshark/files/digest-wireshark-0.99.1_pre1
new file mode 100644
index 000000000..674905404
--- /dev/null
+++ b/net-analyzer/wireshark/files/digest-wireshark-0.99.1_pre1
@@ -0,0 +1,3 @@
+MD5 3f3bfed8727cb24d41fd4f10f7b91d9f wireshark-0.99.1pre1.tar.gz 11258134
+RMD160 70d730b3c3b3150853ee41734e5f631e3d025657 wireshark-0.99.1pre1.tar.gz 11258134
+SHA256 b8cc4eb246c7464360746d3563c8cc1e870c5c91bc5424804a1284071cc8a060 wireshark-0.99.1pre1.tar.gz 11258134
diff --git a/net-analyzer/wireshark/files/wireshark-0.99.1_pre1-as-needed.patch b/net-analyzer/wireshark/files/wireshark-0.99.1_pre1-as-needed.patch
new file mode 100644
index 000000000..99d53a712
--- /dev/null
+++ b/net-analyzer/wireshark/files/wireshark-0.99.1_pre1-as-needed.patch
@@ -0,0 +1,12 @@
+diff -uNr wireshark-0.99.1pre1.orig/epan/Makefile.am wireshark-0.99.1pre1/epan/Makefile.am
+--- wireshark-0.99.1pre1/epan/Makefile.am 2006-04-17 14:46:53.000000000 +0000
++++ wireshark-0.99.1pre1/epan/Makefile.am 2006-04-25 21:21:15.000000000 +0000
+@@ -84,7 +84,7 @@
+ #
+ # Add the object files for missing routines, if any.
+ #
+-libwireshark_la_LIBADD = @G_ASCII_STRTOULL_LO@ @INET_ATON_LO@ @INET_PTON_LO@ @INET_NTOP_LO@ dfilter/libdfilter.la ftypes/libftypes.la dissectors/libdissectors.la
++libwireshark_la_LIBADD = @G_ASCII_STRTOULL_LO@ @INET_ATON_LO@ @INET_PTON_LO@ @INET_NTOP_LO@ dfilter/libdfilter.la ftypes/libftypes.la dissectors/libdissectors.la @ADNS_LIBS@ @LIBGNUTLS_LIBS@ @KRB5_LIBS@ @SNMP_LIBS@ @SSL_LIBS@ -lm
+ libwireshark_la_DEPENDENCIES = @G_ASCII_STRTOULL_LO@ @INET_ATON_LO@ @INET_PTON_LO@ @INET_NTOP_LO@ dfilter/libdfilter.la ftypes/libftypes.la dissectors/libdissectors.la
+
+ tvbtest: tvbtest.o tvbuff.o except.o strutil.o
diff --git a/net-analyzer/wireshark/wireshark-0.99.1_pre1.ebuild b/net-analyzer/wireshark/wireshark-0.99.1_pre1.ebuild
new file mode 100644
index 000000000..5e761401a
--- /dev/null
+++ b/net-analyzer/wireshark/wireshark-0.99.1_pre1.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit libtool flag-o-matic eutils autotools libtool
+
+MY_P=${P/_/}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="A commercial-quality network protocol analyzer"
+HOMEPAGE="http://www.wireshark.org/"
+SRC_URI="http://www.wireshark.org/download/prerelease/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="adns gtk ipv6 snmp ssl kerberos threads"
+
+RDEPEND=">=sys-libs/zlib-1.1.4
+ snmp? ( >=net-analyzer/net-snmp-5.1.1 )
+ 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-0.9.6e )
+ !ssl? ( net-libs/gnutls )
+ net-libs/libpcap
+ >=dev-libs/libpcre-4.2
+ adns? ( net-libs/adns )
+ kerberos? ( virtual/krb5 )"
+# lua fails with version 5.0 and 5.1 is not in portage yet - 2006-04-25
+# lua? ( >=dev-lang/lua-5.1 )"
+
+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 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
+}
+
+src_unpack() {
+ unpack ${A}
+ # bug 117716
+ epatch "${FILESDIR}/${P}-as-needed.patch"
+ cd "${S}"
+ AT_M4DIR="${S}/aclocal-fallback" eautomake
+ elibtoolize
+}
+
+src_compile() {
+
+ replace-flags -O? -O
+
+ # Fix gcc-3.4 segfault #49238
+ #[ "`gcc-version`" == "3.4" ] && append-flags -fno-unroll-loops
+
+ local myconf
+
+ if use gtk; then
+ einfo "Building with gtk support"
+ else
+ einfo "Building without gtk support"
+ myconf="${myconf} --disable-wireshark"
+ # 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_enable gtk gtk2) \
+ $(use_enable threads) \
+ --without-ucd-snmp \
+ --enable-dftest \
+ --enable-randpkt \
+ --sysconfdir=/etc/wireshark \
+ --enable-editcap \
+ --enable-capinfos \
+ --enable-text2pcap \
+ --enable-dftest \
+ --enable-randpkt \
+ ${myconf} || die "bad ./configure"
+
+ # fixes an access violation caused by libnetsnmp - see bug 79068
+ use snmp && export MIBDIRS="${D}/usr/share/snmp/mibs"
+
+ emake || die "compile problem"
+}
+
+src_install() {
+ dodir /usr/lib/wireshark/plugins/${PV}
+ make DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README*
+
+ insinto /usr/share/icons/hicolor/16x16/apps
+ newins "${S}"/image/hi16-app-wireshark.png wireshark.png
+ insinto /usr/share/icons/hicolor/32x32/apps
+ newins "${S}"/image/hi32-app-wireshark.png wireshark.png
+ insinto /usr/share/icons/hicolor/48x48/apps
+ newins "${S}"/image/hi48-app-wireshark.png wireshark.png
+ make_desktop_entry wireshark "Wireshark" wireshark
+}
+
+pkg_postinst() {
+ ewarn "Due to a history of security flaws in this piece of software, it may contain more flaws."
+ ewarn "To protect yourself against malicious damage due to potential flaws in this product we recommend"
+ ewarn "you take the following security precautions when running wireshark in an untrusted environment:"
+ ewarn "do not run any longer than you need to;"
+ ewarn "use in a root jail - prefereably one that has been hardened with grsec like rootjail protections;"
+ ewarn "use a hardened operating system;"
+ ewarn "do not listen to addition interfaces;"
+ ewarn "if possible, run behind a firewall;"
+ ewarn "take a capture with tcpdump and analyze running wireshark as a least privileged user;"
+ ewarn "and subscribe to wireshark's announce list to be notified of newly discovered vulnerabilities."
+}