30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
# Template file for 'prometheus'
|
|
pkgname=prometheus
|
|
version=0.18.0
|
|
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="Dominik Honnef <dominik@honnef.co>"
|
|
license="Apache-2.0"
|
|
homepage="https://prometheus.io/"
|
|
short_desc="A monitoring system and time series database"
|
|
distfiles="https://github.com/prometheus/prometheus/archive/${version}.tar.gz"
|
|
checksum=4def1a9e72acb6ea360e246b34e69cf21888be5c7e1bdbf29a3ab9f244e6e0aa
|
|
|
|
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/
|
|
}
|