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