Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/wireshark: ChangeLog wireshark-1.1.1.ebuild wireshark-1.1.0.ebuild
Date: Fri, 10 Oct 2008 19:14:22
Message-Id: E1KoNRM-00083P-92@stork.gentoo.org
1 pva 08/10/10 19:14:20
2
3 Modified: ChangeLog
4 Added: wireshark-1.1.1.ebuild
5 Removed: wireshark-1.1.0.ebuild
6 Log:
7 Version bump. Some cleanups in ebuild.
8 (Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 i686)
9
10 Revision Changes Path
11 1.124 net-analyzer/wireshark/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.124&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/ChangeLog?rev=1.124&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/ChangeLog?r1=1.123&r2=1.124
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v
20 retrieving revision 1.123
21 retrieving revision 1.124
22 diff -u -r1.123 -r1.124
23 --- ChangeLog 4 Oct 2008 11:51:15 -0000 1.123
24 +++ ChangeLog 10 Oct 2008 19:14:20 -0000 1.124
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-analyzer/wireshark
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.123 2008/10/04 11:51:15 pva Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/ChangeLog,v 1.124 2008/10/10 19:14:20 pva Exp $
30 +
31 +*wireshark-1.1.1 (10 Oct 2008)
32 +
33 + 10 Oct 2008; Peter Volkov <pva@g.o>
34 + -files/wireshark-1.1.0-as-needed.patch, -wireshark-1.1.0.ebuild,
35 + +wireshark-1.1.1.ebuild:
36 + Version bump. Some cleanups in ebuild.
37
38 04 Oct 2008; Peter Volkov <pva@g.o> metadata.xml,
39 wireshark-1.1.0.ebuild:
40
41
42
43 1.1 net-analyzer/wireshark/wireshark-1.1.1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/wireshark-1.1.1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/wireshark/wireshark-1.1.1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: wireshark-1.1.1.ebuild
49 ===================================================================
50 # Copyright 1999-2008 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.1.1.ebuild,v 1.1 2008/10/10 19:14:20 pva Exp $
53
54 EAPI=1
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 +gtk ipv6 lua portaudio gnutls ares gcrypt zlib kerberos threads profile smi +pcap pcre +caps selinux"
70
71 RDEPEND=">=dev-libs/glib-2.4.0:2
72 zlib? ( sys-libs/zlib )
73 smi? ( net-libs/libsmi )
74 gtk? ( >=x11-libs/gtk+-2.4.0:2
75 x11-libs/pango
76 dev-libs/atk )
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 kerberos? ( virtual/krb5 )
83 portaudio? ( media-libs/portaudio )
84 ares? ( >=net-dns/c-ares-1.5 )
85 !ares? ( adns? ( net-libs/adns ) )
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 sys-apps/sed"
95
96 pkg_setup() {
97 if ! use gtk; then
98 ewarn "USE=-gtk will means no gui called wireshark will be created and"
99 ewarn "only command line utils are available"
100 fi
101
102 if use ares && use adns; then
103 einfo "You asked for both, ares and adns, but we can use only one of them."
104 einfo "c-ares supersedes adns resolver thus using c-ares (ares USE flag)."
105 myconf="$(use_with ares c-ares) --without-adns"
106 else
107 myconf="$(use_with adns) $(use_with ares c-ares)"
108 fi
109
110 # Add group for users allowed to sniff.
111 enewgroup wireshark
112 }
113
114 src_unpack() {
115 unpack ${A}
116
117 # our hardened toolchain bug...
118 cd "${S}"/epan
119 epatch "${FILESDIR}"/wireshark-except-double-free.diff
120
121 cd "${S}"
122 eautoreconf
123 }
124
125 src_compile() {
126 # optimization bug, see bug #165340, bug #40660
127 if [[ $(gcc-version) == 3.4 ]] ; then
128 elog "Found gcc 3.4, forcing -O3 into CFLAGS"
129 replace-flags -O? -O3
130 elif [[ $(gcc-version) == 3.3 || $(gcc-version) == 3.2 ]] ; then
131 elog "Found <=gcc-3.3, forcing -O into CFLAGS"
132 replace-flags -O? -O
133 fi
134
135 # see bug #133092; bugs.wireshark.org/bugzilla/show_bug.cgi?id=1001
136 # our hardened toolchain bug
137 filter-flags -fstack-protector
138
139 # profile and -fomit-frame-pointer are incompatible, bug #215806
140 use profile && filter-flags -fomit-frame-pointer
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 $(use_with zlib) \
162 $(use_with pcre) \
163 $(use_with portaudio) \
164 $(use_with caps libcap) \
165 $(use_enable pcap setuid-install) \
166 --sysconfdir=/etc/wireshark \
167 ${myconf}
168
169 emake || die "emake failed"
170 }
171
172 src_install() {
173 emake DESTDIR="${D}" install || die "emake install failed"
174
175 fowners 0:wireshark /usr/bin/tshark
176 fperms 6550 /usr/bin/tshark
177 use pcap && fowners 0:wireshark /usr/bin/dumpcap
178 use pcap && fperms 6550 /usr/bin/dumpcap
179
180 insinto /usr/include/wiretap
181 doins wiretap/wtap.h
182
183 # FAQ is not required as is installed from help/faq.txt
184 dodoc AUTHORS ChangeLog NEWS README{,.bsd,.linux,.macos,.vmware} doc/randpkt.txt
185
186 if use gtk; then
187 for c in hi lo; do
188 for d in 16 32 48; do
189 insinto /usr/share/icons/${c}color/${d}x${d}/apps
190 newins image/${c}${d}-app-wireshark.png wireshark.png
191 done
192 done
193 insinto /usr/share/applications
194 doins wireshark.desktop
195 fi
196 }
197
198 pkg_postinst() {
199 echo
200 ewarn "With version 0.99.7, all function calls that require elevated privileges"
201 ewarn "have been moved out of the GUI to dumpcap. WIRESHARK CONTAINS OVER ONE"
202 ewarn "POINT FIVE MILLION LINES OF SOURCE CODE. DO NOT RUN THEM AS ROOT."
203 ewarn
204 ewarn "NOTE: To run wireshark as normal user you have to add yourself into"
205 ewarn "wireshark group. This security measure ensures that only trusted"
206 ewarn "users allowed to sniff your traffic."
207 echo
208 }