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