1 |
commit: be88776872a669651fdd99855943d590212a57d3 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 4 11:08:11 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 4 11:08:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be887768 |
7 |
|
8 |
net-analyzer/wireshark: Old |
9 |
|
10 |
Package-Manager: Portage-2.3.87, Repoman-2.3.20 |
11 |
Bug: https://bugs.gentoo.org/show_bug.cgi?id=705506 |
12 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
13 |
|
14 |
net-analyzer/wireshark/Manifest | 2 - |
15 |
net-analyzer/wireshark/metadata.xml | 1 - |
16 |
net-analyzer/wireshark/wireshark-3.0.3.ebuild | 245 -------------------------- |
17 |
net-analyzer/wireshark/wireshark-3.0.7.ebuild | 245 -------------------------- |
18 |
4 files changed, 493 deletions(-) |
19 |
|
20 |
diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest |
21 |
index 2a78508ecdb..246b61becd7 100644 |
22 |
--- a/net-analyzer/wireshark/Manifest |
23 |
+++ b/net-analyzer/wireshark/Manifest |
24 |
@@ -1,3 +1 @@ |
25 |
-DIST wireshark-3.0.3.tar.xz 30923980 BLAKE2B 05f29f55061d0bed9be284e145d260fca5e0051893c044b1389e1389f2c9865c7ec4c548ea040c6bd853d4fe1c482c5c86fdb23aa79d588ad34b91ed1901bcf0 SHA512 78d4aa68e47a72b641cb2a694028de743c195a41c42fb58f510402581a213c1239f63cad1f9163b13d64608fcedf64c7367a4888021b80613cb7e9a6ddbf8750 |
26 |
-DIST wireshark-3.0.7.tar.xz 30851928 BLAKE2B 98d31a260b2f5f74a567161e9dc0c136bb6bb29bcd4fc303f099c8b1379668194c2463e0661041061fe4c462db20c846694beae9286d322ce887332cce45341b SHA512 64e242510865ca69e688677e3ee1f72d3efa2155f07bc1aacc6de19ffab06f26b1ef8a3f91a90e91a6612b10d75651aea6400f8c5852e6a7e82e5d3f3e88e031 |
27 |
DIST wireshark-3.2.1.tar.xz 31522124 BLAKE2B 49a83f6c99d54b7a0910f5ace4b46caac680ea73f81d7a3bf7818ccbc6a2fc07cd8f63e1b6ef341cc516220320bb5e035ef6fe82d3d0aba04ec01d6f67f017a1 SHA512 78300f7d597132d54cabe3e51e0f069657d164823852a9f23f1c3c9e6cfdefe5d5ac05c817d06869f4efa4e3cac25ea646cc39d880e5296cf409a8e1a03c2530 |
28 |
|
29 |
diff --git a/net-analyzer/wireshark/metadata.xml b/net-analyzer/wireshark/metadata.xml |
30 |
index 651879bc6f8..95f198ad6c4 100644 |
31 |
--- a/net-analyzer/wireshark/metadata.xml |
32 |
+++ b/net-analyzer/wireshark/metadata.xml |
33 |
@@ -27,7 +27,6 @@ can be applied to the packet list for quick, intuitive analysis, 12) output can |
34 |
be exported to XML, PostScript®, CSV, or plain text. |
35 |
</longdescription> |
36 |
<use> |
37 |
-<flag name="adns">Use <pkg>net-dns/c-ares</pkg> to resolve DNS names</flag> |
38 |
<flag name="androiddump">Install androiddump, an extcap interface to capture from Android devices</flag> |
39 |
<flag name="bcg729">Use <pkg>media-libs/bcg729</pkg> for G.729 codec support in RTP Player</flag> |
40 |
<flag name="brotli">Use <pkg>app-arch/brotli</pkg> for compression/decompression</flag> |
41 |
|
42 |
diff --git a/net-analyzer/wireshark/wireshark-3.0.3.ebuild b/net-analyzer/wireshark/wireshark-3.0.3.ebuild |
43 |
deleted file mode 100644 |
44 |
index b873b14d54a..00000000000 |
45 |
--- a/net-analyzer/wireshark/wireshark-3.0.3.ebuild |
46 |
+++ /dev/null |
47 |
@@ -1,245 +0,0 @@ |
48 |
-# Copyright 1999-2020 Gentoo Authors |
49 |
-# Distributed under the terms of the GNU General Public License v2 |
50 |
- |
51 |
-EAPI=7 |
52 |
-PYTHON_COMPAT=( python3_{6,7} ) |
53 |
-inherit fcaps flag-o-matic multilib python-r1 qmake-utils user xdg-utils cmake-utils |
54 |
- |
55 |
-DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
56 |
-HOMEPAGE="https://www.wireshark.org/" |
57 |
-SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz" |
58 |
- |
59 |
-LICENSE="GPL-2" |
60 |
-SLOT="0/${PV}" |
61 |
-KEYWORDS="~alpha" |
62 |
-IUSE=" |
63 |
- adns androiddump bcg729 +capinfos +captype ciscodump +dftest doc dpauxmon |
64 |
- +dumpcap +editcap http2 kerberos libxml2 lua lz4 maxminddb +mergecap |
65 |
- +netlink +pcap +qt5 +randpkt +randpktdump +reordercap sbc selinux +sharkd |
66 |
- smi snappy spandsp sshdump ssl sdjournal +text2pcap tfshark +tshark |
67 |
- +udpdump zlib |
68 |
-" |
69 |
- |
70 |
-S=${WORKDIR}/${P/_/} |
71 |
- |
72 |
-CDEPEND=" |
73 |
- >=dev-libs/glib-2.32:2 |
74 |
- dev-libs/libgcrypt:0 |
75 |
- adns? ( >=net-dns/c-ares-1.5 ) |
76 |
- bcg729? ( media-libs/bcg729 ) |
77 |
- ciscodump? ( >=net-libs/libssh-0.6 ) |
78 |
- filecaps? ( sys-libs/libcap ) |
79 |
- http2? ( net-libs/nghttp2 ) |
80 |
- kerberos? ( virtual/krb5 ) |
81 |
- libxml2? ( dev-libs/libxml2 ) |
82 |
- lua? ( >=dev-lang/lua-5.1:* ) |
83 |
- lz4? ( app-arch/lz4 ) |
84 |
- maxminddb? ( dev-libs/libmaxminddb ) |
85 |
- netlink? ( dev-libs/libnl:3 ) |
86 |
- pcap? ( net-libs/libpcap ) |
87 |
- qt5? ( |
88 |
- dev-qt/qtcore:5 |
89 |
- dev-qt/qtgui:5 |
90 |
- dev-qt/qtmultimedia:5 |
91 |
- dev-qt/qtprintsupport:5 |
92 |
- dev-qt/qtwidgets:5 |
93 |
- x11-misc/xdg-utils |
94 |
- ) |
95 |
- sbc? ( media-libs/sbc ) |
96 |
- sdjournal? ( sys-apps/systemd ) |
97 |
- smi? ( net-libs/libsmi ) |
98 |
- snappy? ( app-arch/snappy ) |
99 |
- spandsp? ( media-libs/spandsp ) |
100 |
- sshdump? ( >=net-libs/libssh-0.6 ) |
101 |
- ssl? ( net-libs/gnutls:= ) |
102 |
- zlib? ( sys-libs/zlib ) |
103 |
- ${PYTHON_DEPS} |
104 |
-" |
105 |
-# We need perl for `pod2html`. The rest of the perl stuff is to block older |
106 |
-# and broken installs. #455122 |
107 |
-DEPEND=" |
108 |
- ${CDEPEND} |
109 |
-" |
110 |
-BDEPEND=" |
111 |
- !<perl-core/Pod-Simple-3.170 |
112 |
- !<virtual/perl-Pod-Simple-3.170 |
113 |
- dev-lang/perl |
114 |
- sys-devel/bison |
115 |
- sys-devel/flex |
116 |
- virtual/pkgconfig |
117 |
- doc? ( |
118 |
- app-doc/doxygen |
119 |
- dev-ruby/asciidoctor |
120 |
- ) |
121 |
- qt5? ( |
122 |
- dev-qt/linguist-tools:5 |
123 |
- ) |
124 |
-" |
125 |
-RDEPEND=" |
126 |
- ${CDEPEND} |
127 |
- qt5? ( virtual/freedesktop-icon-theme ) |
128 |
- selinux? ( sec-policy/selinux-wireshark ) |
129 |
-" |
130 |
-REQUIRED_USE=" |
131 |
- ${PYTHON_REQUIRED_USE} |
132 |
-" |
133 |
-PATCHES=( |
134 |
- "${FILESDIR}"/${PN}-2.4-androiddump.patch |
135 |
- "${FILESDIR}"/${PN}-2.6.0-redhat.patch |
136 |
- "${FILESDIR}"/${PN}-2.9.0-tfshark-libm.patch |
137 |
- "${FILESDIR}"/${PN}-99999999-androiddump-wsutil.patch |
138 |
- "${FILESDIR}"/${PN}-99999999-qtsvg.patch |
139 |
- "${FILESDIR}"/${PN}-99999999-ui-needs-wiretap.patch |
140 |
-) |
141 |
- |
142 |
-pkg_setup() { |
143 |
- enewgroup wireshark |
144 |
-} |
145 |
- |
146 |
-src_configure() { |
147 |
- local mycmakeargs |
148 |
- |
149 |
- # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
150 |
- # --with-ssl to ./configure. (Mimics code from acinclude.m4). |
151 |
- if use kerberos; then |
152 |
- case $(krb5-config --libs) in |
153 |
- *-lcrypto*) |
154 |
- ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." |
155 |
- ewarn "Note there are annoying license incompatibilities between the OpenSSL" |
156 |
- ewarn "license and the GPL, so do your check before distributing such package." |
157 |
- mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) ) |
158 |
- ;; |
159 |
- esac |
160 |
- fi |
161 |
- |
162 |
- if use qt5; then |
163 |
- export QT_MIN_VERSION=5.3.0 |
164 |
- append-cxxflags -fPIC -DPIC |
165 |
- fi |
166 |
- |
167 |
- python_setup 'python3*' |
168 |
- |
169 |
- mycmakeargs+=( |
170 |
- $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes) |
171 |
- $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '') |
172 |
- $(usex qt5 MOC=$(qt5_get_bindir)/moc '') |
173 |
- $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') |
174 |
- $(usex qt5 UIC=$(qt5_get_bindir)/uic '') |
175 |
- -DBUILD_androiddump=$(usex androiddump) |
176 |
- -DBUILD_capinfos=$(usex capinfos) |
177 |
- -DBUILD_captype=$(usex captype) |
178 |
- -DBUILD_ciscodump=$(usex ciscodump) |
179 |
- -DBUILD_dftest=$(usex dftest) |
180 |
- -DBUILD_dpauxmon=$(usex dpauxmon) |
181 |
- -DBUILD_dumpcap=$(usex dumpcap) |
182 |
- -DBUILD_editcap=$(usex editcap) |
183 |
- -DBUILD_mergecap=$(usex mergecap) |
184 |
- -DBUILD_mmdbresolve=$(usex maxminddb) |
185 |
- -DBUILD_randpkt=$(usex randpkt) |
186 |
- -DBUILD_randpktdump=$(usex randpktdump) |
187 |
- -DBUILD_reordercap=$(usex reordercap) |
188 |
- -DBUILD_sdjournal=$(usex sdjournal) |
189 |
- -DBUILD_sharkd=$(usex sharkd) |
190 |
- -DBUILD_sshdump=$(usex sshdump) |
191 |
- -DBUILD_text2pcap=$(usex text2pcap) |
192 |
- -DBUILD_tfshark=$(usex tfshark) |
193 |
- -DBUILD_tshark=$(usex tshark) |
194 |
- -DBUILD_udpdump=$(usex udpdump) |
195 |
- -DBUILD_wireshark=$(usex qt5) |
196 |
- -DCMAKE_INSTALL_DOCDIR="${EROOT}/usr/share/doc/${PF}" |
197 |
- -DDISABLE_WERROR=yes |
198 |
- -DENABLE_BCG729=$(usex bcg729) |
199 |
- -DENABLE_CAP=$(usex filecaps caps) |
200 |
- -DENABLE_CARES=$(usex adns) |
201 |
- -DENABLE_GNUTLS=$(usex ssl) |
202 |
- -DENABLE_KERBEROS=$(usex kerberos) |
203 |
- -DENABLE_LIBXML2=$(usex libxml2) |
204 |
- -DENABLE_LUA=$(usex lua) |
205 |
- -DENABLE_LZ4=$(usex lz4) |
206 |
- -DENABLE_NETLINK=$(usex netlink) |
207 |
- -DENABLE_NGHTTP2=$(usex http2) |
208 |
- -DENABLE_PCAP=$(usex pcap) |
209 |
- -DENABLE_SBC=$(usex sbc) |
210 |
- -DENABLE_SMI=$(usex smi) |
211 |
- -DENABLE_SNAPPY=$(usex snappy) |
212 |
- -DENABLE_SPANDSP=$(usex spandsp) |
213 |
- -DENABLE_ZLIB=$(usex zlib) |
214 |
- ) |
215 |
- |
216 |
- cmake-utils_src_configure |
217 |
-} |
218 |
- |
219 |
-src_test() { |
220 |
- cmake-utils_src_test |
221 |
-} |
222 |
- |
223 |
-src_install() { |
224 |
- cmake-utils_src_install |
225 |
- |
226 |
- # FAQ is not required as is installed from help/faq.txt |
227 |
- dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README* |
228 |
- |
229 |
- # install headers |
230 |
- insinto /usr/include/wireshark |
231 |
- doins ws_diag_control.h ws_symbol_export.h \ |
232 |
- "${BUILD_DIR}"/config.h "${BUILD_DIR}"/version.h |
233 |
- |
234 |
- local dir dirs=( |
235 |
- epan |
236 |
- epan/crypt |
237 |
- epan/dfilter |
238 |
- epan/dissectors |
239 |
- epan/ftypes |
240 |
- epan/wmem |
241 |
- wiretap |
242 |
- wsutil |
243 |
- ) |
244 |
- for dir in "${dirs[@]}" |
245 |
- do |
246 |
- insinto /usr/include/wireshark/${dir} |
247 |
- doins ${dir}/*.h |
248 |
- done |
249 |
- |
250 |
- #with the above this really shouldn't be needed, but things may be looking |
251 |
- # in wiretap/ instead of wireshark/wiretap/ |
252 |
- insinto /usr/include/wiretap |
253 |
- doins wiretap/wtap.h |
254 |
- |
255 |
- if use qt5; then |
256 |
- local s |
257 |
- for s in 16 32 48 64 128 256 512 1024; do |
258 |
- insinto /usr/share/icons/hicolor/${s}x${s}/apps |
259 |
- newins image/wsicon${s}.png wireshark.png |
260 |
- done |
261 |
- for s in 16 24 32 48 64 128 256 ; do |
262 |
- insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes |
263 |
- newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png |
264 |
- done |
265 |
- fi |
266 |
-} |
267 |
- |
268 |
-pkg_postinst() { |
269 |
- xdg_desktop_database_update |
270 |
- xdg_icon_cache_update |
271 |
- xdg_mimeinfo_database_update |
272 |
- |
273 |
- # Add group for users allowed to sniff. |
274 |
- enewgroup wireshark |
275 |
- chgrp wireshark "${EROOT}"/usr/bin/dumpcap |
276 |
- |
277 |
- if use dumpcap && use pcap; then |
278 |
- fcaps -o 0 -g wireshark -m 4710 -M 0710 \ |
279 |
- cap_dac_read_search,cap_net_raw,cap_net_admin \ |
280 |
- "${EROOT}"/usr/bin/dumpcap |
281 |
- fi |
282 |
- |
283 |
- ewarn "NOTE: To capture traffic with wireshark as normal user you have to" |
284 |
- ewarn "add yourself to the wireshark group. This security measure ensures" |
285 |
- ewarn "that only trusted users are allowed to sniff your traffic." |
286 |
-} |
287 |
- |
288 |
-pkg_postrm() { |
289 |
- xdg_desktop_database_update |
290 |
- xdg_icon_cache_update |
291 |
- xdg_mimeinfo_database_update |
292 |
-} |
293 |
|
294 |
diff --git a/net-analyzer/wireshark/wireshark-3.0.7.ebuild b/net-analyzer/wireshark/wireshark-3.0.7.ebuild |
295 |
deleted file mode 100644 |
296 |
index 0813a4658f4..00000000000 |
297 |
--- a/net-analyzer/wireshark/wireshark-3.0.7.ebuild |
298 |
+++ /dev/null |
299 |
@@ -1,245 +0,0 @@ |
300 |
-# Copyright 1999-2020 Gentoo Authors |
301 |
-# Distributed under the terms of the GNU General Public License v2 |
302 |
- |
303 |
-EAPI=7 |
304 |
-PYTHON_COMPAT=( python3_{6,7} ) |
305 |
-inherit fcaps flag-o-matic multilib python-r1 qmake-utils user xdg-utils cmake-utils |
306 |
- |
307 |
-DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
308 |
-HOMEPAGE="https://www.wireshark.org/" |
309 |
-SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz" |
310 |
- |
311 |
-LICENSE="GPL-2" |
312 |
-SLOT="0/${PV}" |
313 |
-KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ppc64 x86" |
314 |
-IUSE=" |
315 |
- adns androiddump bcg729 +capinfos +captype ciscodump +dftest doc dpauxmon |
316 |
- +dumpcap +editcap http2 kerberos libxml2 lua lz4 maxminddb +mergecap |
317 |
- +netlink +pcap +qt5 +randpkt +randpktdump +reordercap sbc selinux +sharkd |
318 |
- smi snappy spandsp sshdump ssl sdjournal +text2pcap tfshark +tshark |
319 |
- +udpdump zlib |
320 |
-" |
321 |
- |
322 |
-S=${WORKDIR}/${P/_/} |
323 |
- |
324 |
-CDEPEND=" |
325 |
- >=dev-libs/glib-2.32:2 |
326 |
- dev-libs/libgcrypt:0 |
327 |
- adns? ( >=net-dns/c-ares-1.5 ) |
328 |
- bcg729? ( media-libs/bcg729 ) |
329 |
- ciscodump? ( >=net-libs/libssh-0.6 ) |
330 |
- filecaps? ( sys-libs/libcap ) |
331 |
- http2? ( net-libs/nghttp2 ) |
332 |
- kerberos? ( virtual/krb5 ) |
333 |
- libxml2? ( dev-libs/libxml2 ) |
334 |
- lua? ( >=dev-lang/lua-5.1:* ) |
335 |
- lz4? ( app-arch/lz4 ) |
336 |
- maxminddb? ( dev-libs/libmaxminddb ) |
337 |
- netlink? ( dev-libs/libnl:3 ) |
338 |
- pcap? ( net-libs/libpcap ) |
339 |
- qt5? ( |
340 |
- dev-qt/qtcore:5 |
341 |
- dev-qt/qtgui:5 |
342 |
- dev-qt/qtmultimedia:5 |
343 |
- dev-qt/qtprintsupport:5 |
344 |
- dev-qt/qtwidgets:5 |
345 |
- x11-misc/xdg-utils |
346 |
- ) |
347 |
- sbc? ( media-libs/sbc ) |
348 |
- sdjournal? ( sys-apps/systemd ) |
349 |
- smi? ( net-libs/libsmi ) |
350 |
- snappy? ( app-arch/snappy ) |
351 |
- spandsp? ( media-libs/spandsp ) |
352 |
- sshdump? ( >=net-libs/libssh-0.6 ) |
353 |
- ssl? ( net-libs/gnutls:= ) |
354 |
- zlib? ( sys-libs/zlib ) |
355 |
- ${PYTHON_DEPS} |
356 |
-" |
357 |
-# We need perl for `pod2html`. The rest of the perl stuff is to block older |
358 |
-# and broken installs. #455122 |
359 |
-DEPEND=" |
360 |
- ${CDEPEND} |
361 |
-" |
362 |
-BDEPEND=" |
363 |
- !<perl-core/Pod-Simple-3.170 |
364 |
- !<virtual/perl-Pod-Simple-3.170 |
365 |
- dev-lang/perl |
366 |
- sys-devel/bison |
367 |
- sys-devel/flex |
368 |
- virtual/pkgconfig |
369 |
- doc? ( |
370 |
- app-doc/doxygen |
371 |
- dev-ruby/asciidoctor |
372 |
- ) |
373 |
- qt5? ( |
374 |
- dev-qt/linguist-tools:5 |
375 |
- ) |
376 |
-" |
377 |
-RDEPEND=" |
378 |
- ${CDEPEND} |
379 |
- qt5? ( virtual/freedesktop-icon-theme ) |
380 |
- selinux? ( sec-policy/selinux-wireshark ) |
381 |
-" |
382 |
-REQUIRED_USE=" |
383 |
- ${PYTHON_REQUIRED_USE} |
384 |
-" |
385 |
-PATCHES=( |
386 |
- "${FILESDIR}"/${PN}-2.4-androiddump.patch |
387 |
- "${FILESDIR}"/${PN}-2.6.0-redhat.patch |
388 |
- "${FILESDIR}"/${PN}-2.9.0-tfshark-libm.patch |
389 |
- "${FILESDIR}"/${PN}-99999999-androiddump-wsutil.patch |
390 |
- "${FILESDIR}"/${PN}-99999999-qtsvg.patch |
391 |
- "${FILESDIR}"/${PN}-99999999-ui-needs-wiretap.patch |
392 |
-) |
393 |
- |
394 |
-pkg_setup() { |
395 |
- enewgroup wireshark |
396 |
-} |
397 |
- |
398 |
-src_configure() { |
399 |
- local mycmakeargs |
400 |
- |
401 |
- # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
402 |
- # --with-ssl to ./configure. (Mimics code from acinclude.m4). |
403 |
- if use kerberos; then |
404 |
- case $(krb5-config --libs) in |
405 |
- *-lcrypto*) |
406 |
- ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." |
407 |
- ewarn "Note there are annoying license incompatibilities between the OpenSSL" |
408 |
- ewarn "license and the GPL, so do your check before distributing such package." |
409 |
- mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) ) |
410 |
- ;; |
411 |
- esac |
412 |
- fi |
413 |
- |
414 |
- if use qt5; then |
415 |
- export QT_MIN_VERSION=5.3.0 |
416 |
- append-cxxflags -fPIC -DPIC |
417 |
- fi |
418 |
- |
419 |
- python_setup 'python3*' |
420 |
- |
421 |
- mycmakeargs+=( |
422 |
- $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes) |
423 |
- $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '') |
424 |
- $(usex qt5 MOC=$(qt5_get_bindir)/moc '') |
425 |
- $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') |
426 |
- $(usex qt5 UIC=$(qt5_get_bindir)/uic '') |
427 |
- -DBUILD_androiddump=$(usex androiddump) |
428 |
- -DBUILD_capinfos=$(usex capinfos) |
429 |
- -DBUILD_captype=$(usex captype) |
430 |
- -DBUILD_ciscodump=$(usex ciscodump) |
431 |
- -DBUILD_dftest=$(usex dftest) |
432 |
- -DBUILD_dpauxmon=$(usex dpauxmon) |
433 |
- -DBUILD_dumpcap=$(usex dumpcap) |
434 |
- -DBUILD_editcap=$(usex editcap) |
435 |
- -DBUILD_mergecap=$(usex mergecap) |
436 |
- -DBUILD_mmdbresolve=$(usex maxminddb) |
437 |
- -DBUILD_randpkt=$(usex randpkt) |
438 |
- -DBUILD_randpktdump=$(usex randpktdump) |
439 |
- -DBUILD_reordercap=$(usex reordercap) |
440 |
- -DBUILD_sdjournal=$(usex sdjournal) |
441 |
- -DBUILD_sharkd=$(usex sharkd) |
442 |
- -DBUILD_sshdump=$(usex sshdump) |
443 |
- -DBUILD_text2pcap=$(usex text2pcap) |
444 |
- -DBUILD_tfshark=$(usex tfshark) |
445 |
- -DBUILD_tshark=$(usex tshark) |
446 |
- -DBUILD_udpdump=$(usex udpdump) |
447 |
- -DBUILD_wireshark=$(usex qt5) |
448 |
- -DCMAKE_INSTALL_DOCDIR="${EROOT}/usr/share/doc/${PF}" |
449 |
- -DDISABLE_WERROR=yes |
450 |
- -DENABLE_BCG729=$(usex bcg729) |
451 |
- -DENABLE_CAP=$(usex filecaps caps) |
452 |
- -DENABLE_CARES=$(usex adns) |
453 |
- -DENABLE_GNUTLS=$(usex ssl) |
454 |
- -DENABLE_KERBEROS=$(usex kerberos) |
455 |
- -DENABLE_LIBXML2=$(usex libxml2) |
456 |
- -DENABLE_LUA=$(usex lua) |
457 |
- -DENABLE_LZ4=$(usex lz4) |
458 |
- -DENABLE_NETLINK=$(usex netlink) |
459 |
- -DENABLE_NGHTTP2=$(usex http2) |
460 |
- -DENABLE_PCAP=$(usex pcap) |
461 |
- -DENABLE_SBC=$(usex sbc) |
462 |
- -DENABLE_SMI=$(usex smi) |
463 |
- -DENABLE_SNAPPY=$(usex snappy) |
464 |
- -DENABLE_SPANDSP=$(usex spandsp) |
465 |
- -DENABLE_ZLIB=$(usex zlib) |
466 |
- ) |
467 |
- |
468 |
- cmake-utils_src_configure |
469 |
-} |
470 |
- |
471 |
-src_test() { |
472 |
- cmake-utils_src_test |
473 |
-} |
474 |
- |
475 |
-src_install() { |
476 |
- cmake-utils_src_install |
477 |
- |
478 |
- # FAQ is not required as is installed from help/faq.txt |
479 |
- dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README* |
480 |
- |
481 |
- # install headers |
482 |
- insinto /usr/include/wireshark |
483 |
- doins ws_diag_control.h ws_symbol_export.h \ |
484 |
- "${BUILD_DIR}"/config.h "${BUILD_DIR}"/version.h |
485 |
- |
486 |
- local dir dirs=( |
487 |
- epan |
488 |
- epan/crypt |
489 |
- epan/dfilter |
490 |
- epan/dissectors |
491 |
- epan/ftypes |
492 |
- epan/wmem |
493 |
- wiretap |
494 |
- wsutil |
495 |
- ) |
496 |
- for dir in "${dirs[@]}" |
497 |
- do |
498 |
- insinto /usr/include/wireshark/${dir} |
499 |
- doins ${dir}/*.h |
500 |
- done |
501 |
- |
502 |
- #with the above this really shouldn't be needed, but things may be looking |
503 |
- # in wiretap/ instead of wireshark/wiretap/ |
504 |
- insinto /usr/include/wiretap |
505 |
- doins wiretap/wtap.h |
506 |
- |
507 |
- if use qt5; then |
508 |
- local s |
509 |
- for s in 16 32 48 64 128 256 512 1024; do |
510 |
- insinto /usr/share/icons/hicolor/${s}x${s}/apps |
511 |
- newins image/wsicon${s}.png wireshark.png |
512 |
- done |
513 |
- for s in 16 24 32 48 64 128 256 ; do |
514 |
- insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes |
515 |
- newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png |
516 |
- done |
517 |
- fi |
518 |
-} |
519 |
- |
520 |
-pkg_postinst() { |
521 |
- xdg_desktop_database_update |
522 |
- xdg_icon_cache_update |
523 |
- xdg_mimeinfo_database_update |
524 |
- |
525 |
- # Add group for users allowed to sniff. |
526 |
- enewgroup wireshark |
527 |
- chgrp wireshark "${EROOT}"/usr/bin/dumpcap |
528 |
- |
529 |
- if use dumpcap && use pcap; then |
530 |
- fcaps -o 0 -g wireshark -m 4710 -M 0710 \ |
531 |
- cap_dac_read_search,cap_net_raw,cap_net_admin \ |
532 |
- "${EROOT}"/usr/bin/dumpcap |
533 |
- fi |
534 |
- |
535 |
- ewarn "NOTE: To capture traffic with wireshark as normal user you have to" |
536 |
- ewarn "add yourself to the wireshark group. This security measure ensures" |
537 |
- ewarn "that only trusted users are allowed to sniff your traffic." |
538 |
-} |
539 |
- |
540 |
-pkg_postrm() { |
541 |
- xdg_desktop_database_update |
542 |
- xdg_icon_cache_update |
543 |
- xdg_mimeinfo_database_update |
544 |
-} |