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