Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/wireshark: wireshark-1.10.8-r1.ebuild ChangeLog wireshark-1.8.15-r1.ebuild
Date: Fri, 20 Jun 2014 14:14:35
Message-Id: 20140620141432.242322004E@flycatcher.gentoo.org
1 jer 14/06/20 14:14:32
2
3 Modified: ChangeLog
4 Added: wireshark-1.10.8-r1.ebuild
5 wireshark-1.8.15-r1.ebuild
6 Log:
7 Remove net-libs/adns support (bug #513982).
8
9 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
10
11 Revision Changes Path
12 1.628 net-analyzer/wireshark/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.628&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.628&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/ChangeLog?r1=1.627&r2=1.628
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v
21 retrieving revision 1.627
22 retrieving revision 1.628
23 diff -u -r1.627 -r1.628
24 --- ChangeLog 20 Jun 2014 13:51:07 -0000 1.627
25 +++ ChangeLog 20 Jun 2014 14:14:31 -0000 1.628
26 @@ -1,6 +1,13 @@
27 # ChangeLog for net-analyzer/wireshark
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.627 2014/06/20 13:51:07 jer Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.628 2014/06/20 14:14:31 jer Exp $
31 +
32 +*wireshark-1.10.8-r1 (20 Jun 2014)
33 +*wireshark-1.8.15-r1 (20 Jun 2014)
34 +
35 + 20 Jun 2014; Jeroen Roovers <jer@g.o> +wireshark-1.8.15-r1.ebuild,
36 + +wireshark-1.10.8-r1.ebuild:
37 + Remove net-libs/adns support (bug #513982).
38
39 20 Jun 2014; Jeroen Roovers <jer@g.o> wireshark-1.12.0_rc2.ebuild:
40 Remove net-libs/adns support (bug #513982).
41
42
43
44 1.1 net-analyzer/wireshark/wireshark-1.10.8-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.10.8-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.10.8-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: wireshark-1.10.8-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2014 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-1.10.8-r1.ebuild,v 1.1 2014/06/20 14:14:31 jer Exp $
54
55 EAPI=5
56 inherit autotools eutils fcaps user
57
58 [[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && MY_P=${PN}-${PV/_} || MY_P=${P}
59 DESCRIPTION="A network protocol analyzer formerly known as ethereal"
60 HOMEPAGE="http://www.wireshark.org/"
61 SRC_URI="http://www.wireshark.org/download/src/all-versions/${MY_P}.tar.bz2"
62
63 LICENSE="GPL-2"
64 SLOT="0/${PV}"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
66 IUSE="
67 adns +caps crypt doc doc-pdf geoip gtk2 +gtk3 ipv6 kerberos lua +netlink
68 +pcap portaudio qt4 selinux smi ssl zlib
69 "
70 REQUIRED_USE="
71 ?? ( gtk2 gtk3 qt4 )
72 ssl? ( crypt )
73 "
74
75 GTK_COMMON_DEPEND="
76 x11-libs/gdk-pixbuf
77 x11-libs/pango
78 x11-misc/xdg-utils
79 "
80 RDEPEND="
81 >=dev-libs/glib-2.14:2
82 netlink? ( dev-libs/libnl )
83 adns? ( >=net-dns/c-ares-1.5 )
84 crypt? ( dev-libs/libgcrypt:0= )
85 caps? ( sys-libs/libcap )
86 geoip? ( dev-libs/geoip )
87 gtk2? (
88 ${GTK_COMMON_DEPEND}
89 >=x11-libs/gtk+-2.4.0:2
90 )
91 gtk3? (
92 ${GTK_COMMON_DEPEND}
93 x11-libs/gtk+:3
94 )
95 kerberos? ( virtual/krb5 )
96 lua? ( >=dev-lang/lua-5.1 )
97 pcap? ( net-libs/libpcap[-netlink] )
98 portaudio? ( media-libs/portaudio )
99 qt4? (
100 dev-qt/qtcore:4
101 dev-qt/qtgui:4
102 x11-misc/xdg-utils
103 )
104 selinux? ( sec-policy/selinux-wireshark )
105 smi? ( net-libs/libsmi )
106 ssl? ( net-libs/gnutls )
107 zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 )
108 "
109
110 DEPEND="
111 ${RDEPEND}
112 doc? (
113 app-doc/doxygen
114 app-text/asciidoc
115 dev-libs/libxml2
116 dev-libs/libxslt
117 doc-pdf? ( dev-java/fop )
118 www-client/lynx
119 )
120 >=virtual/perl-Pod-Simple-3.170.0
121 sys-devel/bison
122 sys-devel/flex
123 virtual/perl-Getopt-Long
124 virtual/perl-Time-Local
125 virtual/pkgconfig
126 "
127
128 S=${WORKDIR}/${MY_P}
129
130 pkg_setup() {
131 # Add group for users allowed to sniff.
132 enewgroup wireshark
133 }
134
135 src_prepare() {
136 epatch \
137 "${FILESDIR}"/${PN}-1.6.13-ldflags.patch \
138 "${FILESDIR}"/${PN}-1.10.1-oldlibs.patch \
139 "${FILESDIR}"/${PN}-1.10.6-gtk-deprecated-warnings.patch
140
141 sed -i -e 's|SvnVersion|GitVersion|g' docbook/*.xml || die
142
143 epatch_user
144
145 eautoreconf
146 }
147
148 src_configure() {
149 local myconf
150
151 # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
152 # --with-ssl to ./configure. (Mimics code from acinclude.m4).
153 if use kerberos; then
154 case $(krb5-config --libs) in
155 *-lcrypto*)
156 ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
157 ewarn "Note there are annoying license incompatibilities between the OpenSSL"
158 ewarn "license and the GPL, so do your check before distributing such package."
159 myconf+=( "--with-ssl" )
160 ;;
161 esac
162 fi
163
164 # Enable wireshark binary with any supported GUI toolkit (bug #473188)
165 if use gtk2 || use gtk3 || use qt4 ; then
166 myconf+=( "--enable-wireshark" )
167 else
168 myconf+=( "--disable-wireshark" )
169 fi
170
171 # Hack around inability to disable doxygen/fop doc generation
172 use doc || export ac_cv_prog_HAVE_DOXYGEN=false
173 use doc-pdf || export ac_cv_prog_HAVE_FOP=false
174
175 # dumpcap requires libcap, setuid-install requires dumpcap
176 # --disable-profile-build bugs #215806, #292991, #479602
177 econf \
178 $(use pcap && use_enable !caps setuid-install) \
179 $(use pcap && use_enable caps setcap-install) \
180 $(use_enable ipv6) \
181 $(use_with adns c-ares) \
182 $(use_with caps libcap) \
183 $(use_with crypt gcrypt) \
184 $(use_with geoip) \
185 $(use_with kerberos krb5) \
186 $(use_with lua) \
187 $(use_with netlink libnl) \
188 $(use_with pcap dumpcap-group wireshark) \
189 $(use_with pcap) \
190 $(use_with portaudio) \
191 $(use_with qt4 qt) \
192 $(use_with smi libsmi) \
193 $(use_with ssl gnutls) \
194 $(use_with zlib) \
195 $(usex gtk3 --with-gtk3=yes --with-gtk3=no) \
196 --disable-extra-gcc-checks \
197 --disable-profile-build \
198 --disable-usr-local \
199 --sysconfdir="${EPREFIX}"/etc/wireshark \
200 --without-adns \
201 ${myconf[@]}
202 }
203
204 src_compile() {
205 default
206 use doc && emake -j1 -C docbook
207 }
208
209 src_install() {
210 default
211 if use doc; then
212 dohtml -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}}
213 if use doc-pdf; then
214 insinto /usr/share/doc/${PF}/pdf/
215 doins docbook/{{developer,user}-guide,release-notes}-{a4,us}.pdf
216 fi
217 fi
218
219 # FAQ is not required as is installed from help/faq.txt
220 dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \
221 doc/{randpkt.txt,README*}
222
223 # install headers
224 local wsheader
225 for wsheader in $( echo $(< debian/wireshark-dev.header-files ) ); do
226 insinto /usr/include/wireshark/$( dirname ${wsheader} )
227 doins ${wsheader}
228 done
229
230 #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/
231 insinto /usr/include/wiretap
232 doins wiretap/wtap.h
233
234 if use gtk2 || use gtk3 || use qt4; then
235 local c d
236 for c in hi lo; do
237 for d in 16 32 48; do
238 insinto /usr/share/icons/${c}color/${d}x${d}/apps
239 newins image/${c}${d}-app-wireshark.png wireshark.png
240 done
241 done
242 domenu wireshark.desktop
243 fi
244
245 use pcap && chmod o-x "${ED}"/usr/bin/dumpcap #357237
246
247 prune_libtool_files
248 }
249
250 pkg_postinst() {
251 # Add group for users allowed to sniff.
252 enewgroup wireshark
253
254 if use pcap; then
255 fcaps -o 0 -g wireshark -m 4710 -M 0710 \
256 cap_dac_read_search,cap_net_raw,cap_net_admin \
257 "${EROOT}"/usr/bin/dumpcap
258 fi
259
260 ewarn "NOTE: To run wireshark as normal user you have to add yourself to"
261 ewarn "the wireshark group. This security measure ensures that only trusted"
262 ewarn "users are allowed to sniff your traffic."
263 }
264
265
266
267 1.1 net-analyzer/wireshark/wireshark-1.8.15-r1.ebuild
268
269 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.8.15-r1.ebuild?rev=1.1&view=markup
270 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.8.15-r1.ebuild?rev=1.1&content-type=text/plain
271
272 Index: wireshark-1.8.15-r1.ebuild
273 ===================================================================
274 # Copyright 1999-2014 Gentoo Foundation
275 # Distributed under the terms of the GNU General Public License v2
276 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-1.8.15-r1.ebuild,v 1.1 2014/06/20 14:14:31 jer Exp $
277
278 EAPI=5
279 PYTHON_COMPAT=( python2_6 python2_7 )
280 inherit autotools eutils fcaps flag-o-matic python-single-r1 user
281
282 [[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && MY_P=${PN}-${PV/_} || MY_P=${P}
283 DESCRIPTION="A network protocol analyzer formerly known as ethereal"
284 HOMEPAGE="http://www.wireshark.org/"
285 SRC_URI="http://www.wireshark.org/download/src/all-versions/${MY_P}.tar.bz2"
286
287 LICENSE="GPL-2"
288 SLOT="0/${PV}"
289 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
290 IUSE="
291 adns +caps crypt doc doc-pdf geoip gtk ipv6 kerberos lua +pcap portaudio
292 python selinux smi ssl zlib
293 "
294 REQUIRED_USE="
295 ssl? ( crypt )
296 "
297 RDEPEND="
298 >=dev-libs/glib-2.14:2
299 adns? ( >=net-dns/c-ares-1.5 )
300 caps? ( sys-libs/libcap )
301 crypt? ( dev-libs/libgcrypt:0= )
302 geoip? ( dev-libs/geoip )
303 gtk? (
304 >=x11-libs/gtk+-2.4.0:2
305 dev-libs/atk
306 x11-libs/pango
307 x11-misc/xdg-utils
308 )
309 kerberos? ( virtual/krb5 )
310 lua? ( <dev-lang/lua-5.2 )
311 pcap? ( net-libs/libpcap )
312 portaudio? ( media-libs/portaudio )
313 python? ( ${PYTHON_DEPS} )
314 selinux? ( sec-policy/selinux-wireshark )
315 smi? ( net-libs/libsmi )
316 ssl? ( net-libs/gnutls )
317 zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 )
318 "
319
320 # We need perl for `pod2html`. The rest of the perl stuff is to block older
321 # and broken installs. #455122
322 DEPEND="
323 ${RDEPEND}
324 dev-lang/perl
325 !<virtual/perl-Pod-Simple-3.170
326 !<perl-core/Pod-Simple-3.170
327 doc? (
328 app-doc/doxygen
329 dev-libs/libxml2
330 dev-libs/libxslt
331 doc-pdf? ( dev-java/fop )
332 )
333 sys-devel/bison
334 sys-devel/flex
335 virtual/pkgconfig
336 "
337
338 S=${WORKDIR}/${MY_P}
339
340 pkg_setup() {
341 if ! use gtk; then
342 ewarn "USE=-gtk disables gtk-based gui called wireshark."
343 ewarn "Only command line utils will be built available"
344 fi
345
346 if use python; then
347 python-single-r1_pkg_setup
348 fi
349
350 # Add group for users allowed to sniff.
351 enewgroup wireshark
352 }
353
354 src_prepare() {
355 epatch \
356 "${FILESDIR}"/${PN}-1.6.13-ldflags.patch \
357 "${FILESDIR}"/${PN}-1.8.12-gtk-deprecated-warnings.patch
358
359 sed -i -e '/^Icon/s|.png||g' ${PN}.desktop || die
360
361 sed -i -e 's|SvnVersion|GitVersion|g' docbook/*.xml || die
362
363 epatch_user
364
365 eautoreconf
366 }
367
368 src_configure() {
369 local myconf
370
371 # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
372 # --with-ssl to ./configure. (Mimics code from acinclude.m4).
373 if use kerberos; then
374 case `krb5-config --libs` in
375 *-lcrypto*)
376 ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
377 ewarn "Note there are annoying license incompatibilities between the OpenSSL"
378 ewarn "license and the GPL, so do your check before distributing such package."
379 myconf+=( "--with-ssl" )
380 ;;
381 esac
382 fi
383
384 # Hack around inability to disable doxygen/fop doc generation
385 use doc || export ac_cv_prog_HAVE_DOXYGEN=false
386 use doc-pdf || export ac_cv_prog_HAVE_FOP=false
387
388 # dumpcap requires libcap, setuid-install requires dumpcap
389 # --disable-profile-build bugs #215806, #292991, #479602
390 econf \
391 $(use pcap && use_enable !caps setuid-install) \
392 $(use pcap && use_enable caps setcap-install) \
393 $(use_enable gtk wireshark) \
394 $(use_enable ipv6) \
395 $(use_with adns c-ares) \
396 $(use_with crypt gcrypt) \
397 $(use_with caps libcap) \
398 $(use_with geoip) \
399 $(use_with kerberos krb5) \
400 $(use_with lua) \
401 $(use_with pcap dumpcap-group wireshark) \
402 $(use_with pcap) \
403 $(use_with portaudio) \
404 $(use_with python) \
405 $(use_with smi libsmi) \
406 $(use_with ssl gnutls) \
407 $(use_with zlib) \
408 --disable-extra-gcc-checks \
409 --disable-profile-build \
410 --disable-usr-local \
411 --sysconfdir="${EPREFIX}"/etc/wireshark \
412 --without-adns \
413 ${myconf[@]}
414 }
415
416 src_compile() {
417 default
418 use doc && emake -j1 -C docbook
419 }
420
421 src_install() {
422 default
423 if use doc; then
424 dohtml -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}}
425 if use doc-pdf; then
426 insinto /usr/share/doc/${PF}/pdf/
427 doins docbook/{{developer,user}-guide,release-notes}-{a4,us}.pdf
428 fi
429 fi
430
431 # FAQ is not required as is installed from help/faq.txt
432 dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \
433 doc/{randpkt.txt,README*}
434
435 # install headers
436 local wsheader
437 for wsheader in $( echo $(< debian/wireshark-dev.header-files ) ); do
438 insinto /usr/include/wireshark/$( dirname ${wsheader} )
439 doins ${wsheader}
440 done
441
442 #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/
443 insinto /usr/include/wiretap
444 doins wiretap/wtap.h
445
446 if use gtk; then
447 for c in hi lo; do
448 for d in 16 32 48; do
449 insinto /usr/share/icons/${c}color/${d}x${d}/apps
450 newins image/${c}${d}-app-wireshark.png wireshark.png
451 done
452 done
453 domenu wireshark.desktop
454 fi
455
456 use pcap && chmod o-x "${ED}"/usr/bin/dumpcap #357237
457
458 if use python; then
459 python_optimize "${ED}"/usr/lib*/wireshark/python
460 fi
461
462 prune_libtool_files
463 }
464
465 pkg_postinst() {
466 # Add group for users allowed to sniff.
467 enewgroup wireshark
468
469 if use pcap; then
470 fcaps -o 0 -g wireshark -m 4710 -M 0710 \
471 cap_dac_read_search,cap_net_raw,cap_net_admin \
472 "${EROOT}"/usr/bin/dumpcap
473 fi
474
475 ewarn "NOTE: To run wireshark as normal user you have to add yourself to"
476 ewarn "the wireshark group. This security measure ensures that only trusted"
477 ewarn "users are allowed to sniff your traffic."
478 ewarn
479 ewarn "DEPRECATED: ${CATEGORY}/${P} is the last release in the 1.8 branch."
480 ewarn "If you have not prepared your migration to 1.10 yet, now is the time to do so."
481 ewarn "http://www.wireshark.org/lists/wireshark-announce/201406/msg00001.html"
482 }