aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2010-02-09 07:05:42 +0000
committerCy Schubert <cy@FreeBSD.org>2010-02-09 07:05:42 +0000
commit0debb538115b56b08ea7ed5e1db7a1467ff23e02 (patch)
tree6e92229b8508a68fb0b99da6c5767ae5af484ed7
parent4780495de4c8d80ab255de1ac427afa31e127193 (diff)
downloadports-0debb538115b56b08ea7ed5e1db7a1467ff23e02.tar.gz
ports-0debb538115b56b08ea7ed5e1db7a1467ff23e02.zip
Notes
-rw-r--r--sysutils/screen/Makefile2
-rw-r--r--sysutils/screen/files/patch-ad50
-rw-r--r--sysutils/screen/files/patch-os.h24
-rw-r--r--sysutils/screen/files/patch-process.c6
-rw-r--r--sysutils/screen/files/patch-screen.c6
-rw-r--r--sysutils/screen/files/patch-tty.sh6
-rw-r--r--sysutils/screen/files/patch-utmp.c43
7 files changed, 58 insertions, 79 deletions
diff --git a/sysutils/screen/Makefile b/sysutils/screen/Makefile
index e12c200b1000..87aa472ec93e 100644
--- a/sysutils/screen/Makefile
+++ b/sysutils/screen/Makefile
@@ -7,7 +7,7 @@
PORTNAME= screen
PORTVERSION= 4.0.3
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.uni-erlangen.de/pub/utilities/screen/ \
http://komquats.com/distfiles/ \
diff --git a/sysutils/screen/files/patch-ad b/sysutils/screen/files/patch-ad
index 524a04209f12..75cc40566f7d 100644
--- a/sysutils/screen/files/patch-ad
+++ b/sysutils/screen/files/patch-ad
@@ -1,5 +1,5 @@
---- configure.orig 2003-12-05 05:46:53.000000000 -0800
-+++ configure 2010-01-26 22:18:47.000000000 -0800
+--- configure.orig Fri Dec 5 15:46:53 2003
++++ configure Sat Mar 4 10:18:24 2006
@@ -4746,48 +4746,6 @@
sed 's/^/| /' conftest.$ac_ext >&5
@@ -68,15 +68,6 @@
}
_ACEOF
rm -f conftest$ac_exeext
-@@ -5011,7 +4968,7 @@
- { echo "$as_me:$LINENO: checking for SVR4 ptys..." >&5
- echo "$as_me: checking for SVR4 ptys..." >&6;}
- sysvr4ptys=
--if test -c /dev/ptmx ; then
-+if test -c /nonexistent ; then
- cat >conftest.$ac_ext <<_ACEOF
- #line $LINENO "configure"
- /* confdefs.h. */
@@ -5314,19 +5271,16 @@
fi
rm -f conftest*
@@ -101,25 +92,30 @@
# Check whether --with-pty-mode or --without-pty-mode was given.
if test "${with_pty_mode+set}" = set; then
-@@ -5581,6 +5535,10 @@
- #ifdef __hpux
- #define pututline _pututline
+@@ -5575,6 +5529,8 @@
+ #if defined(SVR4) && !defined(DGUX)
+ #include <utmpx.h>
+ #define utmp utmpx
++#define pututline pututxline
++#define getutent getutxent
+ #else
+ #include <utmp.h>
#endif
-+#ifdef __FreeBSD_cc_version
+@@ -5627,6 +5583,8 @@
+ #if defined(SVR4) && !defined(DGUX)
+ #include <utmpx.h>
+ #define utmp utmpx
+#define pututline pututxline
+#define getutent getutxent
-+#endif
-
- int
- main ()
-@@ -5633,6 +5591,10 @@
- #ifdef __hpux
- #define pututline _pututline
+ #else
+ #include <utmp.h>
#endif
-+#ifdef __FreeBSD_cc_version
+@@ -5683,6 +5641,8 @@
+ #if defined(SVR4) && !defined(DGUX)
+ #include <utmpx.h>
+ #define utmp utmpx
+#define pututline pututxline
+#define getutent getutxent
-+#endif
-
- int
- main ()
+ #else
+ #include <utmp.h>
+ #endif
diff --git a/sysutils/screen/files/patch-os.h b/sysutils/screen/files/patch-os.h
index 8e047de01269..9826ba4f9ea5 100644
--- a/sysutils/screen/files/patch-os.h
+++ b/sysutils/screen/files/patch-os.h
@@ -1,5 +1,5 @@
---- os.h.orig 2002-01-08 07:42:33.000000000 -0800
-+++ os.h 2010-01-26 21:20:44.000000000 -0800
+--- os.h.orig Tue Jan 8 07:42:33 2002
++++ os.h Tue Sep 9 17:39:58 2003
@@ -161,7 +161,7 @@
# define setregid(rgid, egid) setresgid(rgid, egid, -1)
#endif
@@ -9,13 +9,25 @@
# define USE_SETEUID
#endif
-@@ -262,7 +262,9 @@
+@@ -262,7 +262,11 @@
#if defined(UTMPOK) || defined(BUGGYGETLOGIN)
# if defined(SVR4) && !defined(DGUX) && !defined(__hpux) && !defined(linux)
# include <utmpx.h>
-+#ifndef __FreeBSD_version
- # define UTMPFILE UTMPX_FILE
-+#endif
+-# define UTMPFILE UTMPX_FILE
++# ifdef UTMPX_FILE
++# define UTMPFILE UTMPX_FILE
++# else
++# define UTMPFILE "/nonexistent"
++# endif
# define utmp utmpx
# define getutent getutxent
# define getutid getutxid
+@@ -270,7 +274,7 @@
+ # define pututline pututxline
+ # define setutent setutxent
+ # define endutent endutxent
+-# define ut_time ut_xtime
++# define ut_time ut_tv.tv_sec
+ # else /* SVR4 */
+ # include <utmp.h>
+ # endif /* SVR4 */
diff --git a/sysutils/screen/files/patch-process.c b/sysutils/screen/files/patch-process.c
index 54d92dc90bb4..b7e8f99133b5 100644
--- a/sysutils/screen/files/patch-process.c
+++ b/sysutils/screen/files/patch-process.c
@@ -1,11 +1,11 @@
---- process.c.orig 2003-09-18 05:53:54.000000000 -0700
-+++ process.c 2010-01-26 21:27:17.000000000 -0800
+--- process.c
++++ process.c
@@ -37,7 +37,7 @@
#include "config.h"
/* for solaris 2.1, Unixware (SVR4.2) and possibly others: */
-#ifdef SVR4
-+#if defined(SVR4) && !defined(__FreeBSD_cc_version)
++#if defined(SVR4) && !defined(__FreeBSD__)
# include <sys/stropts.h>
#endif
diff --git a/sysutils/screen/files/patch-screen.c b/sysutils/screen/files/patch-screen.c
index 77a87424f31a..59b1a72762d3 100644
--- a/sysutils/screen/files/patch-screen.c
+++ b/sysutils/screen/files/patch-screen.c
@@ -1,11 +1,11 @@
---- screen.c.orig 2003-09-08 07:26:41.000000000 -0700
-+++ screen.c 2010-01-26 15:51:49.000000000 -0800
+--- screen.c
++++ screen.c
@@ -50,7 +50,7 @@
#include "config.h"
-#ifdef SVR4
-+#if defined(SVR4) && !defined(__FreeBSD_cc_version)
++#if defined(SVR4) && !defined(__FreeBSD__)
# include <sys/stropts.h>
#endif
diff --git a/sysutils/screen/files/patch-tty.sh b/sysutils/screen/files/patch-tty.sh
index 54da31b05d9c..1b40f3c939fd 100644
--- a/sysutils/screen/files/patch-tty.sh
+++ b/sysutils/screen/files/patch-tty.sh
@@ -1,11 +1,11 @@
---- tty.sh.orig 2003-09-08 07:24:25.000000000 -0700
-+++ tty.sh 2010-01-26 15:56:56.000000000 -0800
+--- tty.sh
++++ tty.sh
@@ -76,7 +76,7 @@
#endif
#include "config.h"
-#ifdef SVR4
-+#if defined(SVR4) && !defined(__FreeBSD_cc_version)
++#if defined(SVR4) && !defined(__FreeBSD__)
#include <sys/stropts.h> /* for I_POP */
#endif
diff --git a/sysutils/screen/files/patch-utmp.c b/sysutils/screen/files/patch-utmp.c
index bbd7d9d3afe4..4e8864c58c06 100644
--- a/sysutils/screen/files/patch-utmp.c
+++ b/sysutils/screen/files/patch-utmp.c
@@ -1,5 +1,5 @@
--- utmp.c.orig 2003-09-08 07:27:17.000000000 -0700
-+++ utmp.c 2010-01-26 22:27:46.000000000 -0800
++++ utmp.c 2009-12-21 15:10:06.000000000 -0800
@@ -21,6 +21,9 @@
****************************************************************
*/
@@ -17,44 +17,23 @@
+/* XXX FreeBSD-9 includes libutempter however if UTMP_HELPER is defined,
+ the build is broken due to utmpfd not being defined.
+*/
-+#if defined(__FreeBSD_version) && __FreeBSD_version < 900004 || !defined(__FreeBSD_version)
++#if defined(__FreeBSD_version) && (__FreeBSD_version < 900004 || __FreeBSD_version >= 900007) || !defined(__FreeBSD_version)
# define UTMP_HELPER
#endif
+#endif
-@@ -590,9 +598,11 @@
+@@ -589,7 +597,7 @@
+ struct utmp *u;
{
u->ut_type = DEAD_PROCESS;
- #if !defined(linux) || defined(EMPTY)
-+#ifndef __FreeBSD__
+-#if !defined(linux) || defined(EMPTY)
++#if (!defined(linux) || defined(EMPTY)) && !defined(__FreeBSD__)
u->ut_exit.e_termination = 0;
u->ut_exit.e_exit = 0;
#endif
-+#endif
- #if !defined(sun) || !defined(SVR4)
- u->ut_user[0] = 0; /* for Digital UNIX, kilbi@rad.rwth-aachen.de */
- #endif
-@@ -618,7 +628,9 @@
- #endif /* sgi */
- strncpy(u->ut_line, line, sizeof(u->ut_line));
- u->ut_pid = pid;
-+#ifndef __FreeBSD__
- (void)time((time_t *)&u->ut_time);
-+#endif
- }
-
- static slot_t
-@@ -630,6 +642,7 @@
-
-
- #else /* GETUTENT */
-+#if defined(__FreeBSD_version) && __FreeBSD_version < 900008
-
- /*********************************************************************
- *
-@@ -726,9 +739,12 @@
+@@ -726,9 +734,12 @@
char *line, *user;
int pid;
{
@@ -68,11 +47,3 @@
}
static slot_t
-@@ -759,6 +775,7 @@
- return slot;
- }
-
-+#endif /* __FreeBSD_version */
- #endif /* GETUTENT */
-
-