git: 10bb475f0a73 - main - net-mgmt/prometheus-collectd-exporter: fix build on riscv64

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Tue, 21 Mar 2023 12:55:05 UTC
The branch main has been updated by fuz:

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

commit 10bb475f0a735f1747fae77236ad1843cd9e20e5
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-03-18 10:00:06 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-03-21 12:53:50 +0000

    net-mgmt/prometheus-collectd-exporter: fix build on riscv64
    
    Bump golang.org/x/sys dependency to a version new enough
    to support riscv64-freebsd.
    
    Sponsored by:   Berliner Linux User Group e.V.
    Approved by:    portmgr (build fix blanket)
---
 net-mgmt/prometheus-collectd-exporter/Makefile | 7 ++++++-
 net-mgmt/prometheus-collectd-exporter/distinfo | 4 +++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/net-mgmt/prometheus-collectd-exporter/Makefile b/net-mgmt/prometheus-collectd-exporter/Makefile
index 5f22b08a3045..9236d7741518 100644
--- a/net-mgmt/prometheus-collectd-exporter/Makefile
+++ b/net-mgmt/prometheus-collectd-exporter/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	prometheus-collectd-exporter
 PORTVERSION=	0.5.0
 DISTVERSIONPREFIX=	v
-PORTREVISION=	11
+PORTREVISION=	12
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	dsp@php.net
@@ -15,6 +15,11 @@ USES=		go gmake
 USE_GITHUB=	yes
 GH_ACCOUNT=	prometheus
 GH_PROJECT=	collectd_exporter
+GH_TUPLE=	golang:sys:v0.6.0:sys
+
+pre-patch:
+	${RM} -r ${WRKSRC}/vendor/golang.org/x/sys
+	${LN} -s ${WRKDIR}/sys-* ${WRKSRC}/vendor/golang.org/x/sys
 
 PLIST_FILES=	bin/prometheus-collectd-exporter
 
diff --git a/net-mgmt/prometheus-collectd-exporter/distinfo b/net-mgmt/prometheus-collectd-exporter/distinfo
index 2b23d68019e0..998e0b23e28a 100644
--- a/net-mgmt/prometheus-collectd-exporter/distinfo
+++ b/net-mgmt/prometheus-collectd-exporter/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1591708687
+TIMESTAMP = 1679133361
 SHA256 (prometheus-collectd_exporter-v0.5.0_GH0.tar.gz) = 8870e34a11aa73950e43c868d30c6e669c8b5e50e657567eda81c6e2f6e3850f
 SIZE (prometheus-collectd_exporter-v0.5.0_GH0.tar.gz) = 1445326
+SHA256 (golang-sys-v0.6.0_GH0.tar.gz) = b4f6d17c7a128f76169964b437cb66b3f2dbf9a33361928ec19dfecf7b03fc54
+SIZE (golang-sys-v0.6.0_GH0.tar.gz) = 1434234