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