#Packager: George Vlahavas pkgname=nethogs pkgver=0.8.5 pkgrel=1gv source=("https://github.com/raboof/nethogs/archive/v${pkgver}.tar.gz") docs=("readme*" "install" "copying" "design" "changelog" "authors" "news" "todo") url=https://github.com/raboof/nethogs options=('nosrcpack') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "NetHogs (a small 'net top' tool)" "NetHogs is a small 'net top' tool. Instead of breaking the traffic" "down per protocol or per subnet, like most tools do, it groups" "bandwidth by process. NetHogs does not rely on a special kernel" "module to be loaded. If there's suddenly a lot of network traffic, you" "can fire up NetHogs and immediately see which PID is causing this." "This makes it easy to indentify programs that have gone wild and are" "suddenly taking up your bandwidth." ) build() { cd $startdir/src/$pkgname-$pkgver # fix script to determine version with tail sed -i -e 's/+2/+2 -/' ./determineVersion.sh # fix LIBDIRSUFFIX sed -i "s|^libdir .*|libdir = /usr/lib$LIBDIRSUFFIX|" src/MakeLib.mk make PREFIX=/usr make libnethogs PREFIX=/usr make install PREFIX=/usr DESTDIR=$startdir/pkg make install_lib PREFIX=/usr DESTDIR=$startdir/pkg # these ones are missing from the Makefile install -Dm755 src/libnethogs.h "$startdir/pkg/usr/include/libnethogs.h" ( cd $startdir/pkg/usr/lib$LIBDIRSUFFIX ln -s libnethogs.so.$pkgver libnethogs.so ) }