diff options
-rw-r--r-- | sysutils/screen/Makefile | 2 | ||||
-rw-r--r-- | sysutils/screen/files/patch-configure | 27 | ||||
-rw-r--r-- | sysutils/screen/files/patch-utmp.c | 31 |
3 files changed, 31 insertions, 29 deletions
diff --git a/sysutils/screen/Makefile b/sysutils/screen/Makefile index 3881bb7920be..f7635b6ddc65 100644 --- a/sysutils/screen/Makefile +++ b/sysutils/screen/Makefile @@ -3,7 +3,7 @@ PORTNAME= screen PORTVERSION= 4.7.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= sysutils MASTER_SITES= GNU \ ftp://ftp.gnu.org/gnu/screen/ \ diff --git a/sysutils/screen/files/patch-configure b/sysutils/screen/files/patch-configure index 4c1cbb786cfa..00c34fc77d92 100644 --- a/sysutils/screen/files/patch-configure +++ b/sysutils/screen/files/patch-configure @@ -1,5 +1,5 @@ --- configure.orig 2019-10-01 15:27:14.000000000 -0700 -+++ configure 2019-10-08 04:39:00.284009000 -0700 ++++ configure 2019-10-27 23:29:24.744163000 -0700 @@ -4756,63 +4756,6 @@ else @@ -123,8 +123,12 @@ # Check whether --with-pty-mode was given. -@@ -5318,6 +5251,8 @@ - #if defined(SVR4) && !defined(DGUX) +@@ -5315,9 +5248,11 @@ + + #include <time.h> /* to get time_t on SCO */ + #include <sys/types.h> +-#if defined(SVR4) && !defined(DGUX) ++#if (defined(SVR4) && !defined(DGUX)) || defined(__FreeBSD_cc_version) #include <utmpx.h> #define utmp utmpx +#define pututline pututxline @@ -132,8 +136,21 @@ #else #include <utmp.h> #endif -@@ -5386,6 +5321,10 @@ - #if defined(SVR4) && !defined(DGUX) +@@ -5346,7 +5281,7 @@ + + #include <time.h> + #include <sys/types.h> +-#if defined(SVR4) && !defined(DGUX) ++#if (defined(SVR4) && !defined(DGUX)) || defined(__FreeBSD_cc_version) + #include <utmpx.h> + #define utmp utmpx + #else +@@ -5383,9 +5318,13 @@ + + #include <time.h> + #include <sys/types.h> +-#if defined(SVR4) && !defined(DGUX) ++#if (defined(SVR4) && !defined(DGUX)) || defined(__FreeBSD_cc_version) #include <utmpx.h> #define utmp utmpx +#define pututline pututxline diff --git a/sysutils/screen/files/patch-utmp.c b/sysutils/screen/files/patch-utmp.c index 64550c88add5..008106464429 100644 --- a/sysutils/screen/files/patch-utmp.c +++ b/sysutils/screen/files/patch-utmp.c @@ -1,6 +1,6 @@ ---- utmp.c.orig 2019-10-01 15:08:00.000000000 -0700 -+++ utmp.c 2019-10-08 17:56:32.853627000 -0700 -@@ -26,9 +26,13 @@ +--- utmp.c.orig 2017-01-17 11:28:29.397404660 -0800 ++++ utmp.c 2017-02-10 16:48:34.902236000 -0800 +@@ -26,6 +26,7 @@ **************************************************************** */ @@ -8,22 +8,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> -+#ifdef __FreeBSD_version -+#define GETUTENT -+#endif - - #include "config.h" - #include "screen.h" -@@ -102,7 +106,7 @@ - - static int utmpok; - static char UtmpName[] = UTMPFILE; --#ifndef UTMP_HELPER -+#if !defined(UTMP_HELPER) || defined(__FreeBSD__) - static int utmpfd = -1; - #endif - -@@ -409,12 +413,6 @@ +@@ -409,12 +410,6 @@ register slot_t slot; struct utmp u; int saved_ut; @@ -36,7 +21,7 @@ wi->w_slot = (slot_t)0; if (!utmpok || wi->w_type != W_TYPE_PTY) -@@ -435,51 +433,13 @@ +@@ -435,51 +430,13 @@ makeuser(&u, stripdev(wi->w_tty), LoginName, wi->w_pid); #ifdef UTHOST @@ -91,7 +76,7 @@ { Msg(errno,"Could not write %s", UtmpName); UT_CLOSE; -@@ -598,7 +558,7 @@ +@@ -598,7 +555,7 @@ struct utmp *u; { u->ut_type = DEAD_PROCESS; @@ -100,7 +85,7 @@ u->ut_exit.e_termination = 0; u->ut_exit.e_exit = 0; #endif -@@ -631,7 +591,11 @@ +@@ -631,7 +588,11 @@ /* must use temp variable because of NetBSD/sparc64, where * ut_xtime is long(64) but time_t is int(32) */ (void)time(&now); @@ -113,7 +98,7 @@ } static slot_t -@@ -743,7 +707,11 @@ +@@ -743,7 +704,11 @@ strncpy(u->ut_line, line, sizeof(u->ut_line)); strncpy(u->ut_name, user, sizeof(u->ut_name)); (void)time(&now); |