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