Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/wireshark/
Date: Fri, 15 Jul 2016 06:44:14
Message-Id: 1468565043.c45e6254cb8e1e55eeddf3fb164d8d05653fce6c.jer@gentoo
1 commit: c45e6254cb8e1e55eeddf3fb164d8d05653fce6c
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 15 06:43:37 2016 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 15 06:44:03 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c45e6254
7
8 net-analyzer/wireshark: Old.
9
10 Package-Manager: portage-2.3.0
11
12 net-analyzer/wireshark/Manifest | 2 -
13 net-analyzer/wireshark/wireshark-2.0.2.ebuild | 279 --------------------------
14 net-analyzer/wireshark/wireshark-2.1.0.ebuild | 260 ------------------------
15 3 files changed, 541 deletions(-)
16
17 diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
18 index df5f9e9..fe4ab54 100644
19 --- a/net-analyzer/wireshark/Manifest
20 +++ b/net-analyzer/wireshark/Manifest
21 @@ -1,4 +1,2 @@
22 -DIST wireshark-2.0.2.tar.bz2 31073440 SHA256 e921fb072085a5654d899949bb561d0687f4819f7b63ba35777bb949a9b6b9c1 SHA512 a3645f0c2600091d3af76d12db4b73f83e6af4686a1bd7a336a420e4d7505ed281dfabb05c05cd6f58084fa3f25b6b9014b6f273b875c713ee39c77b4c5c715f WHIRLPOOL 4041698412d96ce495e2b564c897b4d770eea1851e431b43b2ef1bc6834bf57460ace5cc2e3f9ae6e05babbbec85e096ee1a87bc68211677202215c4dd0b53e5
23 DIST wireshark-2.0.4.tar.bz2 31121258 SHA256 9ea9c82da9942194ebc8fc5c951a02e6d179afa7472cb6d96ca76154510de1a5 SHA512 f86c41ba9fb25ea61f3947819676417f7af64301cdd37c91666d59b179c45d76c1d0e8739ef6bcf3bb077d3216a65458b3d56755dd08f1fb05cc87cb810f8a07 WHIRLPOOL 2a495221cc1e28283ca19c181fb531fbd01194dd9a0ce9ab6df2a50ce0e19dc21ff5fe023d08a88ebcbb2bfe2a55d47e173401bc09ff8f5356e695fb4cacb12b
24 -DIST wireshark-2.1.0.tar.bz2 32605482 SHA256 f73bd7660056c0910c8a89f480f61ab9fe62866eadf1af49e3374da3fe16b4cc SHA512 9882014f4cb4f78034c4471f7667f9accdc32dd4c22b8ea799da7a0f2ad1bb7aaa47308ece503cd4e1955903138c06f219f309c8c6216f64d1e9c8747f118154 WHIRLPOOL 0ba0cca898bf4f302fabbe0f8dbc0fb7ff050c4dfb988d9d9622b97ae48fc3ca342f260136b1d2fc667407633817c09f5b5d7624081c2c59bdf7559339f03164
25 DIST wireshark-2.1.1.tar.bz2 32212684 SHA256 8f5e604e8e0bc1f5562b166818f7a247f1b4d1f2ed15614138cc82fedad607e5 SHA512 216a0f661d271361d6388c74d52add917ec8701f58ae1a7b0ea115c4028240ad1c911fd74e9d8fe78bca4088228afcbcfb5a610827683552b3bc2bc1c77a249e WHIRLPOOL 83f1941146b8487f1644b1e8e8b8ced8ded1b16d53db9c4316808474f11121acd704f66c2f97d456a0a817f5b127380c834ed9924f58421ad3c9ef2b0e9cd70f
26
27 diff --git a/net-analyzer/wireshark/wireshark-2.0.2.ebuild b/net-analyzer/wireshark/wireshark-2.0.2.ebuild
28 deleted file mode 100644
29 index 08b4571..0000000
30 --- a/net-analyzer/wireshark/wireshark-2.0.2.ebuild
31 +++ /dev/null
32 @@ -1,279 +0,0 @@
33 -# Copyright 1999-2015 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -# $Id$
36 -
37 -EAPI=5
38 -inherit autotools eutils fcaps flag-o-matic multilib qmake-utils qt4-r2 user
39 -
40 -DESCRIPTION="A network protocol analyzer formerly known as ethereal"
41 -HOMEPAGE="http://www.wireshark.org/"
42 -SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.bz2"
43 -
44 -LICENSE="GPL-2"
45 -SLOT="0/${PV}"
46 -KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
47 -IUSE="
48 - adns androiddump +caps crypt doc doc-pdf geoip +gtk3 ipv6 kerberos lua
49 - +netlink +pcap portaudio +qt4 qt5 selinux sbc smi tfshark
50 - cpu_flags_x86_sse4_2 ssl zlib
51 -"
52 -REQUIRED_USE="
53 - ssl? ( crypt )
54 - ?? ( qt4 qt5 )
55 -"
56 -
57 -S=${WORKDIR}/${P/_/}
58 -
59 -GTK_COMMON_DEPEND="
60 - x11-libs/gdk-pixbuf
61 - x11-libs/pango
62 - x11-misc/xdg-utils
63 -"
64 -CDEPEND="
65 - >=dev-libs/glib-2.14:2
66 - netlink? ( dev-libs/libnl:3 )
67 - adns? ( >=net-dns/c-ares-1.5 )
68 - crypt? ( dev-libs/libgcrypt:0 )
69 - caps? ( sys-libs/libcap )
70 - geoip? ( dev-libs/geoip )
71 - gtk3? (
72 - ${GTK_COMMON_DEPEND}
73 - x11-libs/gtk+:3
74 - )
75 - kerberos? ( virtual/krb5 )
76 - lua? ( >=dev-lang/lua-5.1:* )
77 - pcap? ( net-libs/libpcap )
78 - portaudio? ( media-libs/portaudio )
79 - qt4? (
80 - dev-qt/qtcore:4
81 - dev-qt/qtgui:4[accessibility]
82 - x11-misc/xdg-utils
83 - )
84 - qt5? (
85 - dev-qt/qtcore:5
86 - dev-qt/qtgui:5
87 - dev-qt/qtmultimedia:5
88 - dev-qt/qtprintsupport:5
89 - dev-qt/qtwidgets:5
90 - x11-misc/xdg-utils
91 - )
92 - sbc? ( media-libs/sbc )
93 - smi? ( net-libs/libsmi )
94 - ssl? ( net-libs/gnutls )
95 - zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 )
96 -"
97 -# We need perl for `pod2html`. The rest of the perl stuff is to block older
98 -# and broken installs. #455122
99 -DEPEND="
100 - ${CDEPEND}
101 - dev-lang/perl
102 - !<virtual/perl-Pod-Simple-3.170
103 - !<perl-core/Pod-Simple-3.170
104 - doc? (
105 - app-doc/doxygen
106 - app-text/asciidoc
107 - dev-libs/libxml2
108 - dev-libs/libxslt
109 - doc-pdf? ( dev-java/fop )
110 - www-client/lynx
111 - )
112 - sys-devel/bison
113 - sys-devel/flex
114 - virtual/pkgconfig
115 -"
116 -RDEPEND="
117 - ${CDEPEND}
118 - gtk3? ( virtual/freedesktop-icon-theme )
119 - qt4? ( virtual/freedesktop-icon-theme )
120 - qt5? ( virtual/freedesktop-icon-theme )
121 - selinux? ( sec-policy/selinux-wireshark )
122 -"
123 -
124 -pkg_setup() {
125 - enewgroup wireshark
126 -}
127 -
128 -src_prepare() {
129 - epatch \
130 - "${FILESDIR}"/${PN}-1.6.13-ldflags.patch \
131 - "${FILESDIR}"/${PN}-1.11.0-oldlibs.patch \
132 - "${FILESDIR}"/${PN}-99999999-pkgconfig.patch \
133 - "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch \
134 - "${FILESDIR}"/${PN}-2.0.0-androiddump-pcap.patch \
135 - "${FILESDIR}"/${PN}-2.1.0-sse4_2.patch
136 -
137 - epatch_user
138 -
139 - eautoreconf
140 -}
141 -
142 -src_configure() {
143 - local myconf
144 -
145 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
146 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
147 - if use kerberos; then
148 - case $(krb5-config --libs) in
149 - *-lcrypto*)
150 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
151 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
152 - ewarn "license and the GPL, so do your check before distributing such package."
153 - myconf+=( "--with-ssl" )
154 - ;;
155 - esac
156 - fi
157 -
158 - # Enable wireshark binary with any supported GUI toolkit (bug #473188)
159 - if use gtk3 || use qt4 || use qt5; then
160 - myconf+=( "--enable-wireshark" )
161 - else
162 - myconf+=( "--disable-wireshark" )
163 - fi
164 -
165 - if ! use qt4 && ! use qt5; then
166 - myconf+=( "--with-qt=no" )
167 - fi
168 -
169 - if use qt4; then
170 - export QT_MIN_VERSION=4.6.0
171 - fi
172 -
173 - if use qt5; then
174 - export QT_MIN_VERSION=5.3.0
175 - append-cxxflags -fPIC -DPIC
176 - fi
177 -
178 - # Hack around inability to disable doxygen/fop doc generation
179 - use doc || export ac_cv_prog_HAVE_DOXYGEN=false
180 - use doc-pdf || export ac_cv_prog_HAVE_FOP=false
181 -
182 - # dumpcap requires libcap
183 - # --disable-profile-build bugs #215806, #292991, #479602
184 - econf \
185 - $(use androiddump && use pcap && echo --enable-androiddump-use-libpcap=yes) \
186 - $(use_enable androiddump) \
187 - $(use_enable ipv6) \
188 - $(use_enable tfshark) \
189 - $(use_with adns c-ares) \
190 - $(use_with caps libcap) \
191 - $(use_with crypt gcrypt) \
192 - $(use_with geoip) \
193 - $(use_with gtk3) \
194 - $(use_with kerberos krb5) \
195 - $(use_with lua) \
196 - $(use_with pcap dumpcap-group wireshark) \
197 - $(use_with pcap) \
198 - $(use_with portaudio) \
199 - $(usex qt4 --with-qt=4 '') \
200 - $(usex qt5 --with-qt=5 '') \
201 - $(usex qt4 MOC=$(qt4_get_bindir)/moc '') \
202 - $(usex qt4 RCC=$(qt4_get_bindir)/rcc '') \
203 - $(usex qt4 UIC=$(qt4_get_bindir)/uic '') \
204 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '') \
205 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') \
206 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '') \
207 - $(use_with sbc) \
208 - $(use_with smi libsmi) \
209 - $(use_with ssl gnutls) \
210 - $(use_with zlib) \
211 - $(usex netlink --with-libnl=3 --without-libnl) \
212 - $(usex cpu_flags_x86_sse4_2 --enable-sse4_2 '') \
213 - --disable-profile-build \
214 - --disable-usr-local \
215 - --disable-warnings-as-errors \
216 - --sysconfdir="${EPREFIX}"/etc/wireshark \
217 - --without-adns \
218 - ${myconf[@]}
219 -}
220 -
221 -src_compile() {
222 - default
223 - if use doc; then
224 - use doc-pdf && addpredict "/root/.java"
225 - emake -j1 -C docbook
226 - fi
227 -}
228 -
229 -src_install() {
230 - default
231 -
232 - if use doc; then
233 - dohtml -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}}
234 - if use doc-pdf; then
235 - insinto /usr/share/doc/${PF}/pdf/
236 - doins docbook/{developer,user}-guide-{a4,us}.pdf docbook/release-notes.pdf
237 - fi
238 - fi
239 -
240 - # FAQ is not required as is installed from help/faq.txt
241 - dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \
242 - doc/{randpkt.txt,README*}
243 -
244 - # install headers
245 - local wsheader
246 - for wsheader in \
247 - color.h \
248 - config.h \
249 - epan/*.h \
250 - epan/crypt/*.h \
251 - epan/dfilter/*.h \
252 - epan/dissectors/*.h \
253 - epan/ftypes/*.h \
254 - epan/wmem/*.h \
255 - register.h \
256 - wiretap/*.h \
257 - ws_symbol_export.h \
258 - wsutil/*.h
259 - do
260 - insinto /usr/include/wireshark/$( dirname ${wsheader} )
261 - doins ${wsheader}
262 - done
263 -
264 - #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/
265 - insinto /usr/include/wiretap
266 - doins wiretap/wtap.h
267 -
268 - if use gtk3 || use qt4 || use qt5; then
269 - local c d
270 - for c in hi lo; do
271 - for d in 16 32 48; do
272 - insinto /usr/share/icons/${c}color/${d}x${d}/apps
273 - newins image/${c}${d}-app-wireshark.png wireshark.png
274 - done
275 - done
276 - for d in 16 24 32 48 64 128 256 ; do
277 - insinto /usr/share/icons/hicolor/${d}x${d}/mimetypes
278 - newins image/WiresharkDoc-${d}.png application-vnd.tcpdump.pcap.png
279 - done
280 - fi
281 -
282 - if use gtk3; then
283 - domenu wireshark.desktop
284 - fi
285 -
286 - if use qt4 || use qt5; then
287 - sed \
288 - -e '/Exec=/s|wireshark|&-qt|g' \
289 - -e 's|^Name.*=Wireshark|& (Qt)|g' \
290 - wireshark.desktop > wireshark-qt.desktop \
291 - || die
292 - domenu wireshark-qt.desktop
293 - fi
294 -
295 - prune_libtool_files
296 -}
297 -
298 -pkg_postinst() {
299 - # Add group for users allowed to sniff.
300 - enewgroup wireshark
301 -
302 - if use pcap; then
303 - fcaps -o 0 -g wireshark -m 4710 -M 0710 \
304 - cap_dac_read_search,cap_net_raw,cap_net_admin \
305 - "${EROOT}"/usr/bin/dumpcap
306 - fi
307 -
308 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
309 - ewarn "add yourself to the wireshark group. This security measure ensures"
310 - ewarn "that only trusted users are allowed to sniff your traffic."
311 -}
312
313 diff --git a/net-analyzer/wireshark/wireshark-2.1.0.ebuild b/net-analyzer/wireshark/wireshark-2.1.0.ebuild
314 deleted file mode 100644
315 index 66e32b8..0000000
316 --- a/net-analyzer/wireshark/wireshark-2.1.0.ebuild
317 +++ /dev/null
318 @@ -1,260 +0,0 @@
319 -# Copyright 1999-2016 Gentoo Foundation
320 -# Distributed under the terms of the GNU General Public License v2
321 -# $Id$
322 -
323 -EAPI=5
324 -inherit autotools eutils fcaps flag-o-matic multilib qmake-utils qt4-r2 user
325 -
326 -DESCRIPTION="A network protocol analyzer formerly known as ethereal"
327 -HOMEPAGE="http://www.wireshark.org/"
328 -SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.bz2"
329 -
330 -LICENSE="GPL-2"
331 -SLOT="0/${PV}"
332 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
333 -IUSE="
334 - adns androiddump +caps cpu_flags_x86_sse4_2 crypt doc doc-pdf geoip +gtk
335 - kerberos lua +netlink +pcap portaudio +qt4 qt5 sbc selinux smi ssl tfshark
336 - zlib
337 -"
338 -REQUIRED_USE="
339 - ssl? ( crypt )
340 - ?? ( qt4 qt5 )
341 -"
342 -
343 -S=${WORKDIR}/${P/_/}
344 -
345 -CDEPEND="
346 - >=dev-libs/glib-2.14:2
347 - netlink? ( dev-libs/libnl:3 )
348 - adns? ( >=net-dns/c-ares-1.5 )
349 - crypt? ( dev-libs/libgcrypt:0 )
350 - caps? ( sys-libs/libcap )
351 - geoip? ( dev-libs/geoip )
352 - gtk? (
353 - x11-libs/gdk-pixbuf
354 - x11-libs/gtk+:3
355 - x11-libs/pango
356 - x11-misc/xdg-utils
357 - )
358 - kerberos? ( virtual/krb5 )
359 - lua? ( >=dev-lang/lua-5.1:* )
360 - pcap? ( net-libs/libpcap )
361 - portaudio? ( media-libs/portaudio )
362 - qt4? (
363 - dev-qt/qtcore:4
364 - dev-qt/qtgui:4[accessibility]
365 - x11-misc/xdg-utils
366 - )
367 - qt5? (
368 - dev-qt/qtcore:5
369 - dev-qt/qtgui:5
370 - dev-qt/qtmultimedia:5
371 - dev-qt/qtprintsupport:5
372 - dev-qt/qtwidgets:5
373 - x11-misc/xdg-utils
374 - )
375 - sbc? ( media-libs/sbc )
376 - smi? ( net-libs/libsmi )
377 - ssl? ( net-libs/gnutls:= )
378 - zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 )
379 -"
380 -# We need perl for `pod2html`. The rest of the perl stuff is to block older
381 -# and broken installs. #455122
382 -DEPEND="
383 - ${CDEPEND}
384 - dev-lang/perl
385 - !<virtual/perl-Pod-Simple-3.170
386 - !<perl-core/Pod-Simple-3.170
387 - doc? (
388 - app-doc/doxygen
389 - app-text/asciidoc
390 - dev-libs/libxml2
391 - dev-libs/libxslt
392 - doc-pdf? ( dev-java/fop )
393 - www-client/lynx
394 - )
395 - sys-devel/bison
396 - sys-devel/flex
397 - virtual/pkgconfig
398 -"
399 -RDEPEND="
400 - ${CDEPEND}
401 - gtk? ( virtual/freedesktop-icon-theme )
402 - qt4? ( virtual/freedesktop-icon-theme )
403 - qt5? ( virtual/freedesktop-icon-theme )
404 - selinux? ( sec-policy/selinux-wireshark )
405 -"
406 -
407 -pkg_setup() {
408 - enewgroup wireshark
409 -}
410 -
411 -src_prepare() {
412 - epatch \
413 - "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch \
414 - "${FILESDIR}"/${PN}-2.1.0-sse4_2-r1.patch \
415 - "${FILESDIR}"/${PN}-99999999-androiddump.patch
416 -
417 - epatch_user
418 -
419 - eautoreconf
420 -}
421 -
422 -src_configure() {
423 - local myconf
424 -
425 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
426 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
427 - if use kerberos; then
428 - case $(krb5-config --libs) in
429 - *-lcrypto*)
430 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
431 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
432 - ewarn "license and the GPL, so do your check before distributing such package."
433 - myconf+=( "--with-ssl" )
434 - ;;
435 - esac
436 - fi
437 -
438 - # Enable wireshark binary with any supported GUI toolkit (bug #473188)
439 - if use gtk || use qt4 || use qt5; then
440 - myconf+=( "--enable-wireshark" )
441 - else
442 - myconf+=( "--disable-wireshark" )
443 - fi
444 -
445 - if ! use qt4 && ! use qt5; then
446 - myconf+=( "--with-qt=no" )
447 - fi
448 -
449 - if use qt4; then
450 - export QT_MIN_VERSION=4.6.0
451 - fi
452 -
453 - if use qt5; then
454 - export QT_MIN_VERSION=5.3.0
455 - append-cxxflags -fPIC -DPIC
456 - fi
457 -
458 - # Hack around inability to disable doxygen/fop doc generation
459 - use doc || export ac_cv_prog_HAVE_DOXYGEN=false
460 - use doc-pdf || export ac_cv_prog_HAVE_FOP=false
461 -
462 - # dumpcap requires libcap
463 - # --disable-profile-build bugs #215806, #292991, #479602
464 - econf \
465 - $(use androiddump && use pcap && echo --enable-androiddump-use-libpcap=yes) \
466 - $(use_enable androiddump) \
467 - $(use_enable tfshark) \
468 - $(use_with adns c-ares) \
469 - $(use_with caps libcap) \
470 - $(use_with crypt gcrypt) \
471 - $(use_with geoip) \
472 - $(use_with gtk gtk 3) \
473 - $(use_with kerberos krb5) \
474 - $(use_with lua) \
475 - $(use_with pcap dumpcap-group wireshark) \
476 - $(use_with pcap) \
477 - $(use_with portaudio) \
478 - $(usex qt4 --with-qt=4 '') \
479 - $(usex qt4 MOC=$(qt4_get_bindir)/moc '') \
480 - $(usex qt4 RCC=$(qt4_get_bindir)/rcc '') \
481 - $(usex qt4 UIC=$(qt4_get_bindir)/uic '') \
482 - $(usex qt5 --with-qt=5 '') \
483 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '') \
484 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') \
485 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '') \
486 - $(use_with sbc) \
487 - $(use_with smi libsmi) \
488 - $(use_with ssl gnutls) \
489 - $(use_with zlib) \
490 - $(usex netlink --with-libnl=3 --without-libnl) \
491 - $(usex cpu_flags_x86_sse4_2 --enable-sse4_2 '') \
492 - --disable-profile-build \
493 - --disable-warnings-as-errors \
494 - --sysconfdir="${EPREFIX}"/etc/wireshark \
495 - ${myconf[@]}
496 -}
497 -
498 -src_compile() {
499 - default
500 -
501 - if use doc; then
502 - emake -j1 -C docbook
503 - if use doc-pdf; then
504 - addpredict "/root/.java"
505 - emake -C docbook all-pdf
506 - fi
507 - fi
508 -}
509 -
510 -src_install() {
511 - default
512 -
513 - if use doc; then
514 - dohtml -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}}
515 - if use doc-pdf; then
516 - insinto /usr/share/doc/${PF}/pdf/
517 - doins docbook/{developer,user}-guide-{a4,us}.pdf docbook/release-notes.pdf
518 - fi
519 - fi
520 -
521 - # FAQ is not required as is installed from help/faq.txt
522 - dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \
523 - doc/{randpkt.txt,README*}
524 -
525 - # install headers
526 - local wsheader
527 - for wsheader in \
528 - config.h \
529 - epan/*.h \
530 - epan/crypt/*.h \
531 - epan/dfilter/*.h \
532 - epan/dissectors/*.h \
533 - epan/ftypes/*.h \
534 - epan/wmem/*.h \
535 - register.h \
536 - wiretap/*.h \
537 - ws_symbol_export.h \
538 - wsutil/*.h
539 - do
540 - insinto /usr/include/wireshark/$( dirname ${wsheader} )
541 - doins ${wsheader}
542 - done
543 -
544 - #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/
545 - insinto /usr/include/wiretap
546 - doins wiretap/wtap.h
547 -
548 - if use gtk || use qt4 || use qt5; then
549 - local c d
550 - for c in hi lo; do
551 - for d in 16 32 48; do
552 - insinto /usr/share/icons/${c}color/${d}x${d}/apps
553 - newins image/${c}${d}-app-wireshark.png wireshark.png
554 - done
555 - done
556 - for d in 16 24 32 48 64 128 256 ; do
557 - insinto /usr/share/icons/hicolor/${d}x${d}/mimetypes
558 - newins image/WiresharkDoc-${d}.png application-vnd.tcpdump.pcap.png
559 - done
560 - fi
561 -
562 - prune_libtool_files
563 -}
564 -
565 -pkg_postinst() {
566 - # Add group for users allowed to sniff.
567 - enewgroup wireshark
568 -
569 - if use pcap; then
570 - fcaps -o 0 -g wireshark -m 4710 -M 0710 \
571 - cap_dac_read_search,cap_net_raw,cap_net_admin \
572 - "${EROOT}"/usr/bin/dumpcap
573 - fi
574 -
575 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
576 - ewarn "add yourself to the wireshark group. This security measure ensures"
577 - ewarn "that only trusted users are allowed to sniff your traffic."
578 -}