1 |
commit: bfbc0055575d1e00111409cb708f011fb62241e3 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 11 16:49:08 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 11 16:55:27 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfbc0055 |
7 |
|
8 |
net-analyzer/wireshark: Old |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/wireshark/Manifest | 1 - |
14 |
.../files/wireshark-2.1.0-sse4_2-r1.patch | 21 -- |
15 |
.../wireshark/files/wireshark-2.4.3-libsmi.patch | 233 ----------------- |
16 |
net-analyzer/wireshark/metadata.xml | 2 - |
17 |
net-analyzer/wireshark/wireshark-2.4.5.ebuild | 291 --------------------- |
18 |
5 files changed, 548 deletions(-) |
19 |
|
20 |
diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest |
21 |
index 9e5bc3e93b8..c4ba02e145b 100644 |
22 |
--- a/net-analyzer/wireshark/Manifest |
23 |
+++ b/net-analyzer/wireshark/Manifest |
24 |
@@ -1,4 +1,3 @@ |
25 |
-DIST wireshark-2.4.5.tar.xz 28836740 BLAKE2B 797540daca259a2d5d7dc6e637f2b504b6d14191af4040e6b344c95db6c776b7de80c25c59c98ab84d0337cc96c7313b42c13103a3c3944768a793130deae258 SHA512 2f2c201d6b8a37dcbe03bc9affbf97d632d8e40e4fe5b3a3e79cbd5cfbeb5b9111919850546ccae355fcb042def3456438eb1c4d73f7d56d373e7898311b42f3 |
26 |
DIST wireshark-2.6.3.tar.xz 28384004 BLAKE2B f275c73173fbaf3f819c58f28859362e9c53ae50cf2649ac42c8d172362241eb00d7f43d0aead184ec67cb8da34d405124be10c5bf31226c2cb4800b8a01955b SHA512 87e5335840baa401a1064ee83e3f0ee859c059dd37a09f63f19eb5d91ad273e84f1c0e7a8fdd63fe8a7076abff5e79593827544c5796d921cf7dc7682c7c3f80 |
27 |
DIST wireshark-2.6.6.tar.xz 28407404 BLAKE2B 5135789d345b675814a6394d5ba1469585b9eab917885730125b8a007aecd9cb48a510fc9e7479148cadf625807bac9017b854797e4bb2e562d7dc7f76140826 SHA512 b781c3b34dc76a3d8e60dc2b9b4e46a11994440b8df7b56134521ea9a77b27b0719a600db60d7f3d65f15972a5db2a7e85a8bf60d7217fce498fb5668de8fe56 |
28 |
DIST wireshark-2.6.7.tar.xz 28420060 BLAKE2B fda1fb2b9a8968916dd24c59c193854ab56dc13d5a69d2f589ae89b257f92794d092a3da75c2e20b1c83c902966db15527346dc4072a38d16a21ed095cde364e SHA512 bd0f87debd8bd8947f386aaec9fc843148e3cdfbffc28ba499526c4053732becea606061deae6799da0cf52458fba840ba0ff8e4a034a671fa876b8a0ff25677 |
29 |
|
30 |
diff --git a/net-analyzer/wireshark/files/wireshark-2.1.0-sse4_2-r1.patch b/net-analyzer/wireshark/files/wireshark-2.1.0-sse4_2-r1.patch |
31 |
deleted file mode 100644 |
32 |
index 8efe5aff6c5..00000000000 |
33 |
--- a/net-analyzer/wireshark/files/wireshark-2.1.0-sse4_2-r1.patch |
34 |
+++ /dev/null |
35 |
@@ -1,21 +0,0 @@ |
36 |
---- a/configure.ac |
37 |
-+++ b/configure.ac |
38 |
-@@ -818,6 +818,7 @@ |
39 |
- AC_SUBST(PIE_CFLAGS) |
40 |
- AC_SUBST(PIE_LDFLAGS) |
41 |
- |
42 |
-+AC_ARG_ENABLE(sse4_2,[ --enable-sse4_2 Support SSE4.2 (Streaming SIMD Extensions 4.2) instructions],[ |
43 |
- WS_CFLAGS_saved="$WS_CFLAGS" |
44 |
- AC_WIRESHARK_COMPILER_FLAGS_CHECK(-msse4.2, C) |
45 |
- if test "x$can_add_to_cflags" = "xyes" |
46 |
-@@ -844,6 +845,10 @@ |
47 |
- ac_sse4_2_flag=-xarch=sse4_2 |
48 |
- fi |
49 |
- fi |
50 |
-+],[ |
51 |
-+AC_MSG_RESULT(no) |
52 |
-+]) |
53 |
-+ |
54 |
- WS_CFLAGS="$WS_CFLAGS_saved" |
55 |
- |
56 |
- if test "x$ac_sse4_2_flag" != x; then |
57 |
|
58 |
diff --git a/net-analyzer/wireshark/files/wireshark-2.4.3-libsmi.patch b/net-analyzer/wireshark/files/wireshark-2.4.3-libsmi.patch |
59 |
deleted file mode 100644 |
60 |
index 288efb7d66f..00000000000 |
61 |
--- a/net-analyzer/wireshark/files/wireshark-2.4.3-libsmi.patch |
62 |
+++ /dev/null |
63 |
@@ -1,233 +0,0 @@ |
64 |
-From 72c2e53981a204d746737d8c01c4ad3738cd4880 Mon Sep 17 00:00:00 2001 |
65 |
-From: =?utf8?q?Jo=C3=A3o=20Valverde?= <joao.valverde@×××××××××××××××.pt> |
66 |
-Date: Sun, 5 Nov 2017 12:05:43 +0000 |
67 |
-Subject: [PATCH 1/1] autotools: Use pkg-config to configure Libsmi |
68 |
-MIME-Version: 1.0 |
69 |
-Content-Type: text/plain; charset=utf8 |
70 |
-Content-Transfer-Encoding: 8bit |
71 |
- |
72 |
-Change-Id: Icecea743739aa7e1a65753f623f311514260d373 |
73 |
-Reviewed-on: https://code.wireshark.org/review/24252 |
74 |
-Petri-Dish: João Valverde <j@×××.pt> |
75 |
-Tested-by: Petri Dish Buildbot |
76 |
-Reviewed-by: João Valverde <j@×××.pt> |
77 |
---- |
78 |
- Makefile.am | 2 +- |
79 |
- configure.ac | 27 +++++++++--- |
80 |
- epan/Makefile.am | 2 +- |
81 |
- m4/libsmi.m4 | 125 ------------------------------------------------------- |
82 |
- 4 files changed, 24 insertions(+), 132 deletions(-) |
83 |
- delete mode 100644 m4/libsmi.m4 |
84 |
- |
85 |
-diff --git a/Makefile.am b/Makefile.am |
86 |
-index a2851e0..e6ed5eb 100644 |
87 |
---- a/Makefile.am |
88 |
-+++ b/Makefile.am |
89 |
-@@ -422,7 +422,7 @@ EPAN_EXTRA_LIBS = \ |
90 |
- @KRB5_LIBS@ \ |
91 |
- @LIBGCRYPT_LIBS@ \ |
92 |
- @LIBGNUTLS_LIBS@ \ |
93 |
-- @LIBSMI_LDFLAGS@ |
94 |
-+ @LIBSMI_LIBS@ |
95 |
- |
96 |
- # Libraries and plugin flags with which to link wireshark. |
97 |
- # |
98 |
-diff --git a/configure.ac b/configure.ac |
99 |
-index 3b3475b..326561c 100644 |
100 |
---- a/configure.ac |
101 |
-+++ b/configure.ac |
102 |
-@@ -432,10 +432,6 @@ linux*) |
103 |
- fi |
104 |
- esac |
105 |
- |
106 |
--# libsmi |
107 |
--# FIXME: currently the path argument to with-libsmi is being ignored |
108 |
--AX_LIBSMI |
109 |
-- |
110 |
- # |
111 |
- # Check if we should build the Wireshark User's Guide |
112 |
- # |
113 |
-@@ -2427,6 +2423,27 @@ else |
114 |
- fi |
115 |
- AM_CONDITIONAL(HAVE_LIBXML2, test "x$have_libxml2" = "xyes") |
116 |
- |
117 |
-+# |
118 |
-+# Libsmi check |
119 |
-+# |
120 |
-+AC_ARG_WITH(libsmi, |
121 |
-+ AC_HELP_STRING([--with-libsmi=@<:@yes/no@:>@], |
122 |
-+ [use libsmi MIB/PIB library @<:@default=yes, if available@:>@]), |
123 |
-+ [], [with_libsmi="if_available"]) |
124 |
-+ |
125 |
-+have_libsmi=no |
126 |
-+if test "x$with_libsmi" != "xno"; then |
127 |
-+ PKG_CHECK_MODULES(LIBSMI, libsmi, |
128 |
-+ [have_libsmi=yes |
129 |
-+ AC_DEFINE(HAVE_LIBSMI, 1, [Define if you have libsmi]) |
130 |
-+ ], |
131 |
-+ [if test "x$with_libsmi" = "xyes"; then |
132 |
-+ # Error out if the user explicitly requested libsmi |
133 |
-+ AC_MSG_ERROR([Libsmi was requested, but is not installed for development]) |
134 |
-+ fi |
135 |
-+ ] |
136 |
-+ ) |
137 |
-+fi |
138 |
- |
139 |
- dnl |
140 |
- dnl check whether plugins should be enabled |
141 |
-@@ -3012,7 +3029,7 @@ echo " Use pcap library : $want_pcap" |
142 |
- echo " Use zlib library : $zlib_message" |
143 |
- echo " Use kerberos library : $krb5_message" |
144 |
- echo " Use c-ares library : $c_ares_message" |
145 |
--echo " Use SMI MIB library : $libsmi_message" |
146 |
-+echo " Use SMI MIB library : $have_libsmi" |
147 |
- echo " Use GNU gcrypt library : yes" |
148 |
- echo " Use GnuTLS library : $tls_message" |
149 |
- echo " Use POSIX capabilities library : $libcap_message" |
150 |
-diff --git a/epan/Makefile.am b/epan/Makefile.am |
151 |
-index 9f7de62..e85f97b 100644 |
152 |
---- a/epan/Makefile.am |
153 |
-+++ b/epan/Makefile.am |
154 |
-@@ -330,7 +330,7 @@ libwireshark_la_LIBADD = \ |
155 |
- @KRB5_LIBS@ \ |
156 |
- @LIBGCRYPT_LIBS@ \ |
157 |
- @LIBGNUTLS_LIBS@ \ |
158 |
-- @LIBSMI_LDFLAGS@ \ |
159 |
-+ @LIBSMI_LIBS@ \ |
160 |
- @LZ4_LIBS@ \ |
161 |
- @NGHTTP2_LIBS@ \ |
162 |
- @SNAPPY_LIBS@ \ |
163 |
-diff --git a/m4/libsmi.m4 b/m4/libsmi.m4 |
164 |
-deleted file mode 100644 |
165 |
-index d719438..0000000 |
166 |
---- a/m4/libsmi.m4 |
167 |
-+++ /dev/null |
168 |
-@@ -1,125 +0,0 @@ |
169 |
--# Configure paths for libsmi |
170 |
--# Shamelessly stolen from http://autoconf-archive.cryp.to/ax_lib_sqlite3.html |
171 |
-- |
172 |
--# Synopsis: AX_LIBSMI([minimum library version]) |
173 |
--# The default minimum library version is 2 |
174 |
-- |
175 |
--# This macro sets/substitutes the following: |
176 |
--# AC_DEFINE(HAVE_LIBSMI) |
177 |
--# AC_SUBST(LIBSMI_CFLAGS) |
178 |
--# AC_SUBST(LIBSMI_LDFLAGS) |
179 |
--# AC_SUBST(LIBSMI_VERSION) |
180 |
--# $libsmi_message is set to "yes" or "no" |
181 |
-- |
182 |
--AC_DEFUN([AX_LIBSMI], |
183 |
--[ |
184 |
-- AC_ARG_WITH([libsmi], |
185 |
-- AC_HELP_STRING( |
186 |
-- [--with-libsmi=@<:@DIR@:>@], |
187 |
-- [use libsmi MIB/PIB library @<:@default=yes@:>@, optionally specify the prefix for libsmi] |
188 |
-- ), |
189 |
-- [ |
190 |
-- if test "$withval" = "no"; then |
191 |
-- WANT_LIBSMI="no" |
192 |
-- elif test "$withval" = "yes"; then |
193 |
-- WANT_LIBSMI="yes" |
194 |
-- ac_libsmi_path="" |
195 |
-- else |
196 |
-- WANT_LIBSMI="yes" |
197 |
-- ac_libsmi_path="$withval" |
198 |
-- fi |
199 |
-- ], |
200 |
-- [WANT_LIBSMI="yes"] |
201 |
-- ) |
202 |
-- |
203 |
-- libsmi_message="no" |
204 |
-- LIBSMI_CFLAGS="" |
205 |
-- LIBSMI_LDFLAGS="" |
206 |
-- LIBSMI_VERSION="" |
207 |
-- |
208 |
-- if test "x$WANT_LIBSMI" = "xyes"; then |
209 |
-- |
210 |
-- ac_libsmi_header="smi.h" |
211 |
-- |
212 |
-- libsmi_version_req=ifelse([$1], [], [2], [$1]) |
213 |
-- |
214 |
-- AC_MSG_CHECKING([for libsmi >= $libsmi_version_req]) |
215 |
-- |
216 |
-- if test "$ac_libsmi_path" != ""; then |
217 |
-- ac_libsmi_ldflags="-L$ac_libsmi_path/lib" |
218 |
-- ac_libsmi_cflags="-I$ac_libsmi_path/include" |
219 |
-- else |
220 |
-- for ac_libsmi_path_tmp in /usr /usr/local /opt $prefix; do |
221 |
-- if test -f "$ac_libsmi_path_tmp/include/$ac_libsmi_header" \ |
222 |
-- && test -r "$ac_libsmi_path_tmp/include/$ac_libsmi_header"; then |
223 |
-- ac_libsmi_path=$ac_libsmi_path_tmp |
224 |
-- ac_libsmi_ldflags="-L$ac_libsmi_path_tmp/lib" |
225 |
-- ac_libsmi_cflags="-I$ac_libsmi_path_tmp/include" |
226 |
-- break; |
227 |
-- fi |
228 |
-- done |
229 |
-- fi |
230 |
-- |
231 |
-- ac_libsmi_ldflags="$ac_libsmi_ldflags -lsmi" |
232 |
-- |
233 |
-- saved_CFLAGS="$CFLAGS" |
234 |
-- CFLAGS="$CFLAGS $ac_libsmi_cflags" |
235 |
-- |
236 |
-- AC_LANG_PUSH(C) |
237 |
-- AC_COMPILE_IFELSE( |
238 |
-- [ |
239 |
-- AC_LANG_PROGRAM([[@%:@include <smi.h>]], |
240 |
-- [[ |
241 |
-- int current, revision, age, n; |
242 |
-- const int required = $libsmi_version_req; |
243 |
-- if (smiInit("")) |
244 |
-- exit(1); |
245 |
-- if (strcmp(SMI_LIBRARY_VERSION, smi_library_version)) |
246 |
-- exit(2); |
247 |
-- n = sscanf(smi_library_version, "%d:%d:%d", ¤t, &revision, &age); |
248 |
-- if (n != 3) |
249 |
-- exit(3); |
250 |
-- if (required < current - age || required > current) |
251 |
-- exit(4); |
252 |
-- ]] |
253 |
-- ) |
254 |
-- ], |
255 |
-- [ |
256 |
-- AC_MSG_RESULT([yes]) |
257 |
-- libsmi_message="yes" |
258 |
-- ], |
259 |
-- [ |
260 |
-- AC_MSG_RESULT([not found]) |
261 |
-- libsmi_message="no" |
262 |
-- ] |
263 |
-- ) |
264 |
-- AC_LANG_POP([C]) |
265 |
-- |
266 |
-- CFLAGS="$saved_CFLAGS" |
267 |
-- |
268 |
-- if test "$libsmi_message" = "yes"; then |
269 |
-- |
270 |
-- LIBSMI_CFLAGS="$ac_libsmi_cflags" |
271 |
-- LIBSMI_LDFLAGS="$ac_libsmi_ldflags" |
272 |
-- |
273 |
-- ac_libsmi_header_path="$ac_libsmi_path/include/$ac_libsmi_header" |
274 |
-- |
275 |
-- dnl Retrieve libsmi release version |
276 |
-- if test "x$ac_libsmi_header_path" != "x"; then |
277 |
-- ac_libsmi_version=`cat $ac_libsmi_header_path \ |
278 |
-- | grep '#define.*SMI_LIBRARY_VERSION.*\"' | sed -e 's/.* "//' \ |
279 |
-- | sed -e 's/"//'` |
280 |
-- if test $ac_libsmi_version != ""; then |
281 |
-- LIBSMI_VERSION=$ac_libsmi_version |
282 |
-- else |
283 |
-- AC_MSG_WARN([Can not find SMI_LIBRARY_VERSION macro in smi.h header to retrieve libsmi version!]) |
284 |
-- fi |
285 |
-- fi |
286 |
-- |
287 |
-- AC_SUBST(LIBSMI_CFLAGS) |
288 |
-- AC_SUBST(LIBSMI_LDFLAGS) |
289 |
-- AC_SUBST(LIBSMI_VERSION) |
290 |
-- AC_DEFINE(HAVE_LIBSMI, 1, [Define to 1 if you have the `smi' library (-lsmi).]) |
291 |
-- fi |
292 |
-- fi |
293 |
--]) |
294 |
--- |
295 |
-2.7.4 |
296 |
- |
297 |
|
298 |
diff --git a/net-analyzer/wireshark/metadata.xml b/net-analyzer/wireshark/metadata.xml |
299 |
index 3aea5c6b5d5..754f3279fc5 100644 |
300 |
--- a/net-analyzer/wireshark/metadata.xml |
301 |
+++ b/net-analyzer/wireshark/metadata.xml |
302 |
@@ -34,11 +34,9 @@ be exported to XML, PostScript®, CSV, or plain text. |
303 |
<flag name="captype">Install captype, to print the file types of capture files</flag> |
304 |
<flag name="ciscodump">Install ciscodump, extcap interface to capture from a remote Cisco router</flag> |
305 |
<flag name="dftest">Install dftest, to display filter byte-code, for debugging dfilter routines</flag> |
306 |
-<flag name="doc-pdf">Build documentation in pdf format (US and a4 paper sizes)</flag> |
307 |
<flag name="dpauxmon">Install dpauxmon, an external capture interface (extcap) that captures DisplayPort AUX channel data from linux kernel drivers</flag> |
308 |
<flag name="dumpcap">Install dumpcap, to dump network traffic from inside wireshark</flag> |
309 |
<flag name="editcap">Install editcap, to edit and/or translate the format of capture files</flag> |
310 |
-<flag name="libssh">Use <pkg>net-libs/libssh</pkg> (for sshdump)</flag> |
311 |
<flag name="libxml2">Use <pkg>dev-libs/libxml2</pkg> for handling XML configuration in dissectors</flag> |
312 |
<flag name="lz4">Use <pkg>app-arch/lz4</pkg> for compression/decompression</flag> |
313 |
<flag name="maxminddb">Use <pkg>dev-libs/libmaxminddb</pkg> for IP address geolocation</flag> |
314 |
|
315 |
diff --git a/net-analyzer/wireshark/wireshark-2.4.5.ebuild b/net-analyzer/wireshark/wireshark-2.4.5.ebuild |
316 |
deleted file mode 100644 |
317 |
index c1819bafbf8..00000000000 |
318 |
--- a/net-analyzer/wireshark/wireshark-2.4.5.ebuild |
319 |
+++ /dev/null |
320 |
@@ -1,291 +0,0 @@ |
321 |
-# Copyright 1999-2018 Gentoo Foundation |
322 |
-# Distributed under the terms of the GNU General Public License v2 |
323 |
- |
324 |
-EAPI=6 |
325 |
-inherit autotools eutils fcaps flag-o-matic gnome2-utils multilib qmake-utils user xdg-utils |
326 |
- |
327 |
-DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
328 |
-HOMEPAGE="https://www.wireshark.org/" |
329 |
-SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.xz" |
330 |
- |
331 |
-LICENSE="GPL-2" |
332 |
-SLOT="0/${PV}" |
333 |
-KEYWORDS="~arm64 ~x86-fbsd" |
334 |
-IUSE=" |
335 |
- adns androiddump +capinfos +caps +captype ciscodump cpu_flags_x86_sse4_2 |
336 |
- +dftest doc doc-pdf +dumpcap +editcap geoip gtk kerberos libssh libxml2 lua |
337 |
- lz4 +mergecap +netlink nghttp2 +pcap portaudio +qt5 +randpkt +randpktdump |
338 |
- +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl +text2pcap |
339 |
- tfshark +tshark +udpdump zlib |
340 |
-" |
341 |
-REQUIRED_USE=" |
342 |
- ciscodump? ( libssh ) |
343 |
- sshdump? ( libssh ) |
344 |
-" |
345 |
- |
346 |
-S=${WORKDIR}/${P/_/} |
347 |
- |
348 |
-CDEPEND=" |
349 |
- >=dev-libs/glib-2.14:2 |
350 |
- dev-libs/libgcrypt:0 |
351 |
- netlink? ( dev-libs/libnl:3 ) |
352 |
- adns? ( >=net-dns/c-ares-1.5 ) |
353 |
- caps? ( sys-libs/libcap ) |
354 |
- geoip? ( dev-libs/geoip ) |
355 |
- gtk? ( |
356 |
- x11-libs/gdk-pixbuf |
357 |
- x11-libs/gtk+:3 |
358 |
- x11-libs/pango |
359 |
- x11-misc/xdg-utils |
360 |
- ) |
361 |
- kerberos? ( virtual/krb5 ) |
362 |
- libssh? ( >=net-libs/libssh-0.6 ) |
363 |
- libxml2? ( dev-libs/libxml2 ) |
364 |
- lua? ( >=dev-lang/lua-5.1:* ) |
365 |
- lz4? ( app-arch/lz4 ) |
366 |
- nghttp2? ( net-libs/nghttp2 ) |
367 |
- pcap? ( net-libs/libpcap ) |
368 |
- portaudio? ( media-libs/portaudio ) |
369 |
- qt5? ( |
370 |
- dev-qt/qtcore:5 |
371 |
- dev-qt/qtgui:5 |
372 |
- dev-qt/qtmultimedia:5 |
373 |
- dev-qt/qtprintsupport:5 |
374 |
- dev-qt/qtwidgets:5 |
375 |
- >=media-libs/speex-1.2.0 |
376 |
- media-libs/speexdsp |
377 |
- x11-misc/xdg-utils |
378 |
- ) |
379 |
- sbc? ( media-libs/sbc ) |
380 |
- smi? ( net-libs/libsmi ) |
381 |
- snappy? ( app-arch/snappy ) |
382 |
- spandsp? ( media-libs/spandsp ) |
383 |
- ssl? ( net-libs/gnutls:= ) |
384 |
- zlib? ( sys-libs/zlib ) |
385 |
-" |
386 |
-# We need perl for `pod2html`. The rest of the perl stuff is to block older |
387 |
-# and broken installs. #455122 |
388 |
-DEPEND=" |
389 |
- ${CDEPEND} |
390 |
- dev-lang/perl |
391 |
- !<virtual/perl-Pod-Simple-3.170 |
392 |
- !<perl-core/Pod-Simple-3.170 |
393 |
- doc? ( |
394 |
- app-doc/doxygen |
395 |
- app-text/asciidoc |
396 |
- dev-libs/libxml2 |
397 |
- dev-libs/libxslt |
398 |
- doc-pdf? ( dev-java/fop ) |
399 |
- www-client/lynx |
400 |
- ) |
401 |
- qt5? ( |
402 |
- dev-qt/linguist-tools:5 |
403 |
- ) |
404 |
- sys-devel/bison |
405 |
- sys-devel/flex |
406 |
- virtual/pkgconfig |
407 |
-" |
408 |
-RDEPEND=" |
409 |
- ${CDEPEND} |
410 |
- gtk? ( virtual/freedesktop-icon-theme ) |
411 |
- qt5? ( virtual/freedesktop-icon-theme ) |
412 |
- selinux? ( sec-policy/selinux-wireshark ) |
413 |
-" |
414 |
-PATCHES=( |
415 |
- "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch |
416 |
- "${FILESDIR}"/${PN}-2.1.0-sse4_2-r1.patch |
417 |
- "${FILESDIR}"/${PN}-2.4-androiddump.patch |
418 |
- "${FILESDIR}"/${PN}-99999999-androiddump.patch |
419 |
- "${FILESDIR}"/${PN}-2.4.3-libsmi.patch |
420 |
-) |
421 |
- |
422 |
-pkg_setup() { |
423 |
- enewgroup wireshark |
424 |
-} |
425 |
- |
426 |
-src_prepare() { |
427 |
- default |
428 |
- |
429 |
- eautoreconf |
430 |
-} |
431 |
- |
432 |
-src_configure() { |
433 |
- local myconf |
434 |
- |
435 |
- # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
436 |
- # --with-ssl to ./configure. (Mimics code from acinclude.m4). |
437 |
- if use kerberos; then |
438 |
- case $(krb5-config --libs) in |
439 |
- *-lcrypto*) |
440 |
- ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." |
441 |
- ewarn "Note there are annoying license incompatibilities between the OpenSSL" |
442 |
- ewarn "license and the GPL, so do your check before distributing such package." |
443 |
- myconf+=( "--with-ssl" ) |
444 |
- ;; |
445 |
- esac |
446 |
- fi |
447 |
- |
448 |
- # Enable wireshark binary with any supported GUI toolkit (bug #473188) |
449 |
- if use gtk || use qt5; then |
450 |
- myconf+=( "--enable-wireshark" ) |
451 |
- else |
452 |
- myconf+=( "--disable-wireshark" ) |
453 |
- fi |
454 |
- |
455 |
- if ! use qt5; then |
456 |
- myconf+=( "--with-qt=no" ) |
457 |
- fi |
458 |
- |
459 |
- if use qt5; then |
460 |
- export QT_MIN_VERSION=5.3.0 |
461 |
- append-cxxflags -fPIC -DPIC |
462 |
- fi |
463 |
- |
464 |
- # Hack around inability to disable doxygen/fop doc generation |
465 |
- use doc || export ac_cv_prog_HAVE_DOXYGEN=false |
466 |
- use doc-pdf || export ac_cv_prog_HAVE_FOP=false |
467 |
- |
468 |
- econf \ |
469 |
- $(use androiddump && use pcap && echo --enable-androiddump-use-libpcap=yes) \ |
470 |
- $(use dumpcap && use_with pcap dumpcap-group wireshark) \ |
471 |
- $(use_enable androiddump) \ |
472 |
- $(use_enable capinfos) \ |
473 |
- $(use_enable captype) \ |
474 |
- $(use_enable ciscodump) \ |
475 |
- $(use_enable dftest) \ |
476 |
- $(use_enable dumpcap) \ |
477 |
- $(use_enable editcap) \ |
478 |
- $(use_enable mergecap) \ |
479 |
- $(use_enable randpkt) \ |
480 |
- $(use_enable randpktdump) \ |
481 |
- $(use_enable reordercap) \ |
482 |
- $(use_enable sharkd) \ |
483 |
- $(use_enable sshdump) \ |
484 |
- $(use_enable text2pcap) \ |
485 |
- $(use_enable tfshark) \ |
486 |
- $(use_enable tshark) \ |
487 |
- $(use_enable udpdump) \ |
488 |
- $(use_with adns c-ares) \ |
489 |
- $(use_with caps libcap) \ |
490 |
- $(use_with geoip) \ |
491 |
- $(use_with gtk gtk 3) \ |
492 |
- $(use_with kerberos krb5) \ |
493 |
- $(use_with libssh) \ |
494 |
- $(use_with libxml2) \ |
495 |
- $(use_with lua) \ |
496 |
- $(use_with lz4) \ |
497 |
- $(use_with nghttp2) \ |
498 |
- $(use_with pcap) \ |
499 |
- $(use_with portaudio) \ |
500 |
- $(use_with sbc) \ |
501 |
- $(use_with smi libsmi) \ |
502 |
- $(use_with snappy) \ |
503 |
- $(use_with spandsp) \ |
504 |
- $(use_with ssl gnutls) \ |
505 |
- $(use_with zlib) \ |
506 |
- $(usex cpu_flags_x86_sse4_2 --enable-sse4_2 '') \ |
507 |
- $(usex netlink --with-libnl=3 --without-libnl) \ |
508 |
- $(usex qt5 --with-qt=5 '') \ |
509 |
- $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '') \ |
510 |
- $(usex qt5 MOC=$(qt5_get_bindir)/moc '') \ |
511 |
- $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') \ |
512 |
- $(usex qt5 UIC=$(qt5_get_bindir)/uic '') \ |
513 |
- --disable-profile-build \ |
514 |
- --disable-warnings-as-errors \ |
515 |
- --sysconfdir="${EPREFIX}"/etc/wireshark \ |
516 |
- ${myconf[@]} |
517 |
-} |
518 |
- |
519 |
-src_compile() { |
520 |
- default |
521 |
- |
522 |
- if use doc; then |
523 |
- emake -j1 -C docbook |
524 |
- if use doc-pdf; then |
525 |
- addpredict "/root/.java" |
526 |
- emake -C docbook all-pdf |
527 |
- fi |
528 |
- fi |
529 |
-} |
530 |
- |
531 |
-src_install() { |
532 |
- default |
533 |
- |
534 |
- # FAQ is not required as is installed from help/faq.txt |
535 |
- dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \ |
536 |
- doc/{randpkt.txt,README*} |
537 |
- |
538 |
- if use doc; then |
539 |
- docinto /usr/share/doc/${PF}/html |
540 |
- dodoc -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}} |
541 |
- if use doc-pdf; then |
542 |
- docinto /usr/share/doc/${PF}/pdf/ |
543 |
- dodoc docbook/{developer,user}-guide-{a4,us}.pdf docbook/release-notes.pdf |
544 |
- fi |
545 |
- fi |
546 |
- |
547 |
- # install headers |
548 |
- local wsheader |
549 |
- for wsheader in \ |
550 |
- config.h \ |
551 |
- epan/*.h \ |
552 |
- epan/crypt/*.h \ |
553 |
- epan/dfilter/*.h \ |
554 |
- epan/dissectors/*.h \ |
555 |
- epan/ftypes/*.h \ |
556 |
- epan/wmem/*.h \ |
557 |
- register.h \ |
558 |
- wiretap/*.h \ |
559 |
- ws_diag_control.h \ |
560 |
- ws_symbol_export.h \ |
561 |
- wsutil/*.h |
562 |
- do |
563 |
- insinto /usr/include/wireshark/$( dirname ${wsheader} ) |
564 |
- doins ${wsheader} |
565 |
- done |
566 |
- |
567 |
- #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/ |
568 |
- insinto /usr/include/wiretap |
569 |
- doins wiretap/wtap.h |
570 |
- |
571 |
- if use gtk || use qt5; then |
572 |
- local c d |
573 |
- for c in hi lo; do |
574 |
- for d in 16 32 48; do |
575 |
- insinto /usr/share/icons/${c}color/${d}x${d}/apps |
576 |
- newins image/${c}${d}-app-wireshark.png wireshark.png |
577 |
- done |
578 |
- done |
579 |
- for d in 16 24 32 48 64 128 256 ; do |
580 |
- insinto /usr/share/icons/hicolor/${d}x${d}/mimetypes |
581 |
- newins image/WiresharkDoc-${d}.png application-vnd.tcpdump.pcap.png |
582 |
- done |
583 |
- fi |
584 |
- |
585 |
- prune_libtool_files |
586 |
-} |
587 |
- |
588 |
-pkg_postinst() { |
589 |
- gnome2_icon_cache_update |
590 |
- xdg_desktop_database_update |
591 |
- xdg_mimeinfo_database_update |
592 |
- |
593 |
- # Add group for users allowed to sniff. |
594 |
- enewgroup wireshark |
595 |
- |
596 |
- if use dumpcap && use pcap; then |
597 |
- fcaps -o 0 -g wireshark -m 4710 -M 0710 \ |
598 |
- cap_dac_read_search,cap_net_raw,cap_net_admin \ |
599 |
- "${EROOT}"/usr/bin/dumpcap |
600 |
- fi |
601 |
- |
602 |
- ewarn "NOTE: To capture traffic with wireshark as normal user you have to" |
603 |
- ewarn "add yourself to the wireshark group. This security measure ensures" |
604 |
- ewarn "that only trusted users are allowed to sniff your traffic." |
605 |
-} |
606 |
- |
607 |
-pkg_postrm() { |
608 |
- gnome2_icon_cache_update |
609 |
- xdg_desktop_database_update |
610 |
- xdg_mimeinfo_database_update |
611 |
-} |