1 |
commit: e8bb387b7f4d1631ceb8a20b7e89283beec4063a |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 2 07:03:50 2016 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 2 07:05:54 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8bb387b |
7 |
|
8 |
net-analyzer/wireshark: Version bump (bug #570564). |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
net-analyzer/wireshark/Manifest | 1 + |
13 |
net-analyzer/wireshark/wireshark-2.0.1.ebuild | 279 ++++++++++++++++++++++++++ |
14 |
2 files changed, 280 insertions(+) |
15 |
|
16 |
diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest |
17 |
index c5bad4f..effdccf 100644 |
18 |
--- a/net-analyzer/wireshark/Manifest |
19 |
+++ b/net-analyzer/wireshark/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST wireshark-1.12.8.tar.bz2 29216939 SHA256 357e0a4e49525d80cdc740bb16539fcdb526ad38cc2ed6cabedafc9bdee5c7e7 SHA512 24ad130d9d0718e610f7def2a08e976871205032b4b4b5269c3ae54894c4121fa3b21a0bc6e45e9c2a41119f5553416d5c452dadf7b02f17e7803511d33809f5 WHIRLPOOL ede6a80e914c4694df9ef6753b65af09c7efadb7d6e3c193fa30871de9e673dac8f7a1f185c3b6ca0a316601d720e141dbe817af2a3a930ec870a75f67cde5a9 |
22 |
DIST wireshark-2.0.0.tar.bz2 30976957 SHA256 90026c761a85701d7783c7e2eaa4c1de247dfbadbd53221df355f121e42691dd SHA512 ba3b8b5fa7b441c0494e833da887566c70ec30c20a161bcb6a77ec1deff0503e00f9cf6cf7d892f2cbb189dcf21b548844abe8106dfd29c565868944c10aa7c0 WHIRLPOOL 82d6563fdc40680bb4b79af779e844cb76524305350f19c0ea85892ceaf9db4cf9383ac9f46e0033fcfc1782b02ba7ceb8307bfc84759f9e60be6f0b57fbaf15 |
23 |
+DIST wireshark-2.0.1.tar.bz2 31016295 SHA256 c9bd07dd0d0045d6ca7537390a1afbcdf33716d193ea7d7084ae4f6c30b683ab SHA512 fc029759cecd10d20bd323d6ea41d6bd1326a1a0f8d847d681ce218eb0e7ece84fba4e91709adab556e9495812bf0fa8bcb40318053e6403c3d5c9d899d544ca WHIRLPOOL 45a1a37ef3fb229d762e85a2833b4760428e91caa0b6958d3c6b79bbea76acae6f8685ecd1190ac1ef9daffd49bee9276391ac09653d75f61e6e6dc20de52789 |
24 |
|
25 |
diff --git a/net-analyzer/wireshark/wireshark-2.0.1.ebuild b/net-analyzer/wireshark/wireshark-2.0.1.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..66c2681 |
28 |
--- /dev/null |
29 |
+++ b/net-analyzer/wireshark/wireshark-2.0.1.ebuild |
30 |
@@ -0,0 +1,279 @@ |
31 |
+# Copyright 1999-2015 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=5 |
36 |
+inherit autotools eutils fcaps flag-o-matic multilib qmake-utils qt4-r2 user |
37 |
+ |
38 |
+DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
39 |
+HOMEPAGE="http://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 crypt doc doc-pdf geoip +gtk3 ipv6 kerberos lua |
47 |
+ +netlink +pcap portaudio +qt4 qt5 selinux sbc smi tfshark |
48 |
+ cpu_flags_x86_sse4_2 ssl zlib |
49 |
+" |
50 |
+REQUIRED_USE=" |
51 |
+ ssl? ( crypt ) |
52 |
+ ?? ( qt4 qt5 ) |
53 |
+" |
54 |
+ |
55 |
+S=${WORKDIR}/${P/_/} |
56 |
+ |
57 |
+GTK_COMMON_DEPEND=" |
58 |
+ x11-libs/gdk-pixbuf |
59 |
+ x11-libs/pango |
60 |
+ x11-misc/xdg-utils |
61 |
+" |
62 |
+CDEPEND=" |
63 |
+ >=dev-libs/glib-2.14:2 |
64 |
+ netlink? ( dev-libs/libnl:3 ) |
65 |
+ adns? ( >=net-dns/c-ares-1.5 ) |
66 |
+ crypt? ( dev-libs/libgcrypt:0 ) |
67 |
+ caps? ( sys-libs/libcap ) |
68 |
+ geoip? ( dev-libs/geoip ) |
69 |
+ gtk3? ( |
70 |
+ ${GTK_COMMON_DEPEND} |
71 |
+ x11-libs/gtk+:3 |
72 |
+ ) |
73 |
+ kerberos? ( virtual/krb5 ) |
74 |
+ lua? ( >=dev-lang/lua-5.1:* ) |
75 |
+ pcap? ( net-libs/libpcap ) |
76 |
+ portaudio? ( media-libs/portaudio ) |
77 |
+ qt4? ( |
78 |
+ dev-qt/qtcore:4 |
79 |
+ dev-qt/qtgui:4[accessibility] |
80 |
+ x11-misc/xdg-utils |
81 |
+ ) |
82 |
+ qt5? ( |
83 |
+ dev-qt/qtcore:5 |
84 |
+ dev-qt/qtgui:5 |
85 |
+ dev-qt/qtmultimedia:5 |
86 |
+ dev-qt/qtprintsupport:5 |
87 |
+ dev-qt/qtwidgets:5 |
88 |
+ x11-misc/xdg-utils |
89 |
+ ) |
90 |
+ sbc? ( media-libs/sbc ) |
91 |
+ smi? ( net-libs/libsmi ) |
92 |
+ ssl? ( net-libs/gnutls ) |
93 |
+ zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 ) |
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 |
+ dev-lang/perl |
100 |
+ !<virtual/perl-Pod-Simple-3.170 |
101 |
+ !<perl-core/Pod-Simple-3.170 |
102 |
+ doc? ( |
103 |
+ app-doc/doxygen |
104 |
+ app-text/asciidoc |
105 |
+ dev-libs/libxml2 |
106 |
+ dev-libs/libxslt |
107 |
+ doc-pdf? ( dev-java/fop ) |
108 |
+ www-client/lynx |
109 |
+ ) |
110 |
+ sys-devel/bison |
111 |
+ sys-devel/flex |
112 |
+ virtual/pkgconfig |
113 |
+" |
114 |
+RDEPEND=" |
115 |
+ ${CDEPEND} |
116 |
+ gtk3? ( virtual/freedesktop-icon-theme ) |
117 |
+ qt4? ( virtual/freedesktop-icon-theme ) |
118 |
+ qt5? ( virtual/freedesktop-icon-theme ) |
119 |
+ selinux? ( sec-policy/selinux-wireshark ) |
120 |
+" |
121 |
+ |
122 |
+pkg_setup() { |
123 |
+ enewgroup wireshark |
124 |
+} |
125 |
+ |
126 |
+src_prepare() { |
127 |
+ epatch \ |
128 |
+ "${FILESDIR}"/${PN}-1.6.13-ldflags.patch \ |
129 |
+ "${FILESDIR}"/${PN}-1.11.0-oldlibs.patch \ |
130 |
+ "${FILESDIR}"/${PN}-99999999-pkgconfig.patch \ |
131 |
+ "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch \ |
132 |
+ "${FILESDIR}"/${PN}-2.0.0-androiddump-pcap.patch \ |
133 |
+ "${FILESDIR}"/${PN}-2.1.0-sse4_2.patch \ |
134 |
+ |
135 |
+ epatch_user |
136 |
+ |
137 |
+ eautoreconf |
138 |
+} |
139 |
+ |
140 |
+src_configure() { |
141 |
+ local myconf |
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 |
+ myconf+=( "--with-ssl" ) |
152 |
+ ;; |
153 |
+ esac |
154 |
+ fi |
155 |
+ |
156 |
+ # Enable wireshark binary with any supported GUI toolkit (bug #473188) |
157 |
+ if use gtk3 || use qt4 || use qt5; then |
158 |
+ myconf+=( "--enable-wireshark" ) |
159 |
+ else |
160 |
+ myconf+=( "--disable-wireshark" ) |
161 |
+ fi |
162 |
+ |
163 |
+ if ! use qt4 && ! use qt5; then |
164 |
+ myconf+=( "--with-qt=no" ) |
165 |
+ fi |
166 |
+ |
167 |
+ if use qt4; then |
168 |
+ export QT_MIN_VERSION=4.6.0 |
169 |
+ fi |
170 |
+ |
171 |
+ if use qt5; then |
172 |
+ export QT_MIN_VERSION=5.3.0 |
173 |
+ append-cxxflags -fPIC -DPIC |
174 |
+ fi |
175 |
+ |
176 |
+ # Hack around inability to disable doxygen/fop doc generation |
177 |
+ use doc || export ac_cv_prog_HAVE_DOXYGEN=false |
178 |
+ use doc-pdf || export ac_cv_prog_HAVE_FOP=false |
179 |
+ |
180 |
+ # dumpcap requires libcap |
181 |
+ # --disable-profile-build bugs #215806, #292991, #479602 |
182 |
+ econf \ |
183 |
+ $(use androiddump && use pcap && echo --enable-androiddump-use-libpcap=yes) \ |
184 |
+ $(use_enable androiddump) \ |
185 |
+ $(use_enable ipv6) \ |
186 |
+ $(use_enable tfshark) \ |
187 |
+ $(use_with adns c-ares) \ |
188 |
+ $(use_with caps libcap) \ |
189 |
+ $(use_with crypt gcrypt) \ |
190 |
+ $(use_with geoip) \ |
191 |
+ $(use_with gtk3) \ |
192 |
+ $(use_with kerberos krb5) \ |
193 |
+ $(use_with lua) \ |
194 |
+ $(use_with pcap dumpcap-group wireshark) \ |
195 |
+ $(use_with pcap) \ |
196 |
+ $(use_with portaudio) \ |
197 |
+ $(usex qt4 --with-qt=4 '') \ |
198 |
+ $(usex qt5 --with-qt=5 '') \ |
199 |
+ $(usex qt4 MOC=$(qt4_get_bindir)/moc '') \ |
200 |
+ $(usex qt4 RCC=$(qt4_get_bindir)/rcc '') \ |
201 |
+ $(usex qt4 UIC=$(qt4_get_bindir)/uic '') \ |
202 |
+ $(usex qt5 MOC=$(qt5_get_bindir)/moc '') \ |
203 |
+ $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') \ |
204 |
+ $(usex qt5 UIC=$(qt5_get_bindir)/uic '') \ |
205 |
+ $(use_with sbc) \ |
206 |
+ $(use_with smi libsmi) \ |
207 |
+ $(use_with ssl gnutls) \ |
208 |
+ $(use_with zlib) \ |
209 |
+ $(usex netlink --with-libnl=3 --without-libnl) \ |
210 |
+ $(usex cpu_flags_x86_sse4_2 --enable-sse4_2 '') \ |
211 |
+ --disable-profile-build \ |
212 |
+ --disable-usr-local \ |
213 |
+ --disable-warnings-as-errors \ |
214 |
+ --sysconfdir="${EPREFIX}"/etc/wireshark \ |
215 |
+ --without-adns \ |
216 |
+ ${myconf[@]} |
217 |
+} |
218 |
+ |
219 |
+src_compile() { |
220 |
+ default |
221 |
+ if use doc; then |
222 |
+ use doc-pdf && addpredict "/root/.java" |
223 |
+ emake -j1 -C docbook |
224 |
+ fi |
225 |
+} |
226 |
+ |
227 |
+src_install() { |
228 |
+ default |
229 |
+ |
230 |
+ if use doc; then |
231 |
+ dohtml -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}} |
232 |
+ if use doc-pdf; then |
233 |
+ insinto /usr/share/doc/${PF}/pdf/ |
234 |
+ doins docbook/{developer,user}-guide-{a4,us}.pdf docbook/release-notes.pdf |
235 |
+ fi |
236 |
+ fi |
237 |
+ |
238 |
+ # FAQ is not required as is installed from help/faq.txt |
239 |
+ dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \ |
240 |
+ doc/{randpkt.txt,README*} |
241 |
+ |
242 |
+ # install headers |
243 |
+ local wsheader |
244 |
+ for wsheader in \ |
245 |
+ color.h \ |
246 |
+ config.h \ |
247 |
+ epan/*.h \ |
248 |
+ epan/crypt/*.h \ |
249 |
+ epan/dfilter/*.h \ |
250 |
+ epan/dissectors/*.h \ |
251 |
+ epan/ftypes/*.h \ |
252 |
+ epan/wmem/*.h \ |
253 |
+ register.h \ |
254 |
+ wiretap/*.h \ |
255 |
+ ws_symbol_export.h \ |
256 |
+ wsutil/*.h |
257 |
+ do |
258 |
+ insinto /usr/include/wireshark/$( dirname ${wsheader} ) |
259 |
+ doins ${wsheader} |
260 |
+ done |
261 |
+ |
262 |
+ #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/ |
263 |
+ insinto /usr/include/wiretap |
264 |
+ doins wiretap/wtap.h |
265 |
+ |
266 |
+ if use gtk3 || use qt4 || use qt5; then |
267 |
+ local c d |
268 |
+ for c in hi lo; do |
269 |
+ for d in 16 32 48; do |
270 |
+ insinto /usr/share/icons/${c}color/${d}x${d}/apps |
271 |
+ newins image/${c}${d}-app-wireshark.png wireshark.png |
272 |
+ done |
273 |
+ done |
274 |
+ for d in 16 24 32 48 64 128 256 ; do |
275 |
+ insinto /usr/share/icons/hicolor/${d}x${d}/mimetypes |
276 |
+ newins image/WiresharkDoc-${d}.png application-vnd.tcpdump.pcap.png |
277 |
+ done |
278 |
+ fi |
279 |
+ |
280 |
+ if use gtk3; then |
281 |
+ domenu wireshark.desktop |
282 |
+ fi |
283 |
+ |
284 |
+ if use qt4 || use qt5; then |
285 |
+ sed \ |
286 |
+ -e '/Exec=/s|wireshark|&-qt|g' \ |
287 |
+ -e 's|^Name.*=Wireshark|& (Qt)|g' \ |
288 |
+ wireshark.desktop > wireshark-qt.desktop \ |
289 |
+ || die |
290 |
+ domenu wireshark-qt.desktop |
291 |
+ fi |
292 |
+ |
293 |
+ prune_libtool_files |
294 |
+} |
295 |
+ |
296 |
+pkg_postinst() { |
297 |
+ # Add group for users allowed to sniff. |
298 |
+ enewgroup wireshark |
299 |
+ |
300 |
+ if use pcap; then |
301 |
+ fcaps -o 0 -g wireshark -m 4710 -M 0710 \ |
302 |
+ cap_dac_read_search,cap_net_raw,cap_net_admin \ |
303 |
+ "${EROOT}"/usr/bin/dumpcap |
304 |
+ fi |
305 |
+ |
306 |
+ ewarn "NOTE: To capture traffic with wireshark as normal user you have to" |
307 |
+ ewarn "add yourself to the wireshark group. This security measure ensures" |
308 |
+ ewarn "that only trusted users are allowed to sniff your traffic." |
309 |
+} |