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