New package: blackbox_exporter-0.8.1
This commit is contained in:
parent
bba98cb275
commit
bde00ece36
3 changed files with 40 additions and 0 deletions
5
srcpkgs/blackbox_exporter/INSTALL
Normal file
5
srcpkgs/blackbox_exporter/INSTALL
Normal file
|
@ -0,0 +1,5 @@
|
|||
case "${ACTION}" in
|
||||
post)
|
||||
setcap cap_net_raw+ep usr/bin/blackbox_exporter
|
||||
;;
|
||||
esac
|
11
srcpkgs/blackbox_exporter/files/blackbox_exporter/run
Executable file
11
srcpkgs/blackbox_exporter/files/blackbox_exporter/run
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Add $ARGS for more arguments to blackbox_exporter
|
||||
# $CONF_FILE is the location of the configuration file.
|
||||
|
||||
[ -f ./conf ] && . ./conf || exit 1;
|
||||
[ -z "$CONF_FILE" ] && exit 2;
|
||||
|
||||
: ${USER:=_blackbox_exporter}
|
||||
|
||||
exec chpst -u $USER blackbox_exporter --config.file "${CONF_FILE}" ${ARGS}
|
24
srcpkgs/blackbox_exporter/template
Normal file
24
srcpkgs/blackbox_exporter/template
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Template file for 'blackbox_exporter'
|
||||
pkgname=blackbox_exporter
|
||||
version=0.8.1
|
||||
revision=1
|
||||
build_style=go
|
||||
go_import_path="github.com/prometheus/blackbox_exporter"
|
||||
go_ldflags="-X ${go_import_path}/version.Version=${version}
|
||||
-X ${go_import_path}/version.Revision=${version}
|
||||
-X ${go_import_path}/version.Branch=${version}
|
||||
-X ${go_import_path}/version.BuildUser=VoidLinux"
|
||||
short_desc="Allows blackbox probing of endpoints over HTTP, DNS, TCP and ICMP"
|
||||
maintainer="Toyam Cox <Vaelatern@voidlinux.eu>"
|
||||
license="Apache-2.0"
|
||||
homepage="https://prometheus.io"
|
||||
distfiles="https://github.com/prometheus/blackbox_exporter/archive/v${version}.tar.gz"
|
||||
checksum=6a9abef7575fc666c0c456f95e9d0410600e0832e679f8bed8c2069345d60d7e
|
||||
|
||||
system_accounts="_blackbox_exporter"
|
||||
|
||||
post_install() {
|
||||
vsconf example.yml
|
||||
vdoc CONFIGURATION.md
|
||||
vsv blackbox_exporter
|
||||
}
|
Loading…
Reference in a new issue