summaryrefslogtreecommitdiff
path: root/community/vnstat/PKGBUILD
blob: c50e19e51600fc4c1b47a96b549b7cd667568581 (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
27
28
29
30
31
32
33
# $Id: PKGBUILD 20111 2010-07-02 14:00:19Z tdziedzic $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=vnstat
pkgver=1.10
pkgrel=5
pkgdesc="A console-based network traffic monitor"
arch=('i686' 'x86_64')
url="http://humdi.net/vnstat/"
license=('GPL')
depends=('bash')
makedepends=('gd')
optdepends=('gd: image output')
backup=(etc/vnstat.conf)
install=vnstat.install
source=(http://humdi.net/vnstat/$pkgname-$pkgver.tar.gz
	http://humdi.net/vnstat/init.d/arch/vnstat)
md5sums=('95421d968689130590348ceb80ff74a8'
         'e89a566dd7514ff0d2d3fc77b2d4ca7e')

build() {
  mkdir -p $pkgdir/etc

  cd $srcdir/$pkgname-$pkgver

  make all
  make DESTDIR=$pkgdir install

  install -D -m0755 $srcdir/vnstat $pkgdir/etc/rc.d/vnstat && \
  install -D -m0644 examples/vnstat.cron $pkgdir/usr/share/doc/vnstat/examples/vnstat.cron && \
  install -D -m0755 examples/vnstat.cgi $pkgdir/usr/share/doc/vnstat/examples/vnstat.cgi && \
  sed -i 's#root##' $pkgdir/usr/share/doc/vnstat/examples/vnstat.cron
}