Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/wireshark/
Date: Fri, 02 Feb 2018 19:41:20
Message-Id: 1517600460.593fe32466f76369d1a3d31799dcf0c196032aeb.jer@gentoo
1 commit: 593fe32466f76369d1a3d31799dcf0c196032aeb
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 2 19:41:00 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 2 19:41:00 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=593fe324
7
8 net-analyzer/wireshark: Old.
9
10 Package-Manager: Portage-2.3.20, Repoman-2.3.6
11
12 net-analyzer/wireshark/Manifest | 1 -
13 net-analyzer/wireshark/wireshark-2.4.2-r1.ebuild | 292 -----------------------
14 2 files changed, 293 deletions(-)
15
16 diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
17 index 20502dbae2b..c1eff3b0239 100644
18 --- a/net-analyzer/wireshark/Manifest
19 +++ b/net-analyzer/wireshark/Manifest
20 @@ -1,4 +1,3 @@
21 DIST wireshark-2.2.7.tar.bz2 32309420 BLAKE2B a4ec32fab15235c5bde9f03ceafc5760055a769dd40d96526a18ad16d5642e957f620fc58f42c3323745bd679d6ef7b006283e7b9ddc52ddadc2680789d957ea SHA512 417836810eb895b3f2a6ac1cfd138fb0275382ea2edc60fc5f5e5f8ce433b56b8120aa8b58b4f77296986630fdf49e4c5c3859b2c2c5e26b1ce0651393b7d716
22 -DIST wireshark-2.4.2.tar.xz 28791712 BLAKE2B 64a965f522478e2e5690a4439554764bd341c0b8017003af4b0d328094cf56a72462df9dfdb9c9318e4bfc1fe57e4caedc43e0d0c18c704c8342dbb3baa36d91 SHA512 212964482a1e45af490ef78b3f2465384f84c007a76c3a99e8de0e2c37d933fb34b0da5631f4a36ca12d2fa7cc4376d3d405cbe7f7113791ea09dba7e5915417
23 DIST wireshark-2.4.3.tar.xz 28807920 BLAKE2B 831691d084fc9ed6198b23c0347efa487398df37ca0cf5972db64b0724fad04b3104a5faed104b5d4b560254b19a2e41118c8d7b71cce785f38ede077215e80f SHA512 4344b9efeda3afba4b13bb468f7a12c4565da96c6182a8203cc5815baa11e7d84f3f11003b4289c6c11391cfb590b8c0319268196cc646a8f0226c432e9bb433
24 DIST wireshark-2.4.4.tar.xz 28818372 BLAKE2B 1a28cabdc8dfbed16244c6906ef360c2d3edee3cd75a5134ea7b21b138c3be08de9327a1415cb308f7a01c382e0aa5cf14e4466b4c3762c29a7f7cbc4683890e SHA512 b6625f860a10e10babd686820680a5e169594f171e7e176fc96325255ec096481da2e8a0fdff10b42cead82011740714a4331003dda0d48bf3b419da37834bdc
25
26 diff --git a/net-analyzer/wireshark/wireshark-2.4.2-r1.ebuild b/net-analyzer/wireshark/wireshark-2.4.2-r1.ebuild
27 deleted file mode 100644
28 index fdcc3747b78..00000000000
29 --- a/net-analyzer/wireshark/wireshark-2.4.2-r1.ebuild
30 +++ /dev/null
31 @@ -1,292 +0,0 @@
32 -# Copyright 1999-2018 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=6
36 -inherit autotools eutils fcaps flag-o-matic gnome2-utils multilib qmake-utils user xdg-utils
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.xz"
41 -
42 -LICENSE="GPL-2"
43 -SLOT="0/${PV}"
44 -KEYWORDS="amd64 arm ~arm64 hppa ia64 ppc ppc64 x86 ~x86-fbsd"
45 -IUSE="
46 - adns androiddump +capinfos +caps +captype ciscodump cpu_flags_x86_sse4_2
47 - +dftest doc doc-pdf +dumpcap +editcap geoip gtk kerberos libssh libxml2 lua
48 - +mergecap +netlink nghttp2 +pcap portaudio +qt5 +randpkt +randpktdump
49 - +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl +text2pcap
50 - tfshark +tshark +udpdump zlib
51 -"
52 -REQUIRED_USE="
53 - ciscodump? ( libssh )
54 - sshdump? ( libssh )
55 -"
56 -
57 -S=${WORKDIR}/${P/_/}
58 -
59 -CDEPEND="
60 - >=dev-libs/glib-2.14:2
61 - dev-libs/libgcrypt:0
62 - netlink? ( dev-libs/libnl:3 )
63 - adns? ( >=net-dns/c-ares-1.5 )
64 - caps? ( sys-libs/libcap )
65 - geoip? ( dev-libs/geoip )
66 - gtk? (
67 - x11-libs/gdk-pixbuf
68 - x11-libs/gtk+:3
69 - x11-libs/pango
70 - x11-misc/xdg-utils
71 - )
72 - kerberos? ( virtual/krb5 )
73 - libssh? ( >=net-libs/libssh-0.6 )
74 - libxml2? ( dev-libs/libxml2 )
75 - lua? ( >=dev-lang/lua-5.1:* )
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 - || (
86 - media-libs/speexdsp
87 - <media-libs/speex-1.2.0
88 - )
89 - x11-misc/xdg-utils
90 - )
91 - sbc? ( media-libs/sbc )
92 - smi? ( net-libs/libsmi )
93 - snappy? ( app-arch/snappy )
94 - spandsp? ( media-libs/spandsp )
95 - ssl? ( net-libs/gnutls:= )
96 - zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 )
97 -"
98 -# We need perl for `pod2html`. The rest of the perl stuff is to block older
99 -# and broken installs. #455122
100 -DEPEND="
101 - ${CDEPEND}
102 - dev-lang/perl
103 - !<virtual/perl-Pod-Simple-3.170
104 - !<perl-core/Pod-Simple-3.170
105 - doc? (
106 - app-doc/doxygen
107 - app-text/asciidoc
108 - dev-libs/libxml2
109 - dev-libs/libxslt
110 - doc-pdf? ( dev-java/fop )
111 - www-client/lynx
112 - )
113 - qt5? (
114 - dev-qt/linguist-tools:5
115 - )
116 - sys-devel/bison
117 - sys-devel/flex
118 - virtual/pkgconfig
119 -"
120 -RDEPEND="
121 - ${CDEPEND}
122 - gtk? ( virtual/freedesktop-icon-theme )
123 - qt5? ( virtual/freedesktop-icon-theme )
124 - selinux? ( sec-policy/selinux-wireshark )
125 -"
126 -PATCHES=(
127 - "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch
128 - "${FILESDIR}"/${PN}-2.1.0-sse4_2-r1.patch
129 - "${FILESDIR}"/${PN}-2.4-androiddump.patch
130 - "${FILESDIR}"/${PN}-99999999-androiddump.patch
131 -)
132 -
133 -pkg_setup() {
134 - enewgroup wireshark
135 -}
136 -
137 -src_prepare() {
138 - default
139 -
140 - eautoreconf
141 -}
142 -
143 -src_configure() {
144 - local myconf
145 -
146 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
147 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
148 - if use kerberos; then
149 - case $(krb5-config --libs) in
150 - *-lcrypto*)
151 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
152 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
153 - ewarn "license and the GPL, so do your check before distributing such package."
154 - myconf+=( "--with-ssl" )
155 - ;;
156 - esac
157 - fi
158 -
159 - # Enable wireshark binary with any supported GUI toolkit (bug #473188)
160 - if use gtk || use qt5; then
161 - myconf+=( "--enable-wireshark" )
162 - else
163 - myconf+=( "--disable-wireshark" )
164 - fi
165 -
166 - if ! use qt5; then
167 - myconf+=( "--with-qt=no" )
168 - fi
169 -
170 - if use qt5; then
171 - export QT_MIN_VERSION=5.3.0
172 - append-cxxflags -fPIC -DPIC
173 - fi
174 -
175 - # Hack around inability to disable doxygen/fop doc generation
176 - use doc || export ac_cv_prog_HAVE_DOXYGEN=false
177 - use doc-pdf || export ac_cv_prog_HAVE_FOP=false
178 -
179 - # dumpcap requires libcap
180 - # --disable-profile-build bugs #215806, #292991, #479602
181 - econf \
182 - $(use androiddump && use pcap && echo --enable-androiddump-use-libpcap=yes) \
183 - $(use dumpcap && use_with pcap dumpcap-group wireshark) \
184 - $(use_enable androiddump) \
185 - $(use_enable capinfos) \
186 - $(use_enable captype) \
187 - $(use_enable ciscodump) \
188 - $(use_enable dftest) \
189 - $(use_enable dumpcap) \
190 - $(use_enable editcap) \
191 - $(use_enable mergecap) \
192 - $(use_enable randpkt) \
193 - $(use_enable randpktdump) \
194 - $(use_enable reordercap) \
195 - $(use_enable sharkd) \
196 - $(use_enable sshdump) \
197 - $(use_enable text2pcap) \
198 - $(use_enable tfshark) \
199 - $(use_enable tshark) \
200 - $(use_enable udpdump) \
201 - $(use_with adns c-ares) \
202 - $(use_with caps libcap) \
203 - $(use_with geoip) \
204 - $(use_with gtk gtk 3) \
205 - $(use_with kerberos krb5) \
206 - $(use_with libssh ssh) \
207 - $(use_with libxml2) \
208 - $(use_with lua) \
209 - $(use_with nghttp2) \
210 - $(use_with pcap) \
211 - $(use_with portaudio) \
212 - $(use_with sbc) \
213 - $(use_with smi libsmi) \
214 - $(use_with snappy) \
215 - $(use_with spandsp) \
216 - $(use_with ssl gnutls) \
217 - $(use_with zlib) \
218 - $(usex cpu_flags_x86_sse4_2 --enable-sse4_2 '') \
219 - $(usex netlink --with-libnl=3 --without-libnl) \
220 - $(usex qt5 --with-qt=5 '') \
221 - $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '') \
222 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '') \
223 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') \
224 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '') \
225 - --disable-profile-build \
226 - --disable-warnings-as-errors \
227 - --sysconfdir="${EPREFIX}"/etc/wireshark \
228 - ${myconf[@]}
229 -}
230 -
231 -src_compile() {
232 - default
233 -
234 - if use doc; then
235 - emake -j1 -C docbook
236 - if use doc-pdf; then
237 - addpredict "/root/.java"
238 - emake -C docbook all-pdf
239 - fi
240 - fi
241 -}
242 -
243 -src_install() {
244 - default
245 -
246 - # FAQ is not required as is installed from help/faq.txt
247 - dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \
248 - doc/{randpkt.txt,README*}
249 -
250 - if use doc; then
251 - docinto /usr/share/doc/${PF}/html
252 - dodoc -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}}
253 - if use doc-pdf; then
254 - docinto /usr/share/doc/${PF}/pdf/
255 - dodoc docbook/{developer,user}-guide-{a4,us}.pdf docbook/release-notes.pdf
256 - fi
257 - fi
258 -
259 - # install headers
260 - local wsheader
261 - for wsheader in \
262 - config.h \
263 - epan/*.h \
264 - epan/crypt/*.h \
265 - epan/dfilter/*.h \
266 - epan/dissectors/*.h \
267 - epan/ftypes/*.h \
268 - epan/wmem/*.h \
269 - register.h \
270 - wiretap/*.h \
271 - ws_diag_control.h \
272 - ws_symbol_export.h \
273 - wsutil/*.h
274 - do
275 - insinto /usr/include/wireshark/$( dirname ${wsheader} )
276 - doins ${wsheader}
277 - done
278 -
279 - #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/
280 - insinto /usr/include/wiretap
281 - doins wiretap/wtap.h
282 -
283 - if use gtk || use qt5; then
284 - local c d
285 - for c in hi lo; do
286 - for d in 16 32 48; do
287 - insinto /usr/share/icons/${c}color/${d}x${d}/apps
288 - newins image/${c}${d}-app-wireshark.png wireshark.png
289 - done
290 - done
291 - for d in 16 24 32 48 64 128 256 ; do
292 - insinto /usr/share/icons/hicolor/${d}x${d}/mimetypes
293 - newins image/WiresharkDoc-${d}.png application-vnd.tcpdump.pcap.png
294 - done
295 - fi
296 -
297 - prune_libtool_files
298 -}
299 -
300 -pkg_postinst() {
301 - gnome2_icon_cache_update
302 - xdg_desktop_database_update
303 - xdg_mimeinfo_database_update
304 -
305 - # Add group for users allowed to sniff.
306 - enewgroup wireshark
307 -
308 - if use pcap; then
309 - fcaps -o 0 -g wireshark -m 4710 -M 0710 \
310 - cap_dac_read_search,cap_net_raw,cap_net_admin \
311 - "${EROOT}"/usr/bin/dumpcap
312 - fi
313 -
314 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
315 - ewarn "add yourself to the wireshark group. This security measure ensures"
316 - ewarn "that only trusted users are allowed to sniff your traffic."
317 -}
318 -
319 -pkg_postrm() {
320 - gnome2_icon_cache_update
321 - xdg_desktop_database_update
322 - xdg_mimeinfo_database_update
323 -}