void-packages/srcpkgs/prometheus/template
Toyam Cox ad2b755b11 prometheus: update to 1.4.1.
Also adopt after being orphaned.
2017-01-16 08:01:15 -05:00

29 lines
1.1 KiB
Bash

# Template file for 'prometheus'
pkgname=prometheus
version=1.4.1
revision=1
build_style=go
go_import_path="github.com/prometheus/prometheus"
go_package="github.com/prometheus/prometheus/cmd/prometheus github.com/prometheus/prometheus/cmd/promtool"
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"
maintainer="Toyam Cox <Vaelatern@voidlinux.eu>"
license="Apache-2.0"
homepage="https://prometheus.io/"
short_desc="A monitoring system and time series database"
distfiles="https://github.com/prometheus/prometheus/archive/v${version}.tar.gz"
checksum=9665fa6fd64442be5f68b78b8e69a4a7904876989bf76f9ec39315d7292b7fa2
post_install() {
vlicense LICENSE
vlicense NOTICE
vmkdir etc/prometheus
vmkdir usr/share/doc/prometheus
vmkdir usr/share/examples/prometheus
vcopy consoles etc/prometheus
vcopy console_libraries etc/prometheus
vcopy documentation/examples/* usr/share/examples/prometheus/
vcopy documentation/images usr/share/doc/prometheus/
}