1 |
pva 10/07/30 10:27:15 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: wireshark-1.2.10.ebuild wireshark-1.4.0_rc2.ebuild |
5 |
Removed: wireshark-1.4.0_rc1.ebuild |
6 |
wireshark-1.2.8-r1.ebuild |
7 |
Log: |
8 |
Version bump. Fixes security vulnerabilities, bug #330479. |
9 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.239 net-analyzer/wireshark/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.239&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.239&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/ChangeLog?r1=1.238&r2=1.239 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v |
21 |
retrieving revision 1.238 |
22 |
retrieving revision 1.239 |
23 |
diff -u -r1.238 -r1.239 |
24 |
--- ChangeLog 8 Jul 2010 20:37:28 -0000 1.238 |
25 |
+++ ChangeLog 30 Jul 2010 10:27:15 -0000 1.239 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for net-analyzer/wireshark |
28 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.238 2010/07/08 20:37:28 jer Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.239 2010/07/30 10:27:15 pva Exp $ |
31 |
+ |
32 |
+*wireshark-1.4.0_rc2 (30 Jul 2010) |
33 |
+*wireshark-1.2.10 (30 Jul 2010) |
34 |
+ |
35 |
+ 30 Jul 2010; Peter Volkov <pva@g.o> -wireshark-1.2.8-r1.ebuild, |
36 |
+ +wireshark-1.2.10.ebuild, -wireshark-1.4.0_rc1.ebuild, |
37 |
+ +wireshark-1.4.0_rc2.ebuild: |
38 |
+ Version bump. Fixes security vulnerabilities, bug #330479. |
39 |
|
40 |
08 Jul 2010; Jeroen Roovers <jer@g.o> wireshark-1.2.9.ebuild: |
41 |
Stable for PPC (bug #323859). |
42 |
|
43 |
|
44 |
|
45 |
1.1 net-analyzer/wireshark/wireshark-1.2.10.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.2.10.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.2.10.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: wireshark-1.2.10.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2010 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-1.2.10.ebuild,v 1.1 2010/07/30 10:27:15 pva Exp $ |
55 |
|
56 |
EAPI=2 |
57 |
inherit autotools libtool flag-o-matic eutils toolchain-funcs |
58 |
|
59 |
DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
60 |
HOMEPAGE="http://www.wireshark.org/" |
61 |
|
62 |
# _rc versions has different download location. |
63 |
[[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && { |
64 |
SRC_URI="http://www.wireshark.org/download/prerelease/${PN}-${PV/_rc/pre}.tar.gz"; |
65 |
S=${WORKDIR}/${PN}-${PV/_rc/pre} ; } || \ |
66 |
SRC_URI="http://www.wireshark.org/download/src/${P}.tar.gz" |
67 |
|
68 |
LICENSE="GPL-2" |
69 |
SLOT="0" |
70 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
71 |
IUSE="adns ares gtk ipv6 lua portaudio gnutls gcrypt geoip zlib kerberos threads profile smi +pcap pcre +caps selinux" |
72 |
|
73 |
RDEPEND=">=dev-libs/glib-2.4.0:2 |
74 |
zlib? ( sys-libs/zlib |
75 |
!=sys-libs/zlib-1.2.4 ) |
76 |
smi? ( net-libs/libsmi ) |
77 |
gtk? ( >=x11-libs/gtk+-2.4.0:2 |
78 |
x11-libs/pango |
79 |
dev-libs/atk ) |
80 |
gnutls? ( net-libs/gnutls ) |
81 |
gcrypt? ( dev-libs/libgcrypt ) |
82 |
pcap? ( net-libs/libpcap ) |
83 |
pcre? ( dev-libs/libpcre ) |
84 |
caps? ( sys-libs/libcap ) |
85 |
kerberos? ( virtual/krb5 ) |
86 |
portaudio? ( media-libs/portaudio ) |
87 |
ares? ( >=net-dns/c-ares-1.5 ) |
88 |
!ares? ( adns? ( net-libs/adns ) ) |
89 |
geoip? ( dev-libs/geoip ) |
90 |
lua? ( >=dev-lang/lua-5.1 ) |
91 |
selinux? ( sec-policy/selinux-wireshark )" |
92 |
|
93 |
DEPEND="${RDEPEND} |
94 |
>=dev-util/pkgconfig-0.15.0 |
95 |
dev-lang/perl |
96 |
sys-devel/bison |
97 |
sys-devel/flex" |
98 |
|
99 |
pkg_setup() { |
100 |
if ! use gtk; then |
101 |
ewarn "USE=-gtk will means no gui called wireshark will be created and" |
102 |
ewarn "only command line utils are available" |
103 |
fi |
104 |
|
105 |
# Add group for users allowed to sniff. |
106 |
enewgroup wireshark |
107 |
} |
108 |
|
109 |
src_prepare() { |
110 |
cd "${S}"/epan # our hardened toolchain bug... |
111 |
epatch "${FILESDIR}/wireshark-except-double-free.diff" |
112 |
|
113 |
cd "${S}" |
114 |
epatch "${FILESDIR}/${PN}-1.1.2--as-needed.patch" |
115 |
eautoreconf |
116 |
} |
117 |
|
118 |
src_configure() { |
119 |
local myconf |
120 |
|
121 |
# optimization bug, see bug #165340, bug #40660 |
122 |
if [[ $(gcc-version) == 3.4 ]] ; then |
123 |
elog "Found gcc 3.4, forcing -O3 into CFLAGS" |
124 |
replace-flags -O? -O3 |
125 |
elif [[ $(gcc-version) == 3.3 || $(gcc-version) == 3.2 ]] ; then |
126 |
elog "Found <=gcc-3.3, forcing -O into CFLAGS" |
127 |
replace-flags -O? -O |
128 |
fi |
129 |
|
130 |
if use ares && use adns; then |
131 |
einfo "You asked for both, ares and adns, but we can use only one of them." |
132 |
einfo "c-ares supersedes adns resolver thus using c-ares (ares USE flag)." |
133 |
myconf="$(use_with ares c-ares) --without-adns" |
134 |
else |
135 |
myconf="$(use_with adns) $(use_with ares c-ares)" |
136 |
fi |
137 |
|
138 |
# see bug #133092; bugs.wireshark.org/bugzilla/show_bug.cgi?id=1001 |
139 |
# our hardened toolchain bug |
140 |
filter-flags -fstack-protector |
141 |
|
142 |
# profile and pie are incompatible #215806, #292991 |
143 |
if use profile; then |
144 |
ewarn "You've enabled the 'profile' USE flag, building PIE binaries is disabled." |
145 |
append-flags $(test-flags-CC -nopie) |
146 |
fi |
147 |
|
148 |
# Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
149 |
# --with-ssl to ./configure. (Mimics code from acinclude.m4). |
150 |
if use kerberos; then |
151 |
case `krb5-config --libs` in |
152 |
*-lcrypto*) myconf="${myconf} --with-ssl" ;; |
153 |
esac |
154 |
fi |
155 |
|
156 |
# dumpcap requires libcap, setuid-install requires dumpcap |
157 |
econf $(use_enable gtk wireshark) \ |
158 |
$(use_enable profile profile-build) \ |
159 |
$(use_with gnutls) \ |
160 |
$(use_with gcrypt) \ |
161 |
$(use_enable ipv6) \ |
162 |
$(use_enable threads) \ |
163 |
$(use_with lua) \ |
164 |
$(use_with kerberos krb5) \ |
165 |
$(use_with smi libsmi) \ |
166 |
$(use_with pcap) \ |
167 |
$(use_with zlib) \ |
168 |
$(use_with pcre) \ |
169 |
$(use_with geoip) \ |
170 |
$(use_with portaudio) \ |
171 |
$(use_with caps libcap) \ |
172 |
$(use_enable pcap setuid-install) \ |
173 |
--sysconfdir=/etc/wireshark \ |
174 |
${myconf} |
175 |
} |
176 |
|
177 |
src_install() { |
178 |
emake DESTDIR="${D}" install || die "emake install failed" |
179 |
|
180 |
use pcap && fowners 0:wireshark /usr/bin/dumpcap |
181 |
use pcap && fperms 6550 /usr/bin/dumpcap |
182 |
|
183 |
insinto /usr/include/wiretap |
184 |
doins wiretap/wtap.h |
185 |
|
186 |
# FAQ is not required as is installed from help/faq.txt |
187 |
dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} doc/randpkt.txt |
188 |
|
189 |
if use gtk; then |
190 |
for c in hi lo; do |
191 |
for d in 16 32 48; do |
192 |
insinto /usr/share/icons/${c}color/${d}x${d}/apps |
193 |
newins image/${c}${d}-app-wireshark.png wireshark.png |
194 |
done |
195 |
done |
196 |
insinto /usr/share/applications |
197 |
doins wireshark.desktop |
198 |
fi |
199 |
} |
200 |
|
201 |
pkg_postinst() { |
202 |
echo |
203 |
ewarn "NOTE: To run wireshark as normal user you have to add yourself into" |
204 |
ewarn "wireshark group. This security measure ensures that only trusted" |
205 |
ewarn "users allowed to sniff your traffic." |
206 |
echo |
207 |
} |
208 |
|
209 |
|
210 |
|
211 |
1.1 net-analyzer/wireshark/wireshark-1.4.0_rc2.ebuild |
212 |
|
213 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.4.0_rc2.ebuild?rev=1.1&view=markup |
214 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.4.0_rc2.ebuild?rev=1.1&content-type=text/plain |
215 |
|
216 |
Index: wireshark-1.4.0_rc2.ebuild |
217 |
=================================================================== |
218 |
# Copyright 1999-2010 Gentoo Foundation |
219 |
# Distributed under the terms of the GNU General Public License v2 |
220 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-1.4.0_rc2.ebuild,v 1.1 2010/07/30 10:27:15 pva Exp $ |
221 |
|
222 |
EAPI=2 |
223 |
PYTHON_DEPEND="python? 2" |
224 |
inherit libtool flag-o-matic eutils toolchain-funcs python |
225 |
|
226 |
[[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && MY_P=${PN}-${PV/_} || MY_P=${P} |
227 |
DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
228 |
HOMEPAGE="http://www.wireshark.org/" |
229 |
SRC_URI="http://www.wireshark.org/download/src/all-versions/${MY_P}.tar.bz2" |
230 |
|
231 |
LICENSE="GPL-2" |
232 |
SLOT="0" |
233 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
234 |
IUSE="adns ares doc doc-pdf gtk ipv6 lua gcrypt geoip kerberos |
235 |
profile +pcap pcre portaudio python +caps selinux smi ssl threads zlib" |
236 |
|
237 |
RDEPEND=">=dev-libs/glib-2.14.0:2 |
238 |
zlib? ( sys-libs/zlib |
239 |
!=sys-libs/zlib-1.2.4 ) |
240 |
smi? ( net-libs/libsmi ) |
241 |
x11-misc/xdg-utils |
242 |
gtk? ( >=x11-libs/gtk+-2.4.0:2 |
243 |
x11-libs/pango |
244 |
dev-libs/atk ) |
245 |
ssl? ( net-libs/gnutls ) |
246 |
gcrypt? ( dev-libs/libgcrypt ) |
247 |
pcap? ( net-libs/libpcap ) |
248 |
pcre? ( dev-libs/libpcre ) |
249 |
caps? ( sys-libs/libcap ) |
250 |
kerberos? ( virtual/krb5 ) |
251 |
portaudio? ( media-libs/portaudio ) |
252 |
ares? ( >=net-dns/c-ares-1.5 ) |
253 |
!ares? ( adns? ( net-libs/adns ) ) |
254 |
geoip? ( dev-libs/geoip ) |
255 |
lua? ( >=dev-lang/lua-5.1 ) |
256 |
selinux? ( sec-policy/selinux-wireshark )" |
257 |
|
258 |
DEPEND="${RDEPEND} |
259 |
doc? ( dev-libs/libxslt |
260 |
dev-libs/libxml2 |
261 |
www-client/elinks |
262 |
app-doc/doxygen |
263 |
doc-pdf? ( dev-java/fop ) ) |
264 |
>=dev-util/pkgconfig-0.15.0 |
265 |
dev-lang/perl |
266 |
sys-devel/bison |
267 |
sys-apps/sed |
268 |
sys-devel/flex" |
269 |
|
270 |
S=${WORKDIR}/${MY_P} |
271 |
|
272 |
pkg_setup() { |
273 |
if ! use gtk; then |
274 |
ewarn "USE=-gtk disables gtk-based gui called wireshark." |
275 |
ewarn "Only command line utils will be built available" |
276 |
fi |
277 |
if use python; then |
278 |
python_set_active_version 2 |
279 |
python_pkg_setup |
280 |
fi |
281 |
# Add group for users allowed to sniff. |
282 |
enewgroup wireshark |
283 |
} |
284 |
|
285 |
src_prepare() { |
286 |
cd "${S}"/epan # old hardened toolchain bug... |
287 |
epatch "${FILESDIR}/wireshark-except-double-free.diff" |
288 |
} |
289 |
|
290 |
src_configure() { |
291 |
local myconf |
292 |
|
293 |
# optimization bug, see bug #165340, bug #40660 |
294 |
if [[ $(gcc-version) == 3.4 ]] ; then |
295 |
elog "Found gcc 3.4, forcing -O3 into CFLAGS" |
296 |
replace-flags -O? -O3 |
297 |
# see bug #133092; bugs.wireshark.org/bugzilla/show_bug.cgi?id=1001 |
298 |
# our old hardened toolchain bug |
299 |
filter-flags -fstack-protector |
300 |
elif [[ $(gcc-version) == 3.3 || $(gcc-version) == 3.2 ]] ; then |
301 |
elog "Found <=gcc-3.3, forcing -O into CFLAGS" |
302 |
replace-flags -O? -O |
303 |
fi |
304 |
|
305 |
if use ares && use adns; then |
306 |
elog "You asked for both, ares and adns, but we can use only one of them." |
307 |
elog "c-ares supersedes adns resolver thus using c-ares (ares USE flag)." |
308 |
myconf="$(use_with ares c-ares) --without-adns" |
309 |
else |
310 |
myconf="$(use_with adns) $(use_with ares c-ares)" |
311 |
fi |
312 |
|
313 |
# profile and pie are incompatible #215806, #292991 |
314 |
if use profile; then |
315 |
ewarn "You've enabled the 'profile' USE flag, building PIE binaries is disabled." |
316 |
append-flags $(test-flags-CC -nopie) |
317 |
fi |
318 |
|
319 |
# Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
320 |
# --with-ssl to ./configure. (Mimics code from acinclude.m4). |
321 |
if use kerberos; then |
322 |
case `krb5-config --libs` in |
323 |
*-lcrypto*) |
324 |
ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." |
325 |
ewarn "Note there are annoying license incompatibilities between the OpenSSL" |
326 |
ewarn "license and the GPL, so do your check before distributing such package." |
327 |
myconf+=" --with-ssl" |
328 |
;; |
329 |
esac |
330 |
fi |
331 |
|
332 |
# Hack around inability to disable doxygen/fop doc generation |
333 |
use doc || export ac_cv_prog_HAVE_DOXYGEN=false |
334 |
use doc-pdf || export ac_cv_prog_HAVE_FOP=false |
335 |
|
336 |
# dumpcap requires libcap, setuid-install requires dumpcap |
337 |
econf $(use_enable gtk wireshark) \ |
338 |
$(use_enable profile profile-build) \ |
339 |
$(use_with ssl gnutls) \ |
340 |
$(use_with gcrypt) \ |
341 |
$(use_enable ipv6) \ |
342 |
$(use_enable threads) \ |
343 |
$(use_with lua) \ |
344 |
$(use_with kerberos krb5) \ |
345 |
$(use_with smi libsmi) \ |
346 |
$(use_with pcap) \ |
347 |
$(use_with zlib) \ |
348 |
$(use_with pcre) \ |
349 |
$(use_with geoip) \ |
350 |
$(use_with portaudio) \ |
351 |
$(use_with python) \ |
352 |
$(use_with caps libcap) \ |
353 |
$(use_enable caps setcap-install) \ |
354 |
$(use caps || use_enable pcap setuid-install) \ |
355 |
--sysconfdir=/etc/wireshark \ |
356 |
--with-dumpcap-group=wireshark \ |
357 |
--disable-extra-gcc-checks \ |
358 |
${myconf} |
359 |
} |
360 |
|
361 |
src_compile() { |
362 |
emake || die |
363 |
use doc && cd docbook && { emake || die; } |
364 |
} |
365 |
|
366 |
src_install() { |
367 |
emake DESTDIR="${D}" install || die "emake install failed" |
368 |
if use doc; then |
369 |
dohtml -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}} |
370 |
# for dir in ws{d,u}g_html{,_chunked}; do |
371 |
# dohtml -p ${dir} -r docbook/${dir}/ || die |
372 |
# done |
373 |
if use doc-pdf; then |
374 |
insinto /usr/share/doc/${PF}/pdf/ |
375 |
doins docbook/{{developer,user}-guide,release-notes}-{a4,us}.pdf || die |
376 |
fi |
377 |
fi |
378 |
|
379 |
# FAQ is not required as is installed from help/faq.txt |
380 |
dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \ |
381 |
doc/{randpkt.txt,README*} |
382 |
|
383 |
insinto /usr/include/wiretap |
384 |
doins wiretap/wtap.h || die |
385 |
|
386 |
use caps && local perms=550 || local perms=6550 |
387 |
use pcap && fperms ${perms} /usr/bin/dumpcap |
388 |
|
389 |
if use gtk; then |
390 |
for c in hi lo; do |
391 |
for d in 16 32 48; do |
392 |
insinto /usr/share/icons/${c}color/${d}x${d}/apps |
393 |
newins image/${c}${d}-app-wireshark.png wireshark.png |
394 |
done |
395 |
done |
396 |
insinto /usr/share/applications |
397 |
doins wireshark.desktop || die |
398 |
fi |
399 |
} |
400 |
|
401 |
pkg_postinst() { |
402 |
use caps && setcap cap_net_raw,cap_net_admin+eip "${ROOT}"/usr/bin/dumpcap |
403 |
echo |
404 |
ewarn "NOTE: To run wireshark as normal user you have to add yourself into" |
405 |
ewarn "wireshark group. This security measure ensures that only trusted" |
406 |
ewarn "users allowed to sniff your traffic." |
407 |
echo |
408 |
} |