Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/wireshark: ChangeLog wireshark-0.99.7-r1.ebuild wireshark-0.99.6.ebuild wireshark-0.99.6-r1.ebuild
Date: Thu, 10 Jan 2008 18:36:37
Message-Id: E1JD2GY-0004Ll-OX@stork.gentoo.org
1 pva 08/01/10 18:36:34
2
3 Modified: ChangeLog
4 Added: wireshark-0.99.7-r1.ebuild
5 Removed: wireshark-0.99.6.ebuild wireshark-0.99.6-r1.ebuild
6 Log:
7 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.
8 (Portage version: 2.1.3.19)
9
10 Revision Changes Path
11 1.76 net-analyzer/wireshark/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.76&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.76&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/ChangeLog?r1=1.75&r2=1.76
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v
20 retrieving revision 1.75
21 retrieving revision 1.76
22 diff -u -r1.75 -r1.76
23 --- ChangeLog 26 Dec 2007 10:56:55 -0000 1.75
24 +++ ChangeLog 10 Jan 2008 18:36:34 -0000 1.76
25 @@ -1,6 +1,22 @@
26 # ChangeLog for net-analyzer/wireshark
27 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.75 2007/12/26 10:56:55 welp Exp $
29 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.76 2008/01/10 18:36:34 pva Exp $
31 +
32 +*wireshark-0.99.7-r1 (10 Jan 2008)
33 +
34 + 10 Jan 2008; <pva@g.o> -files/wireshark-0.99.6-asneeded.patch,
35 + -files/wireshark-0.99.6-asneeded-r1.patch,
36 + -files/wireshark-0.99.6-gint64-warnings.patch,
37 + -files/wireshark-0.99.6-libgcrypt.patch, -files/wireshark-0.99.6-lm.patch,
38 + +files/wireshark-0.99.7-crash-emem.c.patch,
39 + +files/wireshark-0.99.7-exit.patch,
40 + -files/wireshark-epan_dissectors_packet-diameter.diff,
41 + -wireshark-0.99.6.ebuild, -wireshark-0.99.6-r1.ebuild,
42 + +wireshark-0.99.7-r1.ebuild:
43 + Fixed crash on bad bLength. Fixed crash if user is not in wireshark group,
44 + thank you M. Edward Borasky <znmeb AT cesmail.net> for report and Kevin Pyle
45 + <kevin.pyle AT bluecoat.com> for investigation and work with upstream to
46 + make this fixed. Removed old and vulnerable.
47
48 26 Dec 2007; Peter Weller <welp@g.o> wireshark-0.99.7.ebuild:
49 Stable on amd64; bug 199958
50
51
52
53 1.1 net-analyzer/wireshark/wireshark-0.99.7-r1.ebuild
54
55 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/wireshark-0.99.7-r1.ebuild?rev=1.1&view=markup
56 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/wireshark-0.99.7-r1.ebuild?rev=1.1&content-type=text/plain
57
58 Index: wireshark-0.99.7-r1.ebuild
59 ===================================================================
60 # Copyright 1999-2008 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 # $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 $
63
64 WANT_AUTOMAKE="1.9"
65 inherit autotools libtool flag-o-matic eutils toolchain-funcs
66
67 DESCRIPTION="A network protocol analyzer formerly known as ethereal"
68 HOMEPAGE="http://www.wireshark.org/"
69
70 # _rc versions has different download location.
71 [[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && {
72 SRC_URI="http://www.wireshark.org/download/prerelease/${PN}-${PV/_rc/pre}.tar.gz";
73 S=${WORKDIR}/${PN}-${PV/_rc/pre} ; } || \
74 SRC_URI="http://www.wireshark.org/download/src/all-versions/${P}.tar.bz2"
75
76 LICENSE="GPL-2"
77 SLOT="0"
78 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
79 IUSE="adns gtk ipv6 portaudio snmp ssl kerberos threads selinux"
80
81 RDEPEND="sys-libs/zlib
82 snmp? ( net-analyzer/net-snmp )
83 gtk? ( >=dev-libs/glib-2.0.4
84 =x11-libs/gtk+-2*
85 x11-libs/pango
86 dev-libs/atk )
87 !gtk? ( =dev-libs/glib-1.2* )
88 ssl? ( dev-libs/openssl )
89 !ssl? ( net-libs/gnutls )
90 net-libs/libpcap
91 dev-libs/libpcre
92 sys-libs/libcap
93 adns? ( net-libs/adns )
94 kerberos? ( virtual/krb5 )
95 portaudio? ( media-libs/portaudio )
96 selinux? ( sec-policy/selinux-wireshark )"
97
98 DEPEND="${RDEPEND}
99 >=dev-util/pkgconfig-0.15.0
100 dev-lang/perl
101 sys-devel/bison
102 sys-devel/flex
103 sys-apps/sed"
104
105 pkg_setup() {
106 # bug 119208
107 if has_version "<=dev-lang/perl-5.8.8_rc1" && built_with_use dev-lang/perl minimal ; then
108 ewarn "wireshark will not build if dev-lang/perl is compiled with"
109 ewarn "USE=minimal. Rebuild dev-lang/perl with USE=-minimal and try again."
110 ebeep 5
111 die "dev-lang/perl compiled with USE=minimal"
112 fi
113
114 if ! use gtk; then
115 ewarn "USE=-gtk will mean no gui called wireshark will be created and"
116 ewarn "only command line utils are available"
117 fi
118
119 # Add group for users allowed to sniff.
120 enewgroup wireshark || die "Failed to create wireshark group"
121 }
122
123 src_unpack() {
124 unpack ${A}
125 cd "${S}"
126 epatch "${FILESDIR}"/${PN}-0.99.7-libgcrypt.patch
127 epatch "${FILESDIR}"/${PN}-0.99.7-asneeded.patch
128
129 cd "${S}"/epan
130 epatch "${FILESDIR}"/wireshark-except-double-free.diff
131
132 cd "${S}"
133 # http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2012
134 epatch "${FILESDIR}"/${P}-crash-emem.c.patch
135 # http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2177
136 epatch "${FILESDIR}"/${P}-exit.patch
137 AT_M4DIR="${S}/aclocal-fallback"
138 eautoreconf
139 }
140
141 src_compile() {
142 # optimization bug, see bug #165340, bug #40660
143 if [[ $(gcc-version) == 3.4 ]] ; then
144 elog "Found gcc 3.4, forcing -O3 into CFLAGS"
145 replace-flags -O? -O3
146 elif [[ $(gcc-version) == 3.3 || $(gcc-version) == 3.2 ]] ; then
147 elog "Found <=gcc-3.3, forcing -O into CFLAGS"
148 replace-flags -O? -O
149 fi
150
151 # see bug #133092
152 filter-flags -fstack-protector
153
154 local myconf
155
156 if use gtk; then
157 einfo "Building with gtk support"
158 else
159 einfo "Building without gtk support"
160 myconf="${myconf} --disable-wireshark --disable-warnings-as-errors"
161 # the asn1 plugin needs gtk
162 sed -i -e '/plugins.asn1/d' Makefile.in || die "sed failed"
163 sed -i -e '/^SUBDIRS/s/asn1//' plugins/Makefile.in || die "sed failed"
164 fi
165
166 # $(use_with lua) \
167 econf $(use_with ssl) \
168 $(use_enable ipv6) \
169 $(use_with adns) \
170 $(use_with kerberos krb5) \
171 $(use_with snmp net-snmp) \
172 $(use_with portaudio) \
173 $(use_enable gtk gtk2) \
174 $(use_enable threads) \
175 --with-libcap \
176 --enable-setuid-install \
177 --without-ucd-snmp \
178 --enable-dftest \
179 --enable-randpkt \
180 --sysconfdir=/etc/wireshark \
181 --enable-editcap \
182 --enable-capinfos \
183 --enable-text2pcap \
184 ${myconf} || die "econf failed"
185
186 # fixes an access violation caused by libnetsnmp - see bug 79068
187 use snmp && export MIBDIRS="${D}/usr/share/snmp/mibs"
188
189 emake || die "emake failed"
190 }
191
192 src_install() {
193 emake DESTDIR="${D}" install || die "emake install failed"
194
195 for file in /usr/bin/tshark /usr/bin/dumpcap
196 do
197 fowners 0:wireshark ${file}
198 fperms 6550 ${file}
199 done
200
201 insinto /usr/include/wiretap
202 doins wiretap/wtap.h
203
204 dodoc AUTHORS ChangeLog NEWS README*
205
206 if use gtk ; then
207 insinto /usr/share/icons/hicolor/16x16/apps
208 newins image/hi16-app-wireshark.png wireshark.png
209 insinto /usr/share/icons/hicolor/32x32/apps
210 newins image/hi32-app-wireshark.png wireshark.png
211 insinto /usr/share/icons/hicolor/48x48/apps
212 newins image/hi48-app-wireshark.png wireshark.png
213 insinto /usr/share/applications
214 # Wireshark should not be ran as root in KDE.
215 # Bug: http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2127
216 sed -i '/X-KDE-SubstituteUID/d' wireshark.desktop
217 doins wireshark.desktop
218 fi
219 }
220
221 pkg_postinst() {
222 echo
223 ewarn "With version 0.99.7, all function calls that require elevated privileges"
224 ewarn "have been moved out of the GUI to dumpcap. WIRESHARK CONTAINS OVER ONE"
225 ewarn "POINT FIVE MILLION LINES OF SOURCE CODE. DO NOT RUN THEM AS ROOT."
226 ewarn
227 ewarn "NOTE: To run wireshark as normal user you have to add yourself into"
228 ewarn "wireshark group. This security measure ensures that only trusted"
229 ewarn "users allowed to sniff your traffic."
230 echo
231 }
232
233
234
235 --
236 gentoo-commits@l.g.o mailing list