35 lines
930 B
Bash
35 lines
930 B
Bash
# Template file for 'bird_exporter'
|
|
pkgname=bird_exporter
|
|
version=1.4.3
|
|
revision=2
|
|
build_style=go
|
|
go_import_path="github.com/czerwonk/bird_exporter"
|
|
hostmakedepends="$(vopt_if man pandoc)"
|
|
depends="bird"
|
|
short_desc="Metric exporter for BIRD routing daemon to use with Prometheus"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/czerwonk/bird_exporter"
|
|
distfiles="https://github.com/czerwonk/bird_exporter/archive/${version}.tar.gz"
|
|
checksum=75bf25dc979f2bbc4dd95e31b25a9b2defd43d2ee5d9e790ef7e70c355443243
|
|
|
|
build_options="man"
|
|
desc_option_man="Use pandoc for manpages"
|
|
|
|
case "$XBPS_MACHINE" in
|
|
x86_64*|i686|ppc64le*|ppc64) build_options_default="man" ;;
|
|
esac
|
|
|
|
post_build() {
|
|
if [ "$build_option_man" ]; then
|
|
pandoc -s -t man bird_exporter.1.md -o bird_exporter.1
|
|
fi
|
|
}
|
|
post_install() {
|
|
if [ "$build_option_man" ]; then
|
|
vman bird_exporter.1
|
|
fi
|
|
vsv bird_exporter
|
|
vlicense LICENSE
|
|
}
|