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: Wed, 19 Jul 2017 18:33:31
Message-Id: 1500489185.a9ad726a98f0aa9dae317cee08b789effe1cbffb.jer@gentoo
1 commit: a9ad726a98f0aa9dae317cee08b789effe1cbffb
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 19 18:33:05 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 19 18:33:05 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9ad726a
7
8 net-analyzer/wireshark: Old.
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 net-analyzer/wireshark/Manifest | 1 -
13 net-analyzer/wireshark/wireshark-2.4.0_rc1.ebuild | 266 ----------------------
14 2 files changed, 267 deletions(-)
15
16 diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
17 index dfec7295585..02811d37e39 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 SHA256 689ddf62221b152779d8846ab5b2063cc7fd41ec1a9f04eefab09b5d5486dbb5 SHA512 417836810eb895b3f2a6ac1cfd138fb0275382ea2edc60fc5f5e5f8ce433b56b8120aa8b58b4f77296986630fdf49e4c5c3859b2c2c5e26b1ce0651393b7d716 WHIRLPOOL 0361821da9c113a8de1339cc48cae0291be84bcffb1ba34b1fc3f457b22525329e954a2060f7eef25bca550d0ccdaf4a9e9587d35394b0abd9b0d38bc6023e44
22 DIST wireshark-2.2.8.tar.bz2 32331209 SHA256 ecf02c148c9ab6e809026ad5743fe9be1739a9840ef6fece6837a7ddfbdf7edc SHA512 71af39c8c212bfb78ec978bbeddb4af41aa142643e2a27e05827b3b46d34ff85772321cb63d863270bee75ef6a6eb3e29d0e6052fca6b072f9981ad1eb924c07 WHIRLPOOL f74083fafd2c3956e11905cf982250f3553a0d091bc1191be7b938b86373ab9dc5e11c34ebf56324bca27424c1652e57e43d0d358f903a65416ab96695552400
23 -DIST wireshark-2.4.0rc1.tar.xz 29097628 SHA256 902aa0f7dc9e14af98dbfa1669fe6ee049caeb763571ace426949d52df1dbfde SHA512 0222e7bd6237a0d1d0c2b21c66aed3995787f5cbc623db40df11ab5e6640fdfebcdd78e1960ee2ebc14cb26b700beefa4e1164504f5aa5424cbd6d62202bc888 WHIRLPOOL 988d4643c3f413541106d686aefb4622c780b026d5b97d7dc2872540ff4ce7947ba988e4b03b92d3d26c2dc1bbf681122930be4af01888ee8534d70dbe9842c6
24 DIST wireshark-2.4.0rc2.tar.xz 28744512 SHA256 cb2a1dd25f0eb05c1f2a95012d08b704789b4bf016dfd4b86daa34e2afb7c99e SHA512 2df36aa6465256d63d95e69137a9e8bb828940c629dacec5afc4f9ceab158bd023d006bf5c44a50e7f6d1d94d704a7c5f7ecf4bf5d34ddfcb9af9ca1abd7887d WHIRLPOOL c5061779ee6146e5e4ea68e88713bd8bd92bd7a70a8ddf4d63d616db151a162e0e9fe529b6a2563690925a1c8ce4878a109310808304232086b42a1e9b86d502
25
26 diff --git a/net-analyzer/wireshark/wireshark-2.4.0_rc1.ebuild b/net-analyzer/wireshark/wireshark-2.4.0_rc1.ebuild
27 deleted file mode 100644
28 index a7271a99e3f..00000000000
29 --- a/net-analyzer/wireshark/wireshark-2.4.0_rc1.ebuild
30 +++ /dev/null
31 @@ -1,266 +0,0 @@
32 -# Copyright 1999-2017 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 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.xz"
41 -
42 -LICENSE="GPL-2"
43 -SLOT="0/${PV}"
44 -KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd"
45 -IUSE="
46 - adns androiddump +caps ciscodump cpu_flags_x86_sse4_2 doc doc-pdf
47 - geoip gtk kerberos lua +netlink nghttp2 +pcap portaudio +qt5 sbc selinux
48 - smi libssh libxml2 randpkt randpktdump snappy spandsp sshdump ssl tfshark
49 - zlib
50 -"
51 -REQUIRED_USE="
52 - ciscodump? ( libssh )
53 - sshdump? ( libssh )
54 -"
55 -
56 -S=${WORKDIR}/${P/_/}
57 -
58 -CDEPEND="
59 - >=dev-libs/glib-2.14:2
60 - dev-libs/libgcrypt:0
61 - netlink? ( dev-libs/libnl:3 )
62 - adns? ( >=net-dns/c-ares-1.5 )
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 - libxml2? ( dev-libs/libxml2 )
74 - lua? ( >=dev-lang/lua-5.1:* )
75 - nghttp2? ( net-libs/nghttp2 )
76 - pcap? ( net-libs/libpcap )
77 - portaudio? ( media-libs/portaudio )
78 - qt5? (
79 - dev-qt/qtcore:5
80 - dev-qt/qtgui:5
81 - dev-qt/qtmultimedia:5
82 - dev-qt/qtprintsupport:5
83 - dev-qt/qtwidgets:5
84 - media-libs/speex
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 !=sys-libs/zlib-1.2.4 )
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 - app-text/asciidoc
104 - dev-libs/libxml2
105 - dev-libs/libxslt
106 - doc-pdf? ( dev-java/fop )
107 - www-client/lynx
108 - )
109 - qt5? (
110 - dev-qt/linguist-tools:5
111 - )
112 - sys-devel/bison
113 - sys-devel/flex
114 - virtual/pkgconfig
115 -"
116 -RDEPEND="
117 - ${CDEPEND}
118 - gtk? ( virtual/freedesktop-icon-theme )
119 - qt5? ( virtual/freedesktop-icon-theme )
120 - selinux? ( sec-policy/selinux-wireshark )
121 -"
122 -PATCHES=(
123 - "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch
124 - "${FILESDIR}"/${PN}-2.1.0-sse4_2-r1.patch
125 - "${FILESDIR}"/${PN}-99999999-androiddump.patch
126 -)
127 -
128 -pkg_setup() {
129 - enewgroup wireshark
130 -}
131 -
132 -src_prepare() {
133 - default
134 -
135 - eautoreconf
136 -}
137 -
138 -src_configure() {
139 - local myconf
140 -
141 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
142 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
143 - if use kerberos; then
144 - case $(krb5-config --libs) in
145 - *-lcrypto*)
146 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
147 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
148 - ewarn "license and the GPL, so do your check before distributing such package."
149 - myconf+=( "--with-ssl" )
150 - ;;
151 - esac
152 - fi
153 -
154 - # Enable wireshark binary with any supported GUI toolkit (bug #473188)
155 - if use gtk || use qt5; then
156 - myconf+=( "--enable-wireshark" )
157 - else
158 - myconf+=( "--disable-wireshark" )
159 - fi
160 -
161 - if ! use qt5; then
162 - myconf+=( "--with-qt=no" )
163 - fi
164 -
165 - if use qt5; then
166 - export QT_MIN_VERSION=5.3.0
167 - append-cxxflags -fPIC -DPIC
168 - fi
169 -
170 - # Hack around inability to disable doxygen/fop doc generation
171 - use doc || export ac_cv_prog_HAVE_DOXYGEN=false
172 - use doc-pdf || export ac_cv_prog_HAVE_FOP=false
173 -
174 - # dumpcap requires libcap
175 - # --disable-profile-build bugs #215806, #292991, #479602
176 - econf \
177 - $(use androiddump && use pcap && echo --enable-androiddump-use-libpcap=yes) \
178 - $(use_enable androiddump) \
179 - $(use_enable ciscodump) \
180 - $(use_enable randpkt) \
181 - $(use_enable randpktdump) \
182 - $(use_enable sshdump) \
183 - $(use_enable tfshark) \
184 - $(use_with adns c-ares) \
185 - $(use_with caps libcap) \
186 - $(use_with geoip) \
187 - $(use_with gtk gtk 3) \
188 - $(use_with kerberos krb5) \
189 - $(use_with libssh ssh) \
190 - $(use_with libxml2) \
191 - $(use_with lua) \
192 - $(use_with nghttp2) \
193 - $(use_with pcap dumpcap-group wireshark) \
194 - $(use_with pcap) \
195 - $(use_with portaudio) \
196 - $(use_with sbc) \
197 - $(use_with smi libsmi) \
198 - $(use_with snappy) \
199 - $(use_with spandsp) \
200 - $(use_with ssl gnutls) \
201 - $(use_with zlib) \
202 - $(usex cpu_flags_x86_sse4_2 --enable-sse4_2 '') \
203 - $(usex netlink --with-libnl=3 --without-libnl) \
204 - $(usex qt5 --with-qt=5 '') \
205 - $(usex qt5 LRELEASE=$(qt5_get_bindir)/lrelease '') \
206 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '') \
207 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') \
208 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '') \
209 - --disable-profile-build \
210 - --disable-warnings-as-errors \
211 - --sysconfdir="${EPREFIX}"/etc/wireshark \
212 - ${myconf[@]}
213 -}
214 -
215 -src_compile() {
216 - default
217 -
218 - if use doc; then
219 - emake -j1 -C docbook
220 - if use doc-pdf; then
221 - addpredict "/root/.java"
222 - emake -C docbook all-pdf
223 - fi
224 - fi
225 -}
226 -
227 -src_install() {
228 - default
229 -
230 - # FAQ is not required as is installed from help/faq.txt
231 - dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \
232 - doc/{randpkt.txt,README*}
233 -
234 - if use doc; then
235 - docinto /usr/share/doc/${PF}/html
236 - dodoc -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}}
237 - if use doc-pdf; then
238 - docinto /usr/share/doc/${PF}/pdf/
239 - dodoc docbook/{developer,user}-guide-{a4,us}.pdf docbook/release-notes.pdf
240 - fi
241 - fi
242 -
243 - # install headers
244 - local wsheader
245 - for wsheader in \
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_diag_control.h \
256 - ws_symbol_export.h \
257 - wsutil/*.h
258 - do
259 - insinto /usr/include/wireshark/$( dirname ${wsheader} )
260 - doins ${wsheader}
261 - done
262 -
263 - #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/
264 - insinto /usr/include/wiretap
265 - doins wiretap/wtap.h
266 -
267 - if use gtk || use qt5; then
268 - local c d
269 - for c in hi lo; do
270 - for d in 16 32 48; do
271 - insinto /usr/share/icons/${c}color/${d}x${d}/apps
272 - newins image/${c}${d}-app-wireshark.png wireshark.png
273 - done
274 - done
275 - for d in 16 24 32 48 64 128 256 ; do
276 - insinto /usr/share/icons/hicolor/${d}x${d}/mimetypes
277 - newins image/WiresharkDoc-${d}.png application-vnd.tcpdump.pcap.png
278 - done
279 - fi
280 -
281 - prune_libtool_files
282 -}
283 -
284 -pkg_postinst() {
285 - # Add group for users allowed to sniff.
286 - enewgroup wireshark
287 -
288 - if use pcap; then
289 - fcaps -o 0 -g wireshark -m 4710 -M 0710 \
290 - cap_dac_read_search,cap_net_raw,cap_net_admin \
291 - "${EROOT}"/usr/bin/dumpcap
292 - fi
293 -
294 - ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
295 - ewarn "add yourself to the wireshark group. This security measure ensures"
296 - ewarn "that only trusted users are allowed to sniff your traffic."
297 -}