aboutsummaryrefslogtreecommitdiffstats
path: root/testing/vnstat
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-17 20:51:16 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-08-17 20:51:53 +0200
commit1a1eef3203136f2b48a4ae60d20cc5e168b4e99f (patch)
tree66e1a24c0e7237ab8d4592ede6a86568d07b68dd /testing/vnstat
parent2f071a95c1c73962473067ea369f6388cfac90ce (diff)
downloadaports-1a1eef3203136f2b48a4ae60d20cc5e168b4e99f.tar.bz2
aports-1a1eef3203136f2b48a4ae60d20cc5e168b4e99f.tar.xz
testing/vnstat: improve abuild, unify code-style
Diffstat (limited to 'testing/vnstat')
-rw-r--r--testing/vnstat/APKBUILD37
1 files changed, 15 insertions, 22 deletions
diff --git a/testing/vnstat/APKBUILD b/testing/vnstat/APKBUILD
index b404e78357..71dab258d0 100644
--- a/testing/vnstat/APKBUILD
+++ b/testing/vnstat/APKBUILD
@@ -1,41 +1,34 @@
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
-
pkgname=vnstat
pkgver=1.15
pkgrel=0
-pkgdesc='A console-based network traffic monitor'
-url='http://humdi.net/vnstat/'
-arch='all'
-license='GPL'
+pkgdesc="A console-based network traffic monitor"
+url="http://humdi.net/vnstat/"
+arch="all"
+license="GPL"
install="$pkgname.pre-install"
-makedepends='gd-dev'
+makedepends="gd-dev"
subpackages="$pkgname-doc"
source="http://humdi.net/vnstat/$pkgname-$pkgver.tar.gz
- vnstatd.initd
- vnstatd.confd"
-
-_builddir="$srcdir"/vnstat-$pkgver
-prepare() {
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+ vnstatd.initd
+ vnstatd.confd"
+builddir="$srcdir/vnstat-$pkgver"
build() {
- cd "$_builddir"
- ./configure --prefix=/usr \
+ cd "$builddir"
+ ./configure \
+ --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info
+ --infodir=/usr/share/info \
+ || return 1
make || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
+
make DESTDIR="$pkgdir" install || return 1
install -D -m0755 "$srcdir"/vnstatd.initd \