aboutsummaryrefslogtreecommitdiffstats
path: root/testing/vnstat/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/vnstat/APKBUILD')
-rw-r--r--testing/vnstat/APKBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/vnstat/APKBUILD b/testing/vnstat/APKBUILD
new file mode 100644
index 0000000000..0ae9e742c0
--- /dev/null
+++ b/testing/vnstat/APKBUILD
@@ -0,0 +1,30 @@
+# 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"