bird_exporter: optional pandoc
This commit is contained in:
parent
267998ea43
commit
1de450c1ba
|
@ -1,10 +1,10 @@
|
||||||
# Template file for 'bird_exporter'
|
# Template file for 'bird_exporter'
|
||||||
pkgname=bird_exporter
|
pkgname=bird_exporter
|
||||||
version=1.2.5
|
version=1.2.5
|
||||||
revision=1
|
revision=2
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path="github.com/czerwonk/bird_exporter"
|
go_import_path="github.com/czerwonk/bird_exporter"
|
||||||
hostmakedepends="pandoc"
|
hostmakedepends="$(vopt_if man pandoc)"
|
||||||
depends="bird"
|
depends="bird"
|
||||||
short_desc="Metric exporter for BIRD routing daemon to use with Prometheus"
|
short_desc="Metric exporter for BIRD routing daemon to use with Prometheus"
|
||||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
|
@ -13,11 +13,22 @@ homepage="https://github.com/czerwonk/bird_exporter"
|
||||||
distfiles="https://github.com/czerwonk/bird_exporter/archive/${version}.tar.gz"
|
distfiles="https://github.com/czerwonk/bird_exporter/archive/${version}.tar.gz"
|
||||||
checksum=3d8a1e718bc7f8bdd2c7fc775f042fdce81b4a2b08f978b0831f39909ac15c3d
|
checksum=3d8a1e718bc7f8bdd2c7fc775f042fdce81b4a2b08f978b0831f39909ac15c3d
|
||||||
|
|
||||||
|
build_options="man"
|
||||||
|
desc_option_man="Use pandoc for manpages"
|
||||||
|
|
||||||
|
case "$XBPS_MACHINE" in
|
||||||
|
x86_64*|i686|ppc64le) build_options_default="man" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
post_build() {
|
post_build() {
|
||||||
|
if [ "$build_option_man" ]; then
|
||||||
pandoc -s -t man bird_exporter.1.md -o bird_exporter.1
|
pandoc -s -t man bird_exporter.1.md -o bird_exporter.1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
|
if [ "$build_option_man" ]; then
|
||||||
vman bird_exporter.1
|
vman bird_exporter.1
|
||||||
|
fi
|
||||||
vsv bird_exporter
|
vsv bird_exporter
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue