blob: 1c13ff81029a4f3a6d1d46e0e0c436398d5994fb (
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
|
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
pkgname=vnstat
pkgver=1.11
pkgrel=0
pkgdesc='A console-based network traffic monitor'
url='http://humdi.net/vnstat/'
arch='all'
license='GPL'
makedepends='gd-dev'
subpackages="$pkgname-doc"
source="http://humdi.net/vnstat/$pkgname-$pkgver.tar.gz
vnstatd.initd"
build() {
cd "$srcdir"/$pkgname-$pkgver
make all || return 1
}
package() {
cd "$srcdir"/$pkgname-$pkgver
make DESTDIR="$pkgdir" install || return 1
install -D -m0755 "$srcdir"/vnstatd.initd "$pkgdir"/etc/init.d/vnstat \
|| return 1
install -D -m0644 examples/vnstat.cron \
"$pkgdir"/usr/share/doc/vnstat/examples/vnstat.cron || return 1
install -D -m0755 examples/vnstat.cgi \
"$pkgdir"/usr/share/doc/vnstat/examples/vnstat.cgi || return 1
}
md5sums="a5a113f9176cd61fb954f2ba297f5fdb vnstat-1.11.tar.gz
6c8a07d3388155c6cb23715ac8467700 vnstatd.initd"
|