1 |
pva 09/03/24 08:39:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: wireshark-1.1.3.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 2.1.6.9/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.156 net-analyzer/wireshark/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.156&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.156&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/ChangeLog?r1=1.155&r2=1.156 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v |
19 |
retrieving revision 1.155 |
20 |
retrieving revision 1.156 |
21 |
diff -u -r1.155 -r1.156 |
22 |
--- ChangeLog 23 Mar 2009 23:14:26 -0000 1.155 |
23 |
+++ ChangeLog 24 Mar 2009 08:39:35 -0000 1.156 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for net-analyzer/wireshark |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.155 2009/03/23 23:14:26 maekke Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.156 2009/03/24 08:39:35 pva Exp $ |
29 |
+ |
30 |
+*wireshark-1.1.3 (24 Mar 2009) |
31 |
+ |
32 |
+ 24 Mar 2009; Peter Volkov <pva@g.o> |
33 |
+ +files/wireshark-1.1.3-misc-warnings.patch, +wireshark-1.1.3.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
23 Mar 2009; Markus Meier <maekke@g.o> wireshark-1.0.6-r1.ebuild: |
37 |
amd64/x86 stable, bug #263443 |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-analyzer/wireshark/wireshark-1.1.3.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/wireshark-1.1.3.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/wireshark-1.1.3.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: wireshark-1.1.3.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 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.1.3.ebuild,v 1.1 2009/03/24 08:39:35 pva Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
inherit autotools libtool flag-o-matic eutils toolchain-funcs |
54 |
|
55 |
DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
56 |
HOMEPAGE="http://www.wireshark.org/" |
57 |
|
58 |
# _rc versions has different download location. |
59 |
[[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && { |
60 |
SRC_URI="http://www.wireshark.org/download/prerelease/${PN}-${PV/_rc/pre}.tar.gz"; |
61 |
S=${WORKDIR}/${PN}-${PV/_rc/pre} ; } || \ |
62 |
SRC_URI="http://www.wireshark.org/download/src/${P}.tar.gz" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
67 |
IUSE="adns ares +gtk ipv6 lua portaudio gnutls gcrypt geoip zlib kerberos threads profile smi +pcap pcre +caps selinux" |
68 |
|
69 |
RDEPEND=">=dev-libs/glib-2.4.0:2 |
70 |
zlib? ( sys-libs/zlib ) |
71 |
smi? ( net-libs/libsmi ) |
72 |
gtk? ( >=x11-libs/gtk+-2.4.0:2 |
73 |
x11-libs/pango |
74 |
dev-libs/atk ) |
75 |
gnutls? ( net-libs/gnutls ) |
76 |
gcrypt? ( dev-libs/libgcrypt ) |
77 |
pcap? ( net-libs/libpcap ) |
78 |
pcre? ( dev-libs/libpcre ) |
79 |
caps? ( sys-libs/libcap ) |
80 |
kerberos? ( virtual/krb5 ) |
81 |
portaudio? ( media-libs/portaudio ) |
82 |
ares? ( >=net-dns/c-ares-1.5 ) |
83 |
!ares? ( adns? ( net-libs/adns ) ) |
84 |
geoip? ( dev-libs/geoip ) |
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 |
|
94 |
pkg_setup() { |
95 |
if ! use gtk; then |
96 |
ewarn "USE=-gtk will means no gui called wireshark will be created and" |
97 |
ewarn "only command line utils are available" |
98 |
fi |
99 |
|
100 |
# Add group for users allowed to sniff. |
101 |
enewgroup wireshark |
102 |
} |
103 |
|
104 |
src_prepare() { |
105 |
cd "${S}"/epan # our hardened toolchain bug... |
106 |
epatch "${FILESDIR}/wireshark-except-double-free.diff" |
107 |
|
108 |
cd "${S}" |
109 |
epatch "${FILESDIR}/${PN}-1.1.2--as-needed.patch" |
110 |
epatch "${FILESDIR}/${PN}-1.1.3-misc-warnings.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 -fomit-frame-pointer are incompatible, bug #215806 |
139 |
use profile && filter-flags -fomit-frame-pointer |
140 |
|
141 |
# Workaround bug #213705. If krb5-config --libs has -lcrypto then pass |
142 |
# --with-ssl to ./configure. (Mimics code from acinclude.m4). |
143 |
if use kerberos; then |
144 |
case `krb5-config --libs` in |
145 |
*-lcrypto*) myconf="${myconf} --with-ssl" ;; |
146 |
esac |
147 |
fi |
148 |
|
149 |
# dumpcap requires libcap, setuid-install requires dumpcap |
150 |
econf $(use_enable gtk wireshark) \ |
151 |
$(use_enable profile profile-build) \ |
152 |
$(use_with gnutls) \ |
153 |
$(use_with gcrypt) \ |
154 |
$(use_enable ipv6) \ |
155 |
$(use_enable threads) \ |
156 |
$(use_with lua) \ |
157 |
$(use_with kerberos krb5) \ |
158 |
$(use_with smi libsmi) \ |
159 |
$(use_with pcap) \ |
160 |
$(use_with zlib) \ |
161 |
$(use_with pcre) \ |
162 |
$(use_with geoip) \ |
163 |
$(use_with portaudio) \ |
164 |
$(use_with caps libcap) \ |
165 |
$(use_enable pcap setuid-install) \ |
166 |
--sysconfdir=/etc/wireshark \ |
167 |
${myconf} |
168 |
} |
169 |
|
170 |
src_install() { |
171 |
emake DESTDIR="${D}" install || die "emake install failed" |
172 |
|
173 |
fowners 0:wireshark /usr/bin/tshark |
174 |
fperms 6550 /usr/bin/tshark |
175 |
use pcap && fowners 0:wireshark /usr/bin/dumpcap |
176 |
use pcap && fperms 6550 /usr/bin/dumpcap |
177 |
|
178 |
insinto /usr/include/wiretap |
179 |
doins wiretap/wtap.h |
180 |
|
181 |
# FAQ is not required as is installed from help/faq.txt |
182 |
dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} doc/randpkt.txt |
183 |
|
184 |
if use gtk; then |
185 |
for c in hi lo; do |
186 |
for d in 16 32 48; do |
187 |
insinto /usr/share/icons/${c}color/${d}x${d}/apps |
188 |
newins image/${c}${d}-app-wireshark.png wireshark.png |
189 |
done |
190 |
done |
191 |
insinto /usr/share/applications |
192 |
doins wireshark.desktop |
193 |
fi |
194 |
} |
195 |
|
196 |
pkg_postinst() { |
197 |
echo |
198 |
ewarn "With version 0.99.7, all function calls that require elevated privileges" |
199 |
ewarn "have been moved out of the GUI to dumpcap. WIRESHARK CONTAINS OVER ONE" |
200 |
ewarn "POINT FIVE MILLION LINES OF SOURCE CODE. DO NOT RUN THEM AS ROOT." |
201 |
ewarn |
202 |
ewarn "NOTE: To run wireshark as normal user you have to add yourself into" |
203 |
ewarn "wireshark group. This security measure ensures that only trusted" |
204 |
ewarn "users allowed to sniff your traffic." |
205 |
echo |
206 |
} |