blob: 6b8aa26f20316786ca9d574e181251d33b0e717c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>, Donny Davies <woodchip@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ethereal/ethereal-0.8.20.ebuild,v 1.2 2002/04/12 16:56:07 spider Exp $
S=${WORKDIR}/${P}
DESCRIPTION="A commercial-quality network protocol analyzer"
SRC_URI="http://ethereal.zing.org/distribution/${P}.tar.gz"
HOMEPAGE="http://ethereal.zing.org/"
RDEPEND="virtual/glibc
>=sys-libs/zlib-1.1.3
=dev-libs/glib-1.2*
snmp? ( >=net-analyzer/ucd-snmp-4.1.2 )
X? ( virtual/x11 >=x11-libs/gtk+-1.2.0 )
ssl? ( >=dev-libs/openssl-0.9.6b )"
DEPEND="${RDEPEND}
sys-devel/perl
sys-devel/bison
sys-devel/flex
>=net-libs/libpcap-0.5.2"
src_compile() {
local myconf
use ssl || myconf="${myconf} --without-ssl"
use snmp || myconf="${myconf} --disable-snmp"
use X || myconf="${myconf} --disable-ethereal"
./configure --prefix=/usr --host=${CHOST} ${myconf} \
--with-plugindir=/usr/lib/ethereal/plugins/${PV} \
--mandir=/usr/share/man --sysconfdir=/etc/ethereal \
--enable-pcap --enable-zlib --enable-ipv6 || die
make || die "compile problem"
}
src_install() {
dodir /usr/lib/ethereal/plugins/${PV}
make plugindir=${D}/usr/lib/ethereal/plugins/${PV} \
prefix=${D}/usr sysconfdir=${D}/etc/ethereal \
mandir=${D}/usr/share/man install || die
dodoc AUTHORS COPYING ChangeLog INSTALL.* NEWS README* TODO
}
|