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