43 lines
1.5 KiB
Bash
43 lines
1.5 KiB
Bash
# Template file for 'prometheus'
|
|
pkgname=prometheus
|
|
version=2.26.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"
|
|
go_build_tags="netgo,builtinassets"
|
|
hostmakedepends="yarn"
|
|
conf_files="/etc/prometheus/prometheus.yml"
|
|
short_desc="Monitoring system and time series database"
|
|
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://prometheus.io/"
|
|
changelog="https://raw.githubusercontent.com/prometheus/prometheus/master/CHANGELOG.md"
|
|
distfiles="https://github.com/prometheus/prometheus/archive/v${version}.tar.gz"
|
|
checksum=d13750d67aac825f9b213875c586db69533f57bcaf68f6a87592f9e4cea946ac
|
|
|
|
system_accounts="_prometheus"
|
|
|
|
make_dirs="/var/lib/prometheus 700 _prometheus _prometheus"
|
|
|
|
pre_build() {
|
|
CGO_ENABLED=0 GOARCH= make assets
|
|
}
|
|
|
|
post_install() {
|
|
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/examples/prometheus.yml etc/prometheus/
|
|
vcopy documentation/images usr/share/doc/prometheus/
|
|
vsv prometheus
|
|
}
|