#Maintainer: Christopher Rey P. Baluyut pkgname=nethogs pkgver=0.7.0 pkgrel=1 zenver=62 arch=i486 source=("http://downloads.sourceforge.net/sourceforge/nethogs/$pkgname-$pkgver.tar.gz" "http://zenwalk.pinguix.com/user-accounts/shingoku/$pkgname/source/patches/gcc44.patch" "http://zenwalk.pinguix.com/user-accounts/shingoku/$pkgname/source/patches/Makefile") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/shingoku/$pkgname/source docs=('DESIGN' 'Changelog' 'INSTALL' 'README') url="http://nethogs.sourceforge.net/" extradepends=('gcc' 'gcc-g++' 'ncurses' 'tcpdump') lessdepends=('wireshark') options=('norequiredbuilder') 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 rm Makefile cp $startdir/src/Makefile $startdir/src/$pkgname patch -Np1 -i "$startdir/src/gcc44.patch" || return 1 make || return 1 install -d $startdir/pkg/usr/{bin,share/man/man8} make DESTDIR=$startdir/pkg/usr install }