1 |
commit: e59a07595170491f6b844769b94a672fd2cd11d6 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 24 06:46:01 2017 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 24 06:46:22 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e59a0759 |
7 |
|
8 |
net-analyzer/wireshark: Version bump (bug #606984). |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
net-analyzer/wireshark/Manifest | 1 + |
13 |
net-analyzer/wireshark/wireshark-2.2.4.ebuild | 260 ++++++++++++++++++++++++++ |
14 |
2 files changed, 261 insertions(+) |
15 |
|
16 |
diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest |
17 |
index 7ec75cf..4e3a76c 100644 |
18 |
--- a/net-analyzer/wireshark/Manifest |
19 |
+++ b/net-analyzer/wireshark/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST wireshark-2.2.2.tar.bz2 32230208 SHA256 f9acef5e9a9021a400b4244fafc06969f41ec594ec57fd7f0ff63bafca0055b3 SHA512 7db446438ee4dbcc5d5764d09eee0ed641d3a26063d6dd9dd863e26fc974c8eafcc8220ba918c1545594cf2f954cf0b08e3fd9db6d20f3aeb7da68b3a68c97e0 WHIRLPOOL 52e81a2529a49f0f206e96c48e67fd235a6a3e7ab654cdf44107b90af269863b4c10f34ed4473966082bc025102eed18d690613fbdd2231fc7d177f5e77030a3 |
22 |
DIST wireshark-2.2.3.tar.bz2 32315857 SHA256 97bac89e88892054a5848a9f7e0c36aa399a2008900829b078e29cab0ddd593b SHA512 a067cc5e4683a70deb301b50d57e5543f265b4fd9eef6a55a9c31e078da0d03aa89322012b9b8b7689af1720e36fe3a17a20689d657c7dca5aa7aa7f51d0701c WHIRLPOOL d11f66fa5cf2cb777bcf3f178da83e9cbddf8ab84aba75239a3669bf5563b108840ef8154014077d414c55129caa7d2ed7c702dea71b72f753099399c99fa7f5 |
23 |
+DIST wireshark-2.2.4.tar.bz2 32336156 SHA256 42a7fb35eed5a32478153e24601a284bb50148b7ba919c3e8452652f4c2a3911 SHA512 f3ff6979fdd1c7cf6abe386ec476fee12045ae6df3c8162568d521532045d5eb6ad689262c38b1766c75c9fc1068f480fcd64f0aa077b3a0ceea7c16dbdabc65 WHIRLPOOL 826f88d9df625809309728c2a60cc90e52d4586b9b933548c9594e9521b8aefb619deac00320f09b2180f97816dd4856aa4439322eb64982adc28c71614fe164 |
24 |
|
25 |
diff --git a/net-analyzer/wireshark/wireshark-2.2.4.ebuild b/net-analyzer/wireshark/wireshark-2.2.4.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000..7f0a159 |
28 |
--- /dev/null |
29 |
+++ b/net-analyzer/wireshark/wireshark-2.2.4.ebuild |
30 |
@@ -0,0 +1,260 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=6 |
36 |
+inherit autotools eutils fcaps flag-o-matic multilib qmake-utils user |
37 |
+ |
38 |
+DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
39 |
+HOMEPAGE="https://www.wireshark.org/" |
40 |
+SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.bz2" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0/${PV}" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
45 |
+IUSE=" |
46 |
+ adns androiddump +caps ciscodump cpu_flags_x86_sse4_2 crypt doc doc-pdf |
47 |
+ geoip +gtk kerberos lua +netlink +pcap portaudio +qt5 sbc selinux smi |
48 |
+ libssh randpkt randpktdump sshdump ssl tfshark zlib |
49 |
+" |
50 |
+REQUIRED_USE=" |
51 |
+ ciscodump? ( libssh ) |
52 |
+ sshdump? ( libssh ) |
53 |
+ ssl? ( crypt ) |
54 |
+" |
55 |
+ |
56 |
+S=${WORKDIR}/${P/_/} |
57 |
+ |
58 |
+CDEPEND=" |
59 |
+ >=dev-libs/glib-2.14:2 |
60 |
+ netlink? ( dev-libs/libnl:3 ) |
61 |
+ adns? ( >=net-dns/c-ares-1.5 ) |
62 |
+ crypt? ( dev-libs/libgcrypt:0 ) |
63 |
+ caps? ( sys-libs/libcap ) |
64 |
+ geoip? ( dev-libs/geoip ) |
65 |
+ gtk? ( |
66 |
+ x11-libs/gdk-pixbuf |
67 |
+ x11-libs/gtk+:3 |
68 |
+ x11-libs/pango |
69 |
+ x11-misc/xdg-utils |
70 |
+ ) |
71 |
+ kerberos? ( virtual/krb5 ) |
72 |
+ libssh? ( >=net-libs/libssh-0.6 ) |
73 |
+ lua? ( >=dev-lang/lua-5.1:* ) |
74 |
+ pcap? ( net-libs/libpcap ) |
75 |
+ portaudio? ( media-libs/portaudio ) |
76 |
+ qt5? ( |
77 |
+ dev-qt/qtcore:5 |
78 |
+ dev-qt/qtgui:5 |
79 |
+ dev-qt/qtmultimedia:5 |
80 |
+ dev-qt/qtprintsupport:5 |
81 |
+ dev-qt/qtwidgets:5 |
82 |
+ media-libs/speex |
83 |
+ x11-misc/xdg-utils |
84 |
+ ) |
85 |
+ sbc? ( media-libs/sbc ) |
86 |
+ smi? ( net-libs/libsmi ) |
87 |
+ ssl? ( net-libs/gnutls:= ) |
88 |
+ zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 ) |
89 |
+" |
90 |
+# We need perl for `pod2html`. The rest of the perl stuff is to block older |
91 |
+# and broken installs. #455122 |
92 |
+DEPEND=" |
93 |
+ ${CDEPEND} |
94 |
+ dev-lang/perl |
95 |
+ !<virtual/perl-Pod-Simple-3.170 |
96 |
+ !<perl-core/Pod-Simple-3.170 |
97 |
+ doc? ( |
98 |
+ app-doc/doxygen |
99 |
+ app-text/asciidoc |
100 |
+ dev-libs/libxml2 |
101 |
+ dev-libs/libxslt |
102 |
+ doc-pdf? ( dev-java/fop ) |
103 |
+ www-client/lynx |
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.1.0-sse4_2-r1.patch |
121 |
+ "${FILESDIR}"/${PN}-99999999-androiddump.patch |
122 |
+) |
123 |
+ |
124 |
+pkg_setup() { |
125 |
+ enewgroup wireshark |
126 |
+} |
127 |
+ |
128 |
+src_prepare() { |
129 |
+ default |
130 |
+ |
131 |
+ eautoreconf |
132 |
+} |
133 |
+ |
134 |
+src_configure() { |
135 |
+ local myconf |
136 |
+ |
137 |
+ # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
138 |
+ # --with-ssl to ./configure. (Mimics code from acinclude.m4). |
139 |
+ if use kerberos; then |
140 |
+ case $(krb5-config --libs) in |
141 |
+ *-lcrypto*) |
142 |
+ ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." |
143 |
+ ewarn "Note there are annoying license incompatibilities between the OpenSSL" |
144 |
+ ewarn "license and the GPL, so do your check before distributing such package." |
145 |
+ myconf+=( "--with-ssl" ) |
146 |
+ ;; |
147 |
+ esac |
148 |
+ fi |
149 |
+ |
150 |
+ # Enable wireshark binary with any supported GUI toolkit (bug #473188) |
151 |
+ if use gtk || use qt5; then |
152 |
+ myconf+=( "--enable-wireshark" ) |
153 |
+ else |
154 |
+ myconf+=( "--disable-wireshark" ) |
155 |
+ fi |
156 |
+ |
157 |
+ if ! use qt5; then |
158 |
+ myconf+=( "--with-qt=no" ) |
159 |
+ fi |
160 |
+ |
161 |
+ if use qt5; then |
162 |
+ export QT_MIN_VERSION=5.3.0 |
163 |
+ append-cxxflags -fPIC -DPIC |
164 |
+ fi |
165 |
+ |
166 |
+ # Hack around inability to disable doxygen/fop doc generation |
167 |
+ use doc || export ac_cv_prog_HAVE_DOXYGEN=false |
168 |
+ use doc-pdf || export ac_cv_prog_HAVE_FOP=false |
169 |
+ |
170 |
+ # dumpcap requires libcap |
171 |
+ # --disable-profile-build bugs #215806, #292991, #479602 |
172 |
+ econf \ |
173 |
+ $(use androiddump && use pcap && echo --enable-androiddump-use-libpcap=yes) \ |
174 |
+ $(use_enable androiddump) \ |
175 |
+ $(use_enable ciscodump) \ |
176 |
+ $(use_enable randpkt) \ |
177 |
+ $(use_enable randpktdump) \ |
178 |
+ $(use_enable sshdump) \ |
179 |
+ $(use_enable tfshark) \ |
180 |
+ $(use_with adns c-ares) \ |
181 |
+ $(use_with caps libcap) \ |
182 |
+ $(use_with crypt gcrypt) \ |
183 |
+ $(use_with geoip) \ |
184 |
+ $(use_with gtk gtk 3) \ |
185 |
+ $(use_with kerberos krb5) \ |
186 |
+ $(use_with libssh ssh) \ |
187 |
+ $(use_with lua) \ |
188 |
+ $(use_with pcap dumpcap-group wireshark) \ |
189 |
+ $(use_with pcap) \ |
190 |
+ $(use_with portaudio) \ |
191 |
+ $(use_with sbc) \ |
192 |
+ $(use_with smi libsmi) \ |
193 |
+ $(use_with ssl gnutls) \ |
194 |
+ $(use_with zlib) \ |
195 |
+ $(usex cpu_flags_x86_sse4_2 --enable-sse4_2 '') \ |
196 |
+ $(usex netlink --with-libnl=3 --without-libnl) \ |
197 |
+ $(usex qt5 --with-qt=5 '') \ |
198 |
+ $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '') \ |
199 |
+ $(usex qt5 MOC=$(qt5_get_bindir)/moc '') \ |
200 |
+ $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') \ |
201 |
+ $(usex qt5 UIC=$(qt5_get_bindir)/uic '') \ |
202 |
+ --disable-profile-build \ |
203 |
+ --disable-warnings-as-errors \ |
204 |
+ --sysconfdir="${EPREFIX}"/etc/wireshark \ |
205 |
+ ${myconf[@]} |
206 |
+} |
207 |
+ |
208 |
+src_compile() { |
209 |
+ default |
210 |
+ |
211 |
+ if use doc; then |
212 |
+ emake -j1 -C docbook |
213 |
+ if use doc-pdf; then |
214 |
+ addpredict "/root/.java" |
215 |
+ emake -C docbook all-pdf |
216 |
+ fi |
217 |
+ fi |
218 |
+} |
219 |
+ |
220 |
+src_install() { |
221 |
+ default |
222 |
+ |
223 |
+ # FAQ is not required as is installed from help/faq.txt |
224 |
+ dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \ |
225 |
+ doc/{randpkt.txt,README*} |
226 |
+ |
227 |
+ if use doc; then |
228 |
+ docinto /usr/share/doc/${PF}/html |
229 |
+ dodoc -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}} |
230 |
+ if use doc-pdf; then |
231 |
+ docinto /usr/share/doc/${PF}/pdf/ |
232 |
+ dodoc docbook/{developer,user}-guide-{a4,us}.pdf docbook/release-notes.pdf |
233 |
+ fi |
234 |
+ fi |
235 |
+ |
236 |
+ # install headers |
237 |
+ local wsheader |
238 |
+ for wsheader in \ |
239 |
+ config.h \ |
240 |
+ epan/*.h \ |
241 |
+ epan/crypt/*.h \ |
242 |
+ epan/dfilter/*.h \ |
243 |
+ epan/dissectors/*.h \ |
244 |
+ epan/ftypes/*.h \ |
245 |
+ epan/wmem/*.h \ |
246 |
+ register.h \ |
247 |
+ wiretap/*.h \ |
248 |
+ ws_diag_control.h \ |
249 |
+ ws_symbol_export.h \ |
250 |
+ wsutil/*.h |
251 |
+ do |
252 |
+ insinto /usr/include/wireshark/$( dirname ${wsheader} ) |
253 |
+ doins ${wsheader} |
254 |
+ done |
255 |
+ |
256 |
+ #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/ |
257 |
+ insinto /usr/include/wiretap |
258 |
+ doins wiretap/wtap.h |
259 |
+ |
260 |
+ if use gtk || use qt5; then |
261 |
+ local c d |
262 |
+ for c in hi lo; do |
263 |
+ for d in 16 32 48; do |
264 |
+ insinto /usr/share/icons/${c}color/${d}x${d}/apps |
265 |
+ newins image/${c}${d}-app-wireshark.png wireshark.png |
266 |
+ done |
267 |
+ done |
268 |
+ for d in 16 24 32 48 64 128 256 ; do |
269 |
+ insinto /usr/share/icons/hicolor/${d}x${d}/mimetypes |
270 |
+ newins image/WiresharkDoc-${d}.png application-vnd.tcpdump.pcap.png |
271 |
+ done |
272 |
+ fi |
273 |
+ |
274 |
+ prune_libtool_files |
275 |
+} |
276 |
+ |
277 |
+pkg_postinst() { |
278 |
+ # Add group for users allowed to sniff. |
279 |
+ enewgroup wireshark |
280 |
+ |
281 |
+ if use pcap; then |
282 |
+ fcaps -o 0 -g wireshark -m 4710 -M 0710 \ |
283 |
+ cap_dac_read_search,cap_net_raw,cap_net_admin \ |
284 |
+ "${EROOT}"/usr/bin/dumpcap |
285 |
+ fi |
286 |
+ |
287 |
+ ewarn "NOTE: To capture traffic with wireshark as normal user you have to" |
288 |
+ ewarn "add yourself to the wireshark group. This security measure ensures" |
289 |
+ ewarn "that only trusted users are allowed to sniff your traffic." |
290 |
+} |