# SliTaz package receipt.

PACKAGE="iftop"
VERSION="0.17"
CATEGORY="system-tools"
SHORT_DESC="Bandwidth usage on an interface."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://ex-parrot.com/~pdw/iftop/"
WGET_URL="${WEB_SITE}download/$TARBALL"
BUILD_DEPENDS="libpcap-dev ncurses-dev"
DEPENDS="libpcap ncurses"
TAGS="network monitor usage"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr --infodir=/usr/share/info \
	--mandir=/usr/share/man $CONFIGURE_ARGS
	make
	make DESTDIR=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/
	cp -a $_pkg/usr/sbin $fs/usr
}