aboutsummaryrefslogtreecommitdiffstats
path: root/community/vnstat
diff options
context:
space:
mode:
authordai9ah <dai9ah@protonmail.com>2018-03-05 17:07:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-03-05 23:40:34 +0000
commit64cf2351a52e1c743cd3a55e1069d4d4f8b9a7af (patch)
treef67c0aca082aec4646331dd7af1ce55de3d29ec5 /community/vnstat
parent79ad287e646bb29daf4f13778834c42dd8ad2046 (diff)
downloadaports-64cf2351a52e1c743cd3a55e1069d4d4f8b9a7af.tar.bz2
aports-64cf2351a52e1c743cd3a55e1069d4d4f8b9a7af.tar.xz
community/vnstat: upgrade to 1.18, clarify license, modernize
Diffstat (limited to 'community/vnstat')
-rw-r--r--community/vnstat/APKBUILD23
1 files changed, 11 insertions, 12 deletions
diff --git a/community/vnstat/APKBUILD b/community/vnstat/APKBUILD
index 7a8e9c3bd2..a2c8074b07 100644
--- a/community/vnstat/APKBUILD
+++ b/community/vnstat/APKBUILD
@@ -1,12 +1,12 @@
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=vnstat
-pkgver=1.17
+pkgver=1.18
pkgrel=0
-pkgdesc="A console-based network traffic monitor"
-url="http://humdi.net/vnstat/"
+pkgdesc="Console-based network traffic monitor"
+url="http://humdi.net/vnstat"
arch="all"
-license="GPL"
+license="GPL-2.0-or-later"
install="$pkgname.pre-install"
makedepends="gd-dev"
subpackages="$pkgname-doc"
@@ -21,25 +21,24 @@ build() {
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
- || return 1
- make || return 1
+ --infodir=/usr/share/info
+ make
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
install -D -m0755 "$srcdir"/vnstatd.initd \
- "$pkgdir"/etc/init.d/vnstatd || return 1
+ "$pkgdir"/etc/init.d/vnstatd
install -D -m0644 "$srcdir"/vnstatd.confd \
- "$pkgdir"/etc/conf.d/vnstatd || return 1
+ "$pkgdir"/etc/conf.d/vnstatd
install -D -m0755 examples/vnstat.cgi \
- "$pkgdir"/usr/share/doc/vnstat/examples/vnstat.cgi || return 1
+ "$pkgdir"/usr/share/doc/vnstat/examples/vnstat.cgi
}
-sha512sums="c9c119a89054dacdc15026c766a20d88336d7689dd4264530d0347fcc58f3cbfc806b271e0f83e76c3b4a31ab793a628ee7d7b696943da919ee4cd2fdb481cc3 vnstat-1.17.tar.gz
+sha512sums="4f9f08a57586bc57ede3d66802ee977c69b5f76ab42aa36e942e8d827dfce806dfc04916646fac01f57b026742a639fc5f7395b141a1c03ad11a1f977d02aa68 vnstat-1.18.tar.gz
cc3183b8d42eff1e0a876420612dd8892ba5ac10810e7de7ca1076eb5e5867145a0d7e605773f39157e91da29aa68ae5c350d120f60292578fcaba44603b2b92 vnstatd.initd
d645817913d5b52e928561b3d6a0e869d8ae5db81b97af91c1ebfc6a8cd2df666c1653e6dc5f91c0a890033a89692f77eaf081c1cae5590446c69a70ea263946 vnstatd.confd"