From nobody Wed Apr 03 18:43:00 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V8tsw3jmMz5Fbjf; Wed, 3 Apr 2024 18:43:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V8tsw31Qjz4F12; Wed, 3 Apr 2024 18:43:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712169780; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9FxpbUhrr3Ksr7FJfma+J448khJ5x1jvS74QpaS5dr0=; b=wQ+MGdFX1tBlkYIgs6ZNnMk7hYOIW40zUaKVXj2JTSbgKZUhlY3S4U8xE+0y2QuJ475WOv SjTslhEIAwvbUnsptdqgwS2VIjfnIu5QWZvC7EcQOrAp8ZaoyGje5zAjuWJCY4YeZQY8Ff m43F8crLhsDLdis8cCH2GxYcDQOFmU6g1SBqJveC53o3Uu8vWfmQoWlE7gsDkXvdrSShbv 9worGBZESF1eVqcESk4CkAiZTpFI04UGQWQ6gffig3U4EUwVdIT1wLglfJkyXDLigOchvb p+44VftT4lG7QVNePb70xpHtOFlh0zDB18Voj4RSp2007xnXMIppwD9ciMIZ0g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712169780; a=rsa-sha256; cv=none; b=qlJcEOvMM+10vEQcy7N1BQKMVtbNKe2bD9cxobPc5LI5s5dIV9NOOrowMNLM+B0lqFFmNM srW4tZPeAqJVJLz78TCdStiDSdoh/X3IsdHNlZt4t+50BjF6yXgSBKZOkT4Xe2fI5nvHM1 sxeKipcjrj0lDoMEse8rb2BKapDvEPkb+EVT/QoMKtZQw6fVwwig/UyB4uOfi50H9Y0GfV EGXLTy8gJL3gfUadTq26jA7FSPmg3+8mBuKDe+ADzfcRxbuN3Qn/6fASWB/tZ9umRptXmm 6E2Z3VEEiPZyiVy4sbQ99Gffz4jnRxIjUuBo2yR2X913qpvArP5rjVlb8m5lBg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712169780; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9FxpbUhrr3Ksr7FJfma+J448khJ5x1jvS74QpaS5dr0=; b=ayJSnVTa/lus1lsf8b2kARUabTeMXv5B2Druy7sH3jGiNFboq+Q3xONoiW0kLrbm/Q0BvG ICS93cdO4Eg0bMltH5Hebye2S0C6HPv3iYE6sB80VTlxjXkbuBmismQsZbDka/MwM7VEUw A1ZHLh5X5tbvOH+Z49rLzgOy8mC3VA9xTKrw9MlDxAZ66BTOjP4HEPriB27L5B9agfqjq0 eaSTLlGFeZZ8bv+h052fHEtlJhn3D+c15qjST1TvBbQrOKL2i58ZP8eQ8Zr57uCbOEly+d vCbTN6OvVFayYYeQYSjvHgXK/6rj2+RVb754Pj4RuHTWvunTXOg73krVJS1uow== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V8tsw2cjjzk45; Wed, 3 Apr 2024 18:43:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 433Ih0xO050274; Wed, 3 Apr 2024 18:43:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 433Ih0pE050271; Wed, 3 Apr 2024 18:43:00 GMT (envelope-from git) Date: Wed, 3 Apr 2024 18:43:00 GMT Message-Id: <202404031843.433Ih0pE050271@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Cy Schubert Subject: git: dd8b166835f3 - main - sysutils/screen-devel: New port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dd8b166835f3f603e27ac0d1629e9b593c82bd78 Auto-Submitted: auto-generated The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/ports/commit/?id=dd8b166835f3f603e27ac0d1629e9b593c82bd78 commit dd8b166835f3f603e27ac0d1629e9b593c82bd78 Author: Cy Schubert AuthorDate: 2024-04-03 18:40:59 +0000 Commit: Cy Schubert CommitDate: 2024-04-03 18:42:51 +0000 sysutils/screen-devel: New port Track development branch of screen on savannah.gnu.org. --- sysutils/Makefile | 1 + sysutils/screen-devel/Makefile | 129 +++++++++++++++++++++ sysutils/screen-devel/distinfo | 3 + sysutils/screen-devel/files/patch-doc__Makefile.in | 34 ++++++ sysutils/screen-devel/files/patch-doc_screen.1 | 11 ++ sysutils/screen-devel/files/patch-misc.c | 39 +++++++ sysutils/screen-devel/files/patch-misc.h | 12 ++ sysutils/screen-devel/files/patch-os.h | 10 ++ sysutils/screen-devel/files/patch-socket.c | 76 ++++++++++++ .../screen-devel/files/patch-terminfo__checktc.c | 18 +++ sysutils/screen-devel/files/patch-utmp.c | 20 ++++ sysutils/screen-devel/files/screenrc.sample | 10 ++ sysutils/screen-devel/pkg-descr | 7 ++ sysutils/screen-devel/pkg-message | 11 ++ sysutils/screen-devel/pkg-plist | 27 +++++ 15 files changed, 408 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index e78e4163f788..f915d9fa4b46 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1347,6 +1347,7 @@ SUBDIR += schedutils SUBDIR += schilyutils SUBDIR += screen + SUBDIR += screen-devel SUBDIR += screenfetch SUBDIR += screenie SUBDIR += scterc diff --git a/sysutils/screen-devel/Makefile b/sysutils/screen-devel/Makefile new file mode 100644 index 000000000000..5dfe1cfcd365 --- /dev/null +++ b/sysutils/screen-devel/Makefile @@ -0,0 +1,129 @@ +PORTNAME= screen +DISTVERSION= 4.99.0.${SCREEN_COMMIT_DATE} +CATEGORIES= sysutils +PKGNAMESUFFIX= -devel +MASTER_SITES= # + +MAINTAINER= cy@FreeBSD.org +COMMENT= Multi-screen window manager +WWW= https://www.gnu.org/software/screen/ + +CONFLICTS= screen-[0-9]* + +GIT_TAGNAME= c184c6e +SCREEN_COMMIT_DATE= 20240327 + +WRKSRC= ${WRKDIR}/${PORTNAME}-${GIT_TAGNAME}/src + +LICENSE= GPLv3 + +OPTIONS_DEFINE= INFO NETHACK XTERM_256 SYSTEM_SCREENRC MULTIUSER \ + NOSOCKETDIR +OPTIONS_DEFAULT= INFO NETHACK XTERM_256 SOCKETS SYSTEM_SCREENRC \ + NCURSES_DEFAULT MULTIUSER +OPTIONS_SINGLE= IPC NCURSES +OPTIONS_SINGLE_IPC= SOCKETS NAMED_PIPES +OPTIONS_SINGLE_NCURSES= NCURSES_DEFAULT NCURSES_BASE NCURSES_PORT +NETHACK_DESC= Enable nethack-style messages +XTERM_256_DESC= Enable support for 256 colour xterm +SOCKETS_DESC= Use new (4.2.1+) sockets for IPC (default) +NAMED_PIPES_DESC= Use legacy (4.0.3) named pipes for IPC (override) +SYSTEM_SCREENRC_DESC= Install system screenrc with helpful status line +MULTIUSER_DESC= Install setuid-root screen to support multiuser +MULTIUSER_PLIST_SUB= MULTISUID="@(,,4555) " +MULTIUSER_PLIST_SUB_OFF=MULTISUID="@(,,0555) " +NCURSES_DEFAULT_DESC= Depend on ncurses (ports if installed, otherwise base) +NCURSES_BASE_DESC= Depend on ncurses in base +NCURSES_PORT_DESC= Depend on devel/ncurses in ports +NOSOCKETDIR_DESC= Use ~/.screen instead of socketdir + +NCURSES_DEFAULT_USES= ncurses +NCURSES_BASE_USES= ncurses:base +NCURSES_PORT_USES= ncurses:port + +OPTIONS_SUB= + +USES= autoreconf:build gmake cpe +MAKE_ARGS+= WITH_MAN=1 + +CPE_VENDOR= gnu + +.include + +.if ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == i386 || \ + ${ARCH:Mpowerpc*} +SSP_CFLAGS?= -fno-stack-protector +.endif + +GNU_CONFIGURE= yes +GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share +CFLAGS+= -I${NCURSESINC} +LDFLAGS+= -L${NCURSESLIB} + +.if ${PORT_OPTIONS:MINFO} +INFO= screen +MAKE_ARGS+= WITH_INFO=1 +USES+= makeinfo +.endif + +# Enables support for 256 colour xterm. Note that you may need to +# set up a custom termcap entry or .screenrc which modifies termcap +# to contain the following: Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm +# +.if ${PORT_OPTIONS:MXTERM_256} +CFLAGS+= -DCOLORS256 +.endif + +.if ! ${PORT_OPTIONS:MNETHACK} +CFLAGS+= -DNONETHACK +.endif + +.if ${PORT_OPTIONS:MNOSOCKETDIR} +CONFIGURE_ARGS+= --disable-socket-dir +.endif + +.if defined(SCREEN_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* + +# Bug 191029: Users can choose whether to use sockets or named pipes. +# Choose sockets if you don't know what the difference is. +# Choose named pipes if your environment is heterogeneous, +# using both screen 4.0.3 and 4.2.1. +# Bug 191017 + +pre-configure: + cd ${WRKSRC} && ./autogen.sh + +post-configure-NAMED_PIPES-on: + @${ECHO_CMD} '#define NAMEDPIPE 1' >> ${WRKSRC}/config.h + @${ECHO_CMD} User selected named pipes override set. + +ETCDIR?= ${PREFIX}/etc + +post-install: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc \ + ${STAGEDIR}${EXAMPLESDIR}/screenrc.sample-1 + ${INSTALL_DATA} ${FILESDIR}/screenrc.sample \ + ${STAGEDIR}${EXAMPLESDIR}/screenrc.sample-2 + @${MKDIR} ${STAGEDIR}${ETCDIR} +.if ${PORT_OPTIONS:MSYSTEM_SCREENRC} + ${INSTALL_DATA} ${FILESDIR}/screenrc.sample \ + ${STAGEDIR}${ETCDIR}/screenrc.sample +.else + ${INSTALL_DATA} ${WRKSRC}/etc/etcscreenrc \ + ${STAGEDIR}${ETCDIR}/screenrc.sample +.endif + +.include diff --git a/sysutils/screen-devel/distinfo b/sysutils/screen-devel/distinfo new file mode 100644 index 000000000000..bfba1f35e99e --- /dev/null +++ b/sysutils/screen-devel/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1712169262 +SHA256 (screen-4.99.0.20240327.tar.gz) = 5117a23db43ed5dfea81ac2847c3cedbe0433502bdc6e94f79fd75b1ec28791d +SIZE (screen-4.99.0.20240327.tar.gz) = 721414 diff --git a/sysutils/screen-devel/files/patch-doc__Makefile.in b/sysutils/screen-devel/files/patch-doc__Makefile.in new file mode 100644 index 000000000000..8666be063fe5 --- /dev/null +++ b/sysutils/screen-devel/files/patch-doc__Makefile.in @@ -0,0 +1,34 @@ +--- doc/Makefile.in.orig 2014-04-29 20:26:42.618832001 -0700 ++++ doc/Makefile.in 2014-04-29 20:29:26.379384101 -0700 +@@ -31,7 +31,10 @@ + $(MAKEINFO) --no-split $(srcdir)/screen.texinfo -o screen.info + + install: installdirs ++ifeq (${WITH_MAN},1) + $(INSTALL_DATA) $(srcdir)/screen.1 $(DESTDIR)$(mandir)/man1/screen.1 ++endif ++ifeq (${WITH_INFO},1) + -$(MAKE) screen.info + -if test -f screen.info; then d=.; else d=$(srcdir); fi; \ + if test -f $$d/screen.info; then \ +@@ -40,13 +43,19 @@ + install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/screen.info; \ + else true; fi; \ + fi ++endif + + uninstall: + rm -f $(DESTDIR)$(mandir)/man1/screen.1 + rm -f $(DESTDIR)$(infodir)/screen.info* + + installdirs: +- $(srcdir)/../etc/mkinstalldirs $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(infodir) ++ifeq (${WITH_MAN},1) ++ $(srcdir)/../etc/mkinstalldirs $(DESTDIR)$(mandir)/man1 ++endif ++ifeq (${WITH_INFO},1) ++ $(srcdir)/../etc/mkinstalldirs $(DESTDIR)$(infodir) ++endif + + mostlyclean: + -rm -f *.cp *.cps *.fn *.fns *.ky *.kys *.pg *.tp *.vr diff --git a/sysutils/screen-devel/files/patch-doc_screen.1 b/sysutils/screen-devel/files/patch-doc_screen.1 new file mode 100644 index 000000000000..59077d7be443 --- /dev/null +++ b/sysutils/screen-devel/files/patch-doc_screen.1 @@ -0,0 +1,11 @@ +--- doc/screen.1.orig 2023-08-15 11:01:59 UTC ++++ doc/screen.1 +@@ -241,7 +241,7 @@ + .IR screen , + but prints a list of + .I pid.tty.host +-strings identifying your ++strings and creation timestamps identifying your + .I screen + sessions. + Sessions marked `detached' can be resumed with \*Qscreen \-r\*U. Those marked diff --git a/sysutils/screen-devel/files/patch-misc.c b/sysutils/screen-devel/files/patch-misc.c new file mode 100644 index 000000000000..238359b03671 --- /dev/null +++ b/sysutils/screen-devel/files/patch-misc.c @@ -0,0 +1,39 @@ +--- misc.c.orig 2024-03-26 16:41:57.000000000 -0700 ++++ misc.c 2024-04-03 11:32:35.844473000 -0700 +@@ -32,8 +32,10 @@ + + #include + #include ++#include + #include /* mkdir() declaration */ + #include ++#include + #include + #include + #include +@@ -225,6 +227,7 @@ + char *p; + + if (str == NULL) { ++ + *buf = 0; + return 0; + } +@@ -238,3 +241,17 @@ + *p = 0; + return p - buf; + } ++ ++time_t ++SessionCreationTime(fifo) ++const char *fifo; ++{ ++ int pid = atoi(fifo); ++ if (pid <= 0) return 0; ++ ++ struct kinfo_proc * kip = kinfo_getproc(pid); ++ if (kip == 0) return 0; ++ time_t start = kip->ki_start.tv_sec; ++ free (kip); ++ return start; ++} diff --git a/sysutils/screen-devel/files/patch-misc.h b/sysutils/screen-devel/files/patch-misc.h new file mode 100644 index 000000000000..818c716ad6cf --- /dev/null +++ b/sysutils/screen-devel/files/patch-misc.h @@ -0,0 +1,12 @@ +--- misc.h.orig 2024-03-26 16:41:57.000000000 -0700 ++++ misc.h 2024-04-03 11:30:19.350562000 -0700 +@@ -28,6 +28,9 @@ + int AddXChar (char *, int); + int AddXChars (char *, int, char *); + ++time_t SessionCreationTime(const char *fifo); ++ ++ + #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) + + #endif /* SCREEN_MISC_H */ diff --git a/sysutils/screen-devel/files/patch-os.h b/sysutils/screen-devel/files/patch-os.h new file mode 100644 index 000000000000..bb7356858388 --- /dev/null +++ b/sysutils/screen-devel/files/patch-os.h @@ -0,0 +1,10 @@ +--- os.h.orig 2024-03-26 16:41:57.000000000 -0700 ++++ os.h 2024-04-03 07:39:11.395526000 -0700 +@@ -161,6 +161,6 @@ + /* Changing those you won't be able to attach to your old sessions + * when changing those values in official tree don't forget to bump + * MSG_VERSION */ +-#define MAXTERMLEN 32 ++#define MAXTERMLEN 63 + #define MAXLOGINLEN 256 + diff --git a/sysutils/screen-devel/files/patch-socket.c b/sysutils/screen-devel/files/patch-socket.c new file mode 100644 index 000000000000..abd96ac9cb49 --- /dev/null +++ b/sysutils/screen-devel/files/patch-socket.c @@ -0,0 +1,76 @@ +--- socket.c.orig 2024-03-26 16:41:57.000000000 -0700 ++++ socket.c 2024-04-03 07:52:07.474617000 -0700 +@@ -122,11 +122,13 @@ + char *firstn = NULL; + int nfound = 0, ngood = 0, ndead = 0, nwipe = 0, npriv = 0; + int nperfect = 0; ++ char timestr[64]; + struct sent { + struct sent *next; + int mode; + char *name; +- } *slist, **slisttail, *sent, *nsent; ++ time_t time_created; ++ } *slist, **slisttail, *sent, *nsent, *schosen; + + if (match) { + matchlen = strlen(match); +@@ -203,8 +205,12 @@ + sent->next = NULL; + sent->name = SaveStr(name); + sent->mode = mode; ++ sent->time_created = SessionCreationTime(name); ++ for (slisttail = &slist; *slisttail; slisttail = &((*slisttail)->next)) { ++ if ((*slisttail)->time_created < sent->time_created) break; ++ } ++ sent->next = *slisttail; + *slisttail = sent; +- slisttail = &sent->next; + nfound++; + sockfd = MakeClientSocket(0); + /* MakeClientSocket sets ids back to eff */ +@@ -283,31 +289,36 @@ + break; + } + for (sent = slist; sent; sent = sent->next) { ++ if (sent->time_created == 0) { ++ sprintf(timestr, "??" "?"); ++ } else { ++ strftime(timestr, 64, "%x %X", localtime(&sent->time_created)); ++ } + switch (sent->mode) { + case 0700: +- printf("\t%s\t(Attached)\n", sent->name); ++ printf("\t%s\t(%s)\t(Attached)\n", sent->name, timestr); + break; + case 0600: +- printf("\t%s\t(Detached)\n", sent->name); ++ printf("\t%s\t(%s)\t(Detached)\n", sent->name, timestr); + break; + case 0701: +- printf("\t%s\t(Multi, attached)\n", sent->name); ++ printf("\t%s\t(%s)\t(Multi, attached)\n", sent->name, timestr); + break; + case 0601: +- printf("\t%s\t(Multi, detached)\n", sent->name); ++ printf("\t%s\t(%s)\t(Multi, detached)\n", sent->name, timestr); + break; + case -1: + /* No trigraphs here! */ +- printf("\t%s\t(Dead ?%c?)\n", sent->name, '?'); ++ printf("\t%s\t(%s)\t(Dead ?%c?)\n", sent->name, timestr, '?'); + break; + case -2: +- printf("\t%s\t(Removed)\n", sent->name); ++ printf("\t%s\t(%s)\t(Removed)\n", sent->name, timestr); + break; + case -3: +- printf("\t%s\t(Remote or dead)\n", sent->name); ++ printf("\t%s\t(%s)\t(Remote or dead)\n", sent->name, timestr); + break; + case -4: +- printf("\t%s\t(Private)\n", sent->name); ++ printf("\t%s\t(%s)\t(Private)\n", sent->name, timestr); + break; + } + } diff --git a/sysutils/screen-devel/files/patch-terminfo__checktc.c b/sysutils/screen-devel/files/patch-terminfo__checktc.c new file mode 100644 index 000000000000..d4ffb75cc0c1 --- /dev/null +++ b/sysutils/screen-devel/files/patch-terminfo__checktc.c @@ -0,0 +1,18 @@ +--- terminfo/checktc.c.orig Fri Sep 29 09:13:22 1995 ++++ terminfo/checktc.c Tue Apr 22 20:37:18 2003 +@@ -171,6 +171,7 @@ + fflush(stdout); + } + ++#ifndef __FreeBSD__ + void CPutStr(s, c) + char *s; + int c; +@@ -178,6 +179,7 @@ + tputs(tgoto(s, 0, c), 1, putcha); + fflush(stdout); + } ++#endif /* __FreeBSD__ */ + + void CCPutStr(s, x, y) + char *s; diff --git a/sysutils/screen-devel/files/patch-utmp.c b/sysutils/screen-devel/files/patch-utmp.c new file mode 100644 index 000000000000..3157dffa0a90 --- /dev/null +++ b/sysutils/screen-devel/files/patch-utmp.c @@ -0,0 +1,20 @@ +--- utmp.c.orig 2024-03-26 16:41:57.000000000 -0700 ++++ utmp.c 2024-04-03 11:21:49.696125000 -0700 +@@ -30,6 +30,7 @@ + + #include "utmp.h" + ++#include + #include + #include + #include +@@ -64,9 +65,7 @@ + + static int utmpok; + static char UtmpName[] = UTMPXFILE; +-#ifndef UTMP_HELPER + static int utmpfd = -1; +-#endif + + #undef D_loginhost + #define D_loginhost D_utmp_logintty.ut_host diff --git a/sysutils/screen-devel/files/screenrc.sample b/sysutils/screen-devel/files/screenrc.sample new file mode 100644 index 000000000000..1ce5561ebf31 --- /dev/null +++ b/sysutils/screen-devel/files/screenrc.sample @@ -0,0 +1,10 @@ +startup_message off +defscrollback 5000 +termcapinfo xterm ti@:te@ +termcapinfo xterm-color ti@:te@ +hardstatus alwayslastline +hardstatus string '%{gk}[%{G}%H%{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}]%{=b C}[%m/%d/%y %C %A]%{W}' +vbell off +shell -$SHELL +logtstamp on +logtstamp after 1 diff --git a/sysutils/screen-devel/pkg-descr b/sysutils/screen-devel/pkg-descr new file mode 100644 index 000000000000..7b753f95511d --- /dev/null +++ b/sysutils/screen-devel/pkg-descr @@ -0,0 +1,7 @@ +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. diff --git a/sysutils/screen-devel/pkg-message b/sysutils/screen-devel/pkg-message new file mode 100644 index 000000000000..899fc017b061 --- /dev/null +++ b/sysutils/screen-devel/pkg-message @@ -0,0 +1,11 @@ +[ +{ type: install + message: <