1 |
commit: e2f155c1fa219f983f1681c73db817588b962cbc |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 29 06:06:33 2018 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 29 22:19:29 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2f155c1 |
7 |
|
8 |
net-analyzer/wireshark: Version 2.6.5 |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/wireshark/Manifest | 1 + |
14 |
net-analyzer/wireshark/wireshark-2.6.5.ebuild | 240 ++++++++++++++++++++++++++ |
15 |
2 files changed, 241 insertions(+) |
16 |
|
17 |
diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest |
18 |
index 01f0036a7b4..1fcf5e0930c 100644 |
19 |
--- a/net-analyzer/wireshark/Manifest |
20 |
+++ b/net-analyzer/wireshark/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST wireshark-2.4.5.tar.xz 28836740 BLAKE2B 797540daca259a2d5d7dc6e637f2b504b6d14191af4040e6b344c95db6c776b7de80c25c59c98ab84d0337cc96c7313b42c13103a3c3944768a793130deae258 SHA512 2f2c201d6b8a37dcbe03bc9affbf97d632d8e40e4fe5b3a3e79cbd5cfbeb5b9111919850546ccae355fcb042def3456438eb1c4d73f7d56d373e7898311b42f3 |
23 |
DIST wireshark-2.6.3.tar.xz 28384004 BLAKE2B f275c73173fbaf3f819c58f28859362e9c53ae50cf2649ac42c8d172362241eb00d7f43d0aead184ec67cb8da34d405124be10c5bf31226c2cb4800b8a01955b SHA512 87e5335840baa401a1064ee83e3f0ee859c059dd37a09f63f19eb5d91ad273e84f1c0e7a8fdd63fe8a7076abff5e79593827544c5796d921cf7dc7682c7c3f80 |
24 |
DIST wireshark-2.6.4.tar.xz 28218232 BLAKE2B d54d7661801667f78f0c3248f4099c77ef016222ae942dc7a5776af2c5c18f7b00305556ac84df6afd19cf3d2bd59e78365067dd9402f978ae0a7db76c1730ca SHA512 bc740548901b30f2e44c2b0933717288615fa38edc5e092607a8b12c60ecfacaa5aa7c59d7644cf29238d0d636fbe03d85559a0f2de81a3bf8ceac55fcf9ff07 |
25 |
+DIST wireshark-2.6.5.tar.xz 28390292 BLAKE2B f9847ef113b0c63e739be305603b42c5112da2e94b3110b9b104325af97801bd2b3d9d89cd334b59d460433520069cc2ba726e96aa9f22af112a28a653b9e29c SHA512 fed2d08bb0ba06496c22a5d45946faf2ff4ca19c59faf758c668c583193faeec3c4379b64750478469fede91562891e9b6991591a09a3da8d2193cb64718d02f |
26 |
|
27 |
diff --git a/net-analyzer/wireshark/wireshark-2.6.5.ebuild b/net-analyzer/wireshark/wireshark-2.6.5.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..3850eda718f |
30 |
--- /dev/null |
31 |
+++ b/net-analyzer/wireshark/wireshark-2.6.5.ebuild |
32 |
@@ -0,0 +1,240 @@ |
33 |
+# Copyright 1999-2018 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+inherit cmake-utils eutils fcaps flag-o-matic gnome2-utils ltprune multilib qmake-utils user xdg-utils |
38 |
+ |
39 |
+DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
40 |
+HOMEPAGE="https://www.wireshark.org/" |
41 |
+SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.xz" |
42 |
+ |
43 |
+LICENSE="GPL-2" |
44 |
+SLOT="0/${PV}" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc64 ~x86" |
46 |
+IUSE=" |
47 |
+ adns androiddump bcg729 +capinfos +captype ciscodump +dftest doc |
48 |
+ +dumpcap +editcap gtk kerberos libxml2 lua lz4 maxminddb +mergecap +netlink |
49 |
+ nghttp2 +pcap portaudio +qt5 +randpkt +randpktdump +reordercap sbc selinux |
50 |
+ +sharkd smi snappy spandsp sshdump ssl +text2pcap tfshark +tshark +udpdump |
51 |
+ zlib |
52 |
+" |
53 |
+ |
54 |
+S=${WORKDIR}/${P/_/} |
55 |
+ |
56 |
+CDEPEND=" |
57 |
+ >=dev-libs/glib-2.14:2 |
58 |
+ dev-libs/libgcrypt:0 |
59 |
+ netlink? ( dev-libs/libnl:3 ) |
60 |
+ adns? ( >=net-dns/c-ares-1.5 ) |
61 |
+ bcg729? ( media-libs/bcg729 ) |
62 |
+ filecaps? ( sys-libs/libcap ) |
63 |
+ gtk? ( |
64 |
+ x11-libs/gdk-pixbuf |
65 |
+ x11-libs/gtk+:3 |
66 |
+ x11-libs/pango |
67 |
+ x11-misc/xdg-utils |
68 |
+ ) |
69 |
+ kerberos? ( virtual/krb5 ) |
70 |
+ sshdump? ( >=net-libs/libssh-0.6 ) |
71 |
+ ciscodump? ( >=net-libs/libssh-0.6 ) |
72 |
+ libxml2? ( dev-libs/libxml2 ) |
73 |
+ lua? ( >=dev-lang/lua-5.1:* ) |
74 |
+ lz4? ( app-arch/lz4 ) |
75 |
+ maxminddb? ( dev-libs/libmaxminddb ) |
76 |
+ nghttp2? ( net-libs/nghttp2 ) |
77 |
+ pcap? ( net-libs/libpcap ) |
78 |
+ portaudio? ( media-libs/portaudio ) |
79 |
+ qt5? ( |
80 |
+ dev-qt/qtcore:5 |
81 |
+ dev-qt/qtgui:5 |
82 |
+ dev-qt/qtmultimedia:5 |
83 |
+ dev-qt/qtprintsupport:5 |
84 |
+ dev-qt/qtwidgets:5 |
85 |
+ x11-misc/xdg-utils |
86 |
+ ) |
87 |
+ sbc? ( media-libs/sbc ) |
88 |
+ smi? ( net-libs/libsmi ) |
89 |
+ snappy? ( app-arch/snappy ) |
90 |
+ spandsp? ( media-libs/spandsp ) |
91 |
+ ssl? ( net-libs/gnutls:= ) |
92 |
+ zlib? ( sys-libs/zlib ) |
93 |
+" |
94 |
+# We need perl for `pod2html`. The rest of the perl stuff is to block older |
95 |
+# and broken installs. #455122 |
96 |
+DEPEND=" |
97 |
+ ${CDEPEND} |
98 |
+ dev-lang/perl |
99 |
+ !<virtual/perl-Pod-Simple-3.170 |
100 |
+ !<perl-core/Pod-Simple-3.170 |
101 |
+ doc? ( |
102 |
+ app-doc/doxygen |
103 |
+ dev-ruby/asciidoctor |
104 |
+ ) |
105 |
+ qt5? ( |
106 |
+ dev-qt/linguist-tools:5 |
107 |
+ ) |
108 |
+ sys-devel/bison |
109 |
+ sys-devel/flex |
110 |
+ virtual/pkgconfig |
111 |
+" |
112 |
+RDEPEND=" |
113 |
+ ${CDEPEND} |
114 |
+ gtk? ( virtual/freedesktop-icon-theme ) |
115 |
+ qt5? ( virtual/freedesktop-icon-theme ) |
116 |
+ selinux? ( sec-policy/selinux-wireshark ) |
117 |
+" |
118 |
+PATCHES=( |
119 |
+ "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch |
120 |
+ "${FILESDIR}"/${PN}-2.4-androiddump.patch |
121 |
+ "${FILESDIR}"/${PN}-2.6.0-androiddump-wsutil.patch |
122 |
+ "${FILESDIR}"/${PN}-2.6.0-redhat.patch |
123 |
+ "${FILESDIR}"/${PN}-2.6.2-qtsvg.patch |
124 |
+ "${FILESDIR}"/${PN}-99999999-androiddump.patch |
125 |
+) |
126 |
+ |
127 |
+pkg_setup() { |
128 |
+ enewgroup wireshark |
129 |
+} |
130 |
+ |
131 |
+src_configure() { |
132 |
+ local mycmakeargs |
133 |
+ |
134 |
+ # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
135 |
+ # --with-ssl to ./configure. (Mimics code from acinclude.m4). |
136 |
+ if use kerberos; then |
137 |
+ case $(krb5-config --libs) in |
138 |
+ *-lcrypto*) |
139 |
+ ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." |
140 |
+ ewarn "Note there are annoying license incompatibilities between the OpenSSL" |
141 |
+ ewarn "license and the GPL, so do your check before distributing such package." |
142 |
+ mycmakeargs+=( -DENABLE_GNUTLS=$(usex ssl) ) |
143 |
+ ;; |
144 |
+ esac |
145 |
+ fi |
146 |
+ |
147 |
+ if use qt5; then |
148 |
+ export QT_MIN_VERSION=5.3.0 |
149 |
+ append-cxxflags -fPIC -DPIC |
150 |
+ fi |
151 |
+ |
152 |
+ mycmakeargs+=( |
153 |
+ $(use androiddump && use pcap && echo -DEXTCAP_ANDROIDDUMP_LIBPCAP=yes) |
154 |
+ $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '') |
155 |
+ $(usex qt5 MOC=$(qt5_get_bindir)/moc '') |
156 |
+ $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') |
157 |
+ $(usex qt5 UIC=$(qt5_get_bindir)/uic '') |
158 |
+ -DBUILD_androiddump=$(usex androiddump) |
159 |
+ -DBUILD_capinfos=$(usex capinfos) |
160 |
+ -DBUILD_captype=$(usex captype) |
161 |
+ -DBUILD_ciscodump=$(usex ciscodump) |
162 |
+ -DBUILD_dftest=$(usex dftest) |
163 |
+ -DBUILD_dumpcap=$(usex dumpcap) |
164 |
+ -DBUILD_editcap=$(usex editcap) |
165 |
+ -DBUILD_mergecap=$(usex mergecap) |
166 |
+ -DBUILD_mmdbresolve=$(usex maxminddb) |
167 |
+ -DBUILD_randpkt=$(usex randpkt) |
168 |
+ -DBUILD_randpktdump=$(usex randpktdump) |
169 |
+ -DBUILD_reordercap=$(usex reordercap) |
170 |
+ -DBUILD_sharkd=$(usex sharkd) |
171 |
+ -DBUILD_sshdump=$(usex sshdump) |
172 |
+ -DBUILD_text2pcap=$(usex text2pcap) |
173 |
+ -DBUILD_tfshark=$(usex tfshark) |
174 |
+ -DBUILD_tshark=$(usex tshark) |
175 |
+ -DBUILD_udpdump=$(usex udpdump) |
176 |
+ -DBUILD_wireshark=$(usex qt5) |
177 |
+ -DBUILD_wireshark_gtk=$(usex gtk) |
178 |
+ -DDISABLE_WERROR=yes |
179 |
+ -DENABLE_BCG729=$(usex bcg729) |
180 |
+ -DENABLE_CAP=no |
181 |
+ -DENABLE_CARES=$(usex adns) |
182 |
+ -DENABLE_GNUTLS=$(usex ssl) |
183 |
+ -DENABLE_KERBEROS=$(usex kerberos) |
184 |
+ -DENABLE_LIBXML2=$(usex libxml2) |
185 |
+ -DENABLE_LUA=$(usex lua) |
186 |
+ -DENABLE_LZ4=$(usex lz4) |
187 |
+ -DENABLE_NETLINK=$(usex netlink) |
188 |
+ -DENABLE_NGHTTP2=$(usex nghttp2) |
189 |
+ -DENABLE_PCAP=$(usex pcap) |
190 |
+ -DENABLE_PORTAUDIO=$(usex portaudio) |
191 |
+ -DENABLE_SBC=$(usex sbc) |
192 |
+ -DENABLE_SMI=$(usex smi) |
193 |
+ -DENABLE_SNAPPY=$(usex snappy) |
194 |
+ -DENABLE_SPANDSP=$(usex spandsp) |
195 |
+ -DENABLE_ZLIB=$(usex zlib) |
196 |
+ ) |
197 |
+ |
198 |
+ cmake-utils_src_configure |
199 |
+} |
200 |
+ |
201 |
+src_install() { |
202 |
+ cmake-utils_src_install |
203 |
+ |
204 |
+ # FAQ is not required as is installed from help/faq.txt |
205 |
+ dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README* |
206 |
+ |
207 |
+ # install headers |
208 |
+ insinto /usr/include/wireshark |
209 |
+ doins ws_diag_control.h ws_symbol_export.h \ |
210 |
+ "${BUILD_DIR}"/config.h "${BUILD_DIR}"/version.h |
211 |
+ |
212 |
+ local dir dirs=( |
213 |
+ epan |
214 |
+ epan/crypt |
215 |
+ epan/dfilter |
216 |
+ epan/dissectors |
217 |
+ epan/ftypes |
218 |
+ epan/wmem |
219 |
+ wiretap |
220 |
+ wsutil |
221 |
+ ) |
222 |
+ for dir in "${dirs[@]}" |
223 |
+ do |
224 |
+ insinto /usr/include/wireshark/${dir} |
225 |
+ doins ${dir}/*.h |
226 |
+ done |
227 |
+ |
228 |
+ #with the above this really shouldn't be needed, but things may be looking |
229 |
+ # in wiretap/ instead of wireshark/wiretap/ |
230 |
+ insinto /usr/include/wiretap |
231 |
+ doins wiretap/wtap.h |
232 |
+ |
233 |
+ if use gtk || use qt5; then |
234 |
+ local s |
235 |
+ for s in 16 32 48 64 128 256 512 1024; do |
236 |
+ insinto /usr/share/icons/hicolor/${s}x${s}/apps |
237 |
+ newins image/wsicon${s}.png wireshark.png |
238 |
+ done |
239 |
+ for s in 16 24 32 48 64 128 256 ; do |
240 |
+ insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes |
241 |
+ newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png |
242 |
+ done |
243 |
+ fi |
244 |
+ |
245 |
+ prune_libtool_files |
246 |
+} |
247 |
+ |
248 |
+pkg_postinst() { |
249 |
+ gnome2_icon_cache_update |
250 |
+ xdg_desktop_database_update |
251 |
+ xdg_mimeinfo_database_update |
252 |
+ |
253 |
+ # Add group for users allowed to sniff. |
254 |
+ enewgroup wireshark |
255 |
+ chgrp wireshark "${EROOT}"/usr/bin/dumpcap |
256 |
+ |
257 |
+ if use dumpcap && use pcap; then |
258 |
+ fcaps -o 0 -g wireshark -m 4710 -M 0710 \ |
259 |
+ cap_dac_read_search,cap_net_raw,cap_net_admin \ |
260 |
+ "${EROOT}"/usr/bin/dumpcap |
261 |
+ fi |
262 |
+ |
263 |
+ ewarn "NOTE: To capture traffic with wireshark as normal user you have to" |
264 |
+ ewarn "add yourself to the wireshark group. This security measure ensures" |
265 |
+ ewarn "that only trusted users are allowed to sniff your traffic." |
266 |
+} |
267 |
+ |
268 |
+pkg_postrm() { |
269 |
+ gnome2_icon_cache_update |
270 |
+ xdg_desktop_database_update |
271 |
+ xdg_mimeinfo_database_update |
272 |
+} |