1 |
commit: 18636ed86aaf2f10466ab6fff726b6bd9d833e38 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 30 01:15:16 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 30 04:31:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18636ed8 |
7 |
|
8 |
net-analyzer/wireshark: bump to 3.4.3 |
9 |
|
10 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/wireshark/Manifest | 1 + |
14 |
net-analyzer/wireshark/wireshark-3.4.3.ebuild | 273 ++++++++++++++++++++++++++ |
15 |
2 files changed, 274 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest |
18 |
index 1b280d0987c..d56babae8d6 100644 |
19 |
--- a/net-analyzer/wireshark/Manifest |
20 |
+++ b/net-analyzer/wireshark/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST wireshark-3.4.2.tar.xz 32465900 BLAKE2B dab7e871c798a6e0f03f45eaa49ba5cbabc18afabd6a5675a3241e4f1e6d86ef21b56b4cee5d561da2f2ec2b274ac6c5a52ed7b8ad50cbf02949a3a7f68d4f09 SHA512 38dc62d306dafe1a25db16ca28e1f4181a83673700a0b4c6dd98c8cb27df51ad0c6414db0370c443250aeb2521eceefb183178fe7d23a11b697cbf3f5b06f53a |
23 |
+DIST wireshark-3.4.3.tar.xz 32287304 BLAKE2B 076d681c5f980ba6a0f25076c4631a119fb72d2b59a0cd70062d3a4c997c8959162157e46a6f59b5474c07263c84e0e660f1fa33f9339cc6a1141425d394cde2 SHA512 6cfea9432cd6fcecbfc551e059ca60a0c38084074bf130b4cc5378aac2221c1233e2ddafa1ffd6bc6b76297c2303b931dadf6ec518f35595caf5229af4d93859 |
24 |
|
25 |
diff --git a/net-analyzer/wireshark/wireshark-3.4.3.ebuild b/net-analyzer/wireshark/wireshark-3.4.3.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..08c989bf5fc |
28 |
--- /dev/null |
29 |
+++ b/net-analyzer/wireshark/wireshark-3.4.3.ebuild |
30 |
@@ -0,0 +1,273 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+LUA_COMPAT=( lua5-{1..2} ) |
37 |
+PYTHON_COMPAT=( python3_{6..9} ) |
38 |
+ |
39 |
+inherit fcaps flag-o-matic lua-single python-any-r1 qmake-utils xdg-utils cmake |
40 |
+ |
41 |
+DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
42 |
+HOMEPAGE="https://www.wireshark.org/" |
43 |
+SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz" |
44 |
+S="${WORKDIR}/${P/_/}" |
45 |
+ |
46 |
+LICENSE="GPL-2" |
47 |
+SLOT="0/${PV}" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~x86" |
49 |
+IUSE=" |
50 |
+ androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon |
51 |
+ +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb |
52 |
+ +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt |
53 |
+ +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl |
54 |
+ sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd |
55 |
+" |
56 |
+ |
57 |
+CDEPEND=" |
58 |
+ acct-group/pcap |
59 |
+ >=dev-libs/glib-2.32:2 |
60 |
+ >=net-dns/c-ares-1.5 |
61 |
+ dev-libs/libgcrypt:0 |
62 |
+ bcg729? ( media-libs/bcg729 ) |
63 |
+ brotli? ( app-arch/brotli ) |
64 |
+ ciscodump? ( >=net-libs/libssh-0.6 ) |
65 |
+ filecaps? ( sys-libs/libcap ) |
66 |
+ http2? ( net-libs/nghttp2 ) |
67 |
+ ilbc? ( media-libs/libilbc ) |
68 |
+ kerberos? ( virtual/krb5 ) |
69 |
+ libxml2? ( dev-libs/libxml2 ) |
70 |
+ lua? ( ${LUA_DEPS} ) |
71 |
+ lz4? ( app-arch/lz4 ) |
72 |
+ maxminddb? ( dev-libs/libmaxminddb ) |
73 |
+ minizip? ( sys-libs/zlib[minizip] ) |
74 |
+ netlink? ( dev-libs/libnl:3 ) |
75 |
+ opus? ( media-libs/opus ) |
76 |
+ pcap? ( net-libs/libpcap ) |
77 |
+ qt5? ( |
78 |
+ dev-qt/qtcore:5 |
79 |
+ dev-qt/qtgui:5 |
80 |
+ dev-qt/qtmultimedia:5 |
81 |
+ dev-qt/qtprintsupport:5 |
82 |
+ dev-qt/qtwidgets:5 |
83 |
+ x11-misc/xdg-utils |
84 |
+ ) |
85 |
+ sbc? ( media-libs/sbc ) |
86 |
+ sdjournal? ( sys-apps/systemd ) |
87 |
+ smi? ( net-libs/libsmi ) |
88 |
+ snappy? ( app-arch/snappy ) |
89 |
+ spandsp? ( media-libs/spandsp ) |
90 |
+ sshdump? ( >=net-libs/libssh-0.6 ) |
91 |
+ ssl? ( net-libs/gnutls:= ) |
92 |
+ zlib? ( sys-libs/zlib ) |
93 |
+ zstd? ( app-arch/zstd ) |
94 |
+" |
95 |
+# We need perl for `pod2html`. The rest of the perl stuff is to block older |
96 |
+# and broken installs. #455122 |
97 |
+DEPEND=" |
98 |
+ ${CDEPEND} |
99 |
+ ${PYTHON_DEPS} |
100 |
+" |
101 |
+BDEPEND=" |
102 |
+ dev-lang/perl |
103 |
+ sys-devel/bison |
104 |
+ sys-devel/flex |
105 |
+ virtual/pkgconfig |
106 |
+ doc? ( |
107 |
+ app-doc/doxygen |
108 |
+ dev-ruby/asciidoctor |
109 |
+ ) |
110 |
+ qt5? ( |
111 |
+ dev-qt/linguist-tools:5 |
112 |
+ ) |
113 |
+ test? ( |
114 |
+ dev-python/pytest |
115 |
+ dev-python/pytest-xdist |
116 |
+ ) |
117 |
+" |
118 |
+RDEPEND=" |
119 |
+ ${CDEPEND} |
120 |
+ qt5? ( virtual/freedesktop-icon-theme ) |
121 |
+ selinux? ( sec-policy/selinux-wireshark ) |
122 |
+" |
123 |
+REQUIRED_USE=" |
124 |
+ lua? ( ${LUA_REQUIRED_USE} ) |
125 |
+ plugin-ifdemo? ( plugins ) |
126 |
+" |
127 |
+ |
128 |
+RESTRICT="test" |
129 |
+ |
130 |
+PATCHES=( |
131 |
+ "${FILESDIR}"/${PN}-2.6.0-redhat.patch |
132 |
+ "${FILESDIR}"/${PN}-3.4.2-cmake-lua-version.patch |
133 |
+ "${FILESDIR}"/${PN}-99999999-ui-needs-wiretap.patch |
134 |
+) |
135 |
+ |
136 |
+pkg_setup() { |
137 |
+ use lua && lua-single_pkg_setup |
138 |
+} |
139 |
+ |
140 |
+src_configure() { |
141 |
+ local mycmakeargs |
142 |
+ |
143 |
+ # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
144 |
+ # --with-ssl to ./configure. (Mimics code from acinclude.m4). |
145 |
+ if use kerberos; then |
146 |
+ case $(krb5-config --libs) in |
147 |
+ *-lcrypto*) |
148 |
+ ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." |
149 |
+ ewarn "Note there are annoying license incompatibilities between the OpenSSL" |
150 |
+ ewarn "license and the GPL, so do your check before distributing such package." |
151 |
+ mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) ) |
152 |
+ ;; |
153 |
+ esac |
154 |
+ fi |
155 |
+ |
156 |
+ if use qt5; then |
157 |
+ export QT_MIN_VERSION=5.3.0 |
158 |
+ append-cxxflags -fPIC -DPIC |
159 |
+ fi |
160 |
+ |
161 |
+ python_setup |
162 |
+ |
163 |
+ mycmakeargs+=( |
164 |
+ $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes) |
165 |
+ $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '') |
166 |
+ $(usex qt5 MOC=$(qt5_get_bindir)/moc '') |
167 |
+ $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') |
168 |
+ $(usex qt5 UIC=$(qt5_get_bindir)/uic '') |
169 |
+ -DBUILD_androiddump=$(usex androiddump) |
170 |
+ -DBUILD_capinfos=$(usex capinfos) |
171 |
+ -DBUILD_captype=$(usex captype) |
172 |
+ -DBUILD_ciscodump=$(usex ciscodump) |
173 |
+ -DBUILD_dftest=$(usex dftest) |
174 |
+ -DBUILD_dpauxmon=$(usex dpauxmon) |
175 |
+ -DBUILD_dumpcap=$(usex dumpcap) |
176 |
+ -DBUILD_editcap=$(usex editcap) |
177 |
+ -DBUILD_mergecap=$(usex mergecap) |
178 |
+ -DBUILD_mmdbresolve=$(usex maxminddb) |
179 |
+ -DBUILD_randpkt=$(usex randpkt) |
180 |
+ -DBUILD_randpktdump=$(usex randpktdump) |
181 |
+ -DBUILD_reordercap=$(usex reordercap) |
182 |
+ -DBUILD_sdjournal=$(usex sdjournal) |
183 |
+ -DBUILD_sharkd=$(usex sharkd) |
184 |
+ -DBUILD_sshdump=$(usex sshdump) |
185 |
+ -DBUILD_text2pcap=$(usex text2pcap) |
186 |
+ -DBUILD_tfshark=$(usex tfshark) |
187 |
+ -DBUILD_tshark=$(usex tshark) |
188 |
+ -DBUILD_udpdump=$(usex udpdump) |
189 |
+ -DBUILD_wireshark=$(usex qt5) |
190 |
+ -DDISABLE_WERROR=yes |
191 |
+ -DENABLE_BCG729=$(usex bcg729) |
192 |
+ -DENABLE_BROTLI=$(usex brotli) |
193 |
+ -DENABLE_CAP=$(usex filecaps caps) |
194 |
+ -DENABLE_GNUTLS=$(usex ssl) |
195 |
+ -DENABLE_ILBC=$(usex ilbc) |
196 |
+ -DENABLE_KERBEROS=$(usex kerberos) |
197 |
+ -DENABLE_LIBXML2=$(usex libxml2) |
198 |
+ -DENABLE_LTO=$(usex lto) |
199 |
+ -DENABLE_LUA=$(usex lua) |
200 |
+ -DENABLE_LZ4=$(usex lz4) |
201 |
+ -DENABLE_MINIZIP=$(usex minizip) |
202 |
+ -DENABLE_NETLINK=$(usex netlink) |
203 |
+ -DENABLE_NGHTTP2=$(usex http2) |
204 |
+ -DENABLE_OPUS=$(usex opus) |
205 |
+ -DENABLE_PCAP=$(usex pcap) |
206 |
+ -DENABLE_PLUGINS=$(usex plugins) |
207 |
+ -DENABLE_PLUGIN_IFDEMO=$(usex plugin-ifdemo) |
208 |
+ -DENABLE_SBC=$(usex sbc) |
209 |
+ -DENABLE_SMI=$(usex smi) |
210 |
+ -DENABLE_SNAPPY=$(usex snappy) |
211 |
+ -DENABLE_SPANDSP=$(usex spandsp) |
212 |
+ -DENABLE_ZLIB=$(usex zlib) |
213 |
+ -DENABLE_ZSTD=$(usex zstd) |
214 |
+ ) |
215 |
+ |
216 |
+ cmake_src_configure |
217 |
+} |
218 |
+ |
219 |
+src_test() { |
220 |
+ cmake_build test-programs |
221 |
+ |
222 |
+ myctestargs=( |
223 |
+ --disable-capture |
224 |
+ --skip-missing-programs=all |
225 |
+ --verbose |
226 |
+ ) |
227 |
+ |
228 |
+ cmake_src_test |
229 |
+} |
230 |
+ |
231 |
+src_install() { |
232 |
+ cmake_src_install |
233 |
+ |
234 |
+ # FAQ is not required as is installed from help/faq.txt |
235 |
+ dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README* |
236 |
+ |
237 |
+ # install headers |
238 |
+ insinto /usr/include/wireshark |
239 |
+ doins ws_diag_control.h ws_symbol_export.h \ |
240 |
+ "${BUILD_DIR}"/config.h "${BUILD_DIR}"/version.h |
241 |
+ |
242 |
+ local dir dirs=( |
243 |
+ epan |
244 |
+ epan/crypt |
245 |
+ epan/dfilter |
246 |
+ epan/dissectors |
247 |
+ epan/ftypes |
248 |
+ epan/wmem |
249 |
+ wiretap |
250 |
+ wsutil |
251 |
+ ) |
252 |
+ |
253 |
+ for dir in "${dirs[@]}" ; do |
254 |
+ insinto /usr/include/wireshark/${dir} |
255 |
+ doins ${dir}/*.h |
256 |
+ done |
257 |
+ |
258 |
+ #with the above this really shouldn't be needed, but things may be looking |
259 |
+ # in wiretap/ instead of wireshark/wiretap/ |
260 |
+ insinto /usr/include/wiretap |
261 |
+ doins wiretap/wtap.h |
262 |
+ |
263 |
+ if use qt5; then |
264 |
+ local s |
265 |
+ for s in 16 32 48 64 128 256 512 1024; do |
266 |
+ insinto /usr/share/icons/hicolor/${s}x${s}/apps |
267 |
+ newins image/wsicon${s}.png wireshark.png |
268 |
+ done |
269 |
+ for s in 16 24 32 48 64 128 256 ; do |
270 |
+ insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes |
271 |
+ newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png |
272 |
+ done |
273 |
+ fi |
274 |
+ |
275 |
+ if [[ -d "${ED}"/usr/share/appdata ]]; then |
276 |
+ rm -r "${ED}"/usr/share/appdata || die |
277 |
+ fi |
278 |
+} |
279 |
+ |
280 |
+pkg_postinst() { |
281 |
+ xdg_desktop_database_update |
282 |
+ xdg_icon_cache_update |
283 |
+ xdg_mimeinfo_database_update |
284 |
+ |
285 |
+ # Add group for users allowed to sniff. |
286 |
+ chgrp pcap "${EROOT}"/usr/bin/dumpcap |
287 |
+ |
288 |
+ if use dumpcap && use pcap; then |
289 |
+ fcaps -o 0 -g pcap -m 4710 -M 0710 \ |
290 |
+ cap_dac_read_search,cap_net_raw,cap_net_admin \ |
291 |
+ "${EROOT}"/usr/bin/dumpcap |
292 |
+ fi |
293 |
+ |
294 |
+ ewarn "NOTE: To capture traffic with wireshark as normal user you have to" |
295 |
+ ewarn "add yourself to the pcap group. This security measure ensures" |
296 |
+ ewarn "that only trusted users are allowed to sniff your traffic." |
297 |
+} |
298 |
+ |
299 |
+pkg_postrm() { |
300 |
+ xdg_desktop_database_update |
301 |
+ xdg_icon_cache_update |
302 |
+ xdg_mimeinfo_database_update |
303 |
+} |