Receipt for: nethogs
source
PACKAGE="nethogs"
VERSION="0.8.5"
CATEGORY="network"
TAGS="network"
SHORT_DESC="Small 'net top' tool."
MAINTAINER="paul@slitaz.org"
LICENSE="GPL"
WEB_SITE="https://github.com/raboof/nethogs"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="${WEB_SITE}/archive/v$VERSION.tar.gz"
DEPENDS="gcc-lib-base libpcap ncursesw"
BUILD_DEPENDS="libpcap libpcap-dev ncursesw-dev"
current_version()
{
wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
}
compile_rules()
{
# Makefile puts $(NCURSES_LIBS) after the objects; override to the wide lib
make NCURSES_LIBS="-lncursesw"
}
genpkg_rules()
{
mkdir -p $fs/usr/sbin
cp $src/src/nethogs $fs/usr/sbin
}