git: 6b177df5fcb8 - main - www/mattermost-server: Update to 8.1.12

From: Bernhard Froehlich <decke_at_FreeBSD.org>
Date: Tue, 23 Apr 2024 18:27:57 UTC
The branch main has been updated by decke:

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

commit 6b177df5fcb8048b66d24a1cab847338e6aa34ac
Author:     Bernhard Froehlich <decke@FreeBSD.org>
AuthorDate: 2024-04-23 18:14:51 +0000
Commit:     Bernhard Froehlich <decke@FreeBSD.org>
CommitDate: 2024-04-23 18:27:49 +0000

    www/mattermost-server: Update to 8.1.12
    
    The old hack to overwrite go.mod and replace some unsupported keywords
    did not work anymore so we roll our own distfile now including
    vendorized dependencies.
    
    PR:             278462
    Approved by:    maintainer (implicit)
---
 www/mattermost-server/Makefile | 15 +++------------
 www/mattermost-server/distinfo |  8 +++-----
 2 files changed, 6 insertions(+), 17 deletions(-)

diff --git a/www/mattermost-server/Makefile b/www/mattermost-server/Makefile
index 2a503aa1f23d..27cbc5203ed2 100644
--- a/www/mattermost-server/Makefile
+++ b/www/mattermost-server/Makefile
@@ -1,11 +1,8 @@
 PORTNAME=	mattermost
-DISTVERSION=	8.1.11
-DISTVERSIONPREFIX=	v
-PORTREVISION=	3
+PORTVERSION=	8.1.12
 CATEGORIES=	www
-MASTER_SITES=	LOCAL/decke/${PORTNAME}-${DISTVERSIONFULL}/:gomod
+MASTER_SITES=	LOCAL/decke
 PKGNAMESUFFIX=	-server
-DISTFILES=	go.mod:gomod
 
 # implicit-approval+ for decke
 MAINTAINER=	bofh@FreeBSD.org
@@ -20,12 +17,9 @@ ONLY_FOR_ARCHS=	aarch64 amd64 armv6 armv7 i386
 RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss \
 		mattermost-webapp>=${PORTVERSION}:www/mattermost-webapp
 
-USES=		go:modules
-USE_GITHUB=	yes
-GH_ACCOUNT=	mattermost
+USES=		go:modules tar:xz
 USE_RC_SUBR=	mattermostd
 
-GO_MODULE=	github.com/mattermost/mattermost/server/v8
 GO_TARGET=	./cmd/mattermost ./scripts/config_generator
 GO_BUILDFLAGS=	-ldflags="-X github.com/mattermost/mattermost/server/public/model.BuildNumber=${PORTVERSION}"
 
@@ -38,9 +32,6 @@ MATTERMOSTD_GROUP=	mattermost
 USERS=		${MATTERMOSTD_USER}
 GROUPS=		${MATTERMOSTD_GROUP}
 
-post-extract:
-	@${RM} ${WRKSRC}/vendor/modules.txt
-
 post-install:
 	${MV} ${STAGEDIR}${PREFIX}/bin/mattermost ${STAGEDIR}${PREFIX}/bin/mattermostd
 	${MKDIR} ${STAGEDIR}${PREFIX}/etc/mattermost
diff --git a/www/mattermost-server/distinfo b/www/mattermost-server/distinfo
index 904a531af8c8..4a4c7068ec05 100644
--- a/www/mattermost-server/distinfo
+++ b/www/mattermost-server/distinfo
@@ -1,5 +1,3 @@
-TIMESTAMP = 1711285484
-SHA256 (go/www_mattermost-server/mattermost-mattermost-v8.1.11_GH0/go.mod) = f374df2f7ee6321214990b4de5d14fbd93c02a52e951de7fac0c2eb0b18fb247
-SIZE (go/www_mattermost-server/mattermost-mattermost-v8.1.11_GH0/go.mod) = 12109
-SHA256 (go/www_mattermost-server/mattermost-mattermost-v8.1.11_GH0/mattermost-mattermost-v8.1.11_GH0.tar.gz) = 17f329839085c11afd857bac763dc006523791f19753b1bd4db829dd7b36e56d
-SIZE (go/www_mattermost-server/mattermost-mattermost-v8.1.11_GH0/mattermost-mattermost-v8.1.11_GH0.tar.gz) = 148727055
+TIMESTAMP = 1713884988
+SHA256 (mattermost-8.1.12.tar.xz) = f4f89d118657a2fd3b3b6c389f9806f69934a6c42b3fafd55f454d42e93dea7b
+SIZE (mattermost-8.1.12.tar.xz) = 137143560