git: fd2027b3b7fd - 2024Q1 - devel/rubygem-gitlab-sdk: fix security issue (world writeable files)

From: Matthias Fechner <mfechner_at_FreeBSD.org>
Date: Mon, 15 Jan 2024 12:09:27 UTC
The branch 2024Q1 has been updated by mfechner:

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

commit fd2027b3b7fd9c07d201ddc5f43a74d19da9083d
Author:     Matthias Fechner <mfechner@FreeBSD.org>
AuthorDate: 2024-01-05 06:55:01 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2024-01-15 12:07:02 +0000

    devel/rubygem-gitlab-sdk: fix security issue (world writeable files)
    
    Problem is also reported upstream:
    https://gitlab.com/gitlab-org/analytics-section/product-analytics/gl-application-sdk-rb/-/issues/5
    
    (cherry picked from commit 5af7177f615f135afe198ed7a438900b923e88f7)
---
 devel/rubygem-gitlab-sdk/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/devel/rubygem-gitlab-sdk/Makefile b/devel/rubygem-gitlab-sdk/Makefile
index 429a05dcde62..b9d0a635ba1b 100644
--- a/devel/rubygem-gitlab-sdk/Makefile
+++ b/devel/rubygem-gitlab-sdk/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	gitlab-sdk
 PORTVERSION=	0.2.5
+PORTREVISION=	1
 CATEGORIES=	devel rubygems
 MASTER_SITES=	RG
 
@@ -17,4 +18,9 @@ USES=		gem
 
 NO_ARCH=	yes
 
+# problem is reported upstream:
+# https://gitlab.com/gitlab-org/analytics-section/product-analytics/gl-application-sdk-rb/-/issues/5
+post-extract:
+	${CHMOD} -R o-w ${WRKSRC}
+
 .include <bsd.port.mk>