From 5d53e14a6230c36d25f60fa5d1a954144bdf15bc Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 25 Aug 2020 17:49:33 +0200 Subject: [PATCH] New package: bird_exporter-1.2.4 --- srcpkgs/bird_exporter/files/bird_exporter/run | 3 +++ srcpkgs/bird_exporter/template | 23 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 srcpkgs/bird_exporter/files/bird_exporter/run create mode 100644 srcpkgs/bird_exporter/template diff --git a/srcpkgs/bird_exporter/files/bird_exporter/run b/srcpkgs/bird_exporter/files/bird_exporter/run new file mode 100755 index 00000000000..d92d8190940 --- /dev/null +++ b/srcpkgs/bird_exporter/files/bird_exporter/run @@ -0,0 +1,3 @@ +#!/bin/sh +[ -r conf ] && . ./conf +exec bird_exporter ${OPTS:=-bird.v2 -format.new} diff --git a/srcpkgs/bird_exporter/template b/srcpkgs/bird_exporter/template new file mode 100644 index 00000000000..6374b7f5d58 --- /dev/null +++ b/srcpkgs/bird_exporter/template @@ -0,0 +1,23 @@ +# Template file for 'bird_exporter' +pkgname=bird_exporter +version=1.2.4 +revision=1 +build_style=go +go_import_path="github.com/czerwonk/bird_exporter" +hostmakedepends="pandoc" +depends="bird" +short_desc="Metric exporter for BIRD routing daemon to use with Prometheus" +maintainer="Leah Neukirchen " +license="MIT" +homepage="https://github.com/czerwonk/bird_exporter" +distfiles="https://github.com/czerwonk/bird_exporter/archive/${version}.tar.gz" +checksum=99498bb8a47e2dbb496830099a550df0bf0d4b53f3e7ccd309689c54f5ffae72 + +post_build() { + pandoc -s -t man bird_exporter.1.md -o bird_exporter.1 +} +post_install() { + vman bird_exporter.1 + vsv bird_exporter + vlicense LICENSE +}