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