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