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