Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/screen/, app-misc/screen/files/
Date: Sat, 10 Oct 2015 15:38:33
Message-Id: 1444491416.c65b9410e37ceb9f5361c7e7d53a20a87fcd9e69.monsieurp@gentoo
1 commit: c65b9410e37ceb9f5361c7e7d53a20a87fcd9e69
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 10 15:33:53 2015 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 10 15:36:56 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c65b9410
7
8 app-misc/screen: Clean up vulnerable versions. Fixes security bug 559394.
9
10 Package-Manager: portage-2.2.20.1
11 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
12
13 app-misc/screen/Manifest | 2 -
14 app-misc/screen/files/4.0.2-64bit-time.patch | 11 -
15 app-misc/screen/files/4.0.2-no-libelf.patch | 18 -
16 app-misc/screen/files/4.0.2-no-pty.patch | 14 -
17 app-misc/screen/files/4.0.2-no-utempter.patch | 14 -
18 app-misc/screen/files/4.0.2-nonblock.patch | 11 -
19 .../files/4.0.2-windowlist-multiuser-fix.patch | 12 -
20 .../screen/files/4.0.3-extend-d_termname-ng2.patch | 203 -------
21 .../files/screen-4.0.1-int-overflow-fix.patch | 31 --
22 app-misc/screen/files/screen-4.0.1-vsprintf.patch | 13 -
23 .../screen-4.0.3-config.h-autoconf-2.62.patch | 14 -
24 app-misc/screen/files/screen-4.0.3-cppflags.patch | 20 -
25 .../screen/files/screen-4.0.3-crosscompile.patch | 598 ---------------------
26 .../files/screen-4.0.3-setenv_autoconf.patch | 79 ---
27 app-misc/screen/screen-4.0.3-r6.ebuild | 163 ------
28 app-misc/screen/screen-4.0.3-r7.ebuild | 163 ------
29 app-misc/screen/screen-4.0.3-r8.ebuild | 173 ------
30 app-misc/screen/screen-4.2.1-r2.ebuild | 146 -----
31 app-misc/screen/screen-4.3.1.ebuild | 146 -----
32 19 files changed, 1831 deletions(-)
33
34 diff --git a/app-misc/screen/Manifest b/app-misc/screen/Manifest
35 index fa65084..9153fdb 100644
36 --- a/app-misc/screen/Manifest
37 +++ b/app-misc/screen/Manifest
38 @@ -1,3 +1 @@
39 -DIST screen-4.0.3.tar.gz 840602 SHA256 78f0d5b1496084a5902586304d4a73954b2bfe33ea13edceecf21615c39e6c77 SHA512 24c1f598972f3dc9ed49cd2c05852190a0190d22fa01401eee8484627c8dd2815f0a422d9b2697faa8aaa0b3efc6730a94e2d5aa787dbe5e9ec719143176c338 WHIRLPOOL 6774786126eb05749d432593bc2c1febdc57896959220a609feb138bdc16b8da278aea63af1ccfd5c7d38ccaa9e7d28980e9e14d0009d36a54cdbd9e4cb0fca7
40 -DIST screen-4.2.1.tar.gz 1062485 SHA256 5468545047e301d2b3579f9d9ce00466d14a7eec95ce806e3834a3d6b0b9b080 SHA512 30826b2a2fc436483276b90cc4c6679470f7ccb7098c9bb8457d0e534998cd12da02882cf80678465f6540cade170c3fdc6bdfa31b07359ff0d3ffe2d6063710 WHIRLPOOL 7d4209651a016a9ab91aec385532c6ebd7a6d96a60342721f3a53752924c3fb72aa3d648ad665b67fab0a78d6019396abe13e04f556c7e5e9f71bf3238e64cc5
41 DIST screen-4.3.1.tar.gz 845958 SHA256 fa4049f8aee283de62e283d427f2cfd35d6c369b40f7f45f947dbfd915699d63 SHA512 8e8a25b23330a7d8e00fc9e6cc430f0eb3937ccf4183efbd6fd24e4dc04cc09b3acae45bfc24892faee433b18fa79b1cfe0211fd75c0d74ecf908f916bf774aa WHIRLPOOL b47f7538351028cc3a2ec7f69a9373e152fa7655c6ae9feb75ba46db3cdc9b7d58ce78043993b7f134da3a04754c5e52d1a77da4c30a8decda21c79cf5c50f51
42
43 diff --git a/app-misc/screen/files/4.0.2-64bit-time.patch b/app-misc/screen/files/4.0.2-64bit-time.patch
44 deleted file mode 100644
45 index 645b37f..0000000
46 --- a/app-misc/screen/files/4.0.2-64bit-time.patch
47 +++ /dev/null
48 @@ -1,11 +0,0 @@
49 ---- utmp.c.orig 2004-11-14 23:15:28.000000000 +0100
50 -+++ utmp.c 2004-11-14 23:15:39.000000000 +0100
51 -@@ -618,7 +618,7 @@
52 - #endif /* sgi */
53 - strncpy(u->ut_line, line, sizeof(u->ut_line));
54 - u->ut_pid = pid;
55 -- (void)time((time_t *)&u->ut_time);
56 -+ u->ut_time = time(NULL);
57 - }
58 -
59 - static slot_t
60
61 diff --git a/app-misc/screen/files/4.0.2-no-libelf.patch b/app-misc/screen/files/4.0.2-no-libelf.patch
62 deleted file mode 100644
63 index df06383..0000000
64 --- a/app-misc/screen/files/4.0.2-no-libelf.patch
65 +++ /dev/null
66 @@ -1,18 +0,0 @@
67 ---- screen-4.0.2/configure.in 2005-05-22 19:55:06.559874997 +0000
68 -+++ screen-4.0.2-no-libelf/configure.in 2005-05-22 19:56:05.895801017 +0000
69 -@@ -195,15 +195,6 @@
70 - #endif
71 - ], LIBS="$LIBS -lsocket -linet";seqptx=1)
72 -
73 --oldlibs="$LIBS"
74 --LIBS="$LIBS -lelf"
75 --AC_CHECKING(SVR4)
76 --AC_TRY_LINK([#include <utmpx.h>
77 --],,
78 --[AC_CHECK_HEADER(dwarf.h, AC_DEFINE(SVR4) AC_DEFINE(BUGGYGETLOGIN),
79 --[AC_CHECK_HEADER(elf.h, AC_DEFINE(SVR4) AC_DEFINE(BUGGYGETLOGIN))])]
80 --,LIBS="$oldlibs")
81 --
82 - AC_CHECKING(for Solaris 2.x)
83 - AC_EGREP_CPP(yes,
84 - [#if defined(SVR4) && defined(sun)
85
86 diff --git a/app-misc/screen/files/4.0.2-no-pty.patch b/app-misc/screen/files/4.0.2-no-pty.patch
87 deleted file mode 100644
88 index 7b7b798..0000000
89 --- a/app-misc/screen/files/4.0.2-no-pty.patch
90 +++ /dev/null
91 @@ -1,14 +0,0 @@
92 ---- screen-4.0.2/pty.c.orig 2004-07-29 23:53:45.313533536 -0400
93 -+++ screen-4.0.2/pty.c 2004-07-29 23:53:59.011451136 -0400
94 -@@ -33,11 +33,6 @@
95 - # include <sys/ioctl.h>
96 - #endif
97 -
98 --/* for solaris 2.1, Unixware (SVR4.2) and possibly others */
99 --#ifdef HAVE_SVR4_PTYS
100 --# include <sys/stropts.h>
101 --#endif
102 --
103 - #if defined(sun) && defined(LOCKPTY) && !defined(TIOCEXCL)
104 - # include <sys/ttold.h>
105 - #endif
106
107 diff --git a/app-misc/screen/files/4.0.2-no-utempter.patch b/app-misc/screen/files/4.0.2-no-utempter.patch
108 deleted file mode 100644
109 index 2a06119..0000000
110 --- a/app-misc/screen/files/4.0.2-no-utempter.patch
111 +++ /dev/null
112 @@ -1,14 +0,0 @@
113 ---- screen-4.0.2/configure.in.orig 2004-12-17 19:55:45.314670411 +0100
114 -+++ screen-4.0.2/configure.in 2004-12-17 19:55:50.575941541 +0100
115 -@@ -855,11 +855,6 @@
116 - #include <utmp.h>
117 - #endif
118 - ],[struct utmp u; u.ut_host[0] = 0;], AC_DEFINE(UTHOST))
119 --AC_CHECK_HEADER(utempter.h, have_utempter=yes, have_utempter=no)
120 --if test "$have_utempter" = yes; then
121 -- AC_DEFINE(HAVE_UTEMPTER)
122 -- LIBS="$LIBS -lutempter"
123 --fi
124 -
125 - dnl
126 - dnl **** loadav ****
127
128 diff --git a/app-misc/screen/files/4.0.2-nonblock.patch b/app-misc/screen/files/4.0.2-nonblock.patch
129 deleted file mode 100644
130 index f27c903..0000000
131 --- a/app-misc/screen/files/4.0.2-nonblock.patch
132 +++ /dev/null
133 @@ -1,11 +0,0 @@
134 ---- screen.c.orig 2006-04-02 17:05:28.000000000 +0200
135 -+++ screen.c 2006-04-02 17:05:39.000000000 +0200
136 -@@ -1197,7 +1197,7 @@ char **av;
137 - if (!detached)
138 - {
139 - /* reopen tty. must do this, because fd 0 may be RDONLY */
140 -- if ((n = secopen(attach_tty, O_RDWR, 0)) < 0)
141 -+ if ((n = secopen(attach_tty, O_RDWR | O_NONBLOCK, 0)) < 0)
142 - Panic(0, "Cannot reopen '%s' - please check.", attach_tty);
143 - }
144 - else
145
146 diff --git a/app-misc/screen/files/4.0.2-windowlist-multiuser-fix.patch b/app-misc/screen/files/4.0.2-windowlist-multiuser-fix.patch
147 deleted file mode 100644
148 index 09848e9..0000000
149 --- a/app-misc/screen/files/4.0.2-windowlist-multiuser-fix.patch
150 +++ /dev/null
151 @@ -1,12 +0,0 @@
152 -diff -Nur screen-4.0.2.orig/process.c screen-4.0.2/process.c
153 ---- screen-4.0.2.orig/process.c 2003-09-18 14:53:54.000000000 +0200
154 -+++ screen-4.0.2/process.c 2005-07-06 19:55:08.370772955 +0200
155 -@@ -4841,7 +4841,7 @@
156 - s = buf;
157 - for (display = displays; display; display = display->d_next)
158 - {
159 -- if (D_user == olddisplay->d_user)
160 -+ if (olddisplay && D_user == olddisplay->d_user)
161 - continue;
162 - for (cv = D_cvlist; cv; cv = cv->c_next)
163 - if (Layer2Window(cv->c_layer) == p)
164
165 diff --git a/app-misc/screen/files/4.0.3-extend-d_termname-ng2.patch b/app-misc/screen/files/4.0.3-extend-d_termname-ng2.patch
166 deleted file mode 100644
167 index 21b1108..0000000
168 --- a/app-misc/screen/files/4.0.3-extend-d_termname-ng2.patch
169 +++ /dev/null
170 @@ -1,203 +0,0 @@
171 -diff --git a/acls.c b/acls.c
172 -index 0f98df2..5f26d70 100644
173 ---- a/acls.c
174 -+++ b/acls.c
175 -@@ -178,7 +178,7 @@ struct acluser **up;
176 - #endif
177 - (*up)->u_Esc = DefaultEsc;
178 - (*up)->u_MetaEsc = DefaultMetaEsc;
179 -- strncpy((*up)->u_name, name, 20);
180 -+ strncpy((*up)->u_name, name, MAXSTR);
181 - (*up)->u_password = NULL;
182 - if (pass)
183 - (*up)->u_password = SaveStr(pass);
184 -@@ -314,8 +314,8 @@ struct acluser **up;
185 - return UserAdd(name, pass, up);
186 - if (!strcmp(name, "nobody")) /* he remains without password */
187 - return -1;
188 -- strncpy((*up)->u_password, pass ? pass : "", 20);
189 -- (*up)->u_password[20] = '\0';
190 -+ strncpy((*up)->u_password, pass ? pass : "", MAXSTR);
191 -+ (*up)->u_password[MAXSTR] = '\0';
192 - return 0;
193 - }
194 - #endif
195 -diff --git a/acls.h b/acls.h
196 -index c41b714..7f20f55 100644
197 ---- a/acls.h
198 -+++ b/acls.h
199 -@@ -36,6 +36,16 @@
200 - #define ACLBYTE(data, w) ((data)[(w) >> 3])
201 - #define ACLBIT(w) (0x80 >> ((w) & 7))
202 -
203 -+#include <limits.h>
204 -+
205 -+#ifndef NAME_MAX
206 -+# ifndef MAXNAMELEN
207 -+# define NAME_MAX 255
208 -+# else
209 -+# define NAME_MAX MAXNAMELEN
210 -+# endif
211 -+#endif
212 -+
213 - typedef unsigned char * AclBits;
214 -
215 - /*
216 -@@ -73,7 +83,7 @@ struct plop
217 - typedef struct acluser
218 - {
219 - struct acluser *u_next; /* continue the main user list */
220 -- char u_name[20+1]; /* login name how he showed up */
221 -+ char u_name[NAME_MAX+1]; /* login name how he showed up */
222 - char *u_password; /* his password (may be NullStr). */
223 - int u_checkpassword; /* nonzero if this u_password is valid */
224 - int u_detachwin; /* the window where he last detached */
225 -diff --git a/display.h b/display.h
226 -index ef99954..563fcd0 100644
227 ---- a/display.h
228 -+++ b/display.h
229 -@@ -22,6 +22,16 @@
230 - * $Id: display.h,v 1.9 1994/05/31 12:31:54 mlschroe Exp $ FAU
231 - */
232 -
233 -+#include <limits.h>
234 -+
235 -+#ifndef NAME_MAX
236 -+# ifndef MAXNAMELEN
237 -+# define NAME_MAX 255
238 -+# else
239 -+# define NAME_MAX MAXNAMELEN
240 -+# endif
241 -+#endif
242 -+
243 - #ifdef MAPKEYS
244 -
245 - #define KMAP_KEYS (T_OCAPS-T_CAPS)
246 -@@ -85,7 +95,7 @@ struct display
247 - struct win *d_other; /* pointer to other window */
248 - int d_nonblock; /* -1 don't block if obufmax reached */
249 - /* >0: block after nonblock secs */
250 -- char d_termname[20 + 1]; /* $TERM */
251 -+ char d_termname[NAME_MAX + 1]; /* $TERM */
252 - char *d_tentry; /* buffer for tgetstr */
253 - char d_tcinited; /* termcap inited flag */
254 - int d_width, d_height; /* width/height of the screen */
255 -diff --git a/screen.c b/screen.c
256 -index 70741df..6f45b60 100644
257 ---- a/screen.c
258 -+++ b/screen.c
259 -@@ -106,6 +106,16 @@ FILE *dfp;
260 - #endif
261 -
262 -
263 -+#include <limits.h>
264 -+
265 -+#ifndef NAME_MAX
266 -+# ifndef MAXNAMELEN
267 -+# define NAME_MAX 255
268 -+# else
269 -+# define NAME_MAX MAXNAMELEN
270 -+# endif
271 -+#endif
272 -+
273 - extern char Term[], screenterm[], **environ, Termcap[];
274 - int force_vt = 1;
275 - int VBellWait, MsgWait, MsgMinWait, SilenceWait;
276 -@@ -877,13 +887,13 @@ char **av;
277 -
278 - if (home == 0 || *home == '\0')
279 - home = ppp->pw_dir;
280 -- if (strlen(LoginName) > 20)
281 -+ if (strlen(LoginName) > NAME_MAX)
282 - Panic(0, "LoginName too long - sorry.");
283 - #ifdef MULTIUSER
284 -- if (multi && strlen(multi) > 20)
285 -+ if (multi && strlen(multi) > NAME_MAX)
286 - Panic(0, "Screen owner name too long - sorry.");
287 - #endif
288 -- if (strlen(home) > MAXPATHLEN - 25)
289 -+ if (strlen(home) > MAXPATHLEN - NAME_MAX)
290 - Panic(0, "$HOME too long - sorry.");
291 -
292 - attach_tty = "";
293 -diff --git a/screen.h b/screen.h
294 -index 4f9f354..bcaaaf6 100644
295 ---- a/screen.h
296 -+++ b/screen.h
297 -@@ -43,6 +43,15 @@
298 - #include "comm.h"
299 - #include "layer.h"
300 - #include "term.h"
301 -+#include <limits.h>
302 -+
303 -+#ifndef NAME_MAX
304 -+# ifndef MAXNAMELEN
305 -+# define NAME_MAX 255
306 -+# else
307 -+# define NAME_MAX MAXNAMELEN
308 -+# endif
309 -+#endif
310 -
311 -
312 - #ifdef DEBUG
313 -@@ -195,26 +204,26 @@ struct msg
314 - create;
315 - struct
316 - {
317 -- char auser[20 + 1]; /* username */
318 -+ char auser[NAME_MAX + 1]; /* username */
319 - int apid; /* pid of frontend */
320 - int adaptflag; /* adapt window size? */
321 - int lines, columns; /* display size */
322 - char preselect[20];
323 - int esc; /* his new escape character unless -1 */
324 - int meta_esc; /* his new meta esc character unless -1 */
325 -- char envterm[20 + 1]; /* terminal type */
326 -+ char envterm[NAME_MAX + 1]; /* terminal type */
327 - int encoding; /* encoding of display */
328 - }
329 - attach;
330 - struct
331 - {
332 -- char duser[20 + 1]; /* username */
333 -+ char duser[NAME_MAX + 1]; /* username */
334 - int dpid; /* pid of frontend */
335 - }
336 - detach;
337 - struct
338 - {
339 -- char auser[20 + 1]; /* username */
340 -+ char auser[NAME_MAX + 1]; /* username */
341 - int nargs;
342 - char cmd[MAXPATHLEN]; /* command */
343 - int apid; /* pid of frontend */
344 -diff --git a/socket.c b/socket.c
345 -index 62a73af..1cc9c27 100644
346 ---- a/socket.c
347 -+++ b/socket.c
348 -@@ -45,6 +45,16 @@
349 -
350 - #include "extern.h"
351 -
352 -+#include <limits.h>
353 -+
354 -+#ifndef NAME_MAX
355 -+# ifndef MAXNAMELEN
356 -+# define NAME_MAX 255
357 -+# else
358 -+# define NAME_MAX MAXNAMELEN
359 -+# endif
360 -+#endif
361 -+
362 - static int CheckPid __P((int));
363 - static void ExecCreate __P((struct msg *));
364 - static void DoCommandMsg __P((struct msg *));
365 -@@ -1248,7 +1258,7 @@ static void PasswordProcessInput __P((char *, int));
366 -
367 - struct pwdata {
368 - int l;
369 -- char buf[20 + 1];
370 -+ char buf[NAME_MAX + 1];
371 - struct msg m;
372 - };
373 -
374
375 diff --git a/app-misc/screen/files/screen-4.0.1-int-overflow-fix.patch b/app-misc/screen/files/screen-4.0.1-int-overflow-fix.patch
376 deleted file mode 100644
377 index 4a40c8d..0000000
378 --- a/app-misc/screen/files/screen-4.0.1-int-overflow-fix.patch
379 +++ /dev/null
380 @@ -1,31 +0,0 @@
381 ---- ansi.c.orig 2003-09-08 10:24:44.000000000 -0400
382 -+++ ansi.c 2003-11-29 10:41:15.000000000 -0500
383 -@@ -559,7 +559,7 @@
384 - {
385 - case '0': case '1': case '2': case '3': case '4':
386 - case '5': case '6': case '7': case '8': case '9':
387 -- if (curr->w_NumArgs < MAXARGS)
388 -+ if (curr->w_NumArgs >= 0 && curr->w_NumArgs < MAXARGS)
389 - {
390 - if (curr->w_args[curr->w_NumArgs] < 100000000)
391 - curr->w_args[curr->w_NumArgs] =
392 ---- resize.c.orig 2003-09-08 10:26:31.000000000 -0400
393 -+++ resize.c 2003-11-29 10:41:50.000000000 -0500
394 -@@ -682,6 +682,17 @@
395 - if (wi == 0)
396 - he = hi = 0;
397 -
398 -+ if (wi > 1000)
399 -+ {
400 -+ Msg(0, "Window width too large, truncated");
401 -+ wi = 1000;
402 -+ }
403 -+ if (he > 1000)
404 -+ {
405 -+ Msg(0, "Window height too large, truncated");
406 -+ he = 1000;
407 -+ }
408 -+
409 - if (p->w_width == wi && p->w_height == he && p->w_histheight == hi)
410 - {
411 - debug("ChangeWindowSize: No change.\n");
412
413 diff --git a/app-misc/screen/files/screen-4.0.1-vsprintf.patch b/app-misc/screen/files/screen-4.0.1-vsprintf.patch
414 deleted file mode 100644
415 index b2f7a20..0000000
416 --- a/app-misc/screen/files/screen-4.0.1-vsprintf.patch
417 +++ /dev/null
418 @@ -1,13 +0,0 @@
419 ---- screen-4.0.1/configure.in 2003-06-03 07:58:24.000000000 -0400
420 -+++ screen-4.0.1/configure.in.agriffis 2004-01-13 12:07:37.000000000 -0500
421 -@@ -1206,7 +1206,9 @@
422 - rm -f /tmp/conftest*
423 -
424 - AC_MSG_CHECKING(for vsprintf)
425 --AC_TRY_LINK(,[vsprintf(0,0,0);], AC_MSG_RESULT(yes);AC_DEFINE(USEVARARGS), AC_MSG_RESULT(no))
426 -+AC_TRY_LINK([#include <stdarg.h>],[va_list valist; vsprintf(0,0,valist);],
427 -+ [AC_MSG_RESULT(yes);AC_DEFINE(USEVARARGS)],
428 -+ [AC_MSG_RESULT(no)])
429 -
430 - AC_HEADER_DIRENT
431 -
432
433 diff --git a/app-misc/screen/files/screen-4.0.3-config.h-autoconf-2.62.patch b/app-misc/screen/files/screen-4.0.3-config.h-autoconf-2.62.patch
434 deleted file mode 100644
435 index 5605fda..0000000
436 --- a/app-misc/screen/files/screen-4.0.3-config.h-autoconf-2.62.patch
437 +++ /dev/null
438 @@ -1,14 +0,0 @@
439 -compability for sys-devel/autoconf-2.62
440 -
441 -https://bugs.gentoo.org/show_bug.cgi?id=217311
442 -
443 ---- screen/config.h.in
444 -+++ screen/config.h.in
445 -@@ -563,7 +563,6 @@
446 - * If you are on a SYS V machine that restricts filename length to 14
447 - * characters, you may need to enforce that by setting NAME_MAX to 14
448 - */
449 --#undef NAME_MAX /* KEEP_UNDEF_HERE override system value */
450 - #undef NAME_MAX
451 -
452 - /*
453
454 diff --git a/app-misc/screen/files/screen-4.0.3-cppflags.patch b/app-misc/screen/files/screen-4.0.3-cppflags.patch
455 deleted file mode 100644
456 index ee3455f..0000000
457 --- a/app-misc/screen/files/screen-4.0.3-cppflags.patch
458 +++ /dev/null
459 @@ -1,20 +0,0 @@
460 ---- screen-4.0.3/Makefile.in
461 -+++ screen-4.0.3/Makefile.in
462 -@@ -68,7 +68,7 @@
463 - $(CC) $(LDFLAGS) -o $@ $(OFILES) $(LIBS)
464 -
465 - .c.o:
466 -- $(CC) -c -I. -I$(srcdir) $(M_CFLAGS) $(DEFS) $(OPTIONS) $(CFLAGS) $<
467 -+ $(CC) -c -I. -I$(srcdir) $(M_CFLAGS) $(DEFS) $(OPTIONS) $(CPPFLAGS) $(CFLAGS) $<
468 -
469 - install_bin: .version screen
470 - -if [ -f $(DESTDIR)$(bindir)/$(SCREEN) ] && [ ! -f $(DESTDIR)$(bindir)/$(SCREEN).old ]; \
471 -@@ -122,7 +122,7 @@
472 - sh $(srcdir)/tty.sh tty.c
473 -
474 - comm.h: comm.c comm.sh config.h
475 -- AWK=$(AWK) CC="$(CC) $(CFLAGS)" srcdir=${srcdir} sh $(srcdir)/comm.sh
476 -+ AWK=$(AWK) CC="$(CC) $(CFLAGS) $(CPPFLAGS)" srcdir=${srcdir} sh $(srcdir)/comm.sh
477 -
478 - osdef.h: osdef.sh config.h osdef.h.in
479 - CPP="$(CPP) $(CPPFLAGS)" srcdir=${srcdir} sh $(srcdir)/osdef.sh
480
481 diff --git a/app-misc/screen/files/screen-4.0.3-crosscompile.patch b/app-misc/screen/files/screen-4.0.3-crosscompile.patch
482 deleted file mode 100644
483 index 6e6bb94..0000000
484 --- a/app-misc/screen/files/screen-4.0.3-crosscompile.patch
485 +++ /dev/null
486 @@ -1,598 +0,0 @@
487 ---- configure.in~ 2008-11-23 17:43:48.000000000 +0000
488 -+++ configure.in 2008-11-23 17:43:48.000000000 +0000
489 -@@ -46,6 +46,7 @@
490 - AC_PROG_GCC_TRADITIONAL
491 - AC_ISC_POSIX
492 -
493 -+AC_MSG_CHECKING([for compiler sanity])
494 - AC_TRY_RUN(main(){exit(0);},,[
495 - if test $CC != cc ; then
496 - AC_NOTE(Your $CC failed - restarting with CC=cc)
497 -@@ -54,22 +55,17 @@
498 - export CC
499 - exec $0 $configure_args
500 - fi
501 --])
502 --
503 --AC_TRY_RUN(main(){exit(0);},,
504 --exec 5>&2
505 --eval $ac_link
506 --AC_NOTE(CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;)
507 --AC_NOTE($ac_compile)
508 --AC_MSG_ERROR(Can't run the compiler - sorry))
509 -+],AC_MSG_WARN([skipping test due to crosscompilation]))
510 -
511 -+AC_MSG_CHECKING([if compiler sets exit status])
512 - AC_TRY_RUN([
513 - main()
514 - {
515 - int __something_strange_();
516 - __something_strange_(0);
517 - }
518 --],AC_MSG_ERROR(Your compiler does not set the exit status - sorry))
519 -+],AC_MSG_ERROR(Your compiler does not set the exit status - sorry),,
520 -+AC_MSG_WARN(skipping test due to crosscompilation))
521 -
522 - AC_PROG_AWK
523 -
524 -@@ -103,6 +99,7 @@
525 - dnl
526 - dnl **** special unix variants ****
527 - dnl
528 -+AH_TEMPLATE(ISC,[])
529 - if test -n "$ISC"; then
530 - AC_DEFINE(ISC) LIBS="$LIBS -linet"
531 - fi
532 -@@ -114,11 +111,13 @@
533 - dnl fi
534 - dnl fi
535 -
536 -+AH_TEMPLATE([sysV68],[])
537 - if test -f /sysV68 ; then
538 - AC_DEFINE(sysV68)
539 - fi
540 -
541 - AC_CHECKING(for MIPS)
542 -+AH_TEMPLATE([MIPS],[])
543 - if test -f /lib/libmld.a || test -f /usr/lib/libmld.a || test -f /usr/lib/cmplrs/cc/libmld.a; then
544 - oldlibs="$LIBS"
545 - test -f /bin/mx || LIBS="$LIBS -lmld" # for nlist. But not on alpha.
546 -@@ -132,6 +131,8 @@
547 - AC_CHECKING(wait3)
548 - AC_TRY_LINK(,[wait3();], ,
549 - AC_CHECKING(wait2)
550 -+AH_TEMPLATE([USE_WAIT2],[On RISCOS we prefer wait2() over wait3(). rouilj@×××××××.com])
551 -+dnl TODO(Hannes) shipped config.h.in wraps the define in #ifdef BSDWAIT
552 - AC_TRY_LINK(,[wait2();],
553 - dnl John Rouillard (rouilj@×××××××.com):
554 - dnl need -I/usr/include/bsd in RISCOS otherwise sockets are broken, no
555 -@@ -154,9 +155,11 @@
556 - oldlibs="$LIBS"
557 - LIBS="$LIBS -lpyr"
558 - AC_CHECKING(Pyramid OSX)
559 -+AH_TEMPLATE([OSX], [Pyramid OSX])
560 - AC_TRY_LINK(,[open_controlling_pty("")], AC_DEFINE(OSX), LIBS="$oldlibs")
561 - fi
562 -
563 -+AH_TEMPLATE([POSIX],[Define POSIX if your system supports IEEE Std 1003.1-1988 (POSIX).])
564 - dnl ghazi@××××××××××××.edu (Kaveh R. Ghazi):
565 - dnl BBN butterfly is not POSIX, but a MACH BSD system.
566 - dnl Do not define POSIX and TERMIO.
567 -@@ -183,6 +186,7 @@
568 - fi
569 -
570 - AC_CHECKING(for System V)
571 -+AH_TEMPLATE([SYSV], [Define SYSV if your machine is SYSV complient (Sys V, HPUX, A/UX)])
572 - AC_TRY_COMPILE(
573 - [#include <sys/types.h>
574 - #include <signal.h>
575 -@@ -226,6 +230,9 @@
576 - dnl
577 -
578 - AC_CHECKING(BSD job jontrol)
579 -+AH_TEMPLATE([BSDJOBS],
580 -+[Define BSDJOBS if you have BSD-style job control (both process
581 -+ groups and a tty that deals correctly with them)])
582 - AC_TRY_LINK(
583 - [#include <sys/types.h>
584 - #include <sys/ioctl.h>
585 -@@ -246,6 +253,10 @@
586 - dnl **** setreuid(), seteuid() ****
587 - dnl
588 - AC_CHECKING(setreuid)
589 -+AH_TEMPLATE([HAVE_SETREUID],
590 -+[If your system has the calls setreuid() and setregid(),
591 -+ define HAVE_SETREUID. Otherwise screen will use a forked process to
592 -+ safely create output files without retaining any special privileges.])
593 - AC_TRY_LINK(,[
594 - #ifdef __hpux
595 - setresuid(0, 0, 0);
596 -@@ -260,6 +271,9 @@
597 - dnl Solaris seteuid doesn't change the saved uid, bad for
598 - dnl multiuser screen sessions
599 - AC_CHECKING(seteuid)
600 -+AH_TEMPLATE([HAVE_SETEUID],
601 -+[If your system supports BSD4.4's seteuid() and setegid(), define
602 -+ HAVE_SETEUID.])
603 - AC_TRY_LINK(,[
604 - #if defined(linux) || defined(NeXT) || defined(_AUX_SOURCE) || defined(AUX) || defined(ultrix) || (defined(sun) && defined(SVR4)) || defined(ISC) || defined(sony_news)
605 - seteuid_is_broken(0);
606 -@@ -284,6 +298,8 @@
607 - dnl
608 -
609 - AC_CHECKING(fifos)
610 -+AC_CACHE_CHECK([usable fifos],
611 -+ [screen_cv_sys_fifo_usable],
612 - AC_TRY_RUN([
613 - #include <sys/types.h>
614 - #include <sys/stat.h>
615 -@@ -348,12 +364,15 @@
616 - exit(1);
617 - exit(0);
618 - }
619 --], AC_NOTE(- your fifos are usable) fifo=1,
620 --AC_NOTE(- your fifos are not usable))
621 -+], screen_cv_sys_fifo_usable=yes, screen_cv_sys_fifo_usable=no))
622 - rm -f /tmp/conftest*
623 -
624 --if test -n "$fifo"; then
625 --AC_CHECKING(for broken fifo implementation)
626 -+if test X"$screen_cv_sys_fifo_usable" = Xyes; then
627 -+AH_TEMPLATE([BROKEN_PIPE],
628 -+[Define this if your system exits select() immediatly if a pipe is
629 -+ opened read-only and no writer has opened it.])
630 -+AC_CACHE_CHECK([broken fifo implementation],
631 -+ [screen_cv_sys_fifo_broken_impl],
632 - AC_TRY_RUN([
633 - #include <sys/types.h>
634 - #include <fcntl.h>
635 -@@ -398,9 +416,12 @@
636 - exit(1);
637 - exit(0);
638 - }
639 --], AC_NOTE(- your implementation is ok),
640 --AC_NOTE(- you have a broken implementation) AC_DEFINE(BROKEN_PIPE) fifobr=1)
641 -+], screen_cv_sys_fifo_broken_impl=no,
642 -+screen_cv_sys_fifo_broken_impl=yes))
643 -+if test X"$screen_cv_sys_fifo_broken_impl" = Xyes; then
644 -+ AC_DEFINE(BROKEN_PIPE)
645 -+fi
646 - rm -f /tmp/conftest*
647 - fi
648 -
649 - dnl
650 -@@ -410,6 +430,8 @@
651 - dnl
652 -
653 - AC_CHECKING(sockets)
654 -+AC_CACHE_CHECK([sockets are usable],
655 -+ [screen_cv_sys_sockets_usable],
656 - AC_TRY_RUN([
657 - #include <sys/types.h>
658 - #include <sys/socket.h>
659 -@@ -460,12 +482,16 @@
660 - exit(1);
661 - exit(0);
662 - }
663 --], AC_NOTE(- your sockets are usable) sock=1,
664 --AC_NOTE(- your sockets are not usable))
665 --rm -f /tmp/conftest*
666 -+], screen_cv_sys_sockets_usable=yes,
667 -+screen_cv_sys_sockets_usable=no))
668 -
669 --if test -n "$sock"; then
670 -+if test X"$screen_cv_sys_sockets_usable" = Xyes; then
671 - AC_CHECKING(socket implementation)
672 -+AH_TEMPLATE([SOCK_NOT_IN_FS],
673 -+[Define this if the unix-domain socket implementation doesn't
674 -+ create a socket in the filesystem.])
675 -+AC_CACHE_CHECK([if sockets are not stored in the filesystem],
676 -+ [screen_cv_sys_sockets_nofs],
677 - AC_TRY_RUN([
678 - #include <sys/types.h>
679 - #include <sys/stat.h>
680 -@@ -491,22 +517,25 @@
681 - close(s);
682 - exit(0);
683 - }
684 --],AC_NOTE(- you are normal),
685 --AC_NOTE(- unix domain sockets are not kept in the filesystem)
686 --AC_DEFINE(SOCK_NOT_IN_FS) socknofs=1)
687 --rm -f /tmp/conftest*
688 -+], screen_cv_sys_sockets_nofs=no,
689 -+screen_cv_sys_sockets_nofs=yes))
690 -+
691 -+if test X"$screen_cv_sys_sockets_nofs" = Xyes; then
692 -+ AC_DEFINE(SOCK_NOT_IN_FS)
693 -+fi
694 - fi
695 -
696 -
697 - dnl
698 - dnl **** choose sockets or fifos ****
699 - dnl
700 --if test -n "$fifo"; then
701 -- if test -n "$sock"; then
702 -- if test -n "$nore"; then
703 -+AH_TEMPLATE([NAMEDPIPE], [Define this if your system supports named pipes.])
704 -+if test X"$screen_cv_sys_fifo_usable" = Xyes; then
705 -+ if test X"$screen_cv_sys_sockets_usable" = Xyes; then
706 -+ if test X"$screen_cv_sys_sockets_nofs" = Xyes; then
707 - AC_NOTE(- hmmm... better take the fifos)
708 - AC_DEFINE(NAMEDPIPE)
709 -- elif test -n "$fifobr"; then
710 -+ elif test X"$screen_cv_sys_fifo_broken_impl" = Xyes; then
711 - AC_NOTE(- as your fifos are broken lets use the sockets.)
712 - else
713 - AC_NOTE(- both sockets and fifos usable. let's take fifos.)
714 -@@ -516,7 +545,7 @@
715 - AC_NOTE(- using named pipes, of course)
716 - AC_DEFINE(NAMEDPIPE)
717 - fi
718 --elif test -n "$sock"; then
719 -+elif test X"$screen_cv_sys_sockets_usable" = Xyes; then
720 - AC_NOTE(- using unix-domain sockets, of course)
721 - else
722 - AC_MSG_ERROR(you have neither usable sockets nor usable pipes -> no screen)
723 -@@ -526,7 +555,11 @@
724 - dnl **** check the select implementation ****
725 - dnl
726 -
727 --AC_CHECKING(select return value)
728 -+AH_TEMPLATE([SELECT_BROKEN],
729 -+[If the select return value doesn't treat a descriptor that is
730 -+ usable for reading and writing as two hits, define SELECT_BROKEN.])
731 -+AC_CACHE_CHECK([for broken select return value],
732 -+ [screen_cv_sys_select_broken_retval],
733 - AC_TRY_RUN([
734 - #include <sys/types.h>
735 - #include <sys/stat.h>
736 -@@ -625,17 +658,26 @@
737 - exit(1);
738 - exit(0);
739 - }
740 --],AC_NOTE(- select is ok),
741 --AC_NOTE(- select can't count) AC_DEFINE(SELECT_BROKEN))
742 -+], screen_cv_sys_select_broken_retval=no,
743 -+screen_cv_sys_select_broken_retval=yes))
744 -+if test X"$screen_cv_sys_select_broken_retval" = Xyes; then
745 -+ AC_DEFINE(SELECT_BROKEN)
746 -+fi
747 -
748 - dnl
749 - dnl **** termcap or terminfo ****
750 - dnl
751 -+AH_TEMPLATE([TERMINFO],
752 -+[Define TERMINFO if your machine emulates the termcap routines
753 -+ with the terminfo database.
754 -+ Thus the .screenrc file is parsed for
755 -+ the command 'terminfo' and not 'termcap'])
756 -+
757 - AC_CHECKING(for tgetent)
758 - AC_TRY_LINK(,tgetent((char *)0, (char *)0);,,
759 - olibs="$LIBS"
760 --LIBS="-lcurses $olibs"
761 - AC_CHECKING(libcurses)
762 -+AC_CHECK_LIB(ncursesw,tgetent)
763 - AC_TRY_LINK(,[
764 - #ifdef __hpux
765 - __sorry_hpux_libcurses_is_totally_broken_in_10_10();
766 -@@ -654,24 +696,39 @@
767 - AC_TRY_LINK(,tgetent((char *)0, (char *)0);,,
768 - AC_MSG_ERROR(!!! no tgetent - no screen))))))
769 -
770 --AC_TRY_RUN([
771 -+AC_CACHE_CHECK([using terminfo database],[screen_cv_sys_terminfo_used],
772 -+ AC_TRY_RUN([
773 - main()
774 - {
775 - exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
776 --}], AC_NOTE(- you use the termcap database),
777 --AC_NOTE(- you use the terminfo database) AC_DEFINE(TERMINFO))
778 -+}
779 -+ ], screen_cv_sys_terminfo_used=no,
780 -+ screen_cv_sys_terminfo_used=yes)
781 -+)
782 -+
783 -+if test X"$screen_cv_sys_terminfo_used" = Xyes; then
784 -+ AC_DEFINE(TERMINFO)
785 -+fi
786 -+
787 - AC_CHECKING(ospeed)
788 -+AH_TEMPLATE([NEED_OSPEED],[If your library does not define ospeed, define this.])
789 - AC_TRY_LINK(extern short ospeed;,ospeed=5;,,AC_DEFINE(NEED_OSPEED))
790 -
791 - dnl
792 - dnl **** PTY specific things ****
793 - dnl
794 -+AH_TEMPLATE([HAVE_DEV_PTC],
795 -+[define HAVE_DEV_PTC if you have a /dev/ptc character special
796 -+ device.])
797 - AC_CHECKING(for /dev/ptc)
798 - if test -r /dev/ptc; then
799 - AC_DEFINE(HAVE_DEV_PTC)
800 - fi
801 -
802 - AC_CHECKING(for SVR4 ptys)
803 -+AH_TEMPLATE([HAVE_SVR4_PTYS],
804 -+[define HAVE_SVR4_PTYS if you have a /dev/ptmx character special
805 -+ device and support the ptsname(), grantpt(), unlockpt() functions.])
806 - sysvr4ptys=
807 - if test -c /dev/ptmx ; then
808 - AC_TRY_LINK([],[ptsname(0);grantpt(0);unlockpt(0);],[AC_DEFINE(HAVE_SVR4_PTYS)
809 -@@ -687,6 +744,13 @@
810 - fi
811 -
812 - AC_CHECKING(for ptyranges)
813 -+AH_TEMPLATE([PTYRANGE0],
814 -+[define PTYRANGE0 and or PTYRANGE1 if you want to adapt screen
815 -+ to unusual environments. E.g. For SunOs the defaults are "qpr" and
816 -+ "0123456789abcdef". For SunOs 4.1.2
817 -+ #define PTYRANGE0 "pqrstuvwxyzPQRST"
818 -+ is recommended by Dan Jacobson.])
819 -+AH_TEMPLATE([PTYRANGE1],[])
820 - if test -d /dev/ptym ; then
821 - pdir='/dev/ptym'
822 - else
823 -@@ -850,20 +914,39 @@
824 - dnl
825 - dnl **** loadav ****
826 - dnl
827 -+
828 -+AH_TEMPLATE([LOADAV],
829 -+[If you want the "time" command to display the current load average
830 -+ define LOADAV. Maybe you must install screen with the needed
831 -+ privileges to read /dev/kmem.
832 -+ Note that NLIST_ stuff is only checked, when getloadavg() is not available.
833 -+])
834 -+AH_TEMPLATE([LOADAV_NUM])
835 -+AH_TEMPLATE([LOADAV_TYPE])
836 -+AH_TEMPLATE([LOADAV_SCALE])
837 -+AH_TEMPLATE([LOADAV_GETLOADAVG])
838 -+AH_TEMPLATE([LOADAV_UNIX])
839 -+AH_TEMPLATE([LOADAV_AVENRUN])
840 -+AH_TEMPLATE([LOADAV_USE_NLIST64])
841 -+
842 -+AH_TEMPLATE([NLIST_DECLARED])
843 -+AH_TEMPLATE([NLIST_STRUCT])
844 -+AH_TEMPLATE([NLIST_NAME_UNION])
845 -+
846 - AC_CHECKING(for libutil(s))
847 --test -f /usr/lib/libutils.a && LIBS="$LIBS -lutils"
848 --test -f /usr/lib/libutil.a && LIBS="$LIBS -lutil"
849 -+dnl I have no idea whether "login" is an appropriate symbol to check for here - Hannes
850 -+AC_CHECK_LIB(utils,login)
851 -+AC_CHECK_LIB(util,login)
852 -
853 - AC_CHECKING(getloadavg)
854 - AC_TRY_LINK(,[getloadavg((double *)0, 0);],
855 - AC_DEFINE(LOADAV_GETLOADAVG) load=1,
856 --if test -f /usr/lib/libkvm.a ; then
857 - olibs="$LIBS"
858 --LIBS="$LIBS -lkvm"
859 -+AC_CHECK_LIB(kvm,kvm_open,
860 - AC_CHECKING(getloadavg with -lkvm)
861 - AC_TRY_LINK(,[getloadavg((double *)0, 0);],
862 - AC_DEFINE(LOADAV_GETLOADAVG) load=1, LIBS="$olibs")
863 --fi
864 -+)
865 - )
866 -
867 - if test -z "$load" ; then
868 -@@ -1005,6 +1088,11 @@
869 - dnl
870 - dnl **** signal handling ****
871 - dnl
872 -+
873 -+AH_TEMPLATE([SIGVOID],
874 -+[Define SIGVOID if your signal handlers return void. On older
875 -+ systems, signal returns int, but on newer ones, it returns void.])
876 -+
877 - if test -n "$posix" ; then
878 -
879 - dnl POSIX has reliable signals with void return type.
880 -@@ -1014,6 +1102,7 @@
881 - else
882 -
883 - AC_CHECKING(return type of signal handlers)
884 -+AH_TEMPLATE([USESIGSET], [Define USESIGSET if you have sigset for BSD 4.1 reliable signals.])
885 - AC_TRY_COMPILE(
886 - [#include <sys/types.h>
887 - #include <signal.h>
888 -@@ -1033,6 +1122,9 @@
889 - #endif
890 - ], AC_DEFINE(USESIGSET))
891 - AC_CHECKING(signal implementation)
892 -+AH_TEMPLATE([SYSVSIGS],
893 -+[Define SYSVSIGS if signal handlers must be reinstalled after
894 -+ they have been called.])
895 - AC_TRY_RUN([
896 - #include <sys/types.h>
897 - #include <signal.h>
898 -@@ -1075,13 +1167,14 @@
899 - dnl
900 -
901 - AC_CHECKING(for crypt and sec libraries)
902 --test -f /lib/libcrypt_d.a || test -f /usr/lib/libcrypt_d.a && LIBS="$LIBS -lcrypt_d"
903 -+dnl I have no idea whether "crypt" is an appropriate symbol to check for here - Hannes
904 -+AC_CHECK_LIB(crypt_d,crypt)
905 - oldlibs="$LIBS"
906 --LIBS="$LIBS -lcrypt"
907 - AC_CHECKING(crypt)
908 - AC_TRY_LINK(,,,LIBS="$oldlibs")
909 --test -f /lib/libsec.a || test -f /usr/lib/libsec.a && LIBS="$LIBS -lsec"
910 --test -f /lib/libshadow.a || test -f /usr/lib/libshadow.a && LIBS="$LIBS -lshadow"
911 -+AC_CHECK_LIB(crypt,crypt)
912 -+AC_CHECK_LIB(sec,crypt)
913 -+AC_CHECK_LIB(shadow,getspnam)
914 - oldlibs="$LIBS"
915 - LIBS="$LIBS -lsun"
916 - AC_CHECKING(IRIX sun library)
917 -@@ -1104,6 +1197,13 @@
918 - dnl **** misc things ****
919 - dnl
920 - AC_CHECKING(wait union)
921 -+AH_TEMPLATE([BSDWAIT],
922 -+[Define BSDWAIT if your system defines a 'union wait' in <sys/wait.h>
923 -+
924 -+ Only allow BSDWAIT i.e. wait3 on nonposix systems, since
925 -+ posix implies wait(3) and waitpid(3). vdlinden@×××××××.nl
926 -+ TODO(Hannes) shipped config.h.in does that with a #ifdef
927 -+])
928 - AC_TRY_COMPILE([#include <sys/types.h>
929 - #include <sys/wait.h>
930 - ],[
931 -@@ -1114,6 +1214,13 @@
932 - #endif
933 - ],AC_DEFINE(BSDWAIT))
934 -
935 -+AH_TEMPLATE([TERMIO],
936 -+[Define TERMIO if you have struct termio instead of struct sgttyb.
937 -+ This is usually the case for SVID systems, where BSD uses sgttyb.
938 -+ POSIX systems should define this anyway, even though they use
939 -+ struct termios.])
940 -+
941 -+
942 - if test -z "$butterfly"; then
943 - AC_CHECKING(for termio or termios)
944 - AC_TRY_CPP([#include <termio.h>], AC_DEFINE(TERMIO),
945 -@@ -1123,17 +1230,35 @@
946 - )
947 - fi
948 -
949 -+AH_TEMPLATE([CYTERMIO], [Define CYTERMIO if you have cyrillic termio modes.])
950 -+
951 - dnl AC_CHECK_HEADER(shadow.h, AC_DEFINE(SHADOWPW))
952 - AC_CHECKING(getspnam)
953 -+AH_TEMPLATE([SHADOWPW],
954 -+[If the passwords are stored in a shadow file and you want the
955 -+ builtin lock to work properly, define SHADOWPW.])
956 - AC_TRY_LINK([#include <shadow.h>], [getspnam("x");],AC_DEFINE(SHADOWPW))
957 -
958 - AC_CHECKING(getttyent)
959 -+AH_TEMPLATE([GETTTYENT],
960 -+[If your system has the new format /etc/ttys (like 4.3 BSD) and the
961 -+ getttyent(3) library functions, define GETTTYENT.])
962 - AC_TRY_LINK(,[getttyent();], AC_DEFINE(GETTTYENT))
963 -
964 - AC_CHECKING(fdwalk)
965 -+AH_TEMPLATE([HAVE_FDWALK],
966 -+[Newer versions of Solaris include fdwalk, which can greatly improve
967 -+ the startup time of screen; otherwise screen spends a lot of time
968 -+ closing file descriptors.])
969 - AC_TRY_LINK([#include <stdlib.h>], [fdwalk(NULL, NULL);],AC_DEFINE(HAVE_FDWALK))
970 -
971 --AC_CHECKING(whether memcpy/memmove/bcopy handles overlapping arguments)
972 -+AH_TEMPLATE([USEBCOPY],
973 -+[Define USEBCOPY if the bcopy/memcpy from your system's C library
974 -+ supports the overlapping of source and destination blocks. When
975 -+ undefined, screen uses its own (probably slower) version of bcopy().])
976 -+
977 -+AC_CACHE_CHECK([if bcopy handles overlap],
978 -+ [screen_cv_sys_bcopy_overlap],
979 - AC_TRY_RUN([
980 - main() {
981 - char buf[10];
982 -@@ -1146,7 +1271,21 @@
983 - if (strncmp(buf, "cdedef", 6))
984 - exit(1);
985 - exit(0); /* libc version works properly. */
986 --}], AC_DEFINE(USEBCOPY))
987 -+}], screen_cv_sys_bcopy_overlap=yes,
988 -+screen_cv_sys_bcopy_overlap=no))
989 -+if test X"$screen_cv_sys_bcopy_overlap" = Xyes; then
990 -+ AC_DEFINE(USEBCOPY)
991 -+fi
992 -+
993 -+AH_TEMPLATE([USEMEMMOVE],
994 -+[SYSV machines may have a working memcpy() -- Oh, this is
995 -+ quite unlikely. Tell me if you see one.
996 -+ "But then, memmove() should work, if at all available" he thought...
997 -+ Boing, never say "works everywhere" unless you checked SCO UNIX.
998 -+ Their memove fails the test in the configure script. Sigh. (Juergen)
999 -+])
1000 -+AC_CACHE_CHECK([if memmove handles overlap],
1001 -+ [screen_cv_sys_memmove_overlap],
1002 -
1003 - AC_TRY_RUN([
1004 - #define bcopy(s,d,l) memmove(d,s,l)
1005 -@@ -1161,9 +1300,15 @@
1006 - if (strncmp(buf, "cdedef", 6))
1007 - exit(1);
1008 - exit(0); /* libc version works properly. */
1009 --}], AC_DEFINE(USEMEMMOVE))
1010 --
1011 -+}], screen_cv_sys_memmove_overlap=yes,
1012 -+screen_cv_sys_memmove_overlap=no))
1013 -+if test X"$screen_cv_sys_memmove_overlap" = Xyes; then
1014 -+ AC_DEFINE(USEMEMMOVE)
1015 -+fi
1016 -
1017 -+AH_TEMPLATE([USEMEMCPY],[])
1018 -+AC_CACHE_CHECK([if memcpy handles overlap],
1019 -+ [screen_cv_sys_memcpy_overlap],
1020 - AC_TRY_RUN([
1021 - #define bcopy(s,d,l) memcpy(d,s,l)
1022 - main() {
1023 -@@ -1177,9 +1322,19 @@
1024 - if (strncmp(buf, "cdedef", 6))
1025 - exit(1);
1026 - exit(0); /* libc version works properly. */
1027 --}], AC_DEFINE(USEMEMCPY))
1028 -+}], screen_cv_sys_memcpy_overlap=yes,
1029 -+screen_cv_sys_memcpy_overlap=no))
1030 -+if test X"$screen_cv_sys_memcpy_overlap" = Xyes; then
1031 -+ AC_DEFINE(USEMEMCPY)
1032 -+fi
1033 -
1034 - AC_MSG_CHECKING(long file names)
1035 -+AH_TEMPLATE([NAME_MAX],
1036 -+[If you are on a SYS V machine that restricts filename length to 14
1037 -+ characters, you may need to enforce that by setting NAME_MAX to 14])
1038 -+dnl TODO(Hannes) shipped config.h.in has
1039 -+dnl #undef NAME_MAX /* KEEP_UNDEF_HERE override system value */
1040 -+dnl ahead of this
1041 - (echo 1 > /tmp/conftest9012345) 2>/dev/null
1042 - (echo 2 > /tmp/conftest9012346) 2>/dev/null
1043 - val=`cat /tmp/conftest9012345 2>/dev/null`
1044 -@@ -1192,6 +1347,10 @@
1045 - rm -f /tmp/conftest*
1046 -
1047 - AC_MSG_CHECKING(for vsprintf)
1048 -+AH_TEMPLATE([USEVARARGS],
1049 -+[If your system has vsprintf() and requires the use of the macros in
1050 -+ "varargs.h" to use functions with variable arguments,
1051 -+ define USEVARARGS.])
1052 - AC_TRY_LINK([#include <stdarg.h>],[va_list valist; vsprintf(0,0,valist);],
1053 - [AC_MSG_RESULT(yes);AC_DEFINE(USEVARARGS)],
1054 - [AC_MSG_RESULT(no)])
1055 -@@ -1199,12 +1358,19 @@
1056 - AC_HEADER_DIRENT
1057 -
1058 - AC_MSG_CHECKING(for setenv)
1059 -+AH_TEMPLATE([USESETENV], [If your system has setenv() and unsetenv() define USESETENV])
1060 - AC_TRY_LINK(,[setenv((char *)0,(char *)0);unsetenv((char *)0);], AC_MSG_RESULT(yes);AC_DEFINE(USESETENV),
1061 - AC_MSG_RESULT(no)
1062 - AC_MSG_CHECKING(for putenv)
1063 -+AH_TEMPLATE([NEEDPUTENV],
1064 -+[If your system does not come with a setenv()/putenv()/getenv()
1065 -+ functions, you may bring in our own code by defining NEEDPUTENV.])
1066 - AC_TRY_LINK(,[putenv((char *)0);unsetenv((char *)0);], AC_MSG_RESULT(yes) , AC_MSG_RESULT(no);AC_DEFINE(NEEDPUTENV)
1067 - ))
1068 - AC_MSG_CHECKING([for nl_langinfo(CODESET)])
1069 -+AH_TEMPLATE([HAVE_NL_LANGINFO],
1070 -+[define HAVE_NL_LANGINFO if your system has the nl_langinfo() call
1071 -+ and <langinfo.h> defines CODESET.])
1072 - AC_TRY_LINK([
1073 - #include <langinfo.h>
1074 - ],[nl_langinfo(CODESET);], AC_MSG_RESULT(yes);AC_DEFINE(HAVE_NL_LANGINFO), AC_MSG_RESULT(no))
1075 -@@ -1254,7 +1420,8 @@
1076 - dnl Ptx bug workaround -- insert -lc after -ltermcap
1077 - test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
1078 -
1079 --AC_TRY_RUN(main(){exit(0);},,AC_MSG_ERROR(Can't run the compiler - internal error. Sorry.))
1080 -+AC_MSG_CHECKING(compiler sanity)
1081 -+AC_TRY_RUN(main(){exit(0);},,AC_MSG_ERROR(Can't run the compiler - internal error. Sorry.), AC_MSG_WARN(Skipping test due to crosscompilation))
1082 -
1083 - ETCSCREENRC="\"/usr/local/etc/screenrc\""
1084 - if test -n "$prefix"; then
1085
1086 diff --git a/app-misc/screen/files/screen-4.0.3-setenv_autoconf.patch b/app-misc/screen/files/screen-4.0.3-setenv_autoconf.patch
1087 deleted file mode 100644
1088 index e47a15d..0000000
1089 --- a/app-misc/screen/files/screen-4.0.3-setenv_autoconf.patch
1090 +++ /dev/null
1091 @@ -1,79 +0,0 @@
1092 ---- configure.in.DIST 2006-10-31 21:39:07.010473000 -0800
1093 -+++ configure.in 2006-10-31 21:43:05.630162000 -0800
1094 -@@ -1211,15 +1211,32 @@
1095 - AC_HEADER_DIRENT
1096 -
1097 - AC_MSG_CHECKING(for setenv)
1098 --AH_TEMPLATE([USESETENV], [If your system has setenv() and unsetenv() define USESETENV])
1099 --AC_TRY_LINK(,[setenv((char *)0,(char *)0);unsetenv((char *)0);], AC_MSG_RESULT(yes);AC_DEFINE(USESETENV),
1100 --AC_MSG_RESULT(no)
1101 --AC_MSG_CHECKING(for putenv)
1102 --AH_TEMPLATE([NEEDPUTENV],
1103 --[If your system does not come with a setenv()/putenv()/getenv()
1104 -- functions, you may bring in our own code by defining NEEDPUTENV.])
1105 --AC_TRY_LINK(,[putenv((char *)0);unsetenv((char *)0);], AC_MSG_RESULT(yes) , AC_MSG_RESULT(no);AC_DEFINE(NEEDPUTENV)
1106 --))
1107 -+if test -z "$ac_setenv_args"; then
1108 -+ AC_TRY_LINK(
1109 -+ [#include <stdlib.h>],
1110 -+ [
1111 -+ setenv((char *) 0, (char *) 0, 0);
1112 -+ ], ac_setenv_args=3)
1113 -+fi
1114 -+if test -z "$ac_setenv_args"; then
1115 -+ AC_TRY_LINK(
1116 -+ [#include <stdlib.h>],
1117 -+ [
1118 -+ setenv((char *) 0, (char *) 0);
1119 -+ ], ac_setenv_args=2)
1120 -+fi
1121 -+if test -n "$ac_setenv_args"; then
1122 -+ AC_DEFINE(USESETENV)
1123 -+ if test "$ac_setenv_args" = 3; then
1124 -+ AC_DEFINE(HAVE_SETENV_3)
1125 -+ elif test "$ac_setenv_args" = 2; then
1126 -+ AC_DEFINE(HAVE_SETENV_2)
1127 -+ fi
1128 -+else
1129 -+ AC_MSG_RESULT(no)
1130 -+ AC_MSG_CHECKING(for putenv)
1131 -+ AC_TRY_LINK(,[putenv((char *)0);unsetenv((char *)0);], AC_MSG_RESULT(yes) , AC_MSG_RESULT(no);AC_DEFINE(NEEDPUTENV))
1132 -+fi
1133 - AC_MSG_CHECKING([for nl_langinfo(CODESET)])
1134 - AH_TEMPLATE([HAVE_NL_LANGINFO],
1135 - [define HAVE_NL_LANGINFO if your system has the nl_langinfo() call
1136 ---- config.h.in.DIST 2006-10-31 21:43:23.233714000 -0800
1137 -+++ config.h.in 2006-10-31 21:44:27.346275000 -0800
1138 -@@ -548,6 +548,16 @@
1139 - #undef USESETENV
1140 -
1141 - /*
1142 -+ * If setenv() takes 3 arguments define HAVE_SETENV_3
1143 -+ */
1144 -+#undef HAVE_SETENV_3
1145 -+
1146 -+/*
1147 -+ * If setenv() takes 2 arguments define HAVE_SETENV_2
1148 -+ */
1149 -+#undef HAVE_SETENV_2
1150 -+
1151 -+/*
1152 - * If your system does not come with a setenv()/putenv()/getenv()
1153 - * functions, you may bring in our own code by defining NEEDPUTENV.
1154 - */
1155 ---- misc.c.DIST 2006-10-31 20:55:42.481760000 -0800
1156 -+++ misc.c 2006-10-31 21:53:24.143551000 -0800
1157 -@@ -613,11 +613,11 @@
1158 - */
1159 - # endif /* NEEDSETENV */
1160 - #else /* USESETENV */
1161 --# if defined(linux) || defined(__convex__) || (BSD >= 199103)
1162 -+# if HAVE_SETENV_3
1163 - setenv(var, value, 1);
1164 - # else
1165 - setenv(var, value);
1166 --# endif /* linux || convex || BSD >= 199103 */
1167 -+# endif /* HAVE_SETENV_3 */
1168 - #endif /* USESETENV */
1169 - }
1170 -
1171
1172 diff --git a/app-misc/screen/screen-4.0.3-r6.ebuild b/app-misc/screen/screen-4.0.3-r6.ebuild
1173 deleted file mode 100644
1174 index bcea1e7..0000000
1175 --- a/app-misc/screen/screen-4.0.3-r6.ebuild
1176 +++ /dev/null
1177 @@ -1,163 +0,0 @@
1178 -# Copyright 1999-2014 Gentoo Foundation
1179 -# Distributed under the terms of the GNU General Public License v2
1180 -# $Id$
1181 -
1182 -EAPI=4
1183 -
1184 -WANT_AUTOCONF="2.5"
1185 -
1186 -inherit eutils flag-o-matic toolchain-funcs pam autotools user
1187 -
1188 -DESCRIPTION="Full-screen window manager that multiplexes physical terminals between several processes"
1189 -HOMEPAGE="https://www.gnu.org/software/screen/"
1190 -SRC_URI="ftp://ftp.uni-erlangen.de/pub/utilities/${PN}/${P}.tar.gz"
1191 -
1192 -LICENSE="GPL-2"
1193 -SLOT="0"
1194 -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~hppa-hpux ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1195 -IUSE="debug nethack pam selinux multiuser"
1196 -
1197 -DEPEND=">=sys-libs/ncurses-5.2
1198 - pam? ( virtual/pam )"
1199 -RDEPEND="${DEPEND}
1200 - selinux? ( sec-policy/selinux-screen )"
1201 -
1202 -pkg_setup() {
1203 - # Make sure utmp group exists, as it's used later on.
1204 - enewgroup utmp 406
1205 -}
1206 -
1207 -src_prepare() {
1208 - # Bug 34599: integer overflow in 4.0.1
1209 - # (Nov 29 2003 -solar)
1210 - epatch "${FILESDIR}"/screen-4.0.1-int-overflow-fix.patch
1211 -
1212 - # Bug 31070: configure problem which affects alpha
1213 - # (13 Jan 2004 agriffis)
1214 - epatch "${FILESDIR}"/screen-4.0.1-vsprintf.patch
1215 -
1216 - # uclibc doesnt have sys/stropts.h
1217 - if ! (echo '#include <sys/stropts.h>' | $(tc-getCC) -E - &>/dev/null) ; then
1218 - epatch "${FILESDIR}"/4.0.2-no-pty.patch
1219 - fi
1220 -
1221 - # Don't use utempter even if it is found on the system
1222 - epatch "${FILESDIR}"/4.0.2-no-utempter.patch
1223 -
1224 - # Don't link against libelf even if it is found on the system
1225 - epatch "${FILESDIR}"/4.0.2-no-libelf.patch
1226 -
1227 - # Patch for time function on 64bit systems
1228 - epatch "${FILESDIR}"/4.0.2-64bit-time.patch
1229 -
1230 - # Patch that makes %u work for windowlist -b formats
1231 - epatch "${FILESDIR}"/4.0.2-windowlist-multiuser-fix.patch
1232 -
1233 - # Open tty in non-blocking mode
1234 - epatch "${FILESDIR}"/4.0.2-nonblock.patch
1235 -
1236 - # compability for sys-devel/autoconf-2.62
1237 - epatch "${FILESDIR}"/screen-4.0.3-config.h-autoconf-2.62.patch
1238 -
1239 - # crosscompile patch
1240 - epatch "${FILESDIR}"/"${P}"-crosscompile.patch
1241 -
1242 - # sched.h is a system header and causes problems with some C libraries
1243 - mv sched.h _sched.h || die
1244 - sed -i '/include/s:sched.h:_sched.h:' screen.h || die
1245 -
1246 - # Allow for more rendition (color/attribute) changes in status bars
1247 - sed -i \
1248 - -e "s:#define MAX_WINMSG_REND 16:#define MAX_WINMSG_REND 64:" \
1249 - screen.c \
1250 - || die "sed screen.c failed"
1251 -
1252 - # Fix manpage.
1253 - sed -i \
1254 - -e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
1255 - -e "s:/usr/local/screens:${EPREFIX}/var/run/screen:g" \
1256 - -e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
1257 - -e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \
1258 - -e "s:/local/screens/S-:${EPREFIX}/var/run/screen/S-:g" \
1259 - doc/screen.1 \
1260 - || die "sed doc/screen.1 failed"
1261 -
1262 - # proper setenv detection for Solaris
1263 - epatch "${FILESDIR}"/${P}-setenv_autoconf.patch
1264 -
1265 - # Allow TERM string large enough to use with rxvt-unicode-256color
1266 - # Allow usernames up to 32 chars
1267 - epatch "${FILESDIR}"/${PV}-extend-d_termname-ng2.patch
1268 -
1269 - # support CPPFLAGS
1270 - epatch "${FILESDIR}"/${P}-cppflags.patch
1271 -
1272 - sed \
1273 - -e 's:termlib:tinfo:g' \
1274 - -i configure.in || die
1275 -
1276 - # reconfigure
1277 - eautoconf
1278 -}
1279 -
1280 -src_configure() {
1281 - append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
1282 -
1283 - [[ ${CHOST} == *-solaris* ]] && append-libs -lsocket -lnsl
1284 -
1285 - use nethack || append-cppflags "-DNONETHACK"
1286 - use debug && append-cppflags "-DDEBUG"
1287 -
1288 - econf \
1289 - --with-socket-dir="${EPREFIX}/var/run/screen" \
1290 - --with-sys-screenrc="${EPREFIX}/etc/screenrc" \
1291 - --with-pty-mode=0620 \
1292 - --with-pty-group=5 \
1293 - --enable-rxvt_osc \
1294 - --enable-telnet \
1295 - --enable-colors256 \
1296 - $(use_enable pam) \
1297 - $(use multiuser || echo --disable-socket-dir)
1298 -
1299 - # Second try to fix bug 12683, this time without changing term.h
1300 - # The last try seemed to break screen at run-time.
1301 - # (16 Jan 2003 agriffis)
1302 - LC_ALL=POSIX make term.h || die "Failed making term.h"
1303 -}
1304 -
1305 -src_install() {
1306 - dobin screen
1307 -
1308 - if use multiuser || use prefix
1309 - then
1310 - fperms 4755 /usr/bin/screen
1311 - else
1312 - fowners root:utmp /usr/bin/screen
1313 - fperms 2755 /usr/bin/screen
1314 - fi
1315 -
1316 - insinto /usr/share/screen
1317 - doins terminfo/{screencap,screeninfo.src}
1318 - insinto /usr/share/screen/utf8encodings
1319 - doins utf8encodings/??
1320 - insinto /etc
1321 - doins "${FILESDIR}"/screenrc
1322 -
1323 - pamd_mimic_system screen auth
1324 -
1325 - dodoc \
1326 - README ChangeLog INSTALL TODO NEWS* patchlevel.h \
1327 - doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
1328 -
1329 - doman doc/screen.1
1330 - doinfo doc/screen.info*
1331 -}
1332 -
1333 -pkg_postinst() {
1334 - if [[ -z ${REPLACING_VERSIONS} ]]
1335 - then
1336 - elog "Some dangerous key bindings have been removed or changed to more safe values."
1337 - elog "We enable some xterm hacks in our default screenrc, which might break some"
1338 - elog "applications. Please check /etc/screenrc for information on these changes."
1339 - fi
1340 -}
1341
1342 diff --git a/app-misc/screen/screen-4.0.3-r7.ebuild b/app-misc/screen/screen-4.0.3-r7.ebuild
1343 deleted file mode 100644
1344 index 63d6ed9..0000000
1345 --- a/app-misc/screen/screen-4.0.3-r7.ebuild
1346 +++ /dev/null
1347 @@ -1,163 +0,0 @@
1348 -# Copyright 1999-2014 Gentoo Foundation
1349 -# Distributed under the terms of the GNU General Public License v2
1350 -# $Id$
1351 -
1352 -EAPI=4
1353 -
1354 -WANT_AUTOCONF="2.5"
1355 -
1356 -inherit eutils flag-o-matic toolchain-funcs pam autotools user
1357 -
1358 -DESCRIPTION="Full-screen window manager that multiplexes physical terminals between several processes"
1359 -HOMEPAGE="https://www.gnu.org/software/screen/"
1360 -SRC_URI="ftp://ftp.uni-erlangen.de/pub/utilities/${PN}/${P}.tar.gz"
1361 -
1362 -LICENSE="GPL-2"
1363 -SLOT="0"
1364 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~hppa-hpux ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1365 -IUSE="debug nethack pam selinux multiuser"
1366 -
1367 -DEPEND=">=sys-libs/ncurses-5.2
1368 - pam? ( virtual/pam )"
1369 -RDEPEND="${DEPEND}
1370 - selinux? ( sec-policy/selinux-screen )"
1371 -
1372 -pkg_setup() {
1373 - # Make sure utmp group exists, as it's used later on.
1374 - enewgroup utmp 406
1375 -}
1376 -
1377 -src_prepare() {
1378 - # Bug 34599: integer overflow in 4.0.1
1379 - # (Nov 29 2003 -solar)
1380 - epatch "${FILESDIR}"/screen-4.0.1-int-overflow-fix.patch
1381 -
1382 - # Bug 31070: configure problem which affects alpha
1383 - # (13 Jan 2004 agriffis)
1384 - epatch "${FILESDIR}"/screen-4.0.1-vsprintf.patch
1385 -
1386 - # uclibc doesnt have sys/stropts.h
1387 - if ! (echo '#include <sys/stropts.h>' | $(tc-getCC) -E - &>/dev/null) ; then
1388 - epatch "${FILESDIR}"/4.0.2-no-pty.patch
1389 - fi
1390 -
1391 - # Don't use utempter even if it is found on the system
1392 - epatch "${FILESDIR}"/4.0.2-no-utempter.patch
1393 -
1394 - # Don't link against libelf even if it is found on the system
1395 - epatch "${FILESDIR}"/4.0.2-no-libelf.patch
1396 -
1397 - # Patch for time function on 64bit systems
1398 - epatch "${FILESDIR}"/4.0.2-64bit-time.patch
1399 -
1400 - # Patch that makes %u work for windowlist -b formats
1401 - epatch "${FILESDIR}"/4.0.2-windowlist-multiuser-fix.patch
1402 -
1403 - # Open tty in non-blocking mode
1404 - epatch "${FILESDIR}"/4.0.2-nonblock.patch
1405 -
1406 - # compability for sys-devel/autoconf-2.62
1407 - epatch "${FILESDIR}"/screen-4.0.3-config.h-autoconf-2.62.patch
1408 -
1409 - # crosscompile patch
1410 - epatch "${FILESDIR}"/"${P}"-crosscompile.patch
1411 -
1412 - # sched.h is a system header and causes problems with some C libraries
1413 - mv sched.h _sched.h || die
1414 - sed -i '/include/s:sched.h:_sched.h:' screen.h || die
1415 -
1416 - # Allow for more rendition (color/attribute) changes in status bars
1417 - sed -i \
1418 - -e "s:#define MAX_WINMSG_REND 16:#define MAX_WINMSG_REND 64:" \
1419 - screen.c \
1420 - || die "sed screen.c failed"
1421 -
1422 - # Fix manpage.
1423 - sed -i \
1424 - -e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
1425 - -e "s:/usr/local/screens:${EPREFIX}/var/run/screen:g" \
1426 - -e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
1427 - -e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \
1428 - -e "s:/local/screens/S-:${EPREFIX}/var/run/screen/S-:g" \
1429 - doc/screen.1 \
1430 - || die "sed doc/screen.1 failed"
1431 -
1432 - # proper setenv detection for Solaris
1433 - epatch "${FILESDIR}"/${P}-setenv_autoconf.patch
1434 -
1435 - # Allow TERM string large enough to use with rxvt-unicode-256color
1436 - # Allow usernames up to 32 chars
1437 - epatch "${FILESDIR}"/${PV}-extend-d_termname-ng2.patch
1438 -
1439 - # support CPPFLAGS
1440 - epatch "${FILESDIR}"/${P}-cppflags.patch
1441 -
1442 - sed \
1443 - -e 's:termlib:tinfo:g' \
1444 - -i configure.in || die
1445 -
1446 - # reconfigure
1447 - eautoconf
1448 -}
1449 -
1450 -src_configure() {
1451 - append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
1452 -
1453 - [[ ${CHOST} == *-solaris* ]] && append-libs -lsocket -lnsl
1454 -
1455 - use nethack || append-cppflags "-DNONETHACK"
1456 - use debug && append-cppflags "-DDEBUG"
1457 -
1458 - econf \
1459 - --with-socket-dir="${EPREFIX}/var/run/screen" \
1460 - --with-sys-screenrc="${EPREFIX}/etc/screenrc" \
1461 - --with-pty-mode=0620 \
1462 - --with-pty-group=5 \
1463 - --enable-rxvt_osc \
1464 - --enable-telnet \
1465 - --enable-colors256 \
1466 - $(use_enable pam) \
1467 - $(use multiuser || echo --disable-socket-dir)
1468 -
1469 - # Second try to fix bug 12683, this time without changing term.h
1470 - # The last try seemed to break screen at run-time.
1471 - # (16 Jan 2003 agriffis)
1472 - LC_ALL=POSIX make term.h || die "Failed making term.h"
1473 -}
1474 -
1475 -src_install() {
1476 - dobin screen
1477 -
1478 - if use multiuser || use prefix
1479 - then
1480 - fperms 4755 /usr/bin/screen
1481 - else
1482 - fowners root:utmp /usr/bin/screen
1483 - fperms 2755 /usr/bin/screen
1484 - fi
1485 -
1486 - insinto /usr/share/screen
1487 - doins terminfo/{screencap,screeninfo.src}
1488 - insinto /usr/share/screen/utf8encodings
1489 - doins utf8encodings/??
1490 - insinto /etc
1491 - doins "${FILESDIR}"/screenrc
1492 -
1493 - pamd_mimic_system screen auth
1494 -
1495 - dodoc \
1496 - README ChangeLog INSTALL TODO NEWS* patchlevel.h \
1497 - doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
1498 -
1499 - doman doc/screen.1
1500 - doinfo doc/screen.info*
1501 -}
1502 -
1503 -pkg_postinst() {
1504 - if [[ -z ${REPLACING_VERSIONS} ]]
1505 - then
1506 - elog "Some dangerous key bindings have been removed or changed to more safe values."
1507 - elog "We enable some xterm hacks in our default screenrc, which might break some"
1508 - elog "applications. Please check /etc/screenrc for information on these changes."
1509 - fi
1510 -}
1511
1512 diff --git a/app-misc/screen/screen-4.0.3-r8.ebuild b/app-misc/screen/screen-4.0.3-r8.ebuild
1513 deleted file mode 100644
1514 index 3e574a1..0000000
1515 --- a/app-misc/screen/screen-4.0.3-r8.ebuild
1516 +++ /dev/null
1517 @@ -1,173 +0,0 @@
1518 -# Copyright 1999-2014 Gentoo Foundation
1519 -# Distributed under the terms of the GNU General Public License v2
1520 -# $Id$
1521 -
1522 -EAPI=4
1523 -
1524 -WANT_AUTOCONF="2.5"
1525 -
1526 -inherit eutils flag-o-matic toolchain-funcs pam autotools user
1527 -
1528 -DESCRIPTION="Full-screen window manager that multiplexes physical terminals between several processes"
1529 -HOMEPAGE="https://www.gnu.org/software/screen/"
1530 -SRC_URI="ftp://ftp.uni-erlangen.de/pub/utilities/${PN}/${P}.tar.gz"
1531 -
1532 -LICENSE="GPL-2"
1533 -SLOT="0"
1534 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~hppa-hpux ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1535 -IUSE="debug nethack pam selinux multiuser"
1536 -
1537 -DEPEND=">=sys-libs/ncurses-5.2
1538 - pam? ( virtual/pam )"
1539 -RDEPEND="${DEPEND}
1540 - selinux? ( sec-policy/selinux-screen )
1541 - !<sys-apps/openrc-0.11.6"
1542 -
1543 -pkg_setup() {
1544 - # Make sure utmp group exists, as it's used later on.
1545 - enewgroup utmp 406
1546 -}
1547 -
1548 -src_prepare() {
1549 - # Bug 34599: integer overflow in 4.0.1
1550 - # (Nov 29 2003 -solar)
1551 - epatch "${FILESDIR}"/screen-4.0.1-int-overflow-fix.patch
1552 -
1553 - # Bug 31070: configure problem which affects alpha
1554 - # (13 Jan 2004 agriffis)
1555 - epatch "${FILESDIR}"/screen-4.0.1-vsprintf.patch
1556 -
1557 - # uclibc doesnt have sys/stropts.h
1558 - if ! (echo '#include <sys/stropts.h>' | $(tc-getCC) -E - &>/dev/null) ; then
1559 - epatch "${FILESDIR}"/4.0.2-no-pty.patch
1560 - fi
1561 -
1562 - # Don't use utempter even if it is found on the system
1563 - epatch "${FILESDIR}"/4.0.2-no-utempter.patch
1564 -
1565 - # Don't link against libelf even if it is found on the system
1566 - epatch "${FILESDIR}"/4.0.2-no-libelf.patch
1567 -
1568 - # Patch for time function on 64bit systems
1569 - epatch "${FILESDIR}"/4.0.2-64bit-time.patch
1570 -
1571 - # Patch that makes %u work for windowlist -b formats
1572 - epatch "${FILESDIR}"/4.0.2-windowlist-multiuser-fix.patch
1573 -
1574 - # Open tty in non-blocking mode
1575 - epatch "${FILESDIR}"/4.0.2-nonblock.patch
1576 -
1577 - # compability for sys-devel/autoconf-2.62
1578 - epatch "${FILESDIR}"/screen-4.0.3-config.h-autoconf-2.62.patch
1579 -
1580 - # crosscompile patch
1581 - epatch "${FILESDIR}"/"${P}"-crosscompile.patch
1582 -
1583 - # sched.h is a system header and causes problems with some C libraries
1584 - mv sched.h _sched.h || die
1585 - sed -i '/include/s:sched.h:_sched.h:' screen.h || die
1586 -
1587 - # Allow for more rendition (color/attribute) changes in status bars
1588 - sed -i \
1589 - -e "s:#define MAX_WINMSG_REND 16:#define MAX_WINMSG_REND 64:" \
1590 - screen.c \
1591 - || die "sed screen.c failed"
1592 -
1593 - # Fix manpage.
1594 - sed -i \
1595 - -e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
1596 - -e "s:/usr/local/screens:${EPREFIX}/run/screen:g" \
1597 - -e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
1598 - -e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \
1599 - -e "s:/local/screens/S-:${EPREFIX}/run/screen/S-:g" \
1600 - doc/screen.1 \
1601 - || die "sed doc/screen.1 failed"
1602 -
1603 - # proper setenv detection for Solaris
1604 - epatch "${FILESDIR}"/${P}-setenv_autoconf.patch
1605 -
1606 - # Allow TERM string large enough to use with rxvt-unicode-256color
1607 - # Allow usernames up to 32 chars
1608 - epatch "${FILESDIR}"/${PV}-extend-d_termname-ng2.patch
1609 -
1610 - # support CPPFLAGS
1611 - epatch "${FILESDIR}"/${P}-cppflags.patch
1612 -
1613 - sed \
1614 - -e 's:termlib:tinfo:g' \
1615 - -i configure.in || die
1616 -
1617 - # reconfigure
1618 - eautoconf
1619 -}
1620 -
1621 -src_configure() {
1622 - append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
1623 -
1624 - [[ ${CHOST} == *-solaris* ]] && append-libs -lsocket -lnsl
1625 -
1626 - use nethack || append-cppflags "-DNONETHACK"
1627 - use debug && append-cppflags "-DDEBUG"
1628 -
1629 - econf \
1630 - --with-socket-dir="${EPREFIX}/run/screen" \
1631 - --with-sys-screenrc="${EPREFIX}/etc/screenrc" \
1632 - --with-pty-mode=0620 \
1633 - --with-pty-group=5 \
1634 - --enable-rxvt_osc \
1635 - --enable-telnet \
1636 - --enable-colors256 \
1637 - $(use_enable pam)
1638 -
1639 - # Second try to fix bug 12683, this time without changing term.h
1640 - # The last try seemed to break screen at run-time.
1641 - # (16 Jan 2003 agriffis)
1642 - LC_ALL=POSIX make term.h || die "Failed making term.h"
1643 -}
1644 -
1645 -src_install() {
1646 - local tmpfiles_perms tmpfiles_group
1647 -
1648 - dobin screen
1649 -
1650 - if use multiuser ; then
1651 - use prefix || fperms 4755 /usr/bin/screen
1652 - tmpfiles_perms="0755"
1653 - tmpfiles_group="root"
1654 - else
1655 - fowners root:utmp /usr/bin/screen
1656 - fperms 2755 /usr/bin/screen
1657 - tmpfiles_perms="0775"
1658 - tmpfiles_group="utmp"
1659 - fi
1660 -
1661 - dodir /etc/tmpfiles.d
1662 - echo "d /run/screen ${tmpfiles_perms} root ${tmpfiles_group}" >"${ED}"/etc/tmpfiles.d/screen.conf
1663 -
1664 - insinto /usr/share/screen
1665 - doins terminfo/{screencap,screeninfo.src}
1666 - insinto /usr/share/screen/utf8encodings
1667 - doins utf8encodings/??
1668 - insinto /etc
1669 - doins "${FILESDIR}"/screenrc
1670 -
1671 - pamd_mimic_system screen auth
1672 -
1673 - dodoc \
1674 - README ChangeLog INSTALL TODO NEWS* patchlevel.h \
1675 - doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
1676 -
1677 - doman doc/screen.1
1678 - doinfo doc/screen.info*
1679 -}
1680 -
1681 -pkg_postinst() {
1682 - if [[ -z ${REPLACING_VERSIONS} ]]
1683 - then
1684 - elog "Some dangerous key bindings have been removed or changed to more safe values."
1685 - elog "We enable some xterm hacks in our default screenrc, which might break some"
1686 - elog "applications. Please check /etc/screenrc for information on these changes."
1687 - fi
1688 -
1689 - ewarn "This revision changes the screen socket location to /run/screen."
1690 -}
1691
1692 diff --git a/app-misc/screen/screen-4.2.1-r2.ebuild b/app-misc/screen/screen-4.2.1-r2.ebuild
1693 deleted file mode 100644
1694 index bb6e77a..0000000
1695 --- a/app-misc/screen/screen-4.2.1-r2.ebuild
1696 +++ /dev/null
1697 @@ -1,146 +0,0 @@
1698 -# Copyright 1999-2015 Gentoo Foundation
1699 -# Distributed under the terms of the GNU General Public License v2
1700 -# $Id$
1701 -
1702 -EAPI=5
1703 -
1704 -inherit autotools eutils flag-o-matic pam toolchain-funcs user
1705 -
1706 -DESCRIPTION="Full-screen window manager that multiplexes physical terminals between several processes"
1707 -HOMEPAGE="https://www.gnu.org/software/screen/"
1708 -SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
1709 -
1710 -LICENSE="GPL-2"
1711 -SLOT="0"
1712 -KEYWORDS=" ~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~hppa-hpux ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1713 -IUSE="debug nethack pam selinux multiuser"
1714 -
1715 -CDEPEND="
1716 - >=sys-libs/ncurses-5.2:0=
1717 - pam? ( virtual/pam )"
1718 -RDEPEND="${CDEPEND}
1719 - selinux? ( sec-policy/selinux-screen )"
1720 -DEPEND="${CDEPEND}
1721 - sys-apps/texinfo"
1722 -
1723 -pkg_setup() {
1724 - # Make sure utmp group exists, as it's used later on.
1725 - enewgroup utmp 406
1726 -}
1727 -
1728 -src_prepare() {
1729 - # Don't use utempter even if it is found on the system
1730 - epatch "${FILESDIR}"/4.0.2-no-utempter.patch
1731 -
1732 - # sched.h is a system header and causes problems with some C libraries
1733 - mv sched.h _sched.h || die
1734 - sed -i '/include/ s:sched.h:_sched.h:' screen.h || die
1735 -
1736 - # Fix manpage.
1737 - sed -i \
1738 - -e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
1739 - -e "s:/usr/local/screens:${EPREFIX}/tmp/screen:g" \
1740 - -e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
1741 - -e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \
1742 - -e "s:/local/screens/S-:${EPREFIX}/tmp/screen/S-:g" \
1743 - doc/screen.1 \
1744 - || die
1745 -
1746 - # reconfigure
1747 - eautoreconf
1748 -}
1749 -
1750 -src_configure() {
1751 - append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
1752 -
1753 - if [[ ${CHOST} == *-solaris* ]] ; then
1754 - # https://lists.gnu.org/archive/html/screen-devel/2014-04/msg00095.html
1755 - append-cppflags -D_XOPEN_SOURCE \
1756 - -D_XOPEN_SOURCE_EXTENDED=1 \
1757 - -D__EXTENSIONS__
1758 - append-libs -lsocket -lnsl
1759 - fi
1760 -
1761 - use nethack || append-cppflags "-DNONETHACK"
1762 - use debug && append-cppflags "-DDEBUG"
1763 -
1764 - econf \
1765 - --with-socket-dir="${EPREFIX}/tmp/screen" \
1766 - --with-sys-screenrc="${EPREFIX}/etc/screenrc" \
1767 - --with-pty-mode=0620 \
1768 - --with-pty-group=5 \
1769 - --enable-rxvt_osc \
1770 - --enable-telnet \
1771 - --enable-colors256 \
1772 - $(use_enable pam)
1773 -}
1774 -
1775 -src_compile() {
1776 - LC_ALL=POSIX emake comm.h term.h
1777 - emake osdef.h
1778 -
1779 - emake -C doc screen.info
1780 - default
1781 -}
1782 -
1783 -src_install() {
1784 - local tmpfiles_perms tmpfiles_group
1785 -
1786 - dobin screen
1787 -
1788 - if use multiuser || use prefix
1789 - then
1790 - fperms 4755 /usr/bin/screen
1791 - tmpfiles_perms="0755"
1792 - tmpfiles_group="root"
1793 - else
1794 - fowners root:utmp /usr/bin/screen
1795 - fperms 2755 /usr/bin/screen
1796 - tmpfiles_perms="0775"
1797 - tmpfiles_group="utmp"
1798 - fi
1799 -
1800 - dodir /etc/tmpfiles.d
1801 - echo "d /tmp/screen ${tmpfiles_perms} root ${tmpfiles_group}" \
1802 - > "${ED}"/etc/tmpfiles.d/screen.conf
1803 -
1804 - insinto /usr/share/screen
1805 - doins terminfo/{screencap,screeninfo.src}
1806 - insinto /usr/share/screen/utf8encodings
1807 - doins utf8encodings/??
1808 - insinto /etc
1809 - doins "${FILESDIR}"/screenrc
1810 -
1811 - pamd_mimic_system screen auth
1812 -
1813 - dodoc \
1814 - README ChangeLog INSTALL TODO NEWS* patchlevel.h \
1815 - doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
1816 -
1817 - doman doc/screen.1
1818 - doinfo doc/screen.info
1819 -}
1820 -
1821 -pkg_postinst() {
1822 - if [[ -z ${REPLACING_VERSIONS} ]]
1823 - then
1824 - elog "Some dangerous key bindings have been removed or changed to more safe values."
1825 - elog "We enable some xterm hacks in our default screenrc, which might break some"
1826 - elog "applications. Please check /etc/screenrc for information on these changes."
1827 - fi
1828 -
1829 - # Add /tmp/screen in case it doesn't exist yet. This should solve
1830 - # problems like bug #508634 where tmpfiles.d isn't in effect.
1831 - local rundir="${EROOT%/}/tmp/screen"
1832 - if [[ ! -d ${rundir} ]] ; then
1833 - if use multiuser || use prefix ; then
1834 - tmpfiles_group="root"
1835 - else
1836 - tmpfiles_group="utmp"
1837 - fi
1838 - mkdir -m 0775 "${rundir}"
1839 - chgrp ${tmpfiles_group} "${rundir}"
1840 - fi
1841 -
1842 - ewarn "This revision changes the screen socket location to ${rundir}"
1843 -}
1844
1845 diff --git a/app-misc/screen/screen-4.3.1.ebuild b/app-misc/screen/screen-4.3.1.ebuild
1846 deleted file mode 100644
1847 index 48a082b..0000000
1848 --- a/app-misc/screen/screen-4.3.1.ebuild
1849 +++ /dev/null
1850 @@ -1,146 +0,0 @@
1851 -# Copyright 1999-2015 Gentoo Foundation
1852 -# Distributed under the terms of the GNU General Public License v2
1853 -# $Id$
1854 -
1855 -EAPI=5
1856 -
1857 -inherit autotools eutils flag-o-matic pam toolchain-funcs user
1858 -
1859 -DESCRIPTION="Full-screen window manager that multiplexes physical terminals between several processes"
1860 -HOMEPAGE="https://www.gnu.org/software/screen/"
1861 -SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
1862 -
1863 -LICENSE="GPL-2"
1864 -SLOT="0"
1865 -KEYWORDS="alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~sparc-fbsd ~x86-fbsd ~hppa-hpux ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
1866 -IUSE="debug nethack pam selinux multiuser"
1867 -
1868 -CDEPEND="
1869 - >=sys-libs/ncurses-5.2:0=
1870 - pam? ( virtual/pam )"
1871 -RDEPEND="${CDEPEND}
1872 - selinux? ( sec-policy/selinux-screen )"
1873 -DEPEND="${CDEPEND}
1874 - sys-apps/texinfo"
1875 -
1876 -pkg_setup() {
1877 - # Make sure utmp group exists, as it's used later on.
1878 - enewgroup utmp 406
1879 -}
1880 -
1881 -src_prepare() {
1882 - # Don't use utempter even if it is found on the system
1883 - epatch "${FILESDIR}"/${PN}-4.3.0-no-utempter.patch
1884 -
1885 - # sched.h is a system header and causes problems with some C libraries
1886 - mv sched.h _sched.h || die
1887 - sed -i '/include/ s:sched.h:_sched.h:' screen.h || die
1888 -
1889 - # Fix manpage.
1890 - sed -i \
1891 - -e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
1892 - -e "s:/usr/local/screens:${EPREFIX}/tmp/screen:g" \
1893 - -e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
1894 - -e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \
1895 - -e "s:/local/screens/S-:${EPREFIX}/tmp/screen/S-:g" \
1896 - doc/screen.1 \
1897 - || die
1898 -
1899 - # reconfigure
1900 - eautoreconf
1901 -}
1902 -
1903 -src_configure() {
1904 - append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
1905 -
1906 - if [[ ${CHOST} == *-solaris* ]] ; then
1907 - # https://lists.gnu.org/archive/html/screen-devel/2014-04/msg00095.html
1908 - append-cppflags -D_XOPEN_SOURCE \
1909 - -D_XOPEN_SOURCE_EXTENDED=1 \
1910 - -D__EXTENSIONS__
1911 - append-libs -lsocket -lnsl
1912 - fi
1913 -
1914 - use nethack || append-cppflags "-DNONETHACK"
1915 - use debug && append-cppflags "-DDEBUG"
1916 -
1917 - econf \
1918 - --with-socket-dir="${EPREFIX}/tmp/screen" \
1919 - --with-sys-screenrc="${EPREFIX}/etc/screenrc" \
1920 - --with-pty-mode=0620 \
1921 - --with-pty-group=5 \
1922 - --enable-rxvt_osc \
1923 - --enable-telnet \
1924 - --enable-colors256 \
1925 - $(use_enable pam)
1926 -}
1927 -
1928 -src_compile() {
1929 - LC_ALL=POSIX emake comm.h term.h
1930 - emake osdef.h
1931 -
1932 - emake -C doc screen.info
1933 - default
1934 -}
1935 -
1936 -src_install() {
1937 - local tmpfiles_perms tmpfiles_group
1938 -
1939 - dobin screen
1940 -
1941 - if use multiuser || use prefix
1942 - then
1943 - fperms 4755 /usr/bin/screen
1944 - tmpfiles_perms="0755"
1945 - tmpfiles_group="root"
1946 - else
1947 - fowners root:utmp /usr/bin/screen
1948 - fperms 2755 /usr/bin/screen
1949 - tmpfiles_perms="0775"
1950 - tmpfiles_group="utmp"
1951 - fi
1952 -
1953 - dodir /etc/tmpfiles.d
1954 - echo "d /tmp/screen ${tmpfiles_perms} root ${tmpfiles_group}" \
1955 - > "${ED}"/etc/tmpfiles.d/screen.conf
1956 -
1957 - insinto /usr/share/screen
1958 - doins terminfo/{screencap,screeninfo.src}
1959 - insinto /usr/share/screen/utf8encodings
1960 - doins utf8encodings/??
1961 - insinto /etc
1962 - doins "${FILESDIR}"/screenrc
1963 -
1964 - pamd_mimic_system screen auth
1965 -
1966 - dodoc \
1967 - README ChangeLog INSTALL TODO NEWS* patchlevel.h \
1968 - doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
1969 -
1970 - doman doc/screen.1
1971 - doinfo doc/screen.info
1972 -}
1973 -
1974 -pkg_postinst() {
1975 - if [[ -z ${REPLACING_VERSIONS} ]]
1976 - then
1977 - elog "Some dangerous key bindings have been removed or changed to more safe values."
1978 - elog "We enable some xterm hacks in our default screenrc, which might break some"
1979 - elog "applications. Please check /etc/screenrc for information on these changes."
1980 - fi
1981 -
1982 - # Add /tmp/screen in case it doesn't exist yet. This should solve
1983 - # problems like bug #508634 where tmpfiles.d isn't in effect.
1984 - local rundir="${EROOT%/}/tmp/screen"
1985 - if [[ ! -d ${rundir} ]] ; then
1986 - if use multiuser || use prefix ; then
1987 - tmpfiles_group="root"
1988 - else
1989 - tmpfiles_group="utmp"
1990 - fi
1991 - mkdir -m 0775 "${rundir}"
1992 - chgrp ${tmpfiles_group} "${rundir}"
1993 - fi
1994 -
1995 - ewarn "This revision changes the screen socket location to ${rundir}"
1996 -}