#Maintainer: Juhana 'rexroom' Uuttu pkgname=vnstat pkgver=1.10 pkgrel=1 zenver=64 arch=i486 docs=("changes" "copying" "faq" "install" "readme" "vnstat.cgi") url=http://humdi.net/vnstat/ source=("http://humdi.net/vnstat/vnstat-$pkgver.tar.gz" "rc.vnstat") sourcetemplate=http://cthulhu.daug.net/zenwalk/$pkgname/ options=('noautodotnew' 'norequiredbuilder') dotnew=("etc/vnstat.conf") extradepends=('gd') slackdesc=\ ( #|-----mind-the-gap-----------------------------------------------------| "$pkgname - console-based network traffic monitor" "vnStat is a console-based network traffic monitor for Linux and BSD" "that keeps a log of network traffic for the selected interface(s). It" "uses the network interface statistics provided by the kernel as" "information source. This means that vnStat won't actually be sniffing" "any traffic and also ensures light use of system resources." ) build() { cd $startdir/src/$pkgname-$pkgver mkdir -p $startdir/pkg/etc/rc.d/desc.d make all || return 1 make install DESTDIR=$startdir/pkg ### Post-build tweaking chmod +x ../rc.vnstat mv ../rc.vnstat $startdir/pkg/etc/rc.d echo "vnstat:Network traffic monitor:vnstat" > $startdir/pkg/etc/rc.d/desc.d/vnstat.txt echo "*** NOW PACKAGING ***" }