head	1.5;
access;
symbols
	pkgsrc-2026Q2:1.4.0.10
	pkgsrc-2026Q2-base:1.4
	pkgsrc-2026Q1:1.4.0.8
	pkgsrc-2026Q1-base:1.4
	pkgsrc-2025Q4:1.4.0.6
	pkgsrc-2025Q4-base:1.4
	pkgsrc-2025Q3:1.4.0.4
	pkgsrc-2025Q3-base:1.4
	pkgsrc-2025Q2:1.4.0.2
	pkgsrc-2025Q2-base:1.4
	pkgsrc-2025Q1:1.1.0.2
	pkgsrc-2025Q1-base:1.1;
locks; strict;
comment	@# @;


1.5
date	2026.06.26.16.55.06;	author ryoon;	state Exp;
branches;
next	1.4;
commitid	LVgn0NeEFeXDukLG;

1.4
date	2025.05.12.15.58.00;	author wiz;	state Exp;
branches;
next	1.3;
commitid	W6Vk3Zslwwf7mDUF;

1.3
date	2025.05.12.15.47.35;	author wiz;	state Exp;
branches;
next	1.2;
commitid	e3TLRAQjnTrziDUF;

1.2
date	2025.04.21.20.57.58;	author wiz;	state Exp;
branches;
next	1.1;
commitid	AOQ9IiLmNE2XGXRF;

1.1
date	2025.02.07.03.15.05;	author ryoon;	state Exp;
branches
	1.1.2.1;
next	;
commitid	AmF1up5wywoP9uIF;

1.1.2.1
date	2025.05.16.14.17.47;	author maya;	state Exp;
branches;
next	;
commitid	5mbL4MpqUO1SF8VF;


desc
@@


1.5
log
@misc/screen4: Use autoconf 2.69 to fix build

* Newer autoconf 2.73 cannot regenerate a correct configure script
  and the build fails.
@
text
@# $NetBSD: Makefile,v 1.4 2025/05/12 15:58:00 wiz Exp $

DISTNAME=	screen-4.9.1
PKGREVISION=	2
CATEGORIES=	misc shells
MASTER_SITES=	${MASTER_SITE_GNU:=screen/}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://www.gnu.org/software/screen/screen.html
COMMENT=	Multi-screen window manager
LICENSE=	gnu-gpl-v3

EXTRACT_USING=	bsdtar

# In file included from list_display.c:36:
# In file included from ./screen.h:150:
# ./display.h:154:19: error: use of undeclared identifier 'T_N'
#MAKE_JOBS_SAFE=	no

.include "options.mk"

PLIST_SUBST+=		DISTNAME=${DISTNAME:Q}

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-sys-screenrc=${PKG_SYSCONFDIR}/screenrc
CONFIGURE_ARGS+=	--enable-telnet
CONFIGURE_ARGS+=	--enable-colors256

PKG_SHELL=		bin/screen

USE_TOOLS+=		automake autoconf269 autoreconf makeinfo
INFO_FILES=		YES

.include "../../mk/bsd.prefs.mk"

SUBST_CLASSES+=		paths
SUBST_FILES.paths=	etc/etcscreenrc doc/screen.1
SUBST_VARS.paths=	PKG_SYSCONFDIR
SUBST_SED.paths+=	-e 's,@@EXAMPLES@@,${PREFIX}/share/examples/screen,g'
SUBST_STAGE.paths=	pre-configure

PLIST_VARS+=		terminfo

.include "../../mk/compiler.mk"

.if ${OPSYS} == "SunOS"
.  if !empty(PKGSRC_COMPILER:Mclang) || ${CC_VERSION:Mgcc-[6-9]*} || ${CC_VERSION:Mgcc-1[0-9].*}
CPPFLAGS+=	-D_XOPEN_SOURCE=600 -D__EXTENSIONS__
.  else
CPPFLAGS+=	-D_XOPEN_SOURCE=500 -D__EXTENSIONS__
.  endif
.  if ${CURSES_DEFAULT} == "curses"
INSTALLATION_DIRS+=	share/lib/terminfo
PLIST.terminfo=		yes
post-install: screen-terminfo
.  endif
.endif

INSTALLATION_DIRS+=	share/examples/screen

# possible security problems
# https://security.opensuse.org/2025/05/12/screen-security-issues.html
#.if ${UNPRIVILEGED:U:tl} != yes
#SPECIAL_PERMS+=		bin/${DISTNAME} ${SETUID_ROOT_PERMS}
#.endif

pre-configure:
	cd ${WRKSRC} && autoreconf -i

post-install:
	${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc			\
		${DESTDIR}${PREFIX}/share/examples/screen/etcscreenrc
	${INSTALL_DATA} ${WRKSRC}/etc/screenrc				\
		${DESTDIR}${PREFIX}/share/examples/screen/screenrc
.if ${UNPRIVILEGED:U:tl} == yes
	chmod -s ${DESTDIR}${PREFIX}/bin/${DISTNAME}
.endif

.PHONY: screen-terminfo
screen-terminfo:
	cd ${WRKSRC}/terminfo &&					\
	${SETENV} TERMINFO=${DESTDIR}${PREFIX}/share/lib/terminfo	\
		/usr/bin/tic screeninfo.src

.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.4
log
@screen4: apply opensuse patches for
https://security.opensuse.org/2025/05/12/screen-security-issues.html

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2025/05/12 15:47:35 wiz Exp $
d31 1
a31 1
USE_TOOLS+=		automake autoconf autoreconf makeinfo
@


1.3
log
@screen4: remove setuid bit because of security problems.

Remove MESSAGE while here.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2025/04/21 20:57:58 wiz Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.2
log
@*: remove Interix support
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2025/02/07 03:15:05 ryoon Exp $
d4 1
d61 5
a65 3
.if ${UNPRIVILEGED:U:tl} != yes
SPECIAL_PERMS+=		bin/${DISTNAME} ${SETUID_ROOT_PERMS}
.endif
@


1.1
log
@misc/screen4: import screen-4.9.1

Screen is a full-screen window manager that multiplexes a physical terminal
between several processes (typically interactive shells).
Each virtual terminal provides the functions of a DEC VT100 terminal and, in
addition, several control functions from the ANSI X3.64 (ISO 6429) and ISO
2022 standards (e.g. insert/delete line and support for multiple character
sets). There is a scrollback history buffer for each virtual terminal and a
copy-and-paste mechanism that allows moving text regions between windows.

misc/screen-5.0.0 does not work under xterm. Reversed strings are
not displayed properly at least. Import working GNU screen 4 as
misc/screen4. And screen-5.0.0 does not have codes for older platforms.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.123 2023/09/06 16:00:15 vins Exp $
a20 2
NOT_FOR_PLATFORM=	Interix-*-* # user auth and username size fixes needed

@


1.1.2.1
log
@Pullup ticket #6965 - requested by bsiegert
misc/screen4: Security fix (PR pkg/59417)

Revisions pulled up:
- misc/screen4/MESSAGE                                          deleted
- misc/screen4/Makefile                                         1.3-1.4
- misc/screen4/distinfo                                         1.2
- misc/screen4/patches/patch-attacher.c                         1.1
- misc/screen4/patches/patch-screen.c                           1.2
- misc/screen4/patches/patch-socket.c                           1.2

---
   Module Name:    pkgsrc
   Committed By:   wiz
   Date:           Mon May 12 15:47:35 UTC 2025

   Modified Files:
            pkgsrc/misc/screen4: Makefile
   Removed Files:
            pkgsrc/misc/screen4: MESSAGE

   Log Message:
   screen4: remove setuid bit because of security problems.

   Remove MESSAGE while here.

   Bump PKGREVISION.

---
   Module Name:    pkgsrc
   Committed By:   wiz
   Date:           Mon May 12 15:58:01 UTC 2025

   Modified Files:
            pkgsrc/misc/screen4: Makefile distinfo
            pkgsrc/misc/screen4/patches: patch-screen.c patch-socket.c
   Added Files:
            pkgsrc/misc/screen4/patches: patch-attacher.c

   Log Message:
   screen4: apply opensuse patches for
   https://security.opensuse.org/2025/05/12/screen-security-issues.html

   Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD$
a3 1
PKGREVISION=	2
d62 3
a64 5
# possible security problems
# https://security.opensuse.org/2025/05/12/screen-security-issues.html
#.if ${UNPRIVILEGED:U:tl} != yes
#SPECIAL_PERMS+=		bin/${DISTNAME} ${SETUID_ROOT_PERMS}
#.endif
@


