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/files/, net-analyzer/wireshark/
Date: Sun, 20 Feb 2022 06:31:26
Message-Id: 1645338652.2d09a146dec49ea5187a2c46959fe5b8ce1388b8.sam@gentoo
1 commit: 2d09a146dec49ea5187a2c46959fe5b8ce1388b8
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 20 06:30:52 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 20 06:30:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d09a146
7
8 net-analyzer/wireshark: drop 3.4.10, 3.6.0-r1
9
10 Bug: https://bugs.gentoo.org/830343
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 net-analyzer/wireshark/Manifest | 2 -
14 .../files/wireshark-3.6.0-fix-no-tshark.patch | 32 ---
15 net-analyzer/wireshark/wireshark-3.4.10.ebuild | 283 ---------------------
16 net-analyzer/wireshark/wireshark-3.6.0-r1.ebuild | 272 --------------------
17 4 files changed, 589 deletions(-)
18
19 diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
20 index df169bc81082..3ec40d974355 100644
21 --- a/net-analyzer/wireshark/Manifest
22 +++ b/net-analyzer/wireshark/Manifest
23 @@ -1,5 +1,3 @@
24 -DIST wireshark-3.4.10.tar.xz 32344804 BLAKE2B fe2ececd4a02530176725d62524fe000816f7f12dd58082d4966dfe7e5e0b90be669ed216c5a664f6496e74cb5dc5e4fb5beeaf513570ae503e3181692635563 SHA512 8a57d5279e9f3821b6ba3dceba89ad77fa8d0cf8cf421eab4d32e039497b429444c147b31abebd65b11b0b3ff73cf10d484480bcf0aedb206011819df8ab0257
25 DIST wireshark-3.4.11.tar.xz 32354216 BLAKE2B 3e08d01f2d89f5ddd74c4e2215e6852f30c7419234a45b52a25aa9119995ec2c2882cc3993dce7941e6e73230eb4d295bf0785dda5fe8c3df99f9efdb1e42bfd SHA512 cfef2c3e56279baadb7f41a1f46fde9214a467972f69914c14a8153ea2f2adcb55832413bcaf7a3f8d98b4b62d0574f12144de6c06ff382b4fa8b071903993dc
26 -DIST wireshark-3.6.0.tar.xz 39687684 BLAKE2B 17af7046662087a18d0708ab0b5bc00bd4d43db848e14217e046dd551e57decd0a258f67c7fd82e1e10e0dceb249618e41ded5a6cd2e0a79d2ee5b7bf397cea7 SHA512 7c8afdee8957eb794030e0818a686c0efabc8ad9547449f434fc7299c7b7e624347698fdc7a42afac150eb86c8ca3d1d6360c29525bb35946619c4636f721094
27 DIST wireshark-3.6.1.tar.xz 39632140 BLAKE2B 49a7385946001a3b4a9890751cfea678c8aefcf8180e1a3008085a453d34e458d60d071975eeb585b92c6d9a210b732cc9fdb4fd952f1a9d74decad79c145fe0 SHA512 8b036d623010a5c4ece22de869847b3d999dac1c1e874e957c091a65c18351d9a1cc400828a70caf3c9f9900f8971dc585a5fafb7b08d446cd5d1d68938b0e81
28 DIST wireshark-3.6.2.tar.xz 39654296 BLAKE2B 585cf925892ec9d5b6413ccc53c49035eba8a7cd9206f1354f0a808daec9b0f20fc72b3427a2b592f196dd6b2ab67fd35e73d152a20c16fb0f0153c6a03d3156 SHA512 cd4a8077629632e9a924600f9af2ffd01917726fd64504d6f3b4a2a1cb5340c9c0bac23e4abab63743952a0a78efd2e09bb125b127d24e85eca6fa41928fd070
29
30 diff --git a/net-analyzer/wireshark/files/wireshark-3.6.0-fix-no-tshark.patch b/net-analyzer/wireshark/files/wireshark-3.6.0-fix-no-tshark.patch
31 deleted file mode 100644
32 index dd497c51391c..000000000000
33 --- a/net-analyzer/wireshark/files/wireshark-3.6.0-fix-no-tshark.patch
34 +++ /dev/null
35 @@ -1,32 +0,0 @@
36 -https://gitlab.com/wireshark/wireshark/-/commit/411df7ca34027d87fe6ecc06a07c816a401c4cb5
37 -https://gitlab.com/wireshark/wireshark/-/issues/17766
38 -https://bugs.gentoo.org/823720
39 -
40 -From: Gerald Combs <gerald@×××××××××.org>
41 -Date: Mon, 6 Dec 2021 19:01:10 -0800
42 -Subject: [PATCH] CMake: Remove the update_tools_help target.
43 -
44 -Remove the update_tools_help target. Despite the comment, the weekly
45 -update job doesn't use it, we don't have targets for our other update
46 -scripts, and it currently causes issues if BUILD_tshark is disabled.
47 -Fixes #17766.
48 ---- a/docbook/CMakeLists.txt
49 -+++ b/docbook/CMakeLists.txt
50 -@@ -33,16 +33,6 @@ set(COMMON_GRAPHICS
51 -
52 - set(GUIDE_INSTALL_DIRS)
53 -
54 --# This is automatically updated each week. You probably don't need to run it
55 --# or depend on it.
56 --add_custom_target(update_tools_help
57 -- COMMAND ${CMAKE_COMMAND} -E env PYTHONIOENCODING=UTF-8
58 -- ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/tools/update-tools-help.py
59 -- --program-path $<TARGET_FILE_DIR:tshark>
60 -- WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
61 --)
62 --set_docbook_target_properties(update_tools_help)
63 --
64 - set(WSUG_TITLE "Wireshark User's Guide")
65 -
66 - set(WSUG_FILES
67 -GitLab
68
69 diff --git a/net-analyzer/wireshark/wireshark-3.4.10.ebuild b/net-analyzer/wireshark/wireshark-3.4.10.ebuild
70 deleted file mode 100644
71 index c3e28e4115a4..000000000000
72 --- a/net-analyzer/wireshark/wireshark-3.4.10.ebuild
73 +++ /dev/null
74 @@ -1,283 +0,0 @@
75 -# Copyright 1999-2021 Gentoo Authors
76 -# Distributed under the terms of the GNU General Public License v2
77 -
78 -EAPI=7
79 -
80 -LUA_COMPAT=( lua5-{1..2} )
81 -PYTHON_COMPAT=( python3_{8..9} )
82 -
83 -inherit fcaps flag-o-matic lua-single python-any-r1 qmake-utils xdg-utils cmake
84 -
85 -DESCRIPTION="A network protocol analyzer formerly known as ethereal"
86 -HOMEPAGE="https://www.wireshark.org/"
87 -
88 -if [[ ${PV} == *9999* ]] ; then
89 - EGIT_REPO_URI="https://gitlab.com/wireshark/wireshark"
90 - inherit git-r3
91 -else
92 - SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz"
93 - S="${WORKDIR}/${P/_/}"
94 -
95 - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc64 x86"
96 -fi
97 -
98 -LICENSE="GPL-2"
99 -SLOT="0/${PV}"
100 -IUSE="androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon"
101 -IUSE+=" +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb"
102 -IUSE+=" +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt"
103 -IUSE+=" +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl"
104 -IUSE+=" sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd"
105 -
106 -RESTRICT="!test? ( test )"
107 -
108 -# bug #753062 for speexdsp
109 -CDEPEND="
110 - acct-group/pcap
111 - >=dev-libs/glib-2.32:2
112 - >=net-dns/c-ares-1.5:=
113 - dev-libs/libgcrypt:=
114 - media-libs/speexdsp
115 - bcg729? ( media-libs/bcg729 )
116 - brotli? ( app-arch/brotli:= )
117 - ciscodump? ( >=net-libs/libssh-0.6 )
118 - filecaps? ( sys-libs/libcap )
119 - http2? ( net-libs/nghttp2:= )
120 - ilbc? ( media-libs/libilbc )
121 - kerberos? ( virtual/krb5 )
122 - libxml2? ( dev-libs/libxml2 )
123 - lua? ( ${LUA_DEPS} )
124 - lz4? ( app-arch/lz4:= )
125 - maxminddb? ( dev-libs/libmaxminddb:= )
126 - minizip? ( sys-libs/zlib[minizip] )
127 - netlink? ( dev-libs/libnl:3 )
128 - opus? ( media-libs/opus )
129 - pcap? ( net-libs/libpcap )
130 - qt5? (
131 - dev-qt/qtcore:5
132 - dev-qt/qtgui:5
133 - dev-qt/qtmultimedia:5
134 - dev-qt/qtprintsupport:5
135 - dev-qt/qtwidgets:5
136 - x11-misc/xdg-utils
137 - )
138 - sbc? ( media-libs/sbc )
139 - sdjournal? ( sys-apps/systemd )
140 - smi? ( net-libs/libsmi )
141 - snappy? ( app-arch/snappy )
142 - spandsp? ( media-libs/spandsp )
143 - sshdump? ( >=net-libs/libssh-0.6 )
144 - ssl? ( net-libs/gnutls:= )
145 - zlib? ( sys-libs/zlib )
146 - zstd? ( app-arch/zstd:= )
147 -"
148 -# We need perl for `pod2html`. The rest of the perl stuff is to block older
149 -# and broken installs. #455122
150 -DEPEND="
151 - ${CDEPEND}
152 - ${PYTHON_DEPS}
153 -"
154 -BDEPEND="
155 - dev-lang/perl
156 - sys-devel/bison
157 - sys-devel/flex
158 - virtual/pkgconfig
159 - doc? (
160 - app-doc/doxygen
161 - dev-ruby/asciidoctor
162 - )
163 - qt5? (
164 - dev-qt/linguist-tools:5
165 - )
166 - test? (
167 - dev-python/pytest
168 - dev-python/pytest-xdist
169 - )
170 -"
171 -RDEPEND="
172 - ${CDEPEND}
173 - qt5? ( virtual/freedesktop-icon-theme )
174 - selinux? ( sec-policy/selinux-wireshark )
175 -"
176 -REQUIRED_USE="
177 - lua? ( ${LUA_REQUIRED_USE} )
178 - plugin-ifdemo? ( plugins )
179 -"
180 -
181 -PATCHES=(
182 - "${FILESDIR}"/${PN}-2.6.0-redhat.patch
183 - "${FILESDIR}"/${PN}-3.4.2-cmake-lua-version.patch
184 - "${FILESDIR}"/${PN}-9999-ui-needs-wiretap.patch
185 -)
186 -
187 -pkg_setup() {
188 - use lua && lua-single_pkg_setup
189 -}
190 -
191 -src_configure() {
192 - local mycmakeargs
193 -
194 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
195 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
196 - if use kerberos; then
197 - case $(krb5-config --libs) in
198 - *-lcrypto*)
199 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
200 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
201 - ewarn "license and the GPL, so do your check before distributing such package."
202 - mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) )
203 - ;;
204 - esac
205 - fi
206 -
207 - if use qt5; then
208 - export QT_MIN_VERSION=5.3.0
209 - append-cxxflags -fPIC -DPIC
210 - fi
211 -
212 - python_setup
213 -
214 - mycmakeargs+=(
215 - $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes)
216 - $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '')
217 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '')
218 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '')
219 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '')
220 - -DBUILD_androiddump=$(usex androiddump)
221 - -DBUILD_capinfos=$(usex capinfos)
222 - -DBUILD_captype=$(usex captype)
223 - -DBUILD_ciscodump=$(usex ciscodump)
224 - -DBUILD_dftest=$(usex dftest)
225 - -DBUILD_dpauxmon=$(usex dpauxmon)
226 - -DBUILD_dumpcap=$(usex dumpcap)
227 - -DBUILD_editcap=$(usex editcap)
228 - -DBUILD_mergecap=$(usex mergecap)
229 - -DBUILD_mmdbresolve=$(usex maxminddb)
230 - -DBUILD_randpkt=$(usex randpkt)
231 - -DBUILD_randpktdump=$(usex randpktdump)
232 - -DBUILD_reordercap=$(usex reordercap)
233 - -DBUILD_sdjournal=$(usex sdjournal)
234 - -DBUILD_sharkd=$(usex sharkd)
235 - -DBUILD_sshdump=$(usex sshdump)
236 - -DBUILD_text2pcap=$(usex text2pcap)
237 - -DBUILD_tfshark=$(usex tfshark)
238 - -DBUILD_tshark=$(usex tshark)
239 - -DBUILD_udpdump=$(usex udpdump)
240 - -DBUILD_wireshark=$(usex qt5)
241 - -DDISABLE_WERROR=yes
242 - -DENABLE_BCG729=$(usex bcg729)
243 - -DENABLE_BROTLI=$(usex brotli)
244 - -DENABLE_CAP=$(usex filecaps caps)
245 - -DENABLE_GNUTLS=$(usex ssl)
246 - -DENABLE_ILBC=$(usex ilbc)
247 - -DENABLE_KERBEROS=$(usex kerberos)
248 - -DENABLE_LIBXML2=$(usex libxml2)
249 - -DENABLE_LTO=$(usex lto)
250 - -DENABLE_LUA=$(usex lua)
251 - -DENABLE_LZ4=$(usex lz4)
252 - -DENABLE_MINIZIP=$(usex minizip)
253 - -DENABLE_NETLINK=$(usex netlink)
254 - -DENABLE_NGHTTP2=$(usex http2)
255 - -DENABLE_OPUS=$(usex opus)
256 - -DENABLE_PCAP=$(usex pcap)
257 - -DENABLE_PLUGINS=$(usex plugins)
258 - -DENABLE_PLUGIN_IFDEMO=$(usex plugin-ifdemo)
259 - -DENABLE_SBC=$(usex sbc)
260 - -DENABLE_SMI=$(usex smi)
261 - -DENABLE_SNAPPY=$(usex snappy)
262 - -DENABLE_SPANDSP=$(usex spandsp)
263 - -DENABLE_ZLIB=$(usex zlib)
264 - -DENABLE_ZSTD=$(usex zstd)
265 - )
266 -
267 - cmake_src_configure
268 -}
269 -
270 -src_test() {
271 - cmake_build test-programs
272 -
273 - myctestargs=(
274 - --disable-capture
275 - --skip-missing-programs=all
276 - --verbose
277 -
278 - # Skip known failing tests
279 - -E "(suite_decryption|suite_extcaps|suite_nameres)"
280 - )
281 -
282 - cmake_src_test
283 -}
284 -
285 -src_install() {
286 - cmake_src_install
287 -
288 - # FAQ is not required as is installed from help/faq.txt
289 - dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README*
290 -
291 - # install headers
292 - insinto /usr/include/wireshark
293 - doins ws_diag_control.h ws_symbol_export.h \
294 - "${BUILD_DIR}"/config.h "${BUILD_DIR}"/version.h
295 -
296 - local dir dirs=(
297 - epan
298 - epan/crypt
299 - epan/dfilter
300 - epan/dissectors
301 - epan/ftypes
302 - epan/wmem
303 - wiretap
304 - wsutil
305 - )
306 -
307 - for dir in "${dirs[@]}" ; do
308 - insinto /usr/include/wireshark/${dir}
309 - doins ${dir}/*.h
310 - done
311 -
312 - #with the above this really shouldn't be needed, but things may be looking
313 - # in wiretap/ instead of wireshark/wiretap/
314 - insinto /usr/include/wiretap
315 - doins wiretap/wtap.h
316 -
317 - if use qt5; then
318 - local s
319 - for s in 16 32 48 64 128 256 512 1024; do
320 - insinto /usr/share/icons/hicolor/${s}x${s}/apps
321 - newins image/wsicon${s}.png wireshark.png
322 - done
323 - for s in 16 24 32 48 64 128 256 ; do
324 - insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes
325 - newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png
326 - done
327 - fi
328 -
329 - if [[ -d "${ED}"/usr/share/appdata ]]; then
330 - rm -r "${ED}"/usr/share/appdata || die
331 - fi
332 -}
333 -
334 -pkg_postinst() {
335 - xdg_desktop_database_update
336 - xdg_icon_cache_update
337 - xdg_mimeinfo_database_update
338 -
339 - # Add group for users allowed to sniff.
340 - chgrp pcap "${EROOT}"/usr/bin/dumpcap
341 -
342 - if use dumpcap && use pcap; then
343 - fcaps -o 0 -g pcap -m 4710 -M 0710 \
344 - cap_dac_read_search,cap_net_raw,cap_net_admin \
345 - "${EROOT}"/usr/bin/dumpcap
346 - fi
347 -
348 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
349 - ewarn "add yourself to the pcap group. This security measure ensures"
350 - ewarn "that only trusted users are allowed to sniff your traffic."
351 -}
352 -
353 -pkg_postrm() {
354 - xdg_desktop_database_update
355 - xdg_icon_cache_update
356 - xdg_mimeinfo_database_update
357 -}
358
359 diff --git a/net-analyzer/wireshark/wireshark-3.6.0-r1.ebuild b/net-analyzer/wireshark/wireshark-3.6.0-r1.ebuild
360 deleted file mode 100644
361 index 520a2dc646a6..000000000000
362 --- a/net-analyzer/wireshark/wireshark-3.6.0-r1.ebuild
363 +++ /dev/null
364 @@ -1,272 +0,0 @@
365 -# Copyright 1999-2021 Gentoo Authors
366 -# Distributed under the terms of the GNU General Public License v2
367 -
368 -EAPI=7
369 -
370 -LUA_COMPAT=( lua5-{1..2} )
371 -PYTHON_COMPAT=( python3_{8..10} )
372 -
373 -inherit fcaps flag-o-matic lua-single python-any-r1 qmake-utils xdg-utils cmake
374 -
375 -DESCRIPTION="A network protocol analyzer formerly known as ethereal"
376 -HOMEPAGE="https://www.wireshark.org/"
377 -
378 -if [[ ${PV} == *9999* ]] ; then
379 - EGIT_REPO_URI="https://gitlab.com/wireshark/wireshark"
380 - inherit git-r3
381 -else
382 - SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz"
383 - S="${WORKDIR}/${P/_/}"
384 -
385 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~riscv ~x86"
386 -fi
387 -
388 -LICENSE="GPL-2"
389 -SLOT="0/${PV}"
390 -IUSE="androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon"
391 -IUSE+=" +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb"
392 -IUSE+=" +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt"
393 -IUSE+=" +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl"
394 -IUSE+=" sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd"
395 -
396 -REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )
397 - plugin-ifdemo? ( plugins )"
398 -
399 -RESTRICT="!test? ( test )"
400 -
401 -# bug #753062 for speexdsp
402 -RDEPEND="acct-group/pcap
403 - >=dev-libs/glib-2.38:2
404 - >=net-dns/c-ares-1.5:=
405 - dev-libs/libgcrypt:=
406 - media-libs/speexdsp
407 - bcg729? ( media-libs/bcg729 )
408 - brotli? ( app-arch/brotli:= )
409 - ciscodump? ( >=net-libs/libssh-0.6 )
410 - filecaps? ( sys-libs/libcap )
411 - http2? ( net-libs/nghttp2:= )
412 - ilbc? ( media-libs/libilbc )
413 - kerberos? ( virtual/krb5 )
414 - libxml2? ( dev-libs/libxml2 )
415 - lua? ( ${LUA_DEPS} )
416 - lz4? ( app-arch/lz4:= )
417 - maxminddb? ( dev-libs/libmaxminddb:= )
418 - minizip? ( sys-libs/zlib[minizip] )
419 - netlink? ( dev-libs/libnl:3 )
420 - opus? ( media-libs/opus )
421 - pcap? ( net-libs/libpcap )
422 - qt5? (
423 - dev-qt/qtcore:5
424 - dev-qt/qtgui:5
425 - dev-qt/qtmultimedia:5
426 - dev-qt/qtprintsupport:5
427 - dev-qt/qtwidgets:5
428 - x11-misc/xdg-utils
429 - )
430 - sbc? ( media-libs/sbc )
431 - sdjournal? ( sys-apps/systemd )
432 - smi? ( net-libs/libsmi )
433 - snappy? ( app-arch/snappy )
434 - spandsp? ( media-libs/spandsp )
435 - sshdump? ( >=net-libs/libssh-0.6 )
436 - ssl? ( net-libs/gnutls:= )
437 - zlib? ( sys-libs/zlib )
438 - zstd? ( app-arch/zstd:= )"
439 -DEPEND="${RDEPEND}"
440 -BDEPEND="${PYTHON_DEPS}
441 - dev-lang/perl
442 - sys-devel/flex
443 - sys-devel/gettext
444 - virtual/pkgconfig
445 - doc? (
446 - app-doc/doxygen
447 - dev-ruby/asciidoctor
448 - )
449 - qt5? (
450 - dev-qt/linguist-tools:5
451 - )
452 - test? (
453 - dev-python/pytest
454 - dev-python/pytest-xdist
455 - )"
456 -RDEPEND="${RDEPEND}
457 - qt5? ( virtual/freedesktop-icon-theme )
458 - selinux? ( sec-policy/selinux-wireshark )"
459 -
460 -PATCHES=(
461 - "${FILESDIR}"/${PN}-2.6.0-redhat.patch
462 - "${FILESDIR}"/${PN}-3.4.2-cmake-lua-version.patch
463 - "${FILESDIR}"/${PN}-3.6.0-fix-no-tshark.patch
464 -)
465 -
466 -pkg_setup() {
467 - use lua && lua-single_pkg_setup
468 -}
469 -
470 -src_configure() {
471 - local mycmakeargs
472 -
473 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
474 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
475 - if use kerberos ; then
476 - case $(krb5-config --libs) in
477 - *-lcrypto*)
478 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
479 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
480 - ewarn "license and the GPL, so do your check before distributing such package."
481 - mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) )
482 - ;;
483 - esac
484 - fi
485 -
486 - if use qt5 ; then
487 - export QT_MIN_VERSION=5.3.0
488 - append-cxxflags -fPIC -DPIC
489 - fi
490 -
491 - python_setup
492 -
493 - mycmakeargs+=(
494 - -DCMAKE_DISABLE_FIND_PACKAGE_{Asciidoctor,DOXYGEN}=$(usex !doc)
495 - $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes)
496 - $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '')
497 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '')
498 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '')
499 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '')
500 - -DBUILD_androiddump=$(usex androiddump)
501 - -DBUILD_capinfos=$(usex capinfos)
502 - -DBUILD_captype=$(usex captype)
503 - -DBUILD_ciscodump=$(usex ciscodump)
504 - -DBUILD_dftest=$(usex dftest)
505 - -DBUILD_dpauxmon=$(usex dpauxmon)
506 - -DBUILD_dumpcap=$(usex dumpcap)
507 - -DBUILD_editcap=$(usex editcap)
508 - -DBUILD_mergecap=$(usex mergecap)
509 - -DBUILD_mmdbresolve=$(usex maxminddb)
510 - -DBUILD_randpkt=$(usex randpkt)
511 - -DBUILD_randpktdump=$(usex randpktdump)
512 - -DBUILD_reordercap=$(usex reordercap)
513 - -DBUILD_sdjournal=$(usex sdjournal)
514 - -DBUILD_sharkd=$(usex sharkd)
515 - -DBUILD_sshdump=$(usex sshdump)
516 - -DBUILD_text2pcap=$(usex text2pcap)
517 - -DBUILD_tfshark=$(usex tfshark)
518 - -DBUILD_tshark=$(usex tshark)
519 - -DBUILD_udpdump=$(usex udpdump)
520 - -DBUILD_wireshark=$(usex qt5)
521 - -DDISABLE_WERROR=yes
522 - -DENABLE_BCG729=$(usex bcg729)
523 - -DENABLE_BROTLI=$(usex brotli)
524 - -DENABLE_CAP=$(usex filecaps caps)
525 - -DENABLE_GNUTLS=$(usex ssl)
526 - -DENABLE_ILBC=$(usex ilbc)
527 - -DENABLE_KERBEROS=$(usex kerberos)
528 - -DENABLE_LIBXML2=$(usex libxml2)
529 - -DENABLE_LTO=$(usex lto)
530 - -DENABLE_LUA=$(usex lua)
531 - -DENABLE_LZ4=$(usex lz4)
532 - -DENABLE_MINIZIP=$(usex minizip)
533 - -DENABLE_NETLINK=$(usex netlink)
534 - -DENABLE_NGHTTP2=$(usex http2)
535 - -DENABLE_OPUS=$(usex opus)
536 - -DENABLE_PCAP=$(usex pcap)
537 - -DENABLE_PLUGINS=$(usex plugins)
538 - -DENABLE_PLUGIN_IFDEMO=$(usex plugin-ifdemo)
539 - -DENABLE_SBC=$(usex sbc)
540 - -DENABLE_SMI=$(usex smi)
541 - -DENABLE_SNAPPY=$(usex snappy)
542 - -DENABLE_SPANDSP=$(usex spandsp)
543 - -DENABLE_ZLIB=$(usex zlib)
544 - -DENABLE_ZSTD=$(usex zstd)
545 - )
546 -
547 - cmake_src_configure
548 -}
549 -
550 -src_test() {
551 - cmake_build test-programs
552 -
553 - myctestargs=(
554 - --disable-capture
555 - --skip-missing-programs=all
556 - --verbose
557 -
558 - # Skip known failing tests
559 - -E "(suite_decryption|suite_extcaps|suite_nameres)"
560 - )
561 -
562 - cmake_src_test
563 -}
564 -
565 -src_install() {
566 - cmake_src_install
567 -
568 - # FAQ is not required as is installed from help/faq.txt
569 - dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README*
570 -
571 - # install headers
572 - insinto /usr/include/wireshark
573 - doins ws_diag_control.h ws_symbol_export.h \
574 - "${BUILD_DIR}"/config.h
575 -
576 - # If trying to remove this, try build e.g. libvirt first!
577 - # At last check, Fedora is still doing this too.
578 - local dir dirs=(
579 - epan
580 - epan/crypt
581 - epan/dfilter
582 - epan/dissectors
583 - epan/ftypes
584 - wiretap
585 - wsutil
586 - wsutil/wmem
587 - )
588 -
589 - for dir in "${dirs[@]}" ; do
590 - insinto /usr/include/wireshark/${dir}
591 - doins ${dir}/*.h
592 - done
593 -
594 - if use qt5 ; then
595 - local s
596 -
597 - for s in 16 32 48 64 128 256 512 1024 ; do
598 - insinto /usr/share/icons/hicolor/${s}x${s}/apps
599 - newins image/wsicon${s}.png wireshark.png
600 - done
601 -
602 - for s in 16 24 32 48 64 128 256 ; do
603 - insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes
604 - newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png
605 - done
606 - fi
607 -
608 - if [[ -d "${ED}"/usr/share/appdata ]] ; then
609 - rm -r "${ED}"/usr/share/appdata || die
610 - fi
611 -}
612 -
613 -pkg_postinst() {
614 - xdg_desktop_database_update
615 - xdg_icon_cache_update
616 - xdg_mimeinfo_database_update
617 -
618 - # Add group for users allowed to sniff.
619 - chgrp pcap "${EROOT}"/usr/bin/dumpcap
620 -
621 - if use dumpcap && use pcap ; then
622 - fcaps -o 0 -g pcap -m 4710 -M 0710 \
623 - cap_dac_read_search,cap_net_raw,cap_net_admin \
624 - "${EROOT}"/usr/bin/dumpcap
625 - fi
626 -
627 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
628 - ewarn "add yourself to the pcap group. This security measure ensures"
629 - ewarn "that only trusted users are allowed to sniff your traffic."
630 -}
631 -
632 -pkg_postrm() {
633 - xdg_desktop_database_update
634 - xdg_icon_cache_update
635 - xdg_mimeinfo_database_update
636 -}