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.0.1975.ebuild metadata.xml ChangeLog
Date: Thu, 02 Oct 2014 12:17:06
Message-Id: 20141002121700.EF03E6C33@oystercatcher.gentoo.org
1 jer 14/10/02 12:17:00
2
3 Modified: metadata.xml ChangeLog
4 Added: wireshark-1.99.0.1975.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key A792A613)
9
10 Revision Changes Path
11 1.25 net-analyzer/wireshark/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/metadata.xml?rev=1.25&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/metadata.xml?rev=1.25&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/metadata.xml?r1=1.24&r2=1.25
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/metadata.xml,v
20 retrieving revision 1.24
21 retrieving revision 1.25
22 diff -u -r1.24 -r1.25
23 --- metadata.xml 27 Sep 2014 10:58:51 -0000 1.24
24 +++ metadata.xml 2 Oct 2014 12:17:00 -0000 1.25
25 @@ -33,5 +33,6 @@
26 <flag name='pcap'>Use <pkg>net-libs/libpcap</pkg> for network packet capturing (build dumpcap, rawshark)</flag>
27 <flag name='qt4'>Build the wireshark executable with an experimental Qt UI instead of GTK+.</flag>
28 <flag name='smi'>Use <pkg>net-libs/libsmi</pkg> to resolve numeric OIDs into human readable format</flag>
29 +<flag name='sse4_2'> Support SSE4.2 (Streaming SIMD Extensions 4.2) instructions</flag>
30 </use>
31 </pkgmetadata>
32
33
34
35 1.657 net-analyzer/wireshark/ChangeLog
36
37 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.657&view=markup
38 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.657&content-type=text/plain
39 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/ChangeLog?r1=1.656&r2=1.657
40
41 Index: ChangeLog
42 ===================================================================
43 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v
44 retrieving revision 1.656
45 retrieving revision 1.657
46 diff -u -r1.656 -r1.657
47 --- ChangeLog 27 Sep 2014 10:58:51 -0000 1.656
48 +++ ChangeLog 2 Oct 2014 12:17:00 -0000 1.657
49 @@ -1,6 +1,13 @@
50 # ChangeLog for net-analyzer/wireshark
51 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
52 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.656 2014/09/27 10:58:51 jer Exp $
53 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.657 2014/10/02 12:17:00 jer Exp $
54 +
55 +*wireshark-1.99.0.1975 (02 Oct 2014)
56 +
57 + 02 Oct 2014; Jeroen Roovers <jer@g.o> +wireshark-1.99.0.1975.ebuild,
58 + +files/wireshark-1.99.0.1975-gcc_option.patch,
59 + +files/wireshark-1.99.0.1975-sse4_2.patch, metadata.xml:
60 + Version bump.
61
62 27 Sep 2014; Jeroen Roovers <jer@g.o> -wireshark-1.10.9.ebuild,
63 -files/wireshark-1.10.1-oldlibs.patch,
64
65
66
67 1.1 net-analyzer/wireshark/wireshark-1.99.0.1975.ebuild
68
69 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.99.0.1975.ebuild?rev=1.1&view=markup
70 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.99.0.1975.ebuild?rev=1.1&content-type=text/plain
71
72 Index: wireshark-1.99.0.1975.ebuild
73 ===================================================================
74 # Copyright 1999-2014 Gentoo Foundation
75 # Distributed under the terms of the GNU General Public License v2
76 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-1.99.0.1975.ebuild,v 1.1 2014/10/02 12:17:00 jer Exp $
77
78 EAPI=5
79 inherit autotools eutils fcaps qt4-r2 user versionator
80
81 DESCRIPTION="A network protocol analyzer formerly known as ethereal"
82 HOMEPAGE="http://www.wireshark.org/"
83
84 WS_GIT="0efa992"
85 WS_PV="$(version_format_string '$1.$2.$3-$4-g${WS_GIT}')"
86 SRC_URI="${HOMEPAGE}download/automated/src/${PN}-${WS_PV}.tar.bz2"
87
88 LICENSE="GPL-2"
89 SLOT="0/${PV}"
90 KEYWORDS=""
91 IUSE="
92 adns +caps crypt doc doc-pdf geoip +gtk3 ipv6 kerberos lua +netlink +pcap
93 portaudio +qt4 selinux smi sse4_2 ssl zlib
94 "
95 REQUIRED_USE="
96 ssl? ( crypt )
97 "
98
99 GTK_COMMON_DEPEND="
100 x11-libs/gdk-pixbuf
101 x11-libs/pango
102 x11-misc/xdg-utils
103 "
104 RDEPEND="
105 >=dev-libs/glib-2.14:2
106 netlink? ( dev-libs/libnl:3 )
107 adns? ( >=net-dns/c-ares-1.5 )
108 crypt? ( dev-libs/libgcrypt:0 )
109 caps? ( sys-libs/libcap )
110 geoip? ( dev-libs/geoip )
111 gtk3? (
112 ${GTK_COMMON_DEPEND}
113 x11-libs/gtk+:3
114 )
115 kerberos? ( virtual/krb5 )
116 lua? ( >=dev-lang/lua-5.1 )
117 pcap? ( net-libs/libpcap )
118 portaudio? ( media-libs/portaudio )
119 qt4? (
120 dev-qt/qtcore:4
121 dev-qt/qtgui:4
122 x11-misc/xdg-utils
123 )
124 selinux? ( sec-policy/selinux-wireshark )
125 smi? ( net-libs/libsmi )
126 ssl? ( net-libs/gnutls )
127 zlib? ( sys-libs/zlib !=sys-libs/zlib-1.2.4 )
128 "
129
130 DEPEND="
131 ${RDEPEND}
132 doc? (
133 app-doc/doxygen
134 app-text/asciidoc
135 dev-libs/libxml2
136 dev-libs/libxslt
137 doc-pdf? ( dev-java/fop )
138 www-client/lynx
139 )
140 >=virtual/perl-Pod-Simple-3.170.0
141 sys-devel/bison
142 sys-devel/flex
143 virtual/perl-Getopt-Long
144 virtual/perl-Time-Local
145 virtual/pkgconfig
146 "
147
148 S=${WORKDIR}/${PN}-${WS_PV}
149
150 pkg_setup() {
151 enewgroup wireshark
152 }
153
154 src_prepare() {
155 epatch \
156 "${FILESDIR}"/${PN}-1.6.13-ldflags.patch \
157 "${FILESDIR}"/${PN}-1.11.0-oldlibs.patch \
158 "${FILESDIR}"/${PN}-1.11.3-gtk-deprecated-warnings.patch \
159 "${FILESDIR}"/${P}-gcc_option.patch \
160 "${FILESDIR}"/${P}-sse4_2.patch
161
162 # Qt5 support is broken since the build system does not determine
163 # properly which `moc' it ought to use
164 sed -i -e 's|Qt5||g' acinclude.m4 || die
165
166 epatch_user
167
168 eautoreconf
169 }
170
171 src_configure() {
172 local myconf
173
174 # Workaround bug #213705. If krb5-config --libs has -lcrypto then pass
175 # --with-ssl to ./configure. (Mimics code from acinclude.m4).
176 if use kerberos; then
177 case $(krb5-config --libs) in
178 *-lcrypto*)
179 ewarn "Kerberos was built with ssl support: linkage with openssl is enabled."
180 ewarn "Note there are annoying license incompatibilities between the OpenSSL"
181 ewarn "license and the GPL, so do your check before distributing such package."
182 myconf+=( "--with-ssl" )
183 ;;
184 esac
185 fi
186
187 # Enable wireshark binary with any supported GUI toolkit (bug #473188)
188 if use gtk3 || use qt4 ; then
189 myconf+=( "--enable-wireshark" )
190 else
191 myconf+=( "--disable-wireshark" )
192 fi
193
194 # Hack around inability to disable doxygen/fop doc generation
195 use doc || export ac_cv_prog_HAVE_DOXYGEN=false
196 use doc-pdf || export ac_cv_prog_HAVE_FOP=false
197
198 # dumpcap requires libcap
199 # --disable-profile-build bugs #215806, #292991, #479602
200 econf \
201 $(use_enable ipv6) \
202 $(use_with adns c-ares) \
203 $(use_with caps libcap) \
204 $(use_with crypt gcrypt) \
205 $(use_with geoip) \
206 $(use_with gtk3) \
207 $(use_with kerberos krb5) \
208 $(use_with lua) \
209 $(use_with pcap dumpcap-group wireshark) \
210 $(use_with pcap) \
211 $(use_with portaudio) \
212 $(use_with qt4 qt) \
213 $(use_with smi libsmi) \
214 $(use_with ssl gnutls) \
215 $(use_with zlib) \
216 $(usex netlink --with-libnl=3 --without-libnl) \
217 $(usex sse4_2 --enable-sse4_2 '') \
218 --disable-profile-build \
219 --disable-usr-local \
220 --disable-warnings-as-errors \
221 --sysconfdir="${EPREFIX}"/etc/wireshark \
222 --without-adns \
223 ${myconf[@]}
224 }
225
226 src_compile() {
227 default
228 use doc && emake -j1 -C docbook
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 run wireshark as normal user you have to add yourself to"
302 ewarn "the wireshark group. This security measure ensures that only trusted"
303 ewarn "users are allowed to sniff your traffic."
304 }