This is an update of prometheus to v2.13.0. This will now also install the
tsdb tool (unsure how useful it is since it seems to be more of a
development tool). The other thing I did is change the BuildUser setting
to a static string. Not sure what our position is about including such
data there.

Basic usage works. More testing welcome.
-- 
:wq Claudio

Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/prometheus/Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 Makefile
--- Makefile    12 Jul 2019 20:49:49 -0000      1.6
+++ Makefile    11 Oct 2019 03:28:58 -0000
@@ -4,7 +4,7 @@ COMMENT =               systems monitoring and alerti
 
 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} \
Index: distinfo
===================================================================
RCS file: /cvs/ports/sysutils/prometheus/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo    6 May 2019 06:16:27 -0000       1.2
+++ distinfo    11 Oct 2019 03:13:48 -0000
@@ -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
Index: patches/patch-Makefile_common
===================================================================
RCS file: /cvs/ports/sysutils/prometheus/patches/patch-Makefile_common,v
retrieving revision 1.1
diff -u -p -r1.1 patch-Makefile_common
--- patches/patch-Makefile_common       6 May 2019 06:16:27 -0000       1.1
+++ patches/patch-Makefile_common       11 Oct 2019 03:35:10 -0000
@@ -1,9 +1,11 @@
 $OpenBSD: patch-Makefile_common,v 1.1 2019/05/06 06:16:27 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):
Index: patches/patch-_promu_yml
===================================================================
RCS file: patches/patch-_promu_yml
diff -N patches/patch-_promu_yml
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-_promu_yml    11 Oct 2019 03:34:22 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+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:
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/sysutils/prometheus/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   6 May 2019 06:16:27 -0000       1.2
+++ pkg/PLIST   11 Oct 2019 03:35:26 -0000
@@ -5,6 +5,7 @@
 @rcscript ${RCDIR}/prometheus
 @bin bin/prometheus
 @bin bin/promtool
+@bin bin/tsdb
 share/doc/prometheus/
 share/doc/prometheus/LICENSE
 share/doc/prometheus/NOTICE

Reply via email to