New package: alertmanager-0.9.1

This commit is contained in:
Toyam Cox 2017-11-09 00:54:35 -05:00
parent 0ba13ea196
commit 413ada05c0
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#!/bin/sh
# Add $ARGS for more arguments
[ -f ./conf ] && . ./conf
: ${USER:=_alertmanager}
: ${CONF_FILE:=/etc/alertmanager.yml}
: ${CONF_FLAG:=-config.file=$CONF_FILE}
: ${WRKDIR:=/var/lib/alertmanager}
cd "$WRKDIR"
exec chpst -u $USER alertmanager ${CONF_FLAG} ${ARGS}

View File

@ -0,0 +1,26 @@
# Template file for 'alertmanager'
pkgname=alertmanager
version=0.9.1
revision=1
build_style=go
go_import_path="github.com/prometheus/alertmanager"
go_package="${go_import_path}/cmd/alertmanager ${go_import_path}/cmd/amtool"
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="Handles alerts sent by client applications such as the Prometheus server"
conf_files="/etc/alertmanager.yml"
maintainer="Toyam Cox <Vaelatern@voidlinux.eu>"
license="Apache-2.0"
homepage="https://github.com/prometheus/alertmanager"
distfiles="https://github.com/prometheus/alertmanager/archive/v${version}.tar.gz"
checksum=067e00773efd0948918a30449d5e96b5cc9b0b9ecb1271d75bbd46ad3944a699
system_accounts="_alertmanager"
make_dirs="/var/lib/alertmanager 700 _alertmanager _alertmanager"
post_install() {
vconf doc/examples/simple.yml alertmanager.yml
vsv alertmanager
}