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: Sat, 02 Jul 2016 11:08:41
Message-Id: 1467457696.92fca5862f98e2021541cabf8f5e453c4465a124.jer@gentoo
1 commit: 92fca5862f98e2021541cabf8f5e453c4465a124
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 2 09:08:44 2016 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 2 11:08:16 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92fca586
7
8 net-analyzer/wireshark: Old.
9
10 Package-Manager: portage-2.3.0
11
12 net-analyzer/wireshark/Manifest | 1 -
13 net-analyzer/wireshark/wireshark-2.0.3.ebuild | 266 --------------------------
14 2 files changed, 267 deletions(-)
15
16 diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
17 index 7d5f2d5..53cdf92 100644
18 --- a/net-analyzer/wireshark/Manifest
19 +++ b/net-analyzer/wireshark/Manifest
20 @@ -1,4 +1,3 @@
21 DIST wireshark-2.0.2.tar.bz2 31073440 SHA256 e921fb072085a5654d899949bb561d0687f4819f7b63ba35777bb949a9b6b9c1 SHA512 a3645f0c2600091d3af76d12db4b73f83e6af4686a1bd7a336a420e4d7505ed281dfabb05c05cd6f58084fa3f25b6b9014b6f273b875c713ee39c77b4c5c715f WHIRLPOOL 4041698412d96ce495e2b564c897b4d770eea1851e431b43b2ef1bc6834bf57460ace5cc2e3f9ae6e05babbbec85e096ee1a87bc68211677202215c4dd0b53e5
22 -DIST wireshark-2.0.3.tar.bz2 31110988 SHA256 e196376e75fe21fdef41b4eaa27ce2e1b2b561e7f7b20328a8e96657cc4465fc SHA512 37d64b5f84249f263eae3159794450f642857c91d4fffe483cd562fa8abc93cc8a3152f66ca6b6230b2990e36c28a4ffbf696ff630058990154946eed457f076 WHIRLPOOL 7bb07556b047e9bee0ef7eac7a42dd47c32d93a44dde4abc0bff946e06f8f3685c273707246f9429f32a4d8802a1912a29078aceb78a712a171691ccdccf2831
23 DIST wireshark-2.0.4.tar.bz2 31121258 SHA256 9ea9c82da9942194ebc8fc5c951a02e6d179afa7472cb6d96ca76154510de1a5 SHA512 f86c41ba9fb25ea61f3947819676417f7af64301cdd37c91666d59b179c45d76c1d0e8739ef6bcf3bb077d3216a65458b3d56755dd08f1fb05cc87cb810f8a07 WHIRLPOOL 2a495221cc1e28283ca19c181fb531fbd01194dd9a0ce9ab6df2a50ce0e19dc21ff5fe023d08a88ebcbb2bfe2a55d47e173401bc09ff8f5356e695fb4cacb12b
24 DIST wireshark-2.1.0.tar.bz2 32605482 SHA256 f73bd7660056c0910c8a89f480f61ab9fe62866eadf1af49e3374da3fe16b4cc SHA512 9882014f4cb4f78034c4471f7667f9accdc32dd4c22b8ea799da7a0f2ad1bb7aaa47308ece503cd4e1955903138c06f219f309c8c6216f64d1e9c8747f118154 WHIRLPOOL 0ba0cca898bf4f302fabbe0f8dbc0fb7ff050c4dfb988d9d9622b97ae48fc3ca342f260136b1d2fc667407633817c09f5b5d7624081c2c59bdf7559339f03164
25
26 diff --git a/net-analyzer/wireshark/wireshark-2.0.3.ebuild b/net-analyzer/wireshark/wireshark-2.0.3.ebuild
27 deleted file mode 100644
28 index 0b71dab..0000000
29 --- a/net-analyzer/wireshark/wireshark-2.0.3.ebuild
30 +++ /dev/null
31 @@ -1,266 +0,0 @@
32 -# Copyright 1999-2016 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -# $Id$
35 -
36 -EAPI=5
37 -inherit autotools eutils fcaps flag-o-matic multilib qmake-utils qt4-r2 user
38 -
39 -DESCRIPTION="A network protocol analyzer formerly known as ethereal"
40 -HOMEPAGE="http://www.wireshark.org/"
41 -SRC_URI="${HOMEPAGE}download/src/all-versions/${P/_/}.tar.bz2"
42 -
43 -LICENSE="GPL-2"
44 -SLOT="0/${PV}"
45 -KEYWORDS="alpha amd64 ~arm hppa ~ia64 ~ppc ppc64 ~sparc ~x86 ~x86-fbsd"
46 -IUSE="
47 - adns androiddump +caps crypt doc doc-pdf geoip +gtk3 ipv6 kerberos lua
48 - +netlink +pcap portaudio +qt4 qt5 selinux sbc smi tfshark
49 - cpu_flags_x86_sse4_2 ssl zlib
50 -"
51 -REQUIRED_USE="
52 - ssl? ( crypt )
53 - ?? ( qt4 qt5 )
54 -"
55 -
56 -S=${WORKDIR}/${P/_/}
57 -
58 -GTK_COMMON_DEPEND="
59 - x11-libs/gdk-pixbuf
60 - x11-libs/pango
61 - x11-misc/xdg-utils
62 -"
63 -CDEPEND="
64 - >=dev-libs/glib-2.14:2
65 - netlink? ( dev-libs/libnl:3 )
66 - adns? ( >=net-dns/c-ares-1.5 )
67 - crypt? ( dev-libs/libgcrypt:0 )
68 - caps? ( sys-libs/libcap )
69 - geoip? ( dev-libs/geoip )
70 - gtk3? (
71 - ${GTK_COMMON_DEPEND}
72 - x11-libs/gtk+:3
73 - )
74 - kerberos? ( virtual/krb5 )
75 - lua? ( >=dev-lang/lua-5.1:* )
76 - pcap? ( net-libs/libpcap )
77 - portaudio? ( media-libs/portaudio )
78 - qt4? (
79 - dev-qt/qtcore:4
80 - dev-qt/qtgui:4[accessibility]
81 - x11-misc/xdg-utils
82 - )
83 - qt5? (
84 - dev-qt/qtcore:5
85 - dev-qt/qtgui:5
86 - dev-qt/qtmultimedia:5
87 - dev-qt/qtprintsupport:5
88 - dev-qt/qtwidgets:5
89 - x11-misc/xdg-utils
90 - )
91 - sbc? ( media-libs/sbc )
92 - smi? ( net-libs/libsmi )
93 - ssl? ( net-libs/gnutls )
94 - zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 )
95 -"
96 -# We need perl for `pod2html`. The rest of the perl stuff is to block older
97 -# and broken installs. #455122
98 -DEPEND="
99 - ${CDEPEND}
100 - dev-lang/perl
101 - !<virtual/perl-Pod-Simple-3.170
102 - !<perl-core/Pod-Simple-3.170
103 - doc? (
104 - app-doc/doxygen
105 - app-text/asciidoc
106 - dev-libs/libxml2
107 - dev-libs/libxslt
108 - doc-pdf? ( dev-java/fop )
109 - www-client/lynx
110 - )
111 - sys-devel/bison
112 - sys-devel/flex
113 - virtual/pkgconfig
114 -"
115 -RDEPEND="
116 - ${CDEPEND}
117 - gtk3? ( virtual/freedesktop-icon-theme )
118 - qt4? ( virtual/freedesktop-icon-theme )
119 - qt5? ( virtual/freedesktop-icon-theme )
120 - selinux? ( sec-policy/selinux-wireshark )
121 -"
122 -
123 -pkg_setup() {
124 - enewgroup wireshark
125 -}
126 -
127 -src_prepare() {
128 - epatch \
129 - "${FILESDIR}"/${PN}-1.6.13-ldflags.patch \
130 - "${FILESDIR}"/${PN}-1.11.0-oldlibs.patch \
131 - "${FILESDIR}"/${PN}-99999999-pkgconfig.patch \
132 - "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch \
133 - "${FILESDIR}"/${PN}-2.0.0-androiddump-pcap.patch \
134 - "${FILESDIR}"/${PN}-2.1.0-sse4_2.patch
135 -
136 - epatch_user
137 -
138 - eautoreconf
139 -}
140 -
141 -src_configure() {
142 - local myconf
143 -
144 - # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
145 - # --with-ssl to ./configure. (Mimics code from acinclude.m4).
146 - if use kerberos; then
147 - case $(krb5-config --libs) in
148 - *-lcrypto*)
149 - ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
150 - ewarn "Note there are annoying license incompatibilities between the OpenSSL"
151 - ewarn "license and the GPL, so do your check before distributing such package."
152 - myconf+=( "--with-ssl" )
153 - ;;
154 - esac
155 - fi
156 -
157 - # Enable wireshark binary with any supported GUI toolkit (bug #473188)
158 - if use gtk3 || use qt4 || use qt5; then
159 - myconf+=( "--enable-wireshark" )
160 - else
161 - myconf+=( "--disable-wireshark" )
162 - fi
163 -
164 - if ! use qt4 && ! use qt5; then
165 - myconf+=( "--with-qt=no" )
166 - fi
167 -
168 - if use qt4; then
169 - export QT_MIN_VERSION=4.6.0
170 - fi
171 -
172 - if use qt5; then
173 - export QT_MIN_VERSION=5.3.0
174 - append-cxxflags -fPIC -DPIC
175 - fi
176 -
177 - # Hack around inability to disable doxygen/fop doc generation
178 - use doc || export ac_cv_prog_HAVE_DOXYGEN=false
179 - use doc-pdf || export ac_cv_prog_HAVE_FOP=false
180 -
181 - # dumpcap requires libcap
182 - # --disable-profile-build bugs #215806, #292991, #479602
183 - econf \
184 - $(use androiddump && use pcap && echo --enable-androiddump-use-libpcap=yes) \
185 - $(use_enable androiddump) \
186 - $(use_enable ipv6) \
187 - $(use_enable tfshark) \
188 - $(use_with adns c-ares) \
189 - $(use_with caps libcap) \
190 - $(use_with crypt gcrypt) \
191 - $(use_with geoip) \
192 - $(use_with gtk3) \
193 - $(use_with kerberos krb5) \
194 - $(use_with lua) \
195 - $(use_with pcap dumpcap-group wireshark) \
196 - $(use_with pcap) \
197 - $(use_with portaudio) \
198 - $(usex qt4 --with-qt=4 '') \
199 - $(usex qt5 --with-qt=5 '') \
200 - $(usex qt4 MOC=$(qt4_get_bindir)/moc '') \
201 - $(usex qt4 RCC=$(qt4_get_bindir)/rcc '') \
202 - $(usex qt4 UIC=$(qt4_get_bindir)/uic '') \
203 - $(usex qt5 MOC=$(qt5_get_bindir)/moc '') \
204 - $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') \
205 - $(usex qt5 UIC=$(qt5_get_bindir)/uic '') \
206 - $(use_with sbc) \
207 - $(use_with smi libsmi) \
208 - $(use_with ssl gnutls) \
209 - $(use_with zlib) \
210 - $(usex netlink --with-libnl=3 --without-libnl) \
211 - $(usex cpu_flags_x86_sse4_2 --enable-sse4_2 '') \
212 - --disable-profile-build \
213 - --disable-usr-local \
214 - --disable-warnings-as-errors \
215 - --sysconfdir="${EPREFIX}"/etc/wireshark \
216 - --without-adns \
217 - ${myconf[@]}
218 -}
219 -
220 -src_compile() {
221 - default
222 - if use doc; then
223 - use doc-pdf && addpredict "/root/.java"
224 - emake -j1 -C docbook
225 - fi
226 -}
227 -
228 -src_install() {
229 - default
230 -
231 - if use doc; then
232 - dohtml -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}}
233 - if use doc-pdf; then
234 - insinto /usr/share/doc/${PF}/pdf/
235 - doins docbook/{developer,user}-guide-{a4,us}.pdf docbook/release-notes.pdf
236 - fi
237 - fi
238 -
239 - # FAQ is not required as is installed from help/faq.txt
240 - dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \
241 - doc/{randpkt.txt,README*}
242 -
243 - # install headers
244 - local wsheader
245 - for wsheader in \
246 - color.h \
247 - config.h \
248 - epan/*.h \
249 - epan/crypt/*.h \
250 - epan/dfilter/*.h \
251 - epan/dissectors/*.h \
252 - epan/ftypes/*.h \
253 - epan/wmem/*.h \
254 - register.h \
255 - wiretap/*.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 gtk3 || use qt4 || 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 -}