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