Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/wireshark: wireshark-1.99.8.ebuild ChangeLog wireshark-99999999.ebuild wireshark-1.99.7.ebuild
Date: Sat, 25 Jul 2015 07:02:41
Message-Id: 20150725070235.59DFEED@oystercatcher.gentoo.org
1 jer 15/07/25 07:02:35
2
3 Modified: ChangeLog wireshark-99999999.ebuild
4 Added: wireshark-1.99.8.ebuild
5 Removed: wireshark-1.99.7.ebuild
6 Log:
7 Version bump.
8
9 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key A792A613)
10
11 Revision Changes Path
12 1.741 net-analyzer/wireshark/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.741&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.741&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/ChangeLog?r1=1.740&r2=1.741
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v
21 retrieving revision 1.740
22 retrieving revision 1.741
23 diff -u -r1.740 -r1.741
24 --- ChangeLog 24 Jul 2015 05:44:36 -0000 1.740
25 +++ ChangeLog 25 Jul 2015 07:02:35 -0000 1.741
26 @@ -1,6 +1,14 @@
27 # ChangeLog for net-analyzer/wireshark
28 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.740 2015/07/24 05:44:36 jer Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.741 2015/07/25 07:02:35 jer Exp $
31 +
32 +*wireshark-1.99.8 (25 Jul 2015)
33 +
34 + 25 Jul 2015; Jeroen Roovers <jer@g.o> -wireshark-1.99.7.ebuild,
35 + +wireshark-1.99.8.ebuild, wireshark-99999999.ebuild,
36 + +files/wireshark-1.99.8-qtchooser.patch,
37 + files/wireshark-99999999-pkgconfig.patch:
38 + Version bump.
39
40 24 Jul 2015; Jeroen Roovers <jer@g.o> wireshark-1.12.6.ebuild,
41 +files/wireshark-1.12.6-rcc.patch:
42
43
44
45 1.18 net-analyzer/wireshark/wireshark-99999999.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-99999999.ebuild?rev=1.18&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-99999999.ebuild?rev=1.18&content-type=text/plain
49 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-99999999.ebuild?r1=1.17&r2=1.18
50
51 Index: wireshark-99999999.ebuild
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-99999999.ebuild,v
54 retrieving revision 1.17
55 retrieving revision 1.18
56 diff -u -r1.17 -r1.18
57 --- wireshark-99999999.ebuild 20 Jul 2015 16:28:19 -0000 1.17
58 +++ wireshark-99999999.ebuild 25 Jul 2015 07:02:35 -0000 1.18
59 @@ -1,6 +1,6 @@
60 # Copyright 1999-2015 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-99999999.ebuild,v 1.17 2015/07/20 16:28:19 pinkbyte Exp $
63 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-99999999.ebuild,v 1.18 2015/07/25 07:02:35 jer Exp $
64
65 EAPI=5
66 inherit autotools eutils fcaps flag-o-matic git-r3 multilib qmake-utils qt4-r2 user
67 @@ -99,7 +99,8 @@
68 "${FILESDIR}"/${PN}-1.11.0-oldlibs.patch \
69 "${FILESDIR}"/${PN}-1.99.0.1975-sse4_2.patch \
70 "${FILESDIR}"/${PN}-99999999-pkgconfig.patch \
71 - "${FILESDIR}"/${PN}-1.99.7-qt-pie.patch
72 + "${FILESDIR}"/${PN}-1.99.7-qt-pie.patch \
73 + "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch
74
75 epatch_user
76
77
78
79
80 1.1 net-analyzer/wireshark/wireshark-1.99.8.ebuild
81
82 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.99.8.ebuild?rev=1.1&view=markup
83 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.99.8.ebuild?rev=1.1&content-type=text/plain
84
85 Index: wireshark-1.99.8.ebuild
86 ===================================================================
87 # Copyright 1999-2015 Gentoo Foundation
88 # Distributed under the terms of the GNU General Public License v2
89 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-1.99.8.ebuild,v 1.1 2015/07/25 07:02:35 jer Exp $
90
91 EAPI=5
92 inherit autotools eutils fcaps flag-o-matic multilib qmake-utils qt4-r2 user
93
94 DESCRIPTION="A network protocol analyzer formerly known as ethereal"
95 HOMEPAGE="http://www.wireshark.org/"
96 SRC_URI="${HOMEPAGE}download/src/all-versions/${P}.tar.bz2"
97
98 LICENSE="GPL-2"
99 SLOT="0/${PV}"
100 KEYWORDS=""
101 IUSE="
102 adns +caps crypt doc doc-pdf geoip +gtk3 ipv6 kerberos lua +netlink +pcap
103 portaudio +qt4 qt5 selinux sbc smi cpu_flags_x86_sse4_2 ssl zlib
104 "
105 REQUIRED_USE="
106 ssl? ( crypt )
107 ?? ( qt4 qt5 )
108 "
109
110 GTK_COMMON_DEPEND="
111 x11-libs/gdk-pixbuf
112 x11-libs/pango
113 x11-misc/xdg-utils
114 "
115 CDEPEND="
116 >=dev-libs/glib-2.14:2
117 netlink? ( dev-libs/libnl:3 )
118 adns? ( >=net-dns/c-ares-1.5 )
119 crypt? ( dev-libs/libgcrypt:0 )
120 caps? ( sys-libs/libcap )
121 geoip? ( dev-libs/geoip )
122 gtk3? (
123 ${GTK_COMMON_DEPEND}
124 x11-libs/gtk+:3
125 )
126 kerberos? ( virtual/krb5 )
127 lua? ( >=dev-lang/lua-5.1:* )
128 pcap? ( net-libs/libpcap )
129 portaudio? ( media-libs/portaudio )
130 qt4? (
131 dev-qt/qtcore:4
132 dev-qt/qtgui:4[accessibility]
133 x11-misc/xdg-utils
134 )
135 qt5? (
136 dev-qt/qtcore:5
137 dev-qt/qtgui:5
138 dev-qt/qtprintsupport:5
139 dev-qt/qtwidgets:5
140 x11-misc/xdg-utils
141 )
142 sbc? ( media-libs/sbc )
143 smi? ( net-libs/libsmi )
144 ssl? ( net-libs/gnutls )
145 zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 )
146 "
147 # We need perl for `pod2html`. The rest of the perl stuff is to block older
148 # and broken installs. #455122
149 DEPEND="
150 ${CDEPEND}
151 dev-lang/perl
152 !<virtual/perl-Pod-Simple-3.170
153 !<perl-core/Pod-Simple-3.170
154 doc? (
155 app-doc/doxygen
156 app-text/asciidoc
157 dev-libs/libxml2
158 dev-libs/libxslt
159 doc-pdf? ( dev-java/fop )
160 www-client/lynx
161 )
162 sys-devel/bison
163 sys-devel/flex
164 virtual/pkgconfig
165 "
166 RDEPEND="
167 ${CDEPEND}
168 gtk3? ( virtual/freedesktop-icon-theme )
169 qt4? ( virtual/freedesktop-icon-theme )
170 qt5? ( virtual/freedesktop-icon-theme )
171 selinux? ( sec-policy/selinux-wireshark )
172 "
173
174 pkg_setup() {
175 enewgroup wireshark
176 }
177
178 src_prepare() {
179 epatch \
180 "${FILESDIR}"/${PN}-1.6.13-ldflags.patch \
181 "${FILESDIR}"/${PN}-1.11.0-oldlibs.patch \
182 "${FILESDIR}"/${PN}-1.99.6-gcc_option.patch \
183 "${FILESDIR}"/${PN}-1.99.0.1975-sse4_2.patch \
184 "${FILESDIR}"/${PN}-99999999-pkgconfig.patch \
185 "${FILESDIR}"/${PN}-1.99.7-qt-pie.patch \
186 "${FILESDIR}"/${PN}-1.99.8-qtchooser.patch
187
188 epatch_user
189
190 eautoreconf
191 }
192
193 src_configure() {
194 local myconf
195
196 # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
197 # --with-ssl to ./configure. (Mimics code from acinclude.m4).
198 if use kerberos; then
199 case $(krb5-config --libs) in
200 *-lcrypto*)
201 ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
202 ewarn "Note there are annoying license incompatibilities between the OpenSSL"
203 ewarn "license and the GPL, so do your check before distributing such package."
204 myconf+=( "--with-ssl" )
205 ;;
206 esac
207 fi
208
209 # Enable wireshark binary with any supported GUI toolkit (bug #473188)
210 if use gtk3 || use qt4 || use qt5; then
211 myconf+=( "--enable-wireshark" )
212 else
213 myconf+=( "--disable-wireshark" )
214 fi
215
216 if ! use qt4 && ! use qt5; then
217 myconf+=( "--with-qt=no" )
218 fi
219
220 if use qt4; then
221 export QT_MIN_VERSION=4.6.0
222 fi
223
224 if use qt5; then
225 export QT_MIN_VERSION=5.3.0
226 append-cxxflags -fPIC -DPIC
227 fi
228
229 # Hack around inability to disable doxygen/fop doc generation
230 use doc || export ac_cv_prog_HAVE_DOXYGEN=false
231 use doc-pdf || export ac_cv_prog_HAVE_FOP=false
232
233 # dumpcap requires libcap
234 # --disable-profile-build bugs #215806, #292991, #479602
235 econf \
236 $(use_enable ipv6) \
237 $(use_with adns c-ares) \
238 $(use_with caps libcap) \
239 $(use_with crypt gcrypt) \
240 $(use_with geoip) \
241 $(use_with gtk3) \
242 $(use_with kerberos krb5) \
243 $(use_with lua) \
244 $(use_with pcap dumpcap-group wireshark) \
245 $(use_with pcap) \
246 $(use_with portaudio) \
247 $(usex qt4 --with-qt=4 '') \
248 $(usex qt5 --with-qt=5 '') \
249 $(usex qt4 MOC=$(qt4_get_bindir)/moc '') \
250 $(usex qt4 RCC=$(qt4_get_bindir)/rcc '') \
251 $(usex qt4 UIC=$(qt4_get_bindir)/uic '') \
252 $(usex qt5 MOC=$(qt5_get_bindir)/moc '') \
253 $(usex qt5 RCC=$(qt5_get_bindir)/rcc '') \
254 $(usex qt5 UIC=$(qt5_get_bindir)/uic '') \
255 $(use_with sbc) \
256 $(use_with smi libsmi) \
257 $(use_with ssl gnutls) \
258 $(use_with zlib) \
259 $(usex netlink --with-libnl=3 --without-libnl) \
260 $(usex cpu_flags_x86_sse4_2 --enable-sse4_2 '') \
261 --disable-profile-build \
262 --disable-usr-local \
263 --disable-warnings-as-errors \
264 --sysconfdir="${EPREFIX}"/etc/wireshark \
265 --without-adns \
266 ${myconf[@]}
267 }
268
269 src_compile() {
270 default
271 if use doc; then
272 use doc-pdf && addpredict "/root/.java"
273 emake -j1 -C docbook
274 fi
275 }
276
277 src_install() {
278 default
279 if use doc; then
280 dohtml -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}}
281 if use doc-pdf; then
282 insinto /usr/share/doc/${PF}/pdf/
283 doins docbook/{{developer,user}-guide,release-notes}-{a4,us}.pdf
284 fi
285 fi
286
287 # FAQ is not required as is installed from help/faq.txt
288 dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \
289 doc/{randpkt.txt,README*}
290
291 # install headers
292 local wsheader
293 for wsheader in \
294 color.h \
295 config.h \
296 epan/*.h \
297 epan/crypt/*.h \
298 epan/dfilter/*.h \
299 epan/dissectors/*.h \
300 epan/ftypes/*.h \
301 epan/wmem/*.h \
302 register.h \
303 wiretap/*.h \
304 ws_symbol_export.h \
305 wsutil/*.h
306 do
307 insinto /usr/include/wireshark/$( dirname ${wsheader} )
308 doins ${wsheader}
309 done
310
311 #with the above this really shouldn't be needed, but things may be looking in wiretap/ instead of wireshark/wiretap/
312 insinto /usr/include/wiretap
313 doins wiretap/wtap.h
314
315 if use gtk3 || use qt4; then
316 local c d
317 for c in hi lo; do
318 for d in 16 32 48; do
319 insinto /usr/share/icons/${c}color/${d}x${d}/apps
320 newins image/${c}${d}-app-wireshark.png wireshark.png
321 done
322 done
323 fi
324
325 if use gtk3; then
326 domenu wireshark.desktop
327 fi
328
329 if use qt4; then
330 sed -e '/Exec=/s|wireshark|&-qt|g' wireshark.desktop > wireshark-qt.desktop || die
331 domenu wireshark-qt.desktop
332 fi
333
334 prune_libtool_files
335 }
336
337 pkg_postinst() {
338 # Add group for users allowed to sniff.
339 enewgroup wireshark
340
341 if use pcap; then
342 fcaps -o 0 -g wireshark -m 4710 -M 0710 \
343 cap_dac_read_search,cap_net_raw,cap_net_admin \
344 "${EROOT}"/usr/bin/dumpcap
345 fi
346
347 ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
348 ewarn "add yourself to the wireshark group. This security measure ensures"
349 ewarn "that only trusted users are allowed to sniff your traffic."
350 }