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: Mon, 28 May 2018 20:26:28
Message-Id: 1527539180.215e64f3003a8bb8cffd402666cf44a9db85691a.jer@gentoo
1 commit: 215e64f3003a8bb8cffd402666cf44a9db85691a
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 28 20:25:20 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Mon May 28 20:26:20 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=215e64f3
7
8 net-analyzer/wireshark: Old.
9
10 Package-Manager: Portage-2.3.38, Repoman-2.3.9
11
12 net-analyzer/wireshark/Manifest | 1 -
13 net-analyzer/wireshark/wireshark-2.6.0-r2.ebuild | 249 ----------------------
14 net-analyzer/wireshark/wireshark-2.6.0.ebuild | 259 -----------------------
15 3 files changed, 509 deletions(-)
16
17 diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
18 index 23f169a8841..d946c88db42 100644
19 --- a/net-analyzer/wireshark/Manifest
20 +++ b/net-analyzer/wireshark/Manifest
21 @@ -1,4 +1,3 @@
22 DIST wireshark-2.4.5.tar.xz 28836740 BLAKE2B 797540daca259a2d5d7dc6e637f2b504b6d14191af4040e6b344c95db6c776b7de80c25c59c98ab84d0337cc96c7313b42c13103a3c3944768a793130deae258 SHA512 2f2c201d6b8a37dcbe03bc9affbf97d632d8e40e4fe5b3a3e79cbd5cfbeb5b9111919850546ccae355fcb042def3456438eb1c4d73f7d56d373e7898311b42f3
23 DIST wireshark-2.4.6.tar.xz 28851192 BLAKE2B 19a69d077b794ab07fbfb22b7cf9e61ff54ded5dcd0396ba97d1cbd99addaeb9670d5a870f5e83c39384230def04c078d676580bded81746753716cb392ee05a SHA512 171047fa36a6cb29d1edb8e28086e24075f8b77581d9f3142fa39af8ae3d6dfe0c2e41a9335ca5d9851578b54ac9e6e74ff5bd92a96af262a5cc7a73857b8b81
24 -DIST wireshark-2.6.0.tar.xz 28314868 BLAKE2B 2121a667115474ac4b1fe05d50ffc02383bf7a8057ea072480455562c62a75d18f3c6b6886ca1e7345101d15057a67a250a3d2a2050777ff5bb1654279b1ac87 SHA512 a419ed32caeb9f25fc26e345c7baf7d847fee35730c64efad66870a786b26b9f8d5a8665b8b99be88f9cf504f6d9e640584d9849558ff09efc83400588dc6da8
25 DIST wireshark-2.6.1.tar.xz 28386244 BLAKE2B fe45f4249c81fd83ce35384b7038d7f1b5e21d884a5faec4344dda8f0c8b71393207e043672ce57bb6f1c45800ffce8feed8573a064db8048b3c0268feb0b486 SHA512 e68f7fa5975f10feccb76ab64c9a00f141cd04a12fa586a9839c93630d3554565d8e2ddfab83ec31cb813485b14b3227b7ec6e59baef007a6fe74b8b2a5ed444
26
27 diff --git a/net-analyzer/wireshark/wireshark-2.6.0-r2.ebuild b/net-analyzer/wireshark/wireshark-2.6.0-r2.ebuild
28 deleted file mode 100644
29 index b2bdb6d5cf7..00000000000
30 --- a/net-analyzer/wireshark/wireshark-2.6.0-r2.ebuild
31 +++ /dev/null
32 @@ -1,249 +0,0 @@
33 -# Copyright 1999-2018 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -inherit cmake-utils eutils fcaps flag-o-matic gnome2-utils ltprune multilib qmake-utils user xdg-utils
38 -
39 -DESCRIPTION="A network protocol analyzer formerly known as ethereal"
40 -HOMEPAGE="https://www.wireshark.org/"
41 -SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.xz"
42 -
43 -LICENSE="GPL-2"
44 -SLOT="0/${PV}"
45 -KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc64 ~x86"
46 -IUSE="
47 - adns androiddump bcg729 +capinfos +captype ciscodump +dftest doc
48 - +dumpcap +editcap gtk kerberos libxml2 lua lz4 maxminddb +mergecap +netlink
49 - nghttp2 +pcap portaudio +qt5 +randpkt +randpktdump +reordercap sbc selinux
50 - +sharkd smi snappy spandsp sshdump ssl +text2pcap tfshark +tshark +udpdump
51 - zlib
52 -"
53 -
54 -S=${WORKDIR}/${P/_/}
55 -
56 -CDEPEND="
57 - >=dev-libs/glib-2.14:2
58 - dev-libs/libgcrypt:0
59 - netlink? ( dev-libs/libnl:3 )
60 - adns? ( >=net-dns/c-ares-1.5 )
61 - bcg729? ( media-libs/bcg729 )
62 - filecaps? ( sys-libs/libcap )
63 - gtk? (
64 - x11-libs/gdk-pixbuf
65 - x11-libs/gtk+:3
66 - x11-libs/pango
67 - x11-misc/xdg-utils
68 - )
69 - kerberos? ( virtual/krb5 )
70 - sshdump? ( >=net-libs/libssh-0.6 )
71 - ciscodump? ( >=net-libs/libssh-0.6 )
72 - libxml2? ( dev-libs/libxml2 )
73 - lua? ( >=dev-lang/lua-5.1:* )
74 - lz4? ( app-arch/lz4 )
75 - maxminddb? ( dev-libs/libmaxminddb )
76 - nghttp2? ( net-libs/nghttp2 )
77 - pcap? ( net-libs/libpcap )
78 - portaudio? ( media-libs/portaudio )
79 - qt5? (
80 - dev-qt/qtcore:5
81 - dev-qt/qtgui:5
82 - dev-qt/qtmultimedia:5
83 - dev-qt/qtprintsupport:5
84 - dev-qt/qtwidgets:5
85 - >=media-libs/speex-1.2.0
86 - media-libs/speexdsp
87 - x11-misc/xdg-utils
88 - )
89 - sbc? ( media-libs/sbc )
90 - smi? ( net-libs/libsmi )
91 - snappy? ( app-arch/snappy )
92 - spandsp? ( media-libs/spandsp )
93 - ssl? ( net-libs/gnutls:= )
94 - zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 )
95 -"
96 -# We need perl for `pod2html`. The rest of the perl stuff is to block older
97 -# and broken installs. #455122
98 -DEPEND="
99 - ${CDEPEND}
100 - dev-lang/perl
101 - !<virtual/perl-Pod-Simple-3.170
102 - !<perl-core/Pod-Simple-3.170
103 - doc? (
104 - app-doc/doxygen
105 - dev-ruby/asciidoctor
106 - )
107 - qt5? (
108 - dev-qt/linguist-tools:5
109 - )
110 - sys-devel/bison
111 - sys-devel/flex
112 - virtual/pkgconfig
113 -"
114 -RDEPEND="
115 - ${CDEPEND}
116 - gtk? ( virtual/freedesktop-icon-theme )
117 - qt5? ( virtual/freedesktop-icon-theme )
118 - selinux? ( sec-policy/selinux-wireshark )
119 -"
120 -PATCHES=(
121 - "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch
122 - "${FILESDIR}"/${PN}-2.4-androiddump.patch
123 - "${FILESDIR}"/${PN}-2.6.0-androiddump-wsutil.patch
124 - "${FILESDIR}"/${PN}-2.6.0-qtsvg.patch
125 - "${FILESDIR}"/${PN}-2.6.0-redhat.patch
126 - "${FILESDIR}"/${PN}-99999999-androiddump.patch
127 -)
128 -
129 -pkg_setup() {
130 - enewgroup wireshark
131 -}
132 -
133 -src_configure() {
134 - local mycmakeargs
135 -
136 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
137 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
138 - if use kerberos; then
139 - case $(krb5-config --libs) in
140 - *-lcrypto*)
141 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
142 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
143 - ewarn "license and the GPL, so do your check before distributing such package."
144 - mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) )
145 - ;;
146 - esac
147 - fi
148 -
149 - if use qt5; then
150 - export QT_MIN_VERSION=5.3.0
151 - append-cxxflags -fPIC -DPIC
152 - fi
153 -
154 - mycmakeargs+=(
155 - $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes)
156 - $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '')
157 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '')
158 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '')
159 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '')
160 - -DBUILD_androiddump=$(usex androiddump)
161 - -DBUILD_capinfos=$(usex capinfos)
162 - -DBUILD_captype=$(usex captype)
163 - -DBUILD_ciscodump=$(usex ciscodump)
164 - -DBUILD_dftest=$(usex dftest)
165 - -DBUILD_dumpcap=$(usex dumpcap)
166 - -DBUILD_editcap=$(usex editcap)
167 - -DBUILD_mergecap=$(usex mergecap)
168 - -DBUILD_mmdbresolve=$(usex maxminddb)
169 - -DBUILD_randpkt=$(usex randpkt)
170 - -DBUILD_randpktdump=$(usex randpktdump)
171 - -DBUILD_reordercap=$(usex reordercap)
172 - -DBUILD_sharkd=$(usex sharkd)
173 - -DBUILD_sshdump=$(usex sshdump)
174 - -DBUILD_text2pcap=$(usex text2pcap)
175 - -DBUILD_tfshark=$(usex tfshark)
176 - -DBUILD_tshark=$(usex tshark)
177 - -DBUILD_udpdump=$(usex udpdump)
178 - -DBUILD_wireshark=$(usex qt5)
179 - -DBUILD_wireshark_gtk=$(usex gtk)
180 - -DDISABLE_WERROR=yes
181 - -DENABLE_BCG729=$(usex bcg729)
182 - -DENABLE_CAP=no
183 - -DENABLE_CARES=$(usex adns)
184 - -DENABLE_GNUTLS=$(usex ssl)
185 - -DENABLE_KERBEROS=$(usex kerberos)
186 - -DENABLE_LIBXML2=$(usex libxml2)
187 - -DENABLE_LUA=$(usex lua)
188 - -DENABLE_LZ4=$(usex lz4)
189 - -DENABLE_NETLINK=$(usex netlink)
190 - -DENABLE_NGHTTP2=$(usex nghttp2)
191 - -DENABLE_PCAP=$(usex pcap)
192 - -DENABLE_PORTAUDIO=$(usex portaudio)
193 - -DENABLE_SBC=$(usex sbc)
194 - -DENABLE_SMI=$(usex smi)
195 - -DENABLE_SNAPPY=$(usex snappy)
196 - -DENABLE_SPANDSP=$(usex spandsp)
197 - -DENABLE_ZLIB=$(usex zlib)
198 - )
199 -
200 - cmake-utils_src_configure
201 -}
202 -
203 -src_install() {
204 - cmake-utils_src_install
205 -
206 - # FAQ is not required as is installed from help/faq.txt
207 - dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README*
208 -
209 - # install headers
210 - local wsheader
211 - for wsheader in \
212 - epan/*.h \
213 - epan/crypt/*.h \
214 - epan/dfilter/*.h \
215 - epan/dissectors/*.h \
216 - epan/ftypes/*.h \
217 - epan/wmem/*.h \
218 - wiretap/*.h \
219 - ws_diag_control.h \
220 - ws_symbol_export.h \
221 - wsutil/*.h
222 - do
223 - echo "Installing ${wsheader}"
224 - insinto /usr/include/wireshark/$( dirname ${wsheader} )
225 - doins ${wsheader}
226 - done
227 -
228 - for wsheader in \
229 - ../${P}_build/config.h \
230 - ../${P}_build/version.h
231 - do
232 - echo "Installing ${wsheader}"
233 - insinto /usr/include/wireshark
234 - doins ${wsheader}
235 - done
236 -
237 - #with the above this really shouldn't be needed, but things may be looking
238 - # in wiretap/ instead of wireshark/wiretap/
239 - insinto /usr/include/wiretap
240 - doins wiretap/wtap.h
241 -
242 - if use gtk || use qt5; then
243 - local s
244 - for s in 16 32 48 64 128 256 512 1024; do
245 - insinto /usr/share/icons/hicolor/${s}x${s}/apps
246 - newins image/wsicon${s}.png wireshark.png
247 - done
248 - for s in 16 24 32 48 64 128 256 ; do
249 - insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes
250 - newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png
251 - done
252 - fi
253 -
254 - prune_libtool_files
255 -}
256 -
257 -pkg_postinst() {
258 - gnome2_icon_cache_update
259 - xdg_desktop_database_update
260 - xdg_mimeinfo_database_update
261 -
262 - # Add group for users allowed to sniff.
263 - enewgroup wireshark
264 - chgrp wireshark "${EROOT}"/usr/bin/dumpcap
265 -
266 - if use dumpcap && use pcap; then
267 - fcaps -o 0 -g wireshark -m 4710 -M 0710 \
268 - cap_dac_read_search,cap_net_raw,cap_net_admin \
269 - "${EROOT}"/usr/bin/dumpcap
270 - fi
271 -
272 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
273 - ewarn "add yourself to the wireshark group. This security measure ensures"
274 - ewarn "that only trusted users are allowed to sniff your traffic."
275 -}
276 -
277 -pkg_postrm() {
278 - gnome2_icon_cache_update
279 - xdg_desktop_database_update
280 - xdg_mimeinfo_database_update
281 -}
282
283 diff --git a/net-analyzer/wireshark/wireshark-2.6.0.ebuild b/net-analyzer/wireshark/wireshark-2.6.0.ebuild
284 deleted file mode 100644
285 index 6af27d0f383..00000000000
286 --- a/net-analyzer/wireshark/wireshark-2.6.0.ebuild
287 +++ /dev/null
288 @@ -1,259 +0,0 @@
289 -# Copyright 1999-2018 Gentoo Foundation
290 -# Distributed under the terms of the GNU General Public License v2
291 -
292 -EAPI=6
293 -inherit autotools eutils fcaps flag-o-matic gnome2-utils multilib qmake-utils user xdg-utils
294 -
295 -DESCRIPTION="A network protocol analyzer formerly known as ethereal"
296 -HOMEPAGE="https://www.wireshark.org/"
297 -SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.xz"
298 -
299 -LICENSE="GPL-2"
300 -SLOT="0/${PV}"
301 -KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc64 ~x86"
302 -IUSE="
303 - adns androiddump bcg729 +capinfos +caps +captype ciscodump
304 - cpu_flags_x86_sse4_2 +dftest doc +dumpcap +editcap gtk kerberos libssh
305 - libxml2 lua lz4 maxminddb +mergecap +netlink nghttp2 +pcap portaudio +qt5
306 - +randpkt +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp
307 - sshdump ssl +text2pcap tfshark +tshark +udpdump zlib
308 -"
309 -REQUIRED_USE="
310 - ciscodump? ( libssh )
311 - sshdump? ( libssh )
312 -"
313 -
314 -S=${WORKDIR}/${P/_/}
315 -
316 -CDEPEND="
317 - >=dev-libs/glib-2.14:2
318 - dev-libs/libgcrypt:0
319 - netlink? ( dev-libs/libnl:3 )
320 - adns? ( >=net-dns/c-ares-1.5 )
321 - bcg729? ( media-libs/bcg729 )
322 - caps? ( sys-libs/libcap )
323 - gtk? (
324 - x11-libs/gdk-pixbuf
325 - x11-libs/gtk+:3
326 - x11-libs/pango
327 - x11-misc/xdg-utils
328 - )
329 - kerberos? ( virtual/krb5 )
330 - libssh? ( >=net-libs/libssh-0.6 )
331 - libxml2? ( dev-libs/libxml2 )
332 - lua? ( >=dev-lang/lua-5.1:* )
333 - lz4? ( app-arch/lz4 )
334 - maxminddb? ( dev-libs/libmaxminddb )
335 - nghttp2? ( net-libs/nghttp2 )
336 - pcap? ( net-libs/libpcap )
337 - portaudio? ( media-libs/portaudio )
338 - qt5? (
339 - dev-qt/qtcore:5
340 - dev-qt/qtgui:5
341 - dev-qt/qtmultimedia:5
342 - dev-qt/qtprintsupport:5
343 - dev-qt/qtwidgets:5
344 - >=media-libs/speex-1.2.0
345 - media-libs/speexdsp
346 - x11-misc/xdg-utils
347 - )
348 - sbc? ( media-libs/sbc )
349 - smi? ( net-libs/libsmi )
350 - snappy? ( app-arch/snappy )
351 - spandsp? ( media-libs/spandsp )
352 - ssl? ( net-libs/gnutls:= )
353 - zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 )
354 -"
355 -# We need perl for `pod2html`. The rest of the perl stuff is to block older
356 -# and broken installs. #455122
357 -DEPEND="
358 - ${CDEPEND}
359 - dev-lang/perl
360 - !<virtual/perl-Pod-Simple-3.170
361 - !<perl-core/Pod-Simple-3.170
362 - doc? (
363 - app-doc/doxygen
364 - dev-ruby/asciidoctor
365 - )
366 - qt5? (
367 - dev-qt/linguist-tools:5
368 - )
369 - sys-devel/bison
370 - sys-devel/flex
371 - virtual/pkgconfig
372 -"
373 -RDEPEND="
374 - ${CDEPEND}
375 - gtk? ( virtual/freedesktop-icon-theme )
376 - qt5? ( virtual/freedesktop-icon-theme )
377 - selinux? ( sec-policy/selinux-wireshark )
378 -"
379 -PATCHES=(
380 - "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch
381 - "${FILESDIR}"/${PN}-2.1.0-sse4_2-r1.patch
382 - "${FILESDIR}"/${PN}-2.4-androiddump.patch
383 - "${FILESDIR}"/${PN}-99999999-androiddump.patch
384 -)
385 -
386 -pkg_setup() {
387 - enewgroup wireshark
388 -}
389 -
390 -src_prepare() {
391 - default
392 -
393 - eautoreconf
394 -}
395 -
396 -src_configure() {
397 - local myconf
398 -
399 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
400 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
401 - if use kerberos; then
402 - case $(krb5-config --libs) in
403 - *-lcrypto*)
404 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
405 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
406 - ewarn "license and the GPL, so do your check before distributing such package."
407 - myconf+=( "--with-ssl" )
408 - ;;
409 - esac
410 - fi
411 -
412 - # Enable wireshark binary with any supported GUI toolkit (bug #473188)
413 - if use gtk || use qt5; then
414 - myconf+=( "--enable-wireshark" )
415 - else
416 - myconf+=( "--disable-wireshark" )
417 - fi
418 -
419 - if ! use qt5; then
420 - myconf+=( "--with-qt=no" )
421 - fi
422 -
423 - if use qt5; then
424 - export QT_MIN_VERSION=5.3.0
425 - append-cxxflags -fPIC -DPIC
426 - fi
427 -
428 - econf \
429 - $(use androiddump && use pcap && echo --enable-androiddump-use-libpcap=yes) \
430 - $(use dumpcap && use_with pcap dumpcap-group wireshark) \
431 - $(use_enable androiddump) \
432 - $(use_enable capinfos) \
433 - $(use_enable captype) \
434 - $(use_enable ciscodump) \
435 - $(use_enable dftest) \
436 - $(use_enable doc guides) \
437 - $(use_enable dumpcap) \
438 - $(use_enable editcap) \
439 - $(use_enable mergecap) \
440 - $(use_enable randpkt) \
441 - $(use_enable randpktdump) \
442 - $(use_enable reordercap) \
443 - $(use_enable sharkd) \
444 - $(use_enable sshdump) \
445 - $(use_enable text2pcap) \
446 - $(use_enable tfshark) \
447 - $(use_enable tshark) \
448 - $(use_enable udpdump) \
449 - $(use_with adns c-ares) \
450 - $(use_with bcg729) \
451 - $(use_with caps libcap) \
452 - $(use_with gtk gtk 3) \
453 - $(use_with kerberos krb5) \
454 - $(use_with libssh) \
455 - $(use_with libxml2) \
456 - $(use_with lua) \
457 - $(use_with lz4) \
458 - $(use_with maxminddb) \
459 - $(use_with nghttp2) \
460 - $(use_with pcap) \
461 - $(use_with portaudio) \
462 - $(use_with sbc) \
463 - $(use_with smi libsmi) \
464 - $(use_with snappy) \
465 - $(use_with spandsp) \
466 - $(use_with ssl gnutls) \
467 - $(use_with zlib) \
468 - $(usex cpu_flags_x86_sse4_2 --enable-sse4_2 '') \
469 - $(usex netlink --with-libnl=3 --without-libnl) \
470 - $(usex qt5 --with-qt=5 '') \
471 - $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '') \
472 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '') \
473 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') \
474 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '') \
475 - --disable-warnings-as-errors \
476 - --sysconfdir="${EPREFIX}"/etc/wireshark \
477 - ${myconf[@]}
478 -}
479 -
480 -src_install() {
481 - default
482 -
483 - # FAQ is not required as is installed from help/faq.txt
484 - dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README*
485 -
486 - # install headers
487 - local wsheader
488 - for wsheader in \
489 - config.h \
490 - epan/*.h \
491 - epan/crypt/*.h \
492 - epan/dfilter/*.h \
493 - epan/dissectors/*.h \
494 - epan/ftypes/*.h \
495 - epan/wmem/*.h \
496 - wiretap/*.h \
497 - ws_diag_control.h \
498 - ws_symbol_export.h \
499 - wsutil/*.h
500 - do
501 - insinto /usr/include/wireshark/$( dirname ${wsheader} )
502 - doins ${wsheader}
503 - done
504 -
505 - #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/
506 - insinto /usr/include/wiretap
507 - doins wiretap/wtap.h
508 -
509 - if use gtk || use qt5; then
510 - local s
511 - for s in 16 32 48 64 128 256 512 1024; do
512 - insinto /usr/share/icons/hicolor/${s}x${s}/apps
513 - newins image/wsicon${s}.png wireshark.png
514 - done
515 - for s in 16 24 32 48 64 128 256 ; do
516 - insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes
517 - newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png
518 - done
519 - fi
520 -
521 - prune_libtool_files
522 -}
523 -
524 -pkg_postinst() {
525 - gnome2_icon_cache_update
526 - xdg_desktop_database_update
527 - xdg_mimeinfo_database_update
528 -
529 - # Add group for users allowed to sniff.
530 - enewgroup wireshark
531 -
532 - if use dumpcap && use pcap; then
533 - fcaps -o 0 -g wireshark -m 4710 -M 0710 \
534 - cap_dac_read_search,cap_net_raw,cap_net_admin \
535 - "${EROOT}"/usr/bin/dumpcap
536 - fi
537 -
538 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
539 - ewarn "add yourself to the wireshark group. This security measure ensures"
540 - ewarn "that only trusted users are allowed to sniff your traffic."
541 -}
542 -
543 -pkg_postrm() {
544 - gnome2_icon_cache_update
545 - xdg_desktop_database_update
546 - xdg_mimeinfo_database_update
547 -}