SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "iftop"

# SliTaz package receipt.

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

BUILD_DEPENDS="libpcap-dev ncurses-dev"
DEPENDS="libpcap ncurses"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed "/dev/d;/LATEST/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\([0-9\\.]*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    export LDFLAGS="$LDFLAGS -ltinfo"
    ./configure --prefix=/usr --infodir=/usr/share/info \
    --mandir=/usr/share/man $CONFIGURE_ARGS
    make
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/
    cp -a $install/usr/sbin $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)