1 |
pva 11/06/02 05:42:26 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: wireshark-1.4.7.ebuild |
5 |
Removed: wireshark-1.4.5.ebuild |
6 |
Log: |
7 |
Version bump. Drop old. |
8 |
|
9 |
(Portage version: 2.1.9.46/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.296 net-analyzer/wireshark/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.296&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.296&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/ChangeLog?r1=1.295&r2=1.296 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v |
21 |
retrieving revision 1.295 |
22 |
retrieving revision 1.296 |
23 |
diff -u -r1.295 -r1.296 |
24 |
--- ChangeLog 24 May 2011 10:44:24 -0000 1.295 |
25 |
+++ ChangeLog 2 Jun 2011 05:42:25 -0000 1.296 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for net-analyzer/wireshark |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.295 2011/05/24 10:44:24 pva Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.296 2011/06/02 05:42:25 pva Exp $ |
31 |
+ |
32 |
+*wireshark-1.4.7 (01 Jun 2011) |
33 |
+ |
34 |
+ 01 Jun 2011; Peter Volkov <pva@g.o> -wireshark-1.4.5.ebuild, |
35 |
+ +wireshark-1.4.7.ebuild: |
36 |
+ Version bump. Drop old. |
37 |
|
38 |
*wireshark-1.6.0_rc1 (24 May 2011) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 net-analyzer/wireshark/wireshark-1.4.7.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.4.7.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/wireshark/wireshark-1.4.7.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: wireshark-1.4.7.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 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.4.7.ebuild,v 1.1 2011/06/02 05:42:25 pva Exp $ |
53 |
|
54 |
EAPI="3" |
55 |
PYTHON_DEPEND="python? 2" |
56 |
inherit libtool flag-o-matic eutils toolchain-funcs python autotools |
57 |
|
58 |
[[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && MY_P=${PN}-${PV/_} || MY_P=${P} |
59 |
DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
60 |
HOMEPAGE="http://www.wireshark.org/" |
61 |
SRC_URI="http://www.wireshark.org/download/src/all-versions/${MY_P}.tar.bz2" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
66 |
IUSE="adns ares doc doc-pdf gtk ipv6 lua gcrypt geoip kerberos |
67 |
profile +pcap portaudio python +caps selinux smi ssl threads zlib" |
68 |
|
69 |
RDEPEND=">=dev-libs/glib-2.14:2 |
70 |
zlib? ( sys-libs/zlib |
71 |
!=sys-libs/zlib-1.2.4 ) |
72 |
smi? ( net-libs/libsmi ) |
73 |
gtk? ( >=x11-libs/gtk+-2.4.0:2 |
74 |
x11-libs/pango |
75 |
dev-libs/atk |
76 |
x11-misc/xdg-utils ) |
77 |
ssl? ( net-libs/gnutls ) |
78 |
gcrypt? ( dev-libs/libgcrypt ) |
79 |
pcap? ( net-libs/libpcap ) |
80 |
caps? ( sys-libs/libcap ) |
81 |
kerberos? ( virtual/krb5 ) |
82 |
portaudio? ( media-libs/portaudio ) |
83 |
ares? ( >=net-dns/c-ares-1.5 ) |
84 |
!ares? ( adns? ( net-libs/adns ) ) |
85 |
geoip? ( dev-libs/geoip ) |
86 |
lua? ( >=dev-lang/lua-5.1 ) |
87 |
selinux? ( sec-policy/selinux-wireshark )" |
88 |
|
89 |
DEPEND="${RDEPEND} |
90 |
doc? ( dev-libs/libxslt |
91 |
app-text/docbook-xml-dtd:4.2 |
92 |
dev-libs/libxml2 |
93 |
app-doc/doxygen |
94 |
doc-pdf? ( dev-java/fop ) ) |
95 |
>=dev-util/pkgconfig-0.15.0 |
96 |
dev-lang/perl |
97 |
sys-devel/bison |
98 |
sys-apps/sed |
99 |
sys-devel/flex" |
100 |
|
101 |
S=${WORKDIR}/${MY_P} |
102 |
|
103 |
# borrowed from GSoC2010_Gentoo_Capabilities by constanze and flameyeys |
104 |
# @FUNCTION: fcaps |
105 |
# @USAGE: fcaps {uid:gid} {file-mode} {cap1[,cap2,...]} {file} |
106 |
# @RETURN: 0 if all okay; non-zero if failure and fallback |
107 |
# @DESCRIPTION: |
108 |
# fcaps sets the specified capabilities in the effective and permitted set of |
109 |
# the given file. In case of failure fcaps sets the given file-mode. |
110 |
fcaps() { |
111 |
local uid_gid=$1 |
112 |
local perms=$2 |
113 |
local capset=$3 |
114 |
local path=$4 |
115 |
local res |
116 |
|
117 |
chmod $perms $path && \ |
118 |
chown $uid_gid $path |
119 |
res=$? |
120 |
|
121 |
use caps || return $res |
122 |
|
123 |
#set the capability |
124 |
setcap "$capset=ep" "$path" &> /dev/null |
125 |
#check if the capabilitiy got set correctly |
126 |
setcap -v "$capset=ep" "$path" &> /dev/null |
127 |
res=$? |
128 |
|
129 |
if [ $res -ne 0 ]; then |
130 |
ewarn "Failed to set capabilities. Probable reason is missed kernel support." |
131 |
ewarn "Kernel must have SECURITY_FILE_CAPABILITIES, and <FS>_FS_SECURITY" |
132 |
ewarn "enabled (e.g. EXT3_FS_SECURITY) where <FS> is the filesystem to store" |
133 |
ewarn "${path}" |
134 |
ewarn |
135 |
ewarn "Falling back to suid now..." |
136 |
chmod u+s ${path} |
137 |
fi |
138 |
return $res |
139 |
} |
140 |
|
141 |
pkg_setup() { |
142 |
if ! use gtk; then |
143 |
ewarn "USE=-gtk disables gtk-based gui called wireshark." |
144 |
ewarn "Only command line utils will be built available" |
145 |
fi |
146 |
if use python; then |
147 |
python_set_active_version 2 |
148 |
python_pkg_setup |
149 |
fi |
150 |
# Add group for users allowed to sniff. |
151 |
enewgroup wireshark |
152 |
} |
153 |
|
154 |
src_prepare() { |
155 |
epatch "${FILESDIR}/${P}-wspy_dissectors_dir.patch" |
156 |
eautoreconf |
157 |
} |
158 |
|
159 |
src_configure() { |
160 |
local myconf |
161 |
|
162 |
if [[ $(gcc-major-version) -lt 3 || |
163 |
( $(gcc-major-version) -eq 3 && |
164 |
$(gcc-minor-version) -le 4 ) ]] ; then |
165 |
die "Unsupported compiler version, please upgrade." |
166 |
fi |
167 |
|
168 |
if use ares && use adns; then |
169 |
elog "You asked for both, ares and adns, but we can use only one of them." |
170 |
elog "c-ares supersedes adns resolver thus using c-ares (ares USE flag)." |
171 |
myconf="$(use_with ares c-ares) --without-adns" |
172 |
else |
173 |
myconf="$(use_with adns) $(use_with ares c-ares)" |
174 |
fi |
175 |
|
176 |
# profile and pie are incompatible #215806, #292991 |
177 |
if use profile; then |
178 |
ewarn "You've enabled the 'profile' USE flag, building PIE binaries is disabled." |
179 |
ewarn "Also ignore \"unrecognized option '-nopie'\" gcc warning #358101." |
180 |
append-flags $(test-flags-CC -nopie) |
181 |
fi |
182 |
|
183 |
# Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
184 |
# --with-ssl to ./configure. (Mimics code from acinclude.m4). |
185 |
if use kerberos; then |
186 |
case `krb5-config --libs` in |
187 |
*-lcrypto*) |
188 |
ewarn "Kerberos was built with ssl support: linkage with openssl is enabled." |
189 |
ewarn "Note there are annoying license incompatibilities between the OpenSSL" |
190 |
ewarn "license and the GPL, so do your check before distributing such package." |
191 |
myconf+=" --with-ssl" |
192 |
;; |
193 |
esac |
194 |
fi |
195 |
|
196 |
# Hack around inability to disable doxygen/fop doc generation |
197 |
use doc || export ac_cv_prog_HAVE_DOXYGEN=false |
198 |
use doc-pdf || export ac_cv_prog_HAVE_FOP=false |
199 |
|
200 |
# dumpcap requires libcap, setuid-install requires dumpcap |
201 |
econf $(use_enable gtk wireshark) \ |
202 |
$(use_enable profile profile-build) \ |
203 |
$(use_with ssl gnutls) \ |
204 |
$(use_with gcrypt) \ |
205 |
$(use_enable ipv6) \ |
206 |
$(use_enable threads) \ |
207 |
$(use_with lua) \ |
208 |
$(use_with kerberos krb5) \ |
209 |
$(use_with smi libsmi) \ |
210 |
$(use_with pcap) \ |
211 |
$(use_with zlib) \ |
212 |
$(use_with geoip) \ |
213 |
$(use_with portaudio) \ |
214 |
$(use_with python) \ |
215 |
$(use_with caps libcap) \ |
216 |
$(use pcap && use_enable caps setcap-install) \ |
217 |
$(use pcap && use_enable !caps setuid-install) \ |
218 |
--sysconfdir=/etc/wireshark \ |
219 |
--with-dumpcap-group=wireshark \ |
220 |
--disable-extra-gcc-checks \ |
221 |
${myconf} |
222 |
} |
223 |
|
224 |
src_compile() { |
225 |
emake || die |
226 |
use doc && cd docbook && { emake || die; } |
227 |
} |
228 |
|
229 |
src_install() { |
230 |
emake DESTDIR="${D}" install || die "emake install failed" |
231 |
if use doc; then |
232 |
dohtml -r docbook/{release-notes.html,ws{d,u}g_html{,_chunked}} |
233 |
if use doc-pdf; then |
234 |
insinto /usr/share/doc/${PF}/pdf/ |
235 |
doins docbook/{{developer,user}-guide,release-notes}-{a4,us}.pdf || die |
236 |
fi |
237 |
fi |
238 |
|
239 |
# FAQ is not required as is installed from help/faq.txt |
240 |
dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} \ |
241 |
doc/{randpkt.txt,README*} |
242 |
|
243 |
insinto /usr/include/wiretap |
244 |
doins wiretap/wtap.h || die |
245 |
|
246 |
if use gtk; then |
247 |
for c in hi lo; do |
248 |
for d in 16 32 48; do |
249 |
insinto /usr/share/icons/${c}color/${d}x${d}/apps |
250 |
newins image/${c}${d}-app-wireshark.png wireshark.png |
251 |
done |
252 |
done |
253 |
domenu wireshark.desktop || die |
254 |
fi |
255 |
chmod o-x "${ED}"/usr/bin/dumpcap #357237 |
256 |
} |
257 |
|
258 |
pkg_postinst() { |
259 |
if use caps && use pcap; then |
260 |
fcaps 0:wireshark 550 cap_net_raw,cap_net_admin "${ROOT}"/usr/bin/dumpcap |
261 |
fi |
262 |
echo |
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 |
echo |
267 |
} |