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