summaryrefslogtreecommitdiff
blob: 72ded784f17ee636ad1895f468de53130115ac19 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Bryce Porter <x86@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/iptraf/iptraf-2.4.0.ebuild,v 1.3 2001/08/31 03:23:39 pm Exp $


A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="IPTraf is an ncurses-based IP LAN monitor"
SRC_URI="ftp://ftp.cebu.mozcom.com/pub/linux/net/${A}"
HOMEPAGE="http://cebu.mozcom.com/riker/iptraf/"

DEPEND=">=sys-libs/ncurses-5.2-r1"

src_compile() {
	cd src
	cp Makefile Makefile.orig
	sed -e "s:-O2:$CFLAGS:g" \
	    -e "s:/var/local/iptraf:/var/lib/iptraf:" \
		Makefile.orig >Makefile
	try make clean all
}

src_install() {

	dobin src/{iptraf,cfconv,rvnamed}
	dodoc COPYING FAQ README* CHANGES RELEASE-NOTES
	doman Documentation/*.8
	docinto html
	dodoc Documentation/*.{gif,html}
	dodir /var/{lib,run,log}/iptraf
}