git: d5d70411e059 - main - www/nginx-prometheus-exporter: Update to 0.11.0

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Thu, 03 Aug 2023 10:22:53 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d5d70411e059a90cf224bb0776c60e9ff893f0ac

commit d5d70411e059a90cf224bb0776c60e9ff893f0ac
Author:     Volodymyr Kostyrko <arcade@b1t.name>
AuthorDate: 2023-08-03 10:17:45 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2023-08-03 10:22:24 +0000

    www/nginx-prometheus-exporter: Update to 0.11.0
    
    - Switch to DISTVERSION
    - Define LICENSE_FILE
    - Switch to GO_MODULE method
    - Pet portclippy
    
    ChangeLog:
    https://github.com/nginxinc/nginx-prometheus-exporter/releases/tag/v0.11.0
    
    PR:             269932
---
 www/nginx-prometheus-exporter/Makefile | 21 ++++-----------------
 www/nginx-prometheus-exporter/distinfo | 30 +++++-------------------------
 2 files changed, 9 insertions(+), 42 deletions(-)

diff --git a/www/nginx-prometheus-exporter/Makefile b/www/nginx-prometheus-exporter/Makefile
index 9b915b6bc177..5dfda5b6e481 100644
--- a/www/nginx-prometheus-exporter/Makefile
+++ b/www/nginx-prometheus-exporter/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	nginx-prometheus-exporter
-PORTVERSION=	0.10.0
 DISTVERSIONPREFIX=	v
-PORTREVISION=	13
+DISTVERSION=	0.11.0
 CATEGORIES=	www
 
 MAINTAINER=	arcade@b1t.name
@@ -9,28 +8,16 @@ COMMENT=	Prometheus exporter for NGINX and NGINX Plus stats
 WWW=		https://github.com/nginxinc/nginx-prometheus-exporter
 
 LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		go:modules
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	nginxinc
-GH_TUPLE=	beorn7:perks:v1.0.1:beorn7_perks/vendor/github.com/beorn7/perks \
-		cespare:xxhash:v2.1.1:cespare_xxhash/vendor/github.com/cespare/xxhash/v2 \
-		golang:protobuf:v1.4.3:golang_protobuf/vendor/github.com/golang/protobuf \
-		golang:sys:v0.6.0:golang_sys/vendor/golang.org/x/sys \
-		matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \
-		nginxinc:nginx-plus-go-client:v0.9.0:nginxinc_nginx_plus_go_client/vendor/github.com/nginxinc/nginx-plus-go-client \
-		prometheus:client_golang:v1.11.0:prometheus_client_golang/vendor/github.com/prometheus/client_golang \
-		prometheus:client_model:v0.2.0:prometheus_client_model/vendor/github.com/prometheus/client_model \
-		prometheus:common:v0.32.1:prometheus_common/vendor/github.com/prometheus/common \
-		prometheus:procfs:v0.6.0:prometheus_procfs/vendor/github.com/prometheus/procfs \
-		protocolbuffers:protobuf-go:v1.26.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf
-
 USE_RC_SUBR=	${PORTNAME}
+GO_MODULE=	github.com/nginxinc/nginx-prometheus-exporter
+GO_BUILDFLAGS=	-v -ldflags "${LD_FLAG_STRING}"
 
 LD_FLAG_X_PREFIX=	-X main
 LD_FLAG_STRING=		${STRIP} ${LD_FLAG_X_PREFIX}.version=${PORTVERSION}
-GO_BUILDFLAGS=	-v -ldflags "${LD_FLAG_STRING}"
 
 PLIST_FILES=	bin/${PORTNAME}
 
diff --git a/www/nginx-prometheus-exporter/distinfo b/www/nginx-prometheus-exporter/distinfo
index d7141592e4ff..c1f0a471b8e1 100644
--- a/www/nginx-prometheus-exporter/distinfo
+++ b/www/nginx-prometheus-exporter/distinfo
@@ -1,25 +1,5 @@
-TIMESTAMP = 1679408359
-SHA256 (nginxinc-nginx-prometheus-exporter-v0.10.0_GH0.tar.gz) = f62ce8087616db1ace2b563bf61b71ef94c683a68161a45e77a9e3537553cfe6
-SIZE (nginxinc-nginx-prometheus-exporter-v0.10.0_GH0.tar.gz) = 770608
-SHA256 (beorn7-perks-v1.0.1_GH0.tar.gz) = 98db84bb0224a26094e6adba91b7ee7a1a7ace28cb648d818f8e779e6a19f825
-SIZE (beorn7-perks-v1.0.1_GH0.tar.gz) = 10867
-SHA256 (cespare-xxhash-v2.1.1_GH0.tar.gz) = 0ee31178d2c5a1249be4e26294a2f428008dc4e1ecbbfbe47f74e41026df1148
-SIZE (cespare-xxhash-v2.1.1_GH0.tar.gz) = 9292
-SHA256 (golang-protobuf-v1.4.3_GH0.tar.gz) = 5736f943f8647362f5559689df6154f3c85d261fb088867c8a68494e2a767610
-SIZE (golang-protobuf-v1.4.3_GH0.tar.gz) = 171969
-SHA256 (golang-sys-v0.6.0_GH0.tar.gz) = b4f6d17c7a128f76169964b437cb66b3f2dbf9a33361928ec19dfecf7b03fc54
-SIZE (golang-sys-v0.6.0_GH0.tar.gz) = 1434234
-SHA256 (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 2def0ee6f6b12b1efc0e3007d89f598608a072610e805c3655ea9d13c3ead49b
-SIZE (matttproud-golang_protobuf_extensions-v1.0.1_GH0.tar.gz) = 37184
-SHA256 (nginxinc-nginx-plus-go-client-v0.9.0_GH0.tar.gz) = 9e6f4744658ad3e7fbd633bf6dc3a7a96312dcf9b42edabc2ef400686c3088d5
-SIZE (nginxinc-nginx-plus-go-client-v0.9.0_GH0.tar.gz) = 29019
-SHA256 (prometheus-client_golang-v1.11.0_GH0.tar.gz) = a3bc3312bde4182e507042ca0e7ca88aac6656bbf8d516d732e34c3f14bb612a
-SIZE (prometheus-client_golang-v1.11.0_GH0.tar.gz) = 168706
-SHA256 (prometheus-client_model-v0.2.0_GH0.tar.gz) = 4ab1be9cdfa702d7f49beeb09a256bcc6a2aad55e8a0a37e7732a46934264e12
-SIZE (prometheus-client_model-v0.2.0_GH0.tar.gz) = 10986
-SHA256 (prometheus-common-v0.32.1_GH0.tar.gz) = de06f354e24dec3bfeba9a3bd43bd3170b4231dfff3cd338b688a6e8c8050af6
-SIZE (prometheus-common-v0.32.1_GH0.tar.gz) = 146585
-SHA256 (prometheus-procfs-v0.6.0_GH0.tar.gz) = 6ad7a23cf4db9fa5dbf2c5d8fbd0fbf5ffe48e3ddb7bf15f9359813d764ce73c
-SIZE (prometheus-procfs-v0.6.0_GH0.tar.gz) = 169898
-SHA256 (protocolbuffers-protobuf-go-v1.26.0_GH0.tar.gz) = 26218474bcf776ecf32d7d194c6bfaca8e7b4f0c087e5b595fd50fbb31409676
-SIZE (protocolbuffers-protobuf-go-v1.26.0_GH0.tar.gz) = 1270215
+TIMESTAMP = 1690881147
+SHA256 (go/www_nginx-prometheus-exporter/nginx-prometheus-exporter-v0.11.0/v0.11.0.mod) = 1a96351c3bac86de99638b4a56a52f04553d99066b7855349d56062e0b695751
+SIZE (go/www_nginx-prometheus-exporter/nginx-prometheus-exporter-v0.11.0/v0.11.0.mod) = 647
+SHA256 (go/www_nginx-prometheus-exporter/nginx-prometheus-exporter-v0.11.0/v0.11.0.zip) = 1939985f4b17c40ff09a422eae460dc1538f4ba46a6222c2b1de588dc530f16f
+SIZE (go/www_nginx-prometheus-exporter/nginx-prometheus-exporter-v0.11.0/v0.11.0.zip) = 792588