git: ef4ccfa93a10 - main - sysutils/screen49: Update to unversioned 4.9.1 with CVE fixes

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Mon, 12 May 2025 21:38:32 UTC
The branch main has been updated by cy:

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

commit ef4ccfa93a10bc7ed0d4bf87f3968dd92ff63516
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2025-05-12 21:35:07 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2025-05-12 21:38:12 +0000

    sysutils/screen49: Update to unversioned 4.9.1 with CVE fixes
    
    As the tarball is not availalble from the normal download sites,
    rebase to the upstream git repo.
    
    This includes secuity fixes documented at
    https://security.opensuse.org/2025/05/12/screen-security-issues.html
    
    PR:             286743
    MFH:            2025Q2
---
 sysutils/screen49/Makefile | 31 ++++++++++++++++++++++---------
 sysutils/screen49/distinfo |  6 +++---
 2 files changed, 25 insertions(+), 12 deletions(-)

diff --git a/sysutils/screen49/Makefile b/sysutils/screen49/Makefile
index a7173267826b..e94e42d0cc7e 100644
--- a/sysutils/screen49/Makefile
+++ b/sysutils/screen49/Makefile
@@ -1,15 +1,15 @@
 PORTNAME=	screen
 PORTVERSION=	4.9.1
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	sysutils
-MASTER_SITES=	GNU \
-		ftp://ftp.gnu.org/gnu/screen/ \
-		ftp://gnu.mirror.iweb.com/screen/ \
-		http://gnu.mirror.iweb.com/screen/ \
-		http://mirror.sdunix.com/gnu/ \
-		ftp://mirrors.kernel.org/gnu/screen/ \
-		http://cschubert.com/distfiles/ \
-		LOCAL/cy
+# MASTER_SITES=	GNU \
+# 		ftp://ftp.gnu.org/gnu/screen/ \
+# 		ftp://gnu.mirror.iweb.com/screen/ \
+# 		http://gnu.mirror.iweb.com/screen/ \
+# 		http://mirror.sdunix.com/gnu/ \
+# 		ftp://mirrors.kernel.org/gnu/screen/ \
+# 		http://cschubert.com/distfiles/ \
+# 		LOCAL/cy
 .if !defined(MASTERDIR)
 PKGNAMESUFFIX=	49
 CONFLICTS=	screen-*
@@ -21,6 +21,12 @@ WWW=		https://www.gnu.org/software/screen/
 
 CONFLICTS+=	screen-devel*
 
+GIT_TAGNAME=	161f85b
+
+DISTFILES=	${DISTNAME}-${GIT_TAGNAME}${EXTRACT_SUFX}
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${GIT_TAGNAME}/src
+
 LICENSE=	GPLv3
 
 OPTIONS_DEFINE=		INFO NETHACK XTERM_256 SYSTEM_SCREENRC MULTIUSER \
@@ -87,6 +93,13 @@ CONFIGURE_ARGS+=	--disable-socket-dir
 CONFIGURE_ARGS+=	--with-socket-dir=${SCREEN_SOCKET_DIR}
 .endif
 
+do-fetch:
+	@cd ${DISTDIR} && \
+	if [ ! -f ${DISTNAME}${EXTRACT_SUFX} ]; then \
+		fetch -o ${DISTNAME}${EXTRACT_SUFX} \
+		    "https://git.savannah.gnu.org/gitweb/?p=screen.git;a=snapshot;h=${GIT_TAGNAME};sf=tgz"; \
+	fi    
+
 post-patch:
 	@${RM} ${WRKSRC}/doc/screen.info*
 
diff --git a/sysutils/screen49/distinfo b/sysutils/screen49/distinfo
index 21d74bb6e156..9266205b5cc5 100644
--- a/sysutils/screen49/distinfo
+++ b/sysutils/screen49/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1692454303
-SHA256 (screen-4.9.1.tar.gz) = 26cef3e3c42571c0d484ad6faf110c5c15091fbf872b06fa7aa4766c7405ac69
-SIZE (screen-4.9.1.tar.gz) = 1040785
+TIMESTAMP = 1747085619
+SHA256 (screen-4.9.1-161f85b.tar.gz) = 4d83d115bb0fa355e64eaacf4852682882b9bd1b952f837624d40df5e0403b5f
+SIZE (screen-4.9.1-161f85b.tar.gz) = 807656