Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/wireshark/
Date: Wed, 23 Dec 2020 22:59:45
Message-Id: 1608764374.181b6a478073f4f88bc41a164fe76516990a4bbd.sam@gentoo
1 commit: 181b6a478073f4f88bc41a164fe76516990a4bbd
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 23 22:59:34 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 23 22:59:34 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=181b6a47
7
8 net-analyzer/wireshark: security cleanup
9
10 Bug: https://bugs.gentoo.org/760800
11 Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 net-analyzer/wireshark/Manifest | 2 -
15 net-analyzer/wireshark/wireshark-3.4.0.ebuild | 259 --------------------------
16 net-analyzer/wireshark/wireshark-3.4.1.ebuild | 259 --------------------------
17 3 files changed, 520 deletions(-)
18
19 diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
20 index 26950acdb18..1b280d0987c 100644
21 --- a/net-analyzer/wireshark/Manifest
22 +++ b/net-analyzer/wireshark/Manifest
23 @@ -1,3 +1 @@
24 -DIST wireshark-3.4.0.tar.xz 32502760 BLAKE2B 5d8106f36cc3a1425fd472f7ba645b2a07bfb93c96178a98f90676f39cad38089b625d7d6725ecfaf67bfc78aba3476567b9bf390d6f0dd838537eb81bc4aaa7 SHA512 02070db23c64e1efe42b83cdcd7b52fb9b247e653da0aa12dc21a4283272fea0a135f4b0c5641197840bef88e52785d64a860c9fcfe1bcbaceb016c5258c9649
25 -DIST wireshark-3.4.1.tar.xz 32470004 BLAKE2B aa2c3e56df4232b087d09a52209eec1e91a10ab125f6fb973171771d86d349ddf76bef3da089f0d6740c67883009fb77c5760c1141c99a056e7a36fe8ae5c088 SHA512 a968158a5a22d04a9bf3b060246f7579210a8106e06184411fd00dad69e030c10aecfa579c09dcca11fb659e0a1de4773951578cb3697dd2dc8e5153d3892728
26 DIST wireshark-3.4.2.tar.xz 32465900 BLAKE2B dab7e871c798a6e0f03f45eaa49ba5cbabc18afabd6a5675a3241e4f1e6d86ef21b56b4cee5d561da2f2ec2b274ac6c5a52ed7b8ad50cbf02949a3a7f68d4f09 SHA512 38dc62d306dafe1a25db16ca28e1f4181a83673700a0b4c6dd98c8cb27df51ad0c6414db0370c443250aeb2521eceefb183178fe7d23a11b697cbf3f5b06f53a
27
28 diff --git a/net-analyzer/wireshark/wireshark-3.4.0.ebuild b/net-analyzer/wireshark/wireshark-3.4.0.ebuild
29 deleted file mode 100644
30 index ddabdfd5f7b..00000000000
31 --- a/net-analyzer/wireshark/wireshark-3.4.0.ebuild
32 +++ /dev/null
33 @@ -1,259 +0,0 @@
34 -# Copyright 1999-2020 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=7
38 -
39 -PYTHON_COMPAT=( python3_{6..9} )
40 -
41 -inherit fcaps flag-o-matic multilib python-any-r1 qmake-utils xdg-utils cmake
42 -
43 -DESCRIPTION="A network protocol analyzer formerly known as ethereal"
44 -HOMEPAGE="https://www.wireshark.org/"
45 -SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz"
46 -LICENSE="GPL-2"
47 -
48 -SLOT="0/${PV}"
49 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc64 x86"
50 -IUSE="
51 - androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon
52 - +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb
53 - +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt
54 - +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl
55 - sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd
56 -"
57 -S=${WORKDIR}/${P/_/}
58 -
59 -CDEPEND="
60 - acct-group/pcap
61 - >=dev-libs/glib-2.32:2
62 - >=net-dns/c-ares-1.5
63 - dev-libs/libgcrypt:0
64 - bcg729? ( media-libs/bcg729 )
65 - brotli? ( app-arch/brotli )
66 - ciscodump? ( >=net-libs/libssh-0.6 )
67 - filecaps? ( sys-libs/libcap )
68 - http2? ( net-libs/nghttp2 )
69 - ilbc? ( media-libs/libilbc )
70 - kerberos? ( virtual/krb5 )
71 - libxml2? ( dev-libs/libxml2 )
72 - lua? ( >=dev-lang/lua-5.1:0= )
73 - lz4? ( app-arch/lz4 )
74 - maxminddb? ( dev-libs/libmaxminddb )
75 - minizip? ( sys-libs/zlib[minizip] )
76 - netlink? ( dev-libs/libnl:3 )
77 - opus? ( media-libs/opus )
78 - pcap? ( net-libs/libpcap )
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 - x11-misc/xdg-utils
86 - )
87 - sbc? ( media-libs/sbc )
88 - sdjournal? ( sys-apps/systemd )
89 - smi? ( net-libs/libsmi )
90 - snappy? ( app-arch/snappy )
91 - spandsp? ( media-libs/spandsp )
92 - sshdump? ( >=net-libs/libssh-0.6 )
93 - ssl? ( net-libs/gnutls:= )
94 - zlib? ( sys-libs/zlib )
95 - zstd? ( app-arch/zstd )
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 - ${PYTHON_DEPS}
102 -"
103 -BDEPEND="
104 - dev-lang/perl
105 - sys-devel/bison
106 - sys-devel/flex
107 - virtual/pkgconfig
108 - doc? (
109 - app-doc/doxygen
110 - dev-ruby/asciidoctor
111 - )
112 - qt5? (
113 - dev-qt/linguist-tools:5
114 - )
115 - test? (
116 - dev-python/pytest
117 - dev-python/pytest-xdist
118 - )
119 -"
120 -RDEPEND="
121 - ${CDEPEND}
122 - qt5? ( virtual/freedesktop-icon-theme )
123 - selinux? ( sec-policy/selinux-wireshark )
124 -"
125 -REQUIRED_USE="
126 - plugin-ifdemo? ( plugins )
127 -"
128 -RESTRICT="test"
129 -PATCHES=(
130 - "${FILESDIR}"/${PN}-2.6.0-redhat.patch
131 - "${FILESDIR}"/${PN}-99999999-ui-needs-wiretap.patch
132 -)
133 -
134 -src_configure() {
135 - local mycmakeargs
136 -
137 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
138 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
139 - if use kerberos; then
140 - case $(krb5-config --libs) in
141 - *-lcrypto*)
142 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
143 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
144 - ewarn "license and the GPL, so do your check before distributing such package."
145 - mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) )
146 - ;;
147 - esac
148 - fi
149 -
150 - if use qt5; then
151 - export QT_MIN_VERSION=5.3.0
152 - append-cxxflags -fPIC -DPIC
153 - fi
154 -
155 - python_setup
156 -
157 - mycmakeargs+=(
158 - $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes)
159 - $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '')
160 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '')
161 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '')
162 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '')
163 - -DBUILD_androiddump=$(usex androiddump)
164 - -DBUILD_capinfos=$(usex capinfos)
165 - -DBUILD_captype=$(usex captype)
166 - -DBUILD_ciscodump=$(usex ciscodump)
167 - -DBUILD_dftest=$(usex dftest)
168 - -DBUILD_dpauxmon=$(usex dpauxmon)
169 - -DBUILD_dumpcap=$(usex dumpcap)
170 - -DBUILD_editcap=$(usex editcap)
171 - -DBUILD_mergecap=$(usex mergecap)
172 - -DBUILD_mmdbresolve=$(usex maxminddb)
173 - -DBUILD_randpkt=$(usex randpkt)
174 - -DBUILD_randpktdump=$(usex randpktdump)
175 - -DBUILD_reordercap=$(usex reordercap)
176 - -DBUILD_sdjournal=$(usex sdjournal)
177 - -DBUILD_sharkd=$(usex sharkd)
178 - -DBUILD_sshdump=$(usex sshdump)
179 - -DBUILD_text2pcap=$(usex text2pcap)
180 - -DBUILD_tfshark=$(usex tfshark)
181 - -DBUILD_tshark=$(usex tshark)
182 - -DBUILD_udpdump=$(usex udpdump)
183 - -DBUILD_wireshark=$(usex qt5)
184 - -DDISABLE_WERROR=yes
185 - -DENABLE_BCG729=$(usex bcg729)
186 - -DENABLE_BROTLI=$(usex brotli)
187 - -DENABLE_CAP=$(usex filecaps caps)
188 - -DENABLE_GNUTLS=$(usex ssl)
189 - -DENABLE_ILBC=$(usex ilbc)
190 - -DENABLE_KERBEROS=$(usex kerberos)
191 - -DENABLE_LIBXML2=$(usex libxml2)
192 - -DENABLE_LTO=$(usex lto)
193 - -DENABLE_LUA=$(usex lua)
194 - -DENABLE_LZ4=$(usex lz4)
195 - -DENABLE_MINIZIP=$(usex minizip)
196 - -DENABLE_NETLINK=$(usex netlink)
197 - -DENABLE_NGHTTP2=$(usex http2)
198 - -DENABLE_OPUS=$(usex opus)
199 - -DENABLE_PCAP=$(usex pcap)
200 - -DENABLE_PLUGINS=$(usex plugins)
201 - -DENABLE_PLUGIN_IFDEMO=$(usex plugin-ifdemo)
202 - -DENABLE_SBC=$(usex sbc)
203 - -DENABLE_SMI=$(usex smi)
204 - -DENABLE_SNAPPY=$(usex snappy)
205 - -DENABLE_SPANDSP=$(usex spandsp)
206 - -DENABLE_ZLIB=$(usex zlib)
207 - -DENABLE_ZSTD=$(usex zstd)
208 - )
209 -
210 - cmake_src_configure
211 -}
212 -
213 -src_test() {
214 - cmake_build test-programs
215 -
216 - myctestargs=( --disable-capture --skip-missing-programs=all --verbose )
217 - cmake_src_test
218 -}
219 -
220 -src_install() {
221 - cmake_src_install
222 -
223 - # FAQ is not required as is installed from help/faq.txt
224 - dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README*
225 -
226 - # install headers
227 - insinto /usr/include/wireshark
228 - doins ws_diag_control.h ws_symbol_export.h \
229 - "${BUILD_DIR}"/config.h "${BUILD_DIR}"/version.h
230 -
231 - local dir dirs=(
232 - epan
233 - epan/crypt
234 - epan/dfilter
235 - epan/dissectors
236 - epan/ftypes
237 - epan/wmem
238 - wiretap
239 - wsutil
240 - )
241 - for dir in "${dirs[@]}"
242 - do
243 - insinto /usr/include/wireshark/${dir}
244 - doins ${dir}/*.h
245 - done
246 -
247 - #with the above this really shouldn't be needed, but things may be looking
248 - # in wiretap/ instead of wireshark/wiretap/
249 - insinto /usr/include/wiretap
250 - doins wiretap/wtap.h
251 -
252 - if use qt5; then
253 - local s
254 - for s in 16 32 48 64 128 256 512 1024; do
255 - insinto /usr/share/icons/hicolor/${s}x${s}/apps
256 - newins image/wsicon${s}.png wireshark.png
257 - done
258 - for s in 16 24 32 48 64 128 256 ; do
259 - insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes
260 - newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png
261 - done
262 - fi
263 -
264 - if [[ -d "${D}"/usr/share/appdata ]]; then
265 - rm -r "${D}"/usr/share/appdata || die
266 - fi
267 -}
268 -
269 -pkg_postinst() {
270 - xdg_desktop_database_update
271 - xdg_icon_cache_update
272 - xdg_mimeinfo_database_update
273 -
274 - # Add group for users allowed to sniff.
275 - chgrp pcap "${EROOT}"/usr/bin/dumpcap
276 -
277 - if use dumpcap && use pcap; then
278 - fcaps -o 0 -g pcap -m 4710 -M 0710 \
279 - cap_dac_read_search,cap_net_raw,cap_net_admin \
280 - "${EROOT}"/usr/bin/dumpcap
281 - fi
282 -
283 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
284 - ewarn "add yourself to the pcap group. This security measure ensures"
285 - ewarn "that only trusted users are allowed to sniff your traffic."
286 -}
287 -
288 -pkg_postrm() {
289 - xdg_desktop_database_update
290 - xdg_icon_cache_update
291 - xdg_mimeinfo_database_update
292 -}
293
294 diff --git a/net-analyzer/wireshark/wireshark-3.4.1.ebuild b/net-analyzer/wireshark/wireshark-3.4.1.ebuild
295 deleted file mode 100644
296 index f577758732b..00000000000
297 --- a/net-analyzer/wireshark/wireshark-3.4.1.ebuild
298 +++ /dev/null
299 @@ -1,259 +0,0 @@
300 -# Copyright 1999-2020 Gentoo Authors
301 -# Distributed under the terms of the GNU General Public License v2
302 -
303 -EAPI=7
304 -
305 -PYTHON_COMPAT=( python3_{6..9} )
306 -
307 -inherit fcaps flag-o-matic multilib python-any-r1 qmake-utils xdg-utils cmake
308 -
309 -DESCRIPTION="A network protocol analyzer formerly known as ethereal"
310 -HOMEPAGE="https://www.wireshark.org/"
311 -SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz"
312 -LICENSE="GPL-2"
313 -
314 -SLOT="0/${PV}"
315 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc64 ~x86"
316 -IUSE="
317 - androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon
318 - +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb
319 - +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt
320 - +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl
321 - sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd
322 -"
323 -S=${WORKDIR}/${P/_/}
324 -
325 -CDEPEND="
326 - acct-group/pcap
327 - >=dev-libs/glib-2.32:2
328 - >=net-dns/c-ares-1.5
329 - dev-libs/libgcrypt:0
330 - bcg729? ( media-libs/bcg729 )
331 - brotli? ( app-arch/brotli )
332 - ciscodump? ( >=net-libs/libssh-0.6 )
333 - filecaps? ( sys-libs/libcap )
334 - http2? ( net-libs/nghttp2 )
335 - ilbc? ( media-libs/libilbc )
336 - kerberos? ( virtual/krb5 )
337 - libxml2? ( dev-libs/libxml2 )
338 - lua? ( >=dev-lang/lua-5.1:0= )
339 - lz4? ( app-arch/lz4 )
340 - maxminddb? ( dev-libs/libmaxminddb )
341 - minizip? ( sys-libs/zlib[minizip] )
342 - netlink? ( dev-libs/libnl:3 )
343 - opus? ( media-libs/opus )
344 - pcap? ( net-libs/libpcap )
345 - qt5? (
346 - dev-qt/qtcore:5
347 - dev-qt/qtgui:5
348 - dev-qt/qtmultimedia:5
349 - dev-qt/qtprintsupport:5
350 - dev-qt/qtwidgets:5
351 - x11-misc/xdg-utils
352 - )
353 - sbc? ( media-libs/sbc )
354 - sdjournal? ( sys-apps/systemd )
355 - smi? ( net-libs/libsmi )
356 - snappy? ( app-arch/snappy )
357 - spandsp? ( media-libs/spandsp )
358 - sshdump? ( >=net-libs/libssh-0.6 )
359 - ssl? ( net-libs/gnutls:= )
360 - zlib? ( sys-libs/zlib )
361 - zstd? ( app-arch/zstd )
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 - ${PYTHON_DEPS}
368 -"
369 -BDEPEND="
370 - dev-lang/perl
371 - sys-devel/bison
372 - sys-devel/flex
373 - virtual/pkgconfig
374 - doc? (
375 - app-doc/doxygen
376 - dev-ruby/asciidoctor
377 - )
378 - qt5? (
379 - dev-qt/linguist-tools:5
380 - )
381 - test? (
382 - dev-python/pytest
383 - dev-python/pytest-xdist
384 - )
385 -"
386 -RDEPEND="
387 - ${CDEPEND}
388 - qt5? ( virtual/freedesktop-icon-theme )
389 - selinux? ( sec-policy/selinux-wireshark )
390 -"
391 -REQUIRED_USE="
392 - plugin-ifdemo? ( plugins )
393 -"
394 -RESTRICT="test"
395 -PATCHES=(
396 - "${FILESDIR}"/${PN}-2.6.0-redhat.patch
397 - "${FILESDIR}"/${PN}-99999999-ui-needs-wiretap.patch
398 -)
399 -
400 -src_configure() {
401 - local mycmakeargs
402 -
403 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
404 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
405 - if use kerberos; then
406 - case $(krb5-config --libs) in
407 - *-lcrypto*)
408 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
409 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
410 - ewarn "license and the GPL, so do your check before distributing such package."
411 - mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) )
412 - ;;
413 - esac
414 - fi
415 -
416 - if use qt5; then
417 - export QT_MIN_VERSION=5.3.0
418 - append-cxxflags -fPIC -DPIC
419 - fi
420 -
421 - python_setup
422 -
423 - mycmakeargs+=(
424 - $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes)
425 - $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '')
426 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '')
427 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '')
428 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '')
429 - -DBUILD_androiddump=$(usex androiddump)
430 - -DBUILD_capinfos=$(usex capinfos)
431 - -DBUILD_captype=$(usex captype)
432 - -DBUILD_ciscodump=$(usex ciscodump)
433 - -DBUILD_dftest=$(usex dftest)
434 - -DBUILD_dpauxmon=$(usex dpauxmon)
435 - -DBUILD_dumpcap=$(usex dumpcap)
436 - -DBUILD_editcap=$(usex editcap)
437 - -DBUILD_mergecap=$(usex mergecap)
438 - -DBUILD_mmdbresolve=$(usex maxminddb)
439 - -DBUILD_randpkt=$(usex randpkt)
440 - -DBUILD_randpktdump=$(usex randpktdump)
441 - -DBUILD_reordercap=$(usex reordercap)
442 - -DBUILD_sdjournal=$(usex sdjournal)
443 - -DBUILD_sharkd=$(usex sharkd)
444 - -DBUILD_sshdump=$(usex sshdump)
445 - -DBUILD_text2pcap=$(usex text2pcap)
446 - -DBUILD_tfshark=$(usex tfshark)
447 - -DBUILD_tshark=$(usex tshark)
448 - -DBUILD_udpdump=$(usex udpdump)
449 - -DBUILD_wireshark=$(usex qt5)
450 - -DDISABLE_WERROR=yes
451 - -DENABLE_BCG729=$(usex bcg729)
452 - -DENABLE_BROTLI=$(usex brotli)
453 - -DENABLE_CAP=$(usex filecaps caps)
454 - -DENABLE_GNUTLS=$(usex ssl)
455 - -DENABLE_ILBC=$(usex ilbc)
456 - -DENABLE_KERBEROS=$(usex kerberos)
457 - -DENABLE_LIBXML2=$(usex libxml2)
458 - -DENABLE_LTO=$(usex lto)
459 - -DENABLE_LUA=$(usex lua)
460 - -DENABLE_LZ4=$(usex lz4)
461 - -DENABLE_MINIZIP=$(usex minizip)
462 - -DENABLE_NETLINK=$(usex netlink)
463 - -DENABLE_NGHTTP2=$(usex http2)
464 - -DENABLE_OPUS=$(usex opus)
465 - -DENABLE_PCAP=$(usex pcap)
466 - -DENABLE_PLUGINS=$(usex plugins)
467 - -DENABLE_PLUGIN_IFDEMO=$(usex plugin-ifdemo)
468 - -DENABLE_SBC=$(usex sbc)
469 - -DENABLE_SMI=$(usex smi)
470 - -DENABLE_SNAPPY=$(usex snappy)
471 - -DENABLE_SPANDSP=$(usex spandsp)
472 - -DENABLE_ZLIB=$(usex zlib)
473 - -DENABLE_ZSTD=$(usex zstd)
474 - )
475 -
476 - cmake_src_configure
477 -}
478 -
479 -src_test() {
480 - cmake_build test-programs
481 -
482 - myctestargs=( --disable-capture --skip-missing-programs=all --verbose )
483 - cmake_src_test
484 -}
485 -
486 -src_install() {
487 - cmake_src_install
488 -
489 - # FAQ is not required as is installed from help/faq.txt
490 - dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README*
491 -
492 - # install headers
493 - insinto /usr/include/wireshark
494 - doins ws_diag_control.h ws_symbol_export.h \
495 - "${BUILD_DIR}"/config.h "${BUILD_DIR}"/version.h
496 -
497 - local dir dirs=(
498 - epan
499 - epan/crypt
500 - epan/dfilter
501 - epan/dissectors
502 - epan/ftypes
503 - epan/wmem
504 - wiretap
505 - wsutil
506 - )
507 - for dir in "${dirs[@]}"
508 - do
509 - insinto /usr/include/wireshark/${dir}
510 - doins ${dir}/*.h
511 - done
512 -
513 - #with the above this really shouldn't be needed, but things may be looking
514 - # in wiretap/ instead of wireshark/wiretap/
515 - insinto /usr/include/wiretap
516 - doins wiretap/wtap.h
517 -
518 - if use qt5; then
519 - local s
520 - for s in 16 32 48 64 128 256 512 1024; do
521 - insinto /usr/share/icons/hicolor/${s}x${s}/apps
522 - newins image/wsicon${s}.png wireshark.png
523 - done
524 - for s in 16 24 32 48 64 128 256 ; do
525 - insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes
526 - newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png
527 - done
528 - fi
529 -
530 - if [[ -d "${D}"/usr/share/appdata ]]; then
531 - rm -r "${D}"/usr/share/appdata || die
532 - fi
533 -}
534 -
535 -pkg_postinst() {
536 - xdg_desktop_database_update
537 - xdg_icon_cache_update
538 - xdg_mimeinfo_database_update
539 -
540 - # Add group for users allowed to sniff.
541 - chgrp pcap "${EROOT}"/usr/bin/dumpcap
542 -
543 - if use dumpcap && use pcap; then
544 - fcaps -o 0 -g pcap -m 4710 -M 0710 \
545 - cap_dac_read_search,cap_net_raw,cap_net_admin \
546 - "${EROOT}"/usr/bin/dumpcap
547 - fi
548 -
549 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
550 - ewarn "add yourself to the pcap group. This security measure ensures"
551 - ewarn "that only trusted users are allowed to sniff your traffic."
552 -}
553 -
554 -pkg_postrm() {
555 - xdg_desktop_database_update
556 - xdg_icon_cache_update
557 - xdg_mimeinfo_database_update
558 -}