aboutsummaryrefslogtreecommitdiffstats
path: root/community/bird_exporter/APKBUILD
blob: 36cf9c370321884326f582c19a4303ff0f33f29c (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
# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
pkgname=bird_exporter
pkgver=1.4.1
pkgrel=1
pkgdesc="Metric exporter for bird routing daemon to use with Prometheus"
url="https://github.com/czerwonk/bird_exporter"
arch="all"
license="MIT"
pkgusers="$pkgname"
depends="bird"
makedepends="go ronn"
options="net"
source="https://github.com/czerwonk/bird_exporter/archive/$pkgver/bird_exporter-$pkgver.tar.gz
	bird_exporter.initd
	"
options="!check" # no checks available
install="bird_exporter.pre-install"
subpackages="$pkgname-openrc $pkgname-doc"

build() {
	go build -ldflags "-s -w"
	ronn -r bird_exporter.1.md
}

package() {
	install -Dm755 bird_exporter "$pkgdir"/usr/bin/bird_exporter
	install -Dm755 "$srcdir"/bird_exporter.initd "$pkgdir"/etc/init.d/bird_exporter
	install -Dm644 bird_exporter.1 "$pkgdir"/usr/share/man/man1/bird_exporter.1
}

sha512sums="
54a59acb163962d9adefe96b8e64ee20871caaea2e5bfa755da473a5c1c58bd245c27fa13c4f039c6f0aa52eaba056c6705c493d5b614a6c7905241c58aec552  bird_exporter-1.4.1.tar.gz
2439669c09c7f48afa1d98653f5737bb4b0ceca90147ca8c7402bf905c4bd37c5c2e16f7816016cdfed591e6a0e55f890e001a3d2584797f7a03311bf4696782  bird_exporter.initd
"