summaryrefslogtreecommitdiffstats
path: root/testing/rrdbot/APKBUILD
blob: 3acfd2ae5501ffcffcf5d1b688c17d9200b518fb (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rrdbot
pkgver=0.9.6
pkgrel=2
pkgdesc="an SNMP polling daemon which writes the polled values to an RRD database"
url="http://memberwebs.com/stef/software/rrdbot/"
arch="all"
license="BSD"
depends=
makedepends=rrdtool-dev
install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc"
source="http://memberwebs.com/stef/software/rrdbot/rrdbot-$pkgver.tar.gz
	rrdbotd.initd
	rrdbotd.confd
	"

# append extra dependencies to -dev subpackage
# remove if not used.
# depends_dev="somepackage-dev"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -m755 -D "$srcdir"/rrdbotd.initd "$pkgdir"/etc/init.d/rrdbotd
	install -m644 -D "$srcdir"/rrdbotd.confd "$pkgdir"/etc/conf.d/rrdbotd
}

md5sums="8329c8f58136158b25c3179e825c66e6  rrdbot-0.9.6.tar.gz
68d118f9a86c6cf8e718d0f2be210306  rrdbotd.initd
cbcac88f5b728b1441891947a4babbcb  rrdbotd.confd"