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