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