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: Fri, 23 Sep 2022 01:35:49
Message-Id: 1663896921.f11609876eb0b199a27dcdd072b488ae28d1dbdc.sam@gentoo
1 commit: f11609876eb0b199a27dcdd072b488ae28d1dbdc
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 23 01:29:03 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 23 01:35:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1160987
7
8 net-analyzer/wireshark: drop 3.6.2, 3.6.5, 3.6.7
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-analyzer/wireshark/Manifest | 3 -
13 net-analyzer/wireshark/wireshark-3.6.2.ebuild | 273 --------------------------
14 net-analyzer/wireshark/wireshark-3.6.5.ebuild | 269 -------------------------
15 net-analyzer/wireshark/wireshark-3.6.7.ebuild | 269 -------------------------
16 4 files changed, 814 deletions(-)
17
18 diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
19 index ac6e9b0afbc2..4bdd30fffb51 100644
20 --- a/net-analyzer/wireshark/Manifest
21 +++ b/net-analyzer/wireshark/Manifest
22 @@ -1,8 +1,5 @@
23 DIST wireshark-3.4.11.tar.xz 32354216 BLAKE2B 3e08d01f2d89f5ddd74c4e2215e6852f30c7419234a45b52a25aa9119995ec2c2882cc3993dce7941e6e73230eb4d295bf0785dda5fe8c3df99f9efdb1e42bfd SHA512 cfef2c3e56279baadb7f41a1f46fde9214a467972f69914c14a8153ea2f2adcb55832413bcaf7a3f8d98b4b62d0574f12144de6c06ff382b4fa8b071903993dc
24 -DIST wireshark-3.6.2.tar.xz 39654296 BLAKE2B 585cf925892ec9d5b6413ccc53c49035eba8a7cd9206f1354f0a808daec9b0f20fc72b3427a2b592f196dd6b2ab67fd35e73d152a20c16fb0f0153c6a03d3156 SHA512 cd4a8077629632e9a924600f9af2ffd01917726fd64504d6f3b4a2a1cb5340c9c0bac23e4abab63743952a0a78efd2e09bb125b127d24e85eca6fa41928fd070
25 DIST wireshark-3.6.3.tar.xz 39935892 BLAKE2B 3b636867d946f0cf748eb719874e815c919ee9cedd21a7e9034d54b4cb87ae4a09ec02a199e1ec8051e421fe2929983d659f340ccfd12ab35e1ecd52000964fd SHA512 4415216f791caee23757f3c754dd88ce8fd8eb8d2d64c1bd011b40c7451a1ef56cf41bcf1cdcf41221f196bf17be550f9271f05b82a017a02cac5c241785b7e6
26 -DIST wireshark-3.6.5.tar.xz 39939340 BLAKE2B 4df1abce2563f20e91fac169ef1ab65851a5f63423aceba487db8cd4b954c4a2ba5673e032878b33a43992cb2ee4628899eee8b0065220cd0c79a8c98a589ef0 SHA512 9aa60721401fbd1f3c6b912312792433c9f8a09583cf684a4f1a24c839f4786a54a0abbfd88c04ba222e5a7af09f7bc67c292a0f944c9b717a71509655fe2fe5
27 DIST wireshark-3.6.6.tar.xz 39950276 BLAKE2B cb74c4ed307b83ba509fa3b56356a33df11d9d1effb29054f73f248ca1c7107806676539d0802cc71e07687831a838145194104183afa4ae1825eb1fb85062b1 SHA512 c32d5aafb3091dc1475896a3c4cfcb5a47af002e53f011a65697271c611e690743153841f5db1021a6cbea6d427dc661dce7b85208832251200258fb46aad84b
28 -DIST wireshark-3.6.7.tar.xz 39967312 BLAKE2B 0539130aec2c7d8fdfec536114144a0b761addb8006d146a5e08d0a58e95d5d6b0db67ef32ceae4143de9836f25a3497802706f0a0eb633f29e1f24a47819e4b SHA512 caf087ee467bf934f28d096869ea3d9d7c5a3c83e51c4df447700096943a92abf5cf29f4956b9a549e0708bcb3515b55c4660a7ced2cb9dbc582b87550026fac
29 DIST wireshark-3.6.8.tar.xz 39942580 BLAKE2B 8b51ae1b3bf56fe1ccec70e94d9edb891e7b486a87b8f43984ea6d3150fe8f6c04beef9f12ebd9b830138aec6a993bcf88d50cfc4695b1f9ade6933092bed8db SHA512 c286e84e113f06b13b931da89b6d21b18e342660682579f88e77697f3e9c335ba75cdc190b41651da4d5729529a20740ef1a41e9f9523d9f6cc768147363053a
30 DIST wireshark-4.0.0rc2.tar.xz 41318448 BLAKE2B e4f3a9aca102a2f9fa519e429ad262f24df6a67fbd6debf9a9320ae0eb1e8753f65783ca19b5e4b224cf7af368af2a2cedc8065c7cc97216b4ced224fa9ffcaf SHA512 524722f7093af3d9cbb1e355fdeafb653917eabfb1d8d7d7c480a35853b0a777c8f5043d367955d01b7ca16b3f90569dcbafc1025bbeeb57a29ff486066840b8
31
32 diff --git a/net-analyzer/wireshark/wireshark-3.6.2.ebuild b/net-analyzer/wireshark/wireshark-3.6.2.ebuild
33 deleted file mode 100644
34 index 760d4c694ac1..000000000000
35 --- a/net-analyzer/wireshark/wireshark-3.6.2.ebuild
36 +++ /dev/null
37 @@ -1,273 +0,0 @@
38 -# Copyright 1999-2022 Gentoo Authors
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=8
42 -
43 -LUA_COMPAT=( lua5-{1..2} )
44 -PYTHON_COMPAT=( python3_{8..10} )
45 -
46 -inherit fcaps flag-o-matic lua-single python-any-r1 qmake-utils xdg-utils cmake
47 -
48 -DESCRIPTION="A network protocol analyzer formerly known as ethereal"
49 -HOMEPAGE="https://www.wireshark.org/"
50 -
51 -if [[ ${PV} == *9999* ]] ; then
52 - EGIT_REPO_URI="https://gitlab.com/wireshark/wireshark"
53 - inherit git-r3
54 -else
55 - SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz"
56 - S="${WORKDIR}/${P/_/}"
57 -
58 - KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc64 ~riscv x86"
59 -fi
60 -
61 -LICENSE="GPL-2"
62 -SLOT="0/${PV}"
63 -IUSE="androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon"
64 -IUSE+=" +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb"
65 -IUSE+=" +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt"
66 -IUSE+=" +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl"
67 -IUSE+=" sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd"
68 -
69 -REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )
70 - plugin-ifdemo? ( plugins )"
71 -
72 -RESTRICT="!test? ( test )"
73 -
74 -# bug #753062 for speexdsp
75 -RDEPEND="acct-group/pcap
76 - >=dev-libs/glib-2.38:2
77 - >=net-dns/c-ares-1.5:=
78 - dev-libs/libgcrypt:=
79 - media-libs/speexdsp
80 - bcg729? ( media-libs/bcg729 )
81 - brotli? ( app-arch/brotli:= )
82 - ciscodump? ( >=net-libs/libssh-0.6 )
83 - filecaps? ( sys-libs/libcap )
84 - http2? ( net-libs/nghttp2:= )
85 - ilbc? ( media-libs/libilbc )
86 - kerberos? ( virtual/krb5 )
87 - libxml2? ( dev-libs/libxml2 )
88 - lua? ( ${LUA_DEPS} )
89 - lz4? ( app-arch/lz4:= )
90 - maxminddb? ( dev-libs/libmaxminddb:= )
91 - minizip? ( sys-libs/zlib[minizip] )
92 - netlink? ( dev-libs/libnl:3 )
93 - opus? ( media-libs/opus )
94 - pcap? ( net-libs/libpcap )
95 - qt5? (
96 - dev-qt/qtcore:5
97 - dev-qt/qtgui:5
98 - dev-qt/qtmultimedia:5
99 - dev-qt/qtprintsupport:5
100 - dev-qt/qtwidgets:5
101 - x11-misc/xdg-utils
102 - )
103 - sbc? ( media-libs/sbc )
104 - sdjournal? ( sys-apps/systemd )
105 - smi? ( net-libs/libsmi )
106 - snappy? ( app-arch/snappy )
107 - spandsp? ( media-libs/spandsp )
108 - sshdump? ( >=net-libs/libssh-0.6 )
109 - ssl? ( net-libs/gnutls:= )
110 - zlib? ( sys-libs/zlib )
111 - zstd? ( app-arch/zstd:= )"
112 -DEPEND="${RDEPEND}"
113 -BDEPEND="${PYTHON_DEPS}
114 - dev-lang/perl
115 - sys-devel/flex
116 - sys-devel/gettext
117 - virtual/pkgconfig
118 - doc? (
119 - app-doc/doxygen
120 - dev-ruby/asciidoctor
121 - )
122 - qt5? (
123 - dev-qt/linguist-tools:5
124 - )
125 - test? (
126 - dev-python/pytest
127 - dev-python/pytest-xdist
128 - )"
129 -RDEPEND="${RDEPEND}
130 - qt5? ( virtual/freedesktop-icon-theme )
131 - selinux? ( sec-policy/selinux-wireshark )"
132 -
133 -PATCHES=(
134 - "${FILESDIR}"/${PN}-2.6.0-redhat.patch
135 - "${FILESDIR}"/${PN}-3.4.2-cmake-lua-version.patch
136 -)
137 -
138 -pkg_setup() {
139 - use lua && lua-single_pkg_setup
140 -}
141 -
142 -src_configure() {
143 - local mycmakeargs
144 -
145 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
146 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
147 - if use kerberos ; then
148 - case $(krb5-config --libs) in
149 - *-lcrypto*)
150 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
151 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
152 - ewarn "license and the GPL, so do your check before distributing such package."
153 - mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) )
154 - ;;
155 - esac
156 - fi
157 -
158 - if use qt5 ; then
159 - export QT_MIN_VERSION=5.3.0
160 - append-cxxflags -fPIC -DPIC
161 - fi
162 -
163 - python_setup
164 -
165 - mycmakeargs+=(
166 - -DCMAKE_DISABLE_FIND_PACKAGE_{Asciidoctor,DOXYGEN}=$(usex !doc)
167 - $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes)
168 - $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '')
169 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '')
170 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '')
171 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '')
172 - -DBUILD_androiddump=$(usex androiddump)
173 - -DBUILD_capinfos=$(usex capinfos)
174 - -DBUILD_captype=$(usex captype)
175 - -DBUILD_ciscodump=$(usex ciscodump)
176 - -DBUILD_dftest=$(usex dftest)
177 - -DBUILD_dpauxmon=$(usex dpauxmon)
178 - -DBUILD_dumpcap=$(usex dumpcap)
179 - -DBUILD_editcap=$(usex editcap)
180 - -DBUILD_mergecap=$(usex mergecap)
181 - -DBUILD_mmdbresolve=$(usex maxminddb)
182 - -DBUILD_randpkt=$(usex randpkt)
183 - -DBUILD_randpktdump=$(usex randpktdump)
184 - -DBUILD_reordercap=$(usex reordercap)
185 - -DBUILD_sdjournal=$(usex sdjournal)
186 - -DBUILD_sharkd=$(usex sharkd)
187 - -DBUILD_sshdump=$(usex sshdump)
188 - -DBUILD_text2pcap=$(usex text2pcap)
189 - -DBUILD_tfshark=$(usex tfshark)
190 - -DBUILD_tshark=$(usex tshark)
191 - -DBUILD_udpdump=$(usex udpdump)
192 - -DBUILD_wireshark=$(usex qt5)
193 - -DDISABLE_WERROR=yes
194 - -DENABLE_BCG729=$(usex bcg729)
195 - -DENABLE_BROTLI=$(usex brotli)
196 - -DENABLE_CAP=$(usex filecaps caps)
197 - -DENABLE_GNUTLS=$(usex ssl)
198 - -DENABLE_ILBC=$(usex ilbc)
199 - -DENABLE_KERBEROS=$(usex kerberos)
200 - -DENABLE_LIBXML2=$(usex libxml2)
201 - -DENABLE_LTO=$(usex lto)
202 - -DENABLE_LUA=$(usex lua)
203 - -DENABLE_LZ4=$(usex lz4)
204 - -DENABLE_MINIZIP=$(usex minizip)
205 - -DENABLE_NETLINK=$(usex netlink)
206 - -DENABLE_NGHTTP2=$(usex http2)
207 - -DENABLE_OPUS=$(usex opus)
208 - -DENABLE_PCAP=$(usex pcap)
209 - -DENABLE_PLUGINS=$(usex plugins)
210 - -DENABLE_PLUGIN_IFDEMO=$(usex plugin-ifdemo)
211 - -DENABLE_SBC=$(usex sbc)
212 - -DENABLE_SMI=$(usex smi)
213 - -DENABLE_SNAPPY=$(usex snappy)
214 - -DENABLE_SPANDSP=$(usex spandsp)
215 - -DENABLE_ZLIB=$(usex zlib)
216 - -DENABLE_ZSTD=$(usex zstd)
217 - )
218 -
219 - cmake_src_configure
220 -}
221 -
222 -src_test() {
223 - cmake_build test-programs
224 -
225 - myctestargs=(
226 - --disable-capture
227 - --skip-missing-programs=all
228 - --verbose
229 -
230 - # Skip known failing tests
231 - # extcaps needs a bunch of external programs
232 - -E "(suite_extcaps)"
233 - #-E "(suite_decryption|suite_extcaps|suite_nameres)"
234 - )
235 -
236 - cmake_src_test
237 -}
238 -
239 -src_install() {
240 - cmake_src_install
241 -
242 - # FAQ is not required as is installed from help/faq.txt
243 - dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README*
244 -
245 - # install headers
246 - insinto /usr/include/wireshark
247 - doins ws_diag_control.h ws_symbol_export.h \
248 - "${BUILD_DIR}"/config.h
249 -
250 - # If trying to remove this, try build e.g. libvirt first!
251 - # At last check, Fedora is still doing this too.
252 - local dir dirs=(
253 - epan
254 - epan/crypt
255 - epan/dfilter
256 - epan/dissectors
257 - epan/ftypes
258 - wiretap
259 - wsutil
260 - wsutil/wmem
261 - )
262 -
263 - for dir in "${dirs[@]}" ; do
264 - insinto /usr/include/wireshark/${dir}
265 - doins ${dir}/*.h
266 - done
267 -
268 - if use qt5 ; then
269 - local s
270 -
271 - for s in 16 32 48 64 128 256 512 1024 ; do
272 - insinto /usr/share/icons/hicolor/${s}x${s}/apps
273 - newins image/wsicon${s}.png wireshark.png
274 - done
275 -
276 - for s in 16 24 32 48 64 128 256 ; do
277 - insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes
278 - newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png
279 - done
280 - fi
281 -
282 - if [[ -d "${ED}"/usr/share/appdata ]] ; then
283 - rm -r "${ED}"/usr/share/appdata || die
284 - fi
285 -}
286 -
287 -pkg_postinst() {
288 - xdg_desktop_database_update
289 - xdg_icon_cache_update
290 - xdg_mimeinfo_database_update
291 -
292 - # Add group for users allowed to sniff.
293 - chgrp pcap "${EROOT}"/usr/bin/dumpcap
294 -
295 - if use dumpcap && use pcap ; then
296 - fcaps -o 0 -g pcap -m 4710 -M 0710 \
297 - cap_dac_read_search,cap_net_raw,cap_net_admin \
298 - "${EROOT}"/usr/bin/dumpcap
299 - fi
300 -
301 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
302 - ewarn "add yourself to the pcap group. This security measure ensures"
303 - ewarn "that only trusted users are allowed to sniff your traffic."
304 -}
305 -
306 -pkg_postrm() {
307 - xdg_desktop_database_update
308 - xdg_icon_cache_update
309 - xdg_mimeinfo_database_update
310 -}
311
312 diff --git a/net-analyzer/wireshark/wireshark-3.6.5.ebuild b/net-analyzer/wireshark/wireshark-3.6.5.ebuild
313 deleted file mode 100644
314 index fffca9343012..000000000000
315 --- a/net-analyzer/wireshark/wireshark-3.6.5.ebuild
316 +++ /dev/null
317 @@ -1,269 +0,0 @@
318 -# Copyright 1999-2022 Gentoo Authors
319 -# Distributed under the terms of the GNU General Public License v2
320 -
321 -EAPI=8
322 -
323 -LUA_COMPAT=( lua5-{1..2} )
324 -PYTHON_COMPAT=( python3_{8..10} )
325 -
326 -inherit fcaps flag-o-matic lua-single python-any-r1 qmake-utils xdg cmake
327 -
328 -DESCRIPTION="A network protocol analyzer formerly known as ethereal"
329 -HOMEPAGE="https://www.wireshark.org/"
330 -
331 -if [[ ${PV} == *9999* ]] ; then
332 - EGIT_REPO_URI="https://gitlab.com/wireshark/wireshark"
333 - inherit git-r3
334 -else
335 - SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz"
336 - S="${WORKDIR}/${P/_/}"
337 -
338 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~riscv ~x86"
339 -fi
340 -
341 -LICENSE="GPL-2"
342 -SLOT="0/${PV}"
343 -IUSE="androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon"
344 -IUSE+=" +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb"
345 -IUSE+=" +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt"
346 -IUSE+=" +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl"
347 -IUSE+=" sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd"
348 -
349 -REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )
350 - plugin-ifdemo? ( plugins )"
351 -
352 -RESTRICT="!test? ( test )"
353 -
354 -# bug #753062 for speexdsp
355 -RDEPEND="acct-group/pcap
356 - >=dev-libs/glib-2.38:2
357 - >=net-dns/c-ares-1.5:=
358 - dev-libs/libgcrypt:=
359 - media-libs/speexdsp
360 - bcg729? ( media-libs/bcg729 )
361 - brotli? ( app-arch/brotli:= )
362 - ciscodump? ( >=net-libs/libssh-0.6 )
363 - filecaps? ( sys-libs/libcap )
364 - http2? ( net-libs/nghttp2:= )
365 - ilbc? ( media-libs/libilbc )
366 - kerberos? ( virtual/krb5 )
367 - libxml2? ( dev-libs/libxml2 )
368 - lua? ( ${LUA_DEPS} )
369 - lz4? ( app-arch/lz4:= )
370 - maxminddb? ( dev-libs/libmaxminddb:= )
371 - minizip? ( sys-libs/zlib[minizip] )
372 - netlink? ( dev-libs/libnl:3 )
373 - opus? ( media-libs/opus )
374 - pcap? ( net-libs/libpcap )
375 - qt5? (
376 - dev-qt/qtcore:5
377 - dev-qt/qtgui:5
378 - dev-qt/qtmultimedia:5
379 - dev-qt/qtprintsupport:5
380 - dev-qt/qtwidgets:5
381 - x11-misc/xdg-utils
382 - )
383 - sbc? ( media-libs/sbc )
384 - sdjournal? ( sys-apps/systemd )
385 - smi? ( net-libs/libsmi )
386 - snappy? ( app-arch/snappy )
387 - spandsp? ( media-libs/spandsp )
388 - sshdump? ( >=net-libs/libssh-0.6 )
389 - ssl? ( net-libs/gnutls:= )
390 - zlib? ( sys-libs/zlib )
391 - zstd? ( app-arch/zstd:= )"
392 -DEPEND="${RDEPEND}"
393 -BDEPEND="${PYTHON_DEPS}
394 - dev-lang/perl
395 - sys-devel/flex
396 - sys-devel/gettext
397 - virtual/pkgconfig
398 - doc? (
399 - app-doc/doxygen
400 - dev-ruby/asciidoctor
401 - )
402 - qt5? (
403 - dev-qt/linguist-tools:5
404 - )
405 - test? (
406 - $(python_gen_any_dep '
407 - dev-python/pytest[${PYTHON_USEDEP}]
408 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
409 - ')
410 - )"
411 -RDEPEND="${RDEPEND}
412 - qt5? ( virtual/freedesktop-icon-theme )
413 - selinux? ( sec-policy/selinux-wireshark )"
414 -
415 -PATCHES=(
416 - "${FILESDIR}"/${PN}-2.6.0-redhat.patch
417 - "${FILESDIR}"/${PN}-3.4.2-cmake-lua-version.patch
418 -)
419 -
420 -python_check_deps() {
421 - use test || return 0
422 -
423 - python_has_version -b "dev-python/pytest[${PYTHON_USEDEP}]" &&
424 - python_has_version -b "dev-python/pytest-xdist[${PYTHON_USEDEP}]"
425 -}
426 -
427 -pkg_setup() {
428 - use lua && lua-single_pkg_setup
429 -
430 - python-any-r1_pkg_setup
431 -}
432 -
433 -src_configure() {
434 - local mycmakeargs
435 -
436 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
437 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
438 - if use kerberos ; then
439 - case $(krb5-config --libs) in
440 - *-lcrypto*)
441 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
442 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
443 - ewarn "license and the GPL, so do your check before distributing such package."
444 - mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) )
445 - ;;
446 - esac
447 - fi
448 -
449 - if use qt5 ; then
450 - export QT_MIN_VERSION=5.3.0
451 - append-cxxflags -fPIC -DPIC
452 - fi
453 -
454 - python_setup
455 -
456 - mycmakeargs+=(
457 - -DCMAKE_DISABLE_FIND_PACKAGE_{Asciidoctor,DOXYGEN}=$(usex !doc)
458 - $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes)
459 - $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '')
460 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '')
461 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '')
462 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '')
463 - -DBUILD_androiddump=$(usex androiddump)
464 - -DBUILD_capinfos=$(usex capinfos)
465 - -DBUILD_captype=$(usex captype)
466 - -DBUILD_ciscodump=$(usex ciscodump)
467 - -DBUILD_dftest=$(usex dftest)
468 - -DBUILD_dpauxmon=$(usex dpauxmon)
469 - -DBUILD_dumpcap=$(usex dumpcap)
470 - -DBUILD_editcap=$(usex editcap)
471 - -DBUILD_mergecap=$(usex mergecap)
472 - -DBUILD_mmdbresolve=$(usex maxminddb)
473 - -DBUILD_randpkt=$(usex randpkt)
474 - -DBUILD_randpktdump=$(usex randpktdump)
475 - -DBUILD_reordercap=$(usex reordercap)
476 - -DBUILD_sdjournal=$(usex sdjournal)
477 - -DBUILD_sharkd=$(usex sharkd)
478 - -DBUILD_sshdump=$(usex sshdump)
479 - -DBUILD_text2pcap=$(usex text2pcap)
480 - -DBUILD_tfshark=$(usex tfshark)
481 - -DBUILD_tshark=$(usex tshark)
482 - -DBUILD_udpdump=$(usex udpdump)
483 - -DBUILD_wireshark=$(usex qt5)
484 - -DDISABLE_WERROR=ON
485 - -DENABLE_BCG729=$(usex bcg729)
486 - -DENABLE_BROTLI=$(usex brotli)
487 - -DENABLE_CAP=$(usex filecaps caps)
488 - -DENABLE_GNUTLS=$(usex ssl)
489 - -DENABLE_ILBC=$(usex ilbc)
490 - -DENABLE_KERBEROS=$(usex kerberos)
491 - -DENABLE_LIBXML2=$(usex libxml2)
492 - -DENABLE_LTO=$(usex lto)
493 - -DENABLE_LUA=$(usex lua)
494 - -DENABLE_LZ4=$(usex lz4)
495 - -DENABLE_MINIZIP=$(usex minizip)
496 - -DENABLE_NETLINK=$(usex netlink)
497 - -DENABLE_NGHTTP2=$(usex http2)
498 - -DENABLE_OPUS=$(usex opus)
499 - -DENABLE_PCAP=$(usex pcap)
500 - -DENABLE_PLUGINS=$(usex plugins)
501 - -DENABLE_PLUGIN_IFDEMO=$(usex plugin-ifdemo)
502 - -DENABLE_SBC=$(usex sbc)
503 - -DENABLE_SMI=$(usex smi)
504 - -DENABLE_SNAPPY=$(usex snappy)
505 - -DENABLE_SPANDSP=$(usex spandsp)
506 - -DENABLE_ZLIB=$(usex zlib)
507 - -DENABLE_ZSTD=$(usex zstd)
508 - )
509 -
510 - cmake_src_configure
511 -}
512 -
513 -src_test() {
514 - cmake_build test-programs
515 -
516 - # https://www.wireshark.org/docs/wsdg_html_chunked/ChTestsRunPytest.html
517 - epytest \
518 - --disable-capture \
519 - --skip-missing-programs=all \
520 - --program-path "${BUILD_DIR}"/run
521 -}
522 -
523 -src_install() {
524 - cmake_src_install
525 -
526 - # FAQ is not required as is installed from help/faq.txt
527 - dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README*
528 -
529 - # install headers
530 - insinto /usr/include/wireshark
531 - doins ws_diag_control.h ws_symbol_export.h \
532 - "${BUILD_DIR}"/config.h
533 -
534 - # If trying to remove this, try build e.g. libvirt first!
535 - # At last check, Fedora is still doing this too.
536 - local dir dirs=(
537 - epan
538 - epan/crypt
539 - epan/dfilter
540 - epan/dissectors
541 - epan/ftypes
542 - wiretap
543 - wsutil
544 - wsutil/wmem
545 - )
546 -
547 - for dir in "${dirs[@]}" ; do
548 - insinto /usr/include/wireshark/${dir}
549 - doins ${dir}/*.h
550 - done
551 -
552 - if use qt5 ; then
553 - local s
554 -
555 - for s in 16 32 48 64 128 256 512 1024 ; do
556 - insinto /usr/share/icons/hicolor/${s}x${s}/apps
557 - newins image/wsicon${s}.png wireshark.png
558 - done
559 -
560 - for s in 16 24 32 48 64 128 256 ; do
561 - insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes
562 - newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png
563 - done
564 - fi
565 -
566 - if [[ -d "${ED}"/usr/share/appdata ]] ; then
567 - rm -r "${ED}"/usr/share/appdata || die
568 - fi
569 -}
570 -
571 -pkg_postinst() {
572 - xdg_pkg_postinst
573 -
574 - # Add group for users allowed to sniff.
575 - chgrp pcap "${EROOT}"/usr/bin/dumpcap
576 -
577 - if use dumpcap && use pcap ; then
578 - fcaps -o 0 -g pcap -m 4710 -M 0710 \
579 - cap_dac_read_search,cap_net_raw,cap_net_admin \
580 - "${EROOT}"/usr/bin/dumpcap
581 - fi
582 -
583 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
584 - ewarn "add yourself to the pcap group. This security measure ensures"
585 - ewarn "that only trusted users are allowed to sniff your traffic."
586 -}
587
588 diff --git a/net-analyzer/wireshark/wireshark-3.6.7.ebuild b/net-analyzer/wireshark/wireshark-3.6.7.ebuild
589 deleted file mode 100644
590 index fffca9343012..000000000000
591 --- a/net-analyzer/wireshark/wireshark-3.6.7.ebuild
592 +++ /dev/null
593 @@ -1,269 +0,0 @@
594 -# Copyright 1999-2022 Gentoo Authors
595 -# Distributed under the terms of the GNU General Public License v2
596 -
597 -EAPI=8
598 -
599 -LUA_COMPAT=( lua5-{1..2} )
600 -PYTHON_COMPAT=( python3_{8..10} )
601 -
602 -inherit fcaps flag-o-matic lua-single python-any-r1 qmake-utils xdg cmake
603 -
604 -DESCRIPTION="A network protocol analyzer formerly known as ethereal"
605 -HOMEPAGE="https://www.wireshark.org/"
606 -
607 -if [[ ${PV} == *9999* ]] ; then
608 - EGIT_REPO_URI="https://gitlab.com/wireshark/wireshark"
609 - inherit git-r3
610 -else
611 - SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz"
612 - S="${WORKDIR}/${P/_/}"
613 -
614 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~riscv ~x86"
615 -fi
616 -
617 -LICENSE="GPL-2"
618 -SLOT="0/${PV}"
619 -IUSE="androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon"
620 -IUSE+=" +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb"
621 -IUSE+=" +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt"
622 -IUSE+=" +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl"
623 -IUSE+=" sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd"
624 -
625 -REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )
626 - plugin-ifdemo? ( plugins )"
627 -
628 -RESTRICT="!test? ( test )"
629 -
630 -# bug #753062 for speexdsp
631 -RDEPEND="acct-group/pcap
632 - >=dev-libs/glib-2.38:2
633 - >=net-dns/c-ares-1.5:=
634 - dev-libs/libgcrypt:=
635 - media-libs/speexdsp
636 - bcg729? ( media-libs/bcg729 )
637 - brotli? ( app-arch/brotli:= )
638 - ciscodump? ( >=net-libs/libssh-0.6 )
639 - filecaps? ( sys-libs/libcap )
640 - http2? ( net-libs/nghttp2:= )
641 - ilbc? ( media-libs/libilbc )
642 - kerberos? ( virtual/krb5 )
643 - libxml2? ( dev-libs/libxml2 )
644 - lua? ( ${LUA_DEPS} )
645 - lz4? ( app-arch/lz4:= )
646 - maxminddb? ( dev-libs/libmaxminddb:= )
647 - minizip? ( sys-libs/zlib[minizip] )
648 - netlink? ( dev-libs/libnl:3 )
649 - opus? ( media-libs/opus )
650 - pcap? ( net-libs/libpcap )
651 - qt5? (
652 - dev-qt/qtcore:5
653 - dev-qt/qtgui:5
654 - dev-qt/qtmultimedia:5
655 - dev-qt/qtprintsupport:5
656 - dev-qt/qtwidgets:5
657 - x11-misc/xdg-utils
658 - )
659 - sbc? ( media-libs/sbc )
660 - sdjournal? ( sys-apps/systemd )
661 - smi? ( net-libs/libsmi )
662 - snappy? ( app-arch/snappy )
663 - spandsp? ( media-libs/spandsp )
664 - sshdump? ( >=net-libs/libssh-0.6 )
665 - ssl? ( net-libs/gnutls:= )
666 - zlib? ( sys-libs/zlib )
667 - zstd? ( app-arch/zstd:= )"
668 -DEPEND="${RDEPEND}"
669 -BDEPEND="${PYTHON_DEPS}
670 - dev-lang/perl
671 - sys-devel/flex
672 - sys-devel/gettext
673 - virtual/pkgconfig
674 - doc? (
675 - app-doc/doxygen
676 - dev-ruby/asciidoctor
677 - )
678 - qt5? (
679 - dev-qt/linguist-tools:5
680 - )
681 - test? (
682 - $(python_gen_any_dep '
683 - dev-python/pytest[${PYTHON_USEDEP}]
684 - dev-python/pytest-xdist[${PYTHON_USEDEP}]
685 - ')
686 - )"
687 -RDEPEND="${RDEPEND}
688 - qt5? ( virtual/freedesktop-icon-theme )
689 - selinux? ( sec-policy/selinux-wireshark )"
690 -
691 -PATCHES=(
692 - "${FILESDIR}"/${PN}-2.6.0-redhat.patch
693 - "${FILESDIR}"/${PN}-3.4.2-cmake-lua-version.patch
694 -)
695 -
696 -python_check_deps() {
697 - use test || return 0
698 -
699 - python_has_version -b "dev-python/pytest[${PYTHON_USEDEP}]" &&
700 - python_has_version -b "dev-python/pytest-xdist[${PYTHON_USEDEP}]"
701 -}
702 -
703 -pkg_setup() {
704 - use lua && lua-single_pkg_setup
705 -
706 - python-any-r1_pkg_setup
707 -}
708 -
709 -src_configure() {
710 - local mycmakeargs
711 -
712 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
713 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
714 - if use kerberos ; then
715 - case $(krb5-config --libs) in
716 - *-lcrypto*)
717 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
718 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
719 - ewarn "license and the GPL, so do your check before distributing such package."
720 - mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) )
721 - ;;
722 - esac
723 - fi
724 -
725 - if use qt5 ; then
726 - export QT_MIN_VERSION=5.3.0
727 - append-cxxflags -fPIC -DPIC
728 - fi
729 -
730 - python_setup
731 -
732 - mycmakeargs+=(
733 - -DCMAKE_DISABLE_FIND_PACKAGE_{Asciidoctor,DOXYGEN}=$(usex !doc)
734 - $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes)
735 - $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '')
736 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '')
737 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '')
738 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '')
739 - -DBUILD_androiddump=$(usex androiddump)
740 - -DBUILD_capinfos=$(usex capinfos)
741 - -DBUILD_captype=$(usex captype)
742 - -DBUILD_ciscodump=$(usex ciscodump)
743 - -DBUILD_dftest=$(usex dftest)
744 - -DBUILD_dpauxmon=$(usex dpauxmon)
745 - -DBUILD_dumpcap=$(usex dumpcap)
746 - -DBUILD_editcap=$(usex editcap)
747 - -DBUILD_mergecap=$(usex mergecap)
748 - -DBUILD_mmdbresolve=$(usex maxminddb)
749 - -DBUILD_randpkt=$(usex randpkt)
750 - -DBUILD_randpktdump=$(usex randpktdump)
751 - -DBUILD_reordercap=$(usex reordercap)
752 - -DBUILD_sdjournal=$(usex sdjournal)
753 - -DBUILD_sharkd=$(usex sharkd)
754 - -DBUILD_sshdump=$(usex sshdump)
755 - -DBUILD_text2pcap=$(usex text2pcap)
756 - -DBUILD_tfshark=$(usex tfshark)
757 - -DBUILD_tshark=$(usex tshark)
758 - -DBUILD_udpdump=$(usex udpdump)
759 - -DBUILD_wireshark=$(usex qt5)
760 - -DDISABLE_WERROR=ON
761 - -DENABLE_BCG729=$(usex bcg729)
762 - -DENABLE_BROTLI=$(usex brotli)
763 - -DENABLE_CAP=$(usex filecaps caps)
764 - -DENABLE_GNUTLS=$(usex ssl)
765 - -DENABLE_ILBC=$(usex ilbc)
766 - -DENABLE_KERBEROS=$(usex kerberos)
767 - -DENABLE_LIBXML2=$(usex libxml2)
768 - -DENABLE_LTO=$(usex lto)
769 - -DENABLE_LUA=$(usex lua)
770 - -DENABLE_LZ4=$(usex lz4)
771 - -DENABLE_MINIZIP=$(usex minizip)
772 - -DENABLE_NETLINK=$(usex netlink)
773 - -DENABLE_NGHTTP2=$(usex http2)
774 - -DENABLE_OPUS=$(usex opus)
775 - -DENABLE_PCAP=$(usex pcap)
776 - -DENABLE_PLUGINS=$(usex plugins)
777 - -DENABLE_PLUGIN_IFDEMO=$(usex plugin-ifdemo)
778 - -DENABLE_SBC=$(usex sbc)
779 - -DENABLE_SMI=$(usex smi)
780 - -DENABLE_SNAPPY=$(usex snappy)
781 - -DENABLE_SPANDSP=$(usex spandsp)
782 - -DENABLE_ZLIB=$(usex zlib)
783 - -DENABLE_ZSTD=$(usex zstd)
784 - )
785 -
786 - cmake_src_configure
787 -}
788 -
789 -src_test() {
790 - cmake_build test-programs
791 -
792 - # https://www.wireshark.org/docs/wsdg_html_chunked/ChTestsRunPytest.html
793 - epytest \
794 - --disable-capture \
795 - --skip-missing-programs=all \
796 - --program-path "${BUILD_DIR}"/run
797 -}
798 -
799 -src_install() {
800 - cmake_src_install
801 -
802 - # FAQ is not required as is installed from help/faq.txt
803 - dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README*
804 -
805 - # install headers
806 - insinto /usr/include/wireshark
807 - doins ws_diag_control.h ws_symbol_export.h \
808 - "${BUILD_DIR}"/config.h
809 -
810 - # If trying to remove this, try build e.g. libvirt first!
811 - # At last check, Fedora is still doing this too.
812 - local dir dirs=(
813 - epan
814 - epan/crypt
815 - epan/dfilter
816 - epan/dissectors
817 - epan/ftypes
818 - wiretap
819 - wsutil
820 - wsutil/wmem
821 - )
822 -
823 - for dir in "${dirs[@]}" ; do
824 - insinto /usr/include/wireshark/${dir}
825 - doins ${dir}/*.h
826 - done
827 -
828 - if use qt5 ; then
829 - local s
830 -
831 - for s in 16 32 48 64 128 256 512 1024 ; do
832 - insinto /usr/share/icons/hicolor/${s}x${s}/apps
833 - newins image/wsicon${s}.png wireshark.png
834 - done
835 -
836 - for s in 16 24 32 48 64 128 256 ; do
837 - insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes
838 - newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png
839 - done
840 - fi
841 -
842 - if [[ -d "${ED}"/usr/share/appdata ]] ; then
843 - rm -r "${ED}"/usr/share/appdata || die
844 - fi
845 -}
846 -
847 -pkg_postinst() {
848 - xdg_pkg_postinst
849 -
850 - # Add group for users allowed to sniff.
851 - chgrp pcap "${EROOT}"/usr/bin/dumpcap
852 -
853 - if use dumpcap && use pcap ; then
854 - fcaps -o 0 -g pcap -m 4710 -M 0710 \
855 - cap_dac_read_search,cap_net_raw,cap_net_admin \
856 - "${EROOT}"/usr/bin/dumpcap
857 - fi
858 -
859 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
860 - ewarn "add yourself to the pcap group. This security measure ensures"
861 - ewarn "that only trusted users are allowed to sniff your traffic."
862 -}