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, 30 Jun 2017 09:50:43
Message-Id: 1498816222.75471ad17e395d55435321577184685e6bc81c44.jer@gentoo
1 commit: 75471ad17e395d55435321577184685e6bc81c44
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 30 09:50:22 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 30 09:50:22 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75471ad1
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.2.5.ebuild | 259 --------------------------
14 2 files changed, 260 deletions(-)
15
16 diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
17 index f71bdada53c..b467df14167 100644
18 --- a/net-analyzer/wireshark/Manifest
19 +++ b/net-analyzer/wireshark/Manifest
20 @@ -1,4 +1,3 @@
21 -DIST wireshark-2.2.5.tar.bz2 32297102 SHA256 75dd88d3d6336559e5b0b72077d8a772a988197d571f00029986225fef609ac8 SHA512 c419950683eb399f851e10cc268d541cbd6e75a957f412650fa9564760908864fcd0d5d6c3520e656d93c31cd5f1216a514be154dfa950fcfd2804e66155985e WHIRLPOOL 2c65d7806673adb550dcdd8fa032a4dce8e1087e5c57b132c9ac53d6d93d6fb0da3219573bc2ecb12df7865a9a32a1a28378e03b3e3439853200186d42f18e7d
22 DIST wireshark-2.2.7.tar.bz2 32309420 SHA256 689ddf62221b152779d8846ab5b2063cc7fd41ec1a9f04eefab09b5d5486dbb5 SHA512 417836810eb895b3f2a6ac1cfd138fb0275382ea2edc60fc5f5e5f8ce433b56b8120aa8b58b4f77296986630fdf49e4c5c3859b2c2c5e26b1ce0651393b7d716 WHIRLPOOL 0361821da9c113a8de1339cc48cae0291be84bcffb1ba34b1fc3f457b22525329e954a2060f7eef25bca550d0ccdaf4a9e9587d35394b0abd9b0d38bc6023e44
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.2.5.ebuild b/net-analyzer/wireshark/wireshark-2.2.5.ebuild
27 deleted file mode 100644
28 index 324e1ffb5d9..00000000000
29 --- a/net-analyzer/wireshark/wireshark-2.2.5.ebuild
30 +++ /dev/null
31 @@ -1,259 +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.bz2"
41 -
42 -LICENSE="GPL-2"
43 -SLOT="0/${PV}"
44 -KEYWORDS="ia64"
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 -}