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