From ef9ff35c38a0581e94417b0c12f760fa716e128a Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Tue, 3 May 2016 00:32:48 +0200 Subject: [PATCH] New package: prometheus-0.18.0 --- common/build-style/go.sh | 2 +- srcpkgs/prometheus/template | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/prometheus/template diff --git a/common/build-style/go.sh b/common/build-style/go.sh index dd96efc65f..3a8187c11f 100644 --- a/common/build-style/go.sh +++ b/common/build-style/go.sh @@ -10,7 +10,7 @@ do_build() { fi go_package=${go_package:-$go_import_path} - go get -x -tags "${go_build_tags}" ${go_package} + go get -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package} } do_install() { diff --git a/srcpkgs/prometheus/template b/srcpkgs/prometheus/template new file mode 100644 index 0000000000..1889f83e41 --- /dev/null +++ b/srcpkgs/prometheus/template @@ -0,0 +1,29 @@ +# 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 " +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/ +}