summaryrefslogtreecommitdiffstats
path: root/vnstat/PKGBUILD
blob: 124dcd8f9d72b5891a68bbb90eb30d276288e578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $Id: PKGBUILD,v 1.6 2009/04/13 09:19:05 sergej Exp $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=vnstat
pkgver=1.7
pkgrel=1
pkgdesc="network traffic monitor for Linux that keeps a log of daily network traffic for the selected interface(s)"
arch=(i686 x86_64)
url="http://humdi.net/vnstat"
license=('GPL')
depends=()
makedepends=()
install=vnstat.install
source=(http://humdi.net/vnstat/$pkgname-$pkgver.tar.gz)
md5sums=('e5788e8122e34f2c93561e2a84c19432')

build() {
  cd $startdir/src/$pkgname-$pkgver
  mkdir -p $startdir/pkg/usr/share/vnstat/cron
  mkdir -p $startdir/pkg/etc/cron.d
  cp cron/vnstat $startdir/pkg/usr/share/vnstat/cron
  make || return 1
  make DESTDIR=$startdir/pkg/ install || return 1
  install -D -m0644 cron/vnstat $pkgdir/etc/cron.d/vnstat && \
  sed -i 's#root##' $pkgdir/etc/cron.d/vnstat
}