mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
31 lines
862 B
Bash
31 lines
862 B
Bash
# $Id: PKGBUILD 2270 2009-09-13 20:47:38Z spupykin $
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
pkgname=vnstat
|
|
pkgver=1.9
|
|
pkgrel=1
|
|
pkgdesc="A console-based network traffic monitor"
|
|
arch=('i686' 'x86_64')
|
|
url="http://humdi.net/vnstat/"
|
|
license=('GPL')
|
|
depends=('bash' 'ncurses')
|
|
backup=(etc/vnstat.conf
|
|
etc/cron.d/vnstat)
|
|
install=vnstat.install
|
|
source=(http://humdi.net/vnstat/$pkgname-$pkgver.tar.gz
|
|
http://humdi.net/vnstat/init.d/arch/vnstat)
|
|
md5sums=('ebaf8352fa3674faea2fe2ce1001a38d'
|
|
'e89a566dd7514ff0d2d3fc77b2d4ca7e')
|
|
|
|
build() {
|
|
mkdir -p $pkgdir/etc
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
make || return 1
|
|
make DESTDIR=$pkgdir install || return 1
|
|
|
|
install -D -m0755 $srcdir/vnstat $pkgdir/etc/rc.d/vnstat && \
|
|
install -D -m0644 examples/vnstat.cron $pkgdir/etc/cron.d/vnstat && \
|
|
sed -i 's#root##' $pkgdir/etc/cron.d/vnstat
|
|
}
|