diff options
author | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2012-07-08 21:13:52 +0200 |
---|---|---|
committer | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2012-07-09 09:18:50 +0200 |
commit | 5ccdc422ed45059a3afc57f00e52f6c863500310 (patch) | |
tree | 9d778c1e405c521e7e474ad0b4c61f4c59019790 /testing/vnstat/APKBUILD | |
parent | e2aeafa21987d1b1f6d4eb1b1edf2f43babfc046 (diff) | |
download | aports-5ccdc422ed45059a3afc57f00e52f6c863500310.tar.bz2 aports-5ccdc422ed45059a3afc57f00e52f6c863500310.tar.xz |
testing/vnstat: miscellaneous fixes
- fix path to vnstatd in daemon
- add daemon configuration file
- create vnstat user and group
- unify indentation
Diffstat (limited to 'testing/vnstat/APKBUILD')
-rw-r--r-- | testing/vnstat/APKBUILD | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/testing/vnstat/APKBUILD b/testing/vnstat/APKBUILD index 1c13ff8102..be2e25310e 100644 --- a/testing/vnstat/APKBUILD +++ b/testing/vnstat/APKBUILD @@ -2,15 +2,17 @@ pkgname=vnstat pkgver=1.11 -pkgrel=0 +pkgrel=1 pkgdesc='A console-based network traffic monitor' url='http://humdi.net/vnstat/' arch='all' license='GPL' +install="$pkgname.pre-install" makedepends='gd-dev' subpackages="$pkgname-doc" source="http://humdi.net/vnstat/$pkgname-$pkgver.tar.gz - vnstatd.initd" + vnstatd.initd + vnstatd.confd" build() { cd "$srcdir"/$pkgname-$pkgver @@ -21,8 +23,11 @@ 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 -m0755 "$srcdir"/vnstatd.initd \ + "$pkgdir"/etc/init.d/vnstatd || return 1 + install -D -m0644 "$srcdir"/vnstatd.confd \ + "$pkgdir"/etc/conf.d/vnstatd || return 1 + install -D -m0644 examples/vnstat.cron \ "$pkgdir"/usr/share/doc/vnstat/examples/vnstat.cron || return 1 install -D -m0755 examples/vnstat.cgi \ @@ -30,4 +35,5 @@ package() { } md5sums="a5a113f9176cd61fb954f2ba297f5fdb vnstat-1.11.tar.gz -6c8a07d3388155c6cb23715ac8467700 vnstatd.initd" +b439075575d307cd9373740fe59538f1 vnstatd.initd +810205e9cd5328b4279bd9ab1b804c36 vnstatd.confd" |