git: 0a59f5b2d8e7 - main - sysutils/stressdisk: Switch to GO_MODULE

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Tue, 28 Jun 2022 08:53:35 UTC
The branch main has been updated by eduardo:

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

commit 0a59f5b2d8e70fd7b7bdfaf5b76baf1819cc7690
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-06-28 08:51:14 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-06-28 08:53:25 +0000

    sysutils/stressdisk: Switch to GO_MODULE
    
     - pet portclippy
---
 sysutils/stressdisk/Makefile | 11 +++++------
 sysutils/stressdisk/distinfo | 10 +++++-----
 2 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/sysutils/stressdisk/Makefile b/sysutils/stressdisk/Makefile
index b84fb843ce11..7672067c62ba 100644
--- a/sysutils/stressdisk/Makefile
+++ b/sysutils/stressdisk/Makefile
@@ -11,9 +11,8 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		go:modules
-USE_GITHUB=	yes
-GH_ACCOUNT=	ncw
-GH_TUPLE=	ncw:directio:v1.0.4:ncw_directio/vendor/github.com/ncw/directio
+
+GO_MODULE=	github.com/ncw/stressdisk
 
 PLIST_FILES=	bin/stressdisk
 
@@ -21,11 +20,11 @@ PORTDOCS=	README.md
 
 OPTIONS_DEFINE=	DOCS
 
-post-install:
-	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
-
 do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_MAN} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
 .include <bsd.port.mk>
diff --git a/sysutils/stressdisk/distinfo b/sysutils/stressdisk/distinfo
index 0d98e06aa48d..7b2f0a74da07 100644
--- a/sysutils/stressdisk/distinfo
+++ b/sysutils/stressdisk/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1606042976
-SHA256 (ncw-stressdisk-v1.0.12_GH0.tar.gz) = 2ddb89810f88c27edbcbd31eb3ec28d8393570f88421c6cdd95728986e820142
-SIZE (ncw-stressdisk-v1.0.12_GH0.tar.gz) = 11408
-SHA256 (ncw-directio-v1.0.4_GH0.tar.gz) = 65ae83dfce6da3673440b21bdac9951957283917aef4a63a9c234cbc2e8efb8a
-SIZE (ncw-directio-v1.0.4_GH0.tar.gz) = 3873
+TIMESTAMP = 1656349446
+SHA256 (go/sysutils_stressdisk/stressdisk-v1.0.12/v1.0.12.mod) = 045266fd0fd2d5ea2721acbb8157aac6f59fb08a82beec96eac5d6bc254f2b30
+SIZE (go/sysutils_stressdisk/stressdisk-v1.0.12/v1.0.12.mod) = 82
+SHA256 (go/sysutils_stressdisk/stressdisk-v1.0.12/v1.0.12.zip) = 8642a39d1f9d1f213ac638edd7c13a1549c8e46c030610ce407510861d4d103a
+SIZE (go/sysutils_stressdisk/stressdisk-v1.0.12/v1.0.12.zip) = 13495