27 lines
1020 B
Bash
27 lines
1020 B
Bash
# Template file for 'alertmanager'
|
|
pkgname=alertmanager
|
|
version=0.15.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=5b36c873b25443b61cc0686e048596737c9d11a3579c39ef9063b3c619595da8
|
|
|
|
system_accounts="_alertmanager"
|
|
make_dirs="/var/lib/alertmanager 700 _alertmanager _alertmanager"
|
|
|
|
post_install() {
|
|
vconf doc/examples/simple.yml alertmanager.yml
|
|
vsv alertmanager
|
|
}
|