Update prometheus to v2.13.0. This installs the new tool tsdb.

OK sthen@
This commit is contained in:
claudio 2019-10-16 06:47:12 +00:00
parent 30aaff20c1
commit fe789d0810
5 changed files with 27 additions and 7 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.6 2019/07/12 20:49:49 sthen Exp $
# $OpenBSD: Makefile,v 1.7 2019/10/16 06:47:12 claudio Exp $
COMMENT = systems monitoring and alerting toolkit
GH_ACCOUNT = prometheus
GH_PROJECT = prometheus
GH_TAGNAME = v2.9.2
GH_TAGNAME = v2.13.0
CATEGORIES = sysutils
@ -37,6 +37,7 @@ do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/prometheus/console_libraries
${INSTALL_PROGRAM} ${WRKSRC}/prometheus ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/promtool ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/tsdb/tsdb ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/consoles/* \
${PREFIX}/share/examples/prometheus/consoles/
${INSTALL_DATA} ${WRKSRC}/console_libraries/{menu.lib,prom.lib} \

View File

@ -1,2 +1,2 @@
SHA256 (prometheus-2.9.2.tar.gz) = +gC9/NhoyExhIj3+YOs7xnd3hX5J2yyCaFTHBsXqRVE=
SIZE (prometheus-2.9.2.tar.gz) = 11477683
SHA256 (prometheus-2.13.0.tar.gz) = jfCsdC/tqtEuOZaFC2t2nVrKcHVmngVUD7xcNjvgsoo=
SIZE (prometheus-2.13.0.tar.gz) = 15193226

View File

@ -1,9 +1,11 @@
$OpenBSD: patch-Makefile_common,v 1.1 2019/05/06 06:16:27 claudio Exp $
$OpenBSD: patch-Makefile_common,v 1.2 2019/10/16 06:47:12 claudio Exp $
Don't fetch promu form internet. This is just a build-dependency
Index: Makefile.common
--- Makefile.common.orig
+++ Makefile.common
@@ -213,11 +213,7 @@ common-docker-tag-latest:
@@ -236,11 +236,7 @@ common-docker-manifest:
promu: $(PROMU)
$(PROMU):

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-_promu_yml,v 1.1 2019/10/16 06:47:12 claudio Exp $
Don't include user and hostname into build.
Index: .promu.yml
--- .promu.yml.orig
+++ .promu.yml
@@ -17,7 +17,7 @@ build:
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.Revision}}
-X github.com/prometheus/common/version.Branch={{.Branch}}
- -X github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
+ -X github.com/prometheus/common/version.BuildUser=OpenBSD
-X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
tarball:
files:

View File

@ -1,10 +1,11 @@
@comment $OpenBSD: PLIST,v 1.2 2019/05/06 06:16:27 claudio Exp $
@comment $OpenBSD: PLIST,v 1.3 2019/10/16 06:47:12 claudio Exp $
@newgroup _prometheus:799
@newuser _prometheus:799:_prometheus:daemon:prometheus:/nonexistent:/sbin/nologin
@sample ${SYSCONFDIR}/prometheus/
@rcscript ${RCDIR}/prometheus
@bin bin/prometheus
@bin bin/promtool
@bin bin/tsdb
share/doc/prometheus/
share/doc/prometheus/LICENSE
share/doc/prometheus/NOTICE