blob: c7c4c2fbca0ebfafe8305c478eaaca6a500e7a68 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/iptraf/iptraf-2.7.0-r1.ebuild,v 1.19 2005/06/25 22:33:18 vanquirius Exp $
inherit eutils
V6PATCH_LEVEL=alpha11
DESCRIPTION="IPTraf is an ncurses-based IP LAN monitor"
HOMEPAGE="http://cebu.mozcom.com/riker/iptraf/"
SRC_URI="ftp://ftp.cebu.mozcom.com/pub/linux/net/${P}.tar.gz
http://dev.gentoo.org/~gmsoft/patches/${P}-ipv6-${V6PATCH_LEVEL}.diff"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ppc64"
IUSE="ipv6"
DEPEND=">=sys-libs/ncurses-5.2-r1"
src_unpack() {
unpack ${P}.tar.gz
cd ${S}
epatch ${FILESDIR}/iptraf-2.7.0-atheros.patch
use ipv6 && epatch ${DISTDIR}/${P}-ipv6-${V6PATCH_LEVEL}.diff
cd src
cp dirs.h dirs.h.orig
sed -e s:/var/local/iptraf:/var/lib/iptraf: -e s:/usr/local/bin:/usr/sbin: dirs.h.orig > dirs.h
}
src_compile() {
cd src
emake -j1 CFLAGS="$CFLAGS" DEBUG="" TARGET="/usr/sbin" WORKDIR="/var/lib/iptraf" \
clean all || die "emake failed"
}
src_install() {
dosbin src/{iptraf,cfconv,rvnamed}
dodoc FAQ README* CHANGES RELEASE-NOTES LICENSE INSTALL
doman Documentation/*.8
dohtml Documentation/*.html
keepdir /var/{lib,run,log}/iptraf
}
|