aboutsummaryrefslogtreecommitdiffstats
path: root/testing/vnstat/APKBUILD
blob: 71dab258d018b077e332c10b92c1e571c109c297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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"
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="351051ef3005e3ca99123eec07ac0a7d  vnstat-1.15.tar.gz
cf0a4a161295e1d1988836cdc8d1064d  vnstatd.initd
810205e9cd5328b4279bd9ab1b804c36  vnstatd.confd"
sha256sums="c3814b5baa8b627198a8debfe1dce4b4346a342523818cc8668a5497971dbc39  vnstat-1.15.tar.gz
98d57c982722372257d4b901836170ae0e81d9e575caa5a6463bdc6a78f9dd2a  vnstatd.initd
2cd5b91f86bc26aca85166a50de89faaccbf1ea8f219efb48b50b7ed0f3fe377  vnstatd.confd"
sha512sums="e6cf714c2c95ae7f82ec7852d23067da28f4fab83cf33726e4268a31f982ddf13c3bc30f17251a80f7c65d25f394cd05379a30e677687ce70f8c7b229ac0cb4e  vnstat-1.15.tar.gz
cc3183b8d42eff1e0a876420612dd8892ba5ac10810e7de7ca1076eb5e5867145a0d7e605773f39157e91da29aa68ae5c350d120f60292578fcaba44603b2b92  vnstatd.initd
d645817913d5b52e928561b3d6a0e869d8ae5db81b97af91c1ebfc6a8cd2df666c1653e6dc5f91c0a890033a89692f77eaf081c1cae5590446c69a70ea263946  vnstatd.confd"