blob: f8e356aa33e5d8fcad8b9d2ab7db727ee6345a84 (
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
|
# 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>
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
}
|