1 |
pva 10/04/25 12:30:55 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: wireshark-1.2.7-r1.ebuild |
5 |
Removed: wireshark-1.2.6-r1.ebuild |
6 |
Log: |
7 |
zlib now breaks capture, bug 316835, thank Richard and Alexander E. Patrakov for report. |
8 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.221 net-analyzer/wireshark/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.221&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.221&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/ChangeLog?r1=1.220&r2=1.221 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v |
20 |
retrieving revision 1.220 |
21 |
retrieving revision 1.221 |
22 |
diff -u -r1.220 -r1.221 |
23 |
--- ChangeLog 22 Apr 2010 06:06:27 -0000 1.220 |
24 |
+++ ChangeLog 25 Apr 2010 12:30:55 -0000 1.221 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-analyzer/wireshark |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.220 2010/04/22 06:06:27 pva Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.221 2010/04/25 12:30:55 pva Exp $ |
30 |
+ |
31 |
+*wireshark-1.2.7-r1 (25 Apr 2010) |
32 |
+ |
33 |
+ 25 Apr 2010; Peter Volkov <pva@g.o> -wireshark-1.2.6-r1.ebuild, |
34 |
+ +wireshark-1.2.7-r1.ebuild: |
35 |
+ zlib now breaks capture, bug 316835, thank Richard and Alexander E. |
36 |
+ Patrakov for report. |
37 |
|
38 |
22 Apr 2010; Peter Volkov <pva@g.o> wireshark-1.2.7.ebuild: |
39 |
zlib USE flag back as it should be fixed now, bug #311241. |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-analyzer/wireshark/wireshark-1.2.7-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/wireshark-1.2.7-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/wireshark-1.2.7-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: wireshark-1.2.7-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2010 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.2.7-r1.ebuild,v 1.1 2010/04/25 12:30:55 pva Exp $ |
53 |
|
54 |
EAPI=2 |
55 |
inherit autotools libtool flag-o-matic eutils toolchain-funcs |
56 |
|
57 |
DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
58 |
HOMEPAGE="http://www.wireshark.org/" |
59 |
|
60 |
# _rc versions has different download location. |
61 |
[[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && { |
62 |
SRC_URI="http://www.wireshark.org/download/prerelease/${PN}-${PV/_rc/pre}.tar.gz"; |
63 |
S=${WORKDIR}/${PN}-${PV/_rc/pre} ; } || \ |
64 |
SRC_URI="http://www.wireshark.org/download/src/${P}.tar.gz" |
65 |
|
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
69 |
IUSE="adns ares gtk ipv6 lua portaudio gnutls gcrypt geoip kerberos threads profile smi +pcap pcre +caps selinux" |
70 |
|
71 |
RDEPEND=">=dev-libs/glib-2.4.0:2 |
72 |
smi? ( net-libs/libsmi ) |
73 |
gtk? ( >=x11-libs/gtk+-2.4.0:2 |
74 |
x11-libs/pango |
75 |
dev-libs/atk ) |
76 |
gnutls? ( net-libs/gnutls ) |
77 |
gcrypt? ( dev-libs/libgcrypt ) |
78 |
pcap? ( net-libs/libpcap ) |
79 |
pcre? ( dev-libs/libpcre ) |
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 |
>=dev-util/pkgconfig-0.15.0 |
91 |
dev-lang/perl |
92 |
sys-devel/bison |
93 |
sys-devel/flex" |
94 |
|
95 |
pkg_setup() { |
96 |
if ! use gtk; then |
97 |
ewarn "USE=-gtk will means no gui called wireshark will be created and" |
98 |
ewarn "only command line utils are available" |
99 |
fi |
100 |
|
101 |
# Add group for users allowed to sniff. |
102 |
enewgroup wireshark |
103 |
} |
104 |
|
105 |
src_prepare() { |
106 |
cd "${S}"/epan # our hardened toolchain bug... |
107 |
epatch "${FILESDIR}/wireshark-except-double-free.diff" |
108 |
|
109 |
cd "${S}" |
110 |
epatch "${FILESDIR}/${PN}-1.1.2--as-needed.patch" |
111 |
eautoreconf |
112 |
} |
113 |
|
114 |
src_configure() { |
115 |
local myconf |
116 |
|
117 |
# optimization bug, see bug #165340, bug #40660 |
118 |
if [[ $(gcc-version) == 3.4 ]] ; then |
119 |
elog "Found gcc 3.4, forcing -O3 into CFLAGS" |
120 |
replace-flags -O? -O3 |
121 |
elif [[ $(gcc-version) == 3.3 || $(gcc-version) == 3.2 ]] ; then |
122 |
elog "Found <=gcc-3.3, forcing -O into CFLAGS" |
123 |
replace-flags -O? -O |
124 |
fi |
125 |
|
126 |
if use ares && use adns; then |
127 |
einfo "You asked for both, ares and adns, but we can use only one of them." |
128 |
einfo "c-ares supersedes adns resolver thus using c-ares (ares USE flag)." |
129 |
myconf="$(use_with ares c-ares) --without-adns" |
130 |
else |
131 |
myconf="$(use_with adns) $(use_with ares c-ares)" |
132 |
fi |
133 |
|
134 |
# see bug #133092; bugs.wireshark.org/bugzilla/show_bug.cgi?id=1001 |
135 |
# our hardened toolchain bug |
136 |
filter-flags -fstack-protector |
137 |
|
138 |
# profile and pie are incompatible #215806, #292991 |
139 |
if use profile; then |
140 |
ewarn "You've enabled the 'profile' USE flag, building PIE binaries is disabled." |
141 |
append-flags $(test-flags-CC -nopie) |
142 |
fi |
143 |
|
144 |
# Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
145 |
# --with-ssl to ./configure. (Mimics code from acinclude.m4). |
146 |
if use kerberos; then |
147 |
case `krb5-config --libs` in |
148 |
*-lcrypto*) myconf="${myconf} --with-ssl" ;; |
149 |
esac |
150 |
fi |
151 |
|
152 |
# dumpcap requires libcap, setuid-install requires dumpcap |
153 |
econf $(use_enable gtk wireshark) \ |
154 |
$(use_enable profile profile-build) \ |
155 |
$(use_with gnutls) \ |
156 |
$(use_with gcrypt) \ |
157 |
$(use_enable ipv6) \ |
158 |
$(use_enable threads) \ |
159 |
$(use_with lua) \ |
160 |
$(use_with kerberos krb5) \ |
161 |
$(use_with smi libsmi) \ |
162 |
$(use_with pcap) \ |
163 |
--without-zlib \ |
164 |
$(use_with pcre) \ |
165 |
$(use_with geoip) \ |
166 |
$(use_with portaudio) \ |
167 |
$(use_with caps libcap) \ |
168 |
$(use_enable pcap setuid-install) \ |
169 |
--sysconfdir=/etc/wireshark \ |
170 |
${myconf} |
171 |
} |
172 |
|
173 |
src_install() { |
174 |
emake DESTDIR="${D}" install || die "emake install failed" |
175 |
|
176 |
use pcap && fowners 0:wireshark /usr/bin/dumpcap |
177 |
use pcap && fperms 6550 /usr/bin/dumpcap |
178 |
|
179 |
insinto /usr/include/wiretap |
180 |
doins wiretap/wtap.h |
181 |
|
182 |
# FAQ is not required as is installed from help/faq.txt |
183 |
dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} doc/randpkt.txt |
184 |
|
185 |
if use gtk; then |
186 |
for c in hi lo; do |
187 |
for d in 16 32 48; do |
188 |
insinto /usr/share/icons/${c}color/${d}x${d}/apps |
189 |
newins image/${c}${d}-app-wireshark.png wireshark.png |
190 |
done |
191 |
done |
192 |
insinto /usr/share/applications |
193 |
doins wireshark.desktop |
194 |
fi |
195 |
} |
196 |
|
197 |
pkg_postinst() { |
198 |
echo |
199 |
ewarn "NOTE: To run wireshark as normal user you have to add yourself into" |
200 |
ewarn "wireshark group. This security measure ensures that only trusted" |
201 |
ewarn "users allowed to sniff your traffic." |
202 |
echo |
203 |
} |