1 |
pva 08/09/10 06:04:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: wireshark-1.0.3.ebuild |
5 |
Log: |
6 |
Version bump, fixes security issues #236515, thank Robert Buchholz for report. |
7 |
(Portage version: 2.2_rc8/cvs/Linux 2.6.25-gentoo-r7 i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.116 net-analyzer/wireshark/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.116&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.116&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/ChangeLog?r1=1.115&r2=1.116 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v |
19 |
retrieving revision 1.115 |
20 |
retrieving revision 1.116 |
21 |
diff -u -r1.115 -r1.116 |
22 |
--- ChangeLog 4 Aug 2008 20:20:20 -0000 1.115 |
23 |
+++ ChangeLog 10 Sep 2008 06:04:09 -0000 1.116 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for net-analyzer/wireshark |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.115 2008/08/04 20:20:20 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.116 2008/09/10 06:04:09 pva Exp $ |
29 |
+ |
30 |
+*wireshark-1.0.3 (10 Sep 2008) |
31 |
+ |
32 |
+ 10 Sep 2008; Peter Volkov <pva@g.o> +wireshark-1.0.3.ebuild: |
33 |
+ Version bump, fixes security issues #236515, thank Robert Buchholz for |
34 |
+ report. |
35 |
|
36 |
04 Aug 2008; Jeroen Roovers <jer@g.o> metadata.xml: |
37 |
Describe local USE flags for GLEP 56. |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-analyzer/wireshark/wireshark-1.0.3.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/wireshark-1.0.3.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/wireshark-1.0.3.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: wireshark-1.0.3.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-1.0.3.ebuild,v 1.1 2008/09/10 06:04:09 pva Exp $ |
51 |
|
52 |
EAPI=1 |
53 |
WANT_AUTOMAKE="1.9" |
54 |
inherit autotools libtool flag-o-matic eutils toolchain-funcs |
55 |
|
56 |
DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
57 |
HOMEPAGE="http://www.wireshark.org/" |
58 |
|
59 |
# _rc versions has different download location. |
60 |
[[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && { |
61 |
SRC_URI="http://www.wireshark.org/download/prerelease/${PN}-${PV/_rc/pre}.tar.gz"; |
62 |
S=${WORKDIR}/${PN}-${PV/_rc/pre} ; } || \ |
63 |
SRC_URI="http://www.wireshark.org/download/src/all-versions/${P}.tar.bz2" |
64 |
|
65 |
LICENSE="GPL-2" |
66 |
SLOT="0" |
67 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
68 |
IUSE="adns gtk ipv6 lua portaudio gnutls gcrypt zlib kerberos threads profile smi +pcap pcre +caps selinux" |
69 |
|
70 |
RDEPEND="zlib? ( sys-libs/zlib ) |
71 |
smi? ( net-libs/libsmi ) |
72 |
gtk? ( >=dev-libs/glib-2.0.4 |
73 |
=x11-libs/gtk+-2* |
74 |
x11-libs/pango |
75 |
dev-libs/atk ) |
76 |
!gtk? ( =dev-libs/glib-1.2* ) |
77 |
gnutls? ( net-libs/gnutls ) |
78 |
gcrypt? ( dev-libs/libgcrypt ) |
79 |
pcap? ( net-libs/libpcap ) |
80 |
pcre? ( dev-libs/libpcre ) |
81 |
caps? ( sys-libs/libcap ) |
82 |
adns? ( net-libs/adns ) |
83 |
kerberos? ( virtual/krb5 ) |
84 |
portaudio? ( media-libs/portaudio ) |
85 |
lua? ( >=dev-lang/lua-5.1 ) |
86 |
selinux? ( sec-policy/selinux-wireshark )" |
87 |
|
88 |
DEPEND="${RDEPEND} |
89 |
>=dev-util/pkgconfig-0.15.0 |
90 |
dev-lang/perl |
91 |
sys-devel/bison |
92 |
sys-devel/flex |
93 |
sys-apps/sed" |
94 |
|
95 |
pkg_setup() { |
96 |
if ! use gtk; then |
97 |
ewarn "USE=-gtk will mean 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 || die "Failed to create wireshark group" |
103 |
} |
104 |
|
105 |
src_unpack() { |
106 |
unpack ${A} |
107 |
|
108 |
# Try to drop --as-needed patches for 1.0.1. All problems are supposed to be |
109 |
# fixed there... |
110 |
cd "${S}" |
111 |
epatch "${FILESDIR}"/${PN}-0.99.7-asneeded.patch |
112 |
epatch "${FILESDIR}"/${PN}-0.99.8-as-needed.patch |
113 |
|
114 |
cd "${S}"/epan |
115 |
epatch "${FILESDIR}"/wireshark-except-double-free.diff |
116 |
|
117 |
cd "${S}" |
118 |
eautoreconf |
119 |
} |
120 |
|
121 |
src_compile() { |
122 |
# optimization bug, see bug #165340, bug #40660 |
123 |
if [[ $(gcc-version) == 3.4 ]] ; then |
124 |
elog "Found gcc 3.4, forcing -O3 into CFLAGS" |
125 |
replace-flags -O? -O3 |
126 |
elif [[ $(gcc-version) == 3.3 || $(gcc-version) == 3.2 ]] ; then |
127 |
elog "Found <=gcc-3.3, forcing -O into CFLAGS" |
128 |
replace-flags -O? -O |
129 |
fi |
130 |
|
131 |
# see bug #133092; bugs.wireshark.org/bugzilla/show_bug.cgi?id=1001 |
132 |
# our hardened toolchain bug |
133 |
filter-flags -fstack-protector |
134 |
|
135 |
# profile and -fomit-frame-pointer are incompatible, bug #215806 |
136 |
use profile && filter-flags -fomit-frame-pointer |
137 |
|
138 |
local myconf |
139 |
if use gtk; then |
140 |
einfo "Building with gtk support" |
141 |
else |
142 |
einfo "Building without gtk support" |
143 |
myconf="${myconf} --disable-wireshark" |
144 |
fi |
145 |
|
146 |
# Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
147 |
# --with-ssl to ./configure. (Mimics code from acinclude.m4). |
148 |
if use kerberos; then |
149 |
case `krb5-config --libs` in |
150 |
*-lcrypto*) myconf="${myconf} --with-ssl" ;; |
151 |
esac |
152 |
fi |
153 |
|
154 |
# dumpcap requires libcap, setuid-install requires dumpcap |
155 |
econf $(use_enable gtk gtk2) \ |
156 |
$(use_enable profile profile-build) \ |
157 |
$(use_with gnutls) \ |
158 |
$(use_with gcrypt) \ |
159 |
$(use_enable gtk wireshark) \ |
160 |
$(use_enable ipv6) \ |
161 |
$(use_enable threads) \ |
162 |
$(use_with lua) \ |
163 |
$(use_with adns) \ |
164 |
$(use_with kerberos krb5) \ |
165 |
$(use_with smi libsmi) \ |
166 |
$(use_with pcap) \ |
167 |
$(use_with zlib) \ |
168 |
$(use_with pcre) \ |
169 |
$(use_with portaudio) \ |
170 |
$(use_with caps libcap) \ |
171 |
$(use_enable pcap setuid-install) \ |
172 |
--sysconfdir=/etc/wireshark \ |
173 |
${myconf} || die "econf failed" |
174 |
|
175 |
emake || die "emake failed" |
176 |
} |
177 |
|
178 |
src_install() { |
179 |
emake DESTDIR="${D}" install || die "emake install failed" |
180 |
|
181 |
fowners 0:wireshark /usr/bin/tshark |
182 |
fperms 6550 /usr/bin/tshark |
183 |
use pcap && fowners 0:wireshark /usr/bin/dumpcap |
184 |
use pcap && fperms 6550 /usr/bin/dumpcap |
185 |
|
186 |
insinto /usr/include/wiretap |
187 |
doins wiretap/wtap.h |
188 |
|
189 |
# FAQ is not required as is installed from help/faq.txt |
190 |
dodoc AUTHORS ChangeLog NEWS README{,bsd,linux,macos,vmware} doc/randpkt.txt |
191 |
|
192 |
if use gtk ; then |
193 |
insinto /usr/share/icons/hicolor/16x16/apps |
194 |
newins image/hi16-app-wireshark.png wireshark.png |
195 |
insinto /usr/share/icons/hicolor/32x32/apps |
196 |
newins image/hi32-app-wireshark.png wireshark.png |
197 |
insinto /usr/share/icons/hicolor/48x48/apps |
198 |
newins image/hi48-app-wireshark.png wireshark.png |
199 |
insinto /usr/share/applications |
200 |
doins wireshark.desktop |
201 |
fi |
202 |
} |
203 |
|
204 |
pkg_postinst() { |
205 |
echo |
206 |
ewarn "With version 0.99.7, all function calls that require elevated privileges" |
207 |
ewarn "have been moved out of the GUI to dumpcap. WIRESHARK CONTAINS OVER ONE" |
208 |
ewarn "POINT FIVE MILLION LINES OF SOURCE CODE. DO NOT RUN THEM AS ROOT." |
209 |
ewarn |
210 |
ewarn "NOTE: To run wireshark as normal user you have to add yourself into" |
211 |
ewarn "wireshark group. This security measure ensures that only trusted" |
212 |
ewarn "users allowed to sniff your traffic." |
213 |
echo |
214 |
} |