git: 43b8b3ff3b2a - main - net-mgmt/phpfpm_exporter: Update to 0.6.1

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Fri, 17 Feb 2023 22:36:53 UTC
The branch main has been updated by diizzy:

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

commit 43b8b3ff3b2a7c2fe9e16dc29fd806f10fff30da
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-02-17 22:30:52 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-02-17 22:36:49 +0000

    net-mgmt/phpfpm_exporter: Update to 0.6.1
    
    Adapt submitted version (approved by maintainer) to follow Porters
    Handbook more closely and switch to go:modules while at it.
    
    Changelog:
    https://github.com/bakins/php-fpm-exporter/compare/v0.4.1...v0.6.1
    
    PR:             250787
    Reported by:    Kamigishi Rei <spambox@haruhiism.net>
    Reviewed by:    Gasol Wu <gasol.wu@gmail.com> (maintainer)
---
 net-mgmt/phpfpm_exporter/Makefile | 18 +++++++-----------
 net-mgmt/phpfpm_exporter/distinfo |  8 +++++---
 2 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/net-mgmt/phpfpm_exporter/Makefile b/net-mgmt/phpfpm_exporter/Makefile
index f6fd2583a8a7..4f746dd45914 100644
--- a/net-mgmt/phpfpm_exporter/Makefile
+++ b/net-mgmt/phpfpm_exporter/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	phpfpm_exporter
-PORTVERSION=	0.4.1
-DISTVERSIONPREFIX=v
-PORTREVISION=	10
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.6.1
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	gasol.wu@gmail.com
@@ -11,17 +10,14 @@ WWW=		https://github.com/bakins/php-fpm-exporter
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		go
-USE_GITHUB=	yes
-GH_ACCOUNT=	bakins
-GH_PROJECT=	php-fpm-exporter
+USES=		go:modules
+GO_MODULE=	github.com/bakins/php-fpm-exporter
+GO_TARGET=	cmd/php-fpm-exporter/main.go:${PREFIX}/bin/${PORTNAME}
 
-GO_PKGNAME=	github.com/${GH_ACCOUNT}/${GH_PROJECT}
-GO_TARGET=	./cmd/${GH_PROJECT}:${PORTNAME}
-
-PLIST_FILES=	bin/${PORTNAME}
 USE_RC_SUBR=	phpfpm_exporter
 USERS=		prometheus
 GROUPS=		prometheus
 
+PLIST_FILES=	bin/${PORTNAME}
+
 .include <bsd.port.mk>
diff --git a/net-mgmt/phpfpm_exporter/distinfo b/net-mgmt/phpfpm_exporter/distinfo
index 0709ae3cf0c5..00e098d1d970 100644
--- a/net-mgmt/phpfpm_exporter/distinfo
+++ b/net-mgmt/phpfpm_exporter/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1523129478
-SHA256 (bakins-php-fpm-exporter-v0.4.1_GH0.tar.gz) = 1e35ac0254fd897d17d03063604b742405b655f090b79b32b821fe238ff97f4d
-SIZE (bakins-php-fpm-exporter-v0.4.1_GH0.tar.gz) = 300772
+TIMESTAMP = 1676666421
+SHA256 (go/net-mgmt_phpfpm_exporter/phpfpm_exporter-v0.6.1/v0.6.1.mod) = 14224876727118a43d6674cbbd137e10e04d8ce34afab7853bffc7e6626e1312
+SIZE (go/net-mgmt_phpfpm_exporter/phpfpm_exporter-v0.6.1/v0.6.1.mod) = 1082
+SHA256 (go/net-mgmt_phpfpm_exporter/phpfpm_exporter-v0.6.1/v0.6.1.zip) = fbaa3f530f037abb9432bd66c127873243bd093c6d873ccd8276c2189f08e2b3
+SIZE (go/net-mgmt_phpfpm_exporter/phpfpm_exporter-v0.6.1/v0.6.1.zip) = 18207