diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-13 15:43:54 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-13 15:43:54 +0100 |
commit | bf1a5e076df6ac74bb741c10babfdbc4e5cb2b06 (patch) | |
tree | 36fcfa5aeee3222e909de184e3d79f4513c1300b /community/vnstat/APKBUILD | |
parent | b8b9587650875423230c5f9e60286c96858de4d5 (diff) | |
download | aports-bf1a5e076df6ac74bb741c10babfdbc4e5cb2b06.tar.bz2 aports-bf1a5e076df6ac74bb741c10babfdbc4e5cb2b06.tar.xz |
community/vnstat: upgrade to 1.16
Diffstat (limited to 'community/vnstat/APKBUILD')
-rw-r--r-- | community/vnstat/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/community/vnstat/APKBUILD b/community/vnstat/APKBUILD new file mode 100644 index 0000000000..e24655b410 --- /dev/null +++ b/community/vnstat/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=vnstat +pkgver=1.16 +pkgrel=0 +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.confd" +builddir="$srcdir/vnstat-$pkgver" + +build() { + cd "$builddir" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + || return 1 + make || return 1 +} + +package() { + cd "$builddir" + + make DESTDIR="$pkgdir" install || 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 -m0755 examples/vnstat.cgi \ + "$pkgdir"/usr/share/doc/vnstat/examples/vnstat.cgi || return 1 +} + +md5sums="6eed3fbda4b97411163d8b09415bbba7 vnstat-1.16.tar.gz +cf0a4a161295e1d1988836cdc8d1064d vnstatd.initd +810205e9cd5328b4279bd9ab1b804c36 vnstatd.confd" +sha256sums="420fec6c89229a100697f3189e824a1b81f7148dd651558f2ff03cc298308e8b vnstat-1.16.tar.gz +98d57c982722372257d4b901836170ae0e81d9e575caa5a6463bdc6a78f9dd2a vnstatd.initd +2cd5b91f86bc26aca85166a50de89faaccbf1ea8f219efb48b50b7ed0f3fe377 vnstatd.confd" +sha512sums="8906acebead4aef7ec7e96c4f9f17a2b9483f69cf530eb21d2ddc60de71b7690453bf533acfac298cf7e5184c23c7e6a886a757fdbfac3006cc09653c9a2cf6b vnstat-1.16.tar.gz +cc3183b8d42eff1e0a876420612dd8892ba5ac10810e7de7ca1076eb5e5867145a0d7e605773f39157e91da29aa68ae5c350d120f60292578fcaba44603b2b92 vnstatd.initd +d645817913d5b52e928561b3d6a0e869d8ae5db81b97af91c1ebfc6a8cd2df666c1653e6dc5f91c0a890033a89692f77eaf081c1cae5590446c69a70ea263946 vnstatd.confd" |