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: Thu, 29 Sep 2016 13:28:01
Message-Id: 1475155625.61fbe39aab2b4ddcc7c8771377892e732b68a938.jer@gentoo
1 commit: 61fbe39aab2b4ddcc7c8771377892e732b68a938
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 29 10:48:01 2016 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 29 13:27:05 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61fbe39a
7
8 net-analyzer/wireshark: Old.
9
10 Package-Manager: portage-2.3.1
11
12 net-analyzer/wireshark/Manifest | 1 -
13 net-analyzer/wireshark/wireshark-2.0.5.ebuild | 266 --------------------------
14 2 files changed, 267 deletions(-)
15
16 diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
17 index c00bf12..ed188b4 100644
18 --- a/net-analyzer/wireshark/Manifest
19 +++ b/net-analyzer/wireshark/Manifest
20 @@ -1,4 +1,3 @@
21 DIST wireshark-2.0.4.tar.bz2 31121258 SHA256 9ea9c82da9942194ebc8fc5c951a02e6d179afa7472cb6d96ca76154510de1a5 SHA512 f86c41ba9fb25ea61f3947819676417f7af64301cdd37c91666d59b179c45d76c1d0e8739ef6bcf3bb077d3216a65458b3d56755dd08f1fb05cc87cb810f8a07 WHIRLPOOL 2a495221cc1e28283ca19c181fb531fbd01194dd9a0ce9ab6df2a50ce0e19dc21ff5fe023d08a88ebcbb2bfe2a55d47e173401bc09ff8f5356e695fb4cacb12b
22 -DIST wireshark-2.0.5.tar.bz2 31124989 SHA256 0ce0241330828973f5b4efee422a3760cab8ce0b41e7721c4b9fd185be1bb10b SHA512 5b04165e1c18b30743ec6fc0bc81a02eb4906e87cbdc128da1e16662d855ed4a0545eb249aadba8a7e82b3abb4e1fdc5c56c06faaf730f56616332c0b7775e9c WHIRLPOOL 1f1a7dafa92c244534bd938f2b9290e33d6b2990a729a7e08aada81a3e935ccb93bbb42e0b952474b7d1c21588bf04057c40c2786ada1722f424a47dda8e192d
23 DIST wireshark-2.0.6.tar.bz2 31213641 SHA256 70f3ac4fbe6d3b51abe602f34f21b527a6819ca5017f4d1b27f963fc52c298db SHA512 2e4c9b76e365c6a2952b6a949173982286783884a60faaffb78a0364f606cb43811313ee31ada4c437cf831440253038d47976e5a1d73c3b1a85645691b1e5d9 WHIRLPOOL aa6570e5250c27ee3ac1ac9ea834102e0136f1482f702845b03aa4ab83fbcec64f8454fc9e9f6f92298e06208293c49a030f37d9dd6b569c3ed7c211e22eb5f5
24 DIST wireshark-2.2.0.tar.bz2 32141141 SHA256 a6847e741efcba6cb9d92d464d4219917bee3ad0b8f5b0f80d4388ad2f3f1104 SHA512 03dd1ce686b0e012d3498d6966382db1ff39844e2b03286eded5d77062a958d2dc939b00558708ae37b8e354d95ee6c4aa32023477d862b35bff4e2a0f8f3326 WHIRLPOOL bac335d03f919a079d3192af4e94998ee6a73e90e6f73512a3a5353b62af27967ebdf1d921689493d83315610f25cc8aeac62b8b4574aa3bb82d44e5275065c9
25
26 diff --git a/net-analyzer/wireshark/wireshark-2.0.5.ebuild b/net-analyzer/wireshark/wireshark-2.0.5.ebuild
27 deleted file mode 100644
28 index 1f24f75..00000000
29 --- a/net-analyzer/wireshark/wireshark-2.0.5.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 -}