diff options
author | tron <tron> | 2001-12-17 14:34:17 +0000 |
---|---|---|
committer | tron <tron> | 2001-12-17 14:34:17 +0000 |
commit | 17c85c6687617c6921f6ee86413311ac3257b7e2 (patch) | |
tree | dded207a25f965ecd65d05e427b16d3ed1c07045 /x11 | |
parent | 1bd8cbc7c1d07a2e880c8e34dd3d1608e3ec57e8 (diff) | |
download | pkgsrc-17c85c6687617c6921f6ee86413311ac3257b7e2.tar.gz |
Import new Solaris only "xterm" package:
Latest terminal emulator for the X Window System
Diffstat (limited to 'x11')
-rw-r--r-- | x11/xterm/DESCR | 7 | ||||
-rw-r--r-- | x11/xterm/INSTALL | 44 | ||||
-rw-r--r-- | x11/xterm/MESSAGE | 7 | ||||
-rw-r--r-- | x11/xterm/Makefile | 34 | ||||
-rw-r--r-- | x11/xterm/PLIST | 11 | ||||
-rw-r--r-- | x11/xterm/distinfo | 4 | ||||
-rw-r--r-- | x11/xterm/files/Xpoll.h | 239 |
7 files changed, 346 insertions, 0 deletions
diff --git a/x11/xterm/DESCR b/x11/xterm/DESCR new file mode 100644 index 00000000000..70b8dbb28e5 --- /dev/null +++ b/x11/xterm/DESCR @@ -0,0 +1,7 @@ +The xterm program is a terminal emulator for the X Window System. It provides +DEC VT102 and Tektronix 4014 compatible terminals for programs that can't use +the window system directly. + +This version implements ISO/ANSI colors using the "new" color model +(i.e., background color erase). It also implements most of the control +sequences for VT220. diff --git a/x11/xterm/INSTALL b/x11/xterm/INSTALL new file mode 100644 index 00000000000..2ca600df921 --- /dev/null +++ b/x11/xterm/INSTALL @@ -0,0 +1,44 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1.1.1 2001/12/17 14:34:17 tron Exp $ + +PKGNAME=$1 +STAGE=$2 + +CONFLICTS="bin/resize bin/xterm lib/app-defaults/XTerm share/man/man1/resize.1 share/man/man1/xterm.1" + +case ${STAGE} in +PRE-INSTALL) + cd @PREFIX@ + for FILE in $CONFLICTS + do + if [ -f $FILE ] + then + @MV@ $FILE ${FILE}.openwin + fi + done + ;; + +POST-INSTALL) + ;; + +DEINSTALL) + ;; + +POST-DEINSTALL) + cd @PREFIX@ + for FILE in $CONFLICTS + do + if [ -f ${FILE}.openwin ] + then + @MV@ ${FILE}.openwin $FILE + fi + done + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/x11/xterm/MESSAGE b/x11/xterm/MESSAGE new file mode 100644 index 00000000000..eb65c7de4db --- /dev/null +++ b/x11/xterm/MESSAGE @@ -0,0 +1,7 @@ +============================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2001/12/17 14:34:17 tron Exp $ + +This package should be deinstalled before you update to a newer Solaris +or OpenWindows version. + +============================================================================== diff --git a/x11/xterm/Makefile b/x11/xterm/Makefile new file mode 100644 index 00000000000..a65d2a5f582 --- /dev/null +++ b/x11/xterm/Makefile @@ -0,0 +1,34 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/12/17 14:34:17 tron Exp $ + +DISTNAME= xterm-164 +CATEGORIES= x11 +MASTER_SITES= ${MASTER_SITE_LOCAL} + +MAINTAINER= tron@netbsd.org +HOMEPAGE= http://dickey.his.com/xterm/xterm.html +COMMENT= Latest terminal emulator for the X Window System + +ONLY_FOR_PLATFORM= SunOS-*-* # in NetBSD X11 distribution + +USE_IMAKE= YES + +INSTALL_FILE= ${WRKDIR}/INSTALL +DEINSTALL_FILE= ${INSTALL_FILE} + +post-extract: + @${MKDIR} ${WRKSRC}/X11 + @${LN} -s ${FILESDIR}/Xpoll.h ${WRKSRC}/X11 + +pre-build: + @${SED} -e 's#@MV@#${MV}#g' \ + -e 's#@PREFIX@#${PREFIX}#g' ${PKGDIR}/INSTALL >${INSTALL_FILE} + +pre-install: + ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL + +post-install: + cd ${PREFIX}/lib/X11/etc; \ + ${SETENV} TERMINFO=${LOCALBASE}/share/lib/terminfo \ + /usr/5bin/tic xterm.terminfo + +.include "../../mk/bsd.pkg.mk" diff --git a/x11/xterm/PLIST b/x11/xterm/PLIST new file mode 100644 index 00000000000..d40e0ef12c7 --- /dev/null +++ b/x11/xterm/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/12/17 14:34:17 tron Exp $ +bin/resize +bin/xterm +bin/uxterm +lib/X11/etc/xterm.termcap +lib/X11/etc/xterm.terminfo +lib/app-defaults/XTerm +lib/app-defaults/UXTerm +lib/app-defaults/XTerm-color +share/man/man1/resize.1 +share/man/man1/xterm.1 diff --git a/x11/xterm/distinfo b/x11/xterm/distinfo new file mode 100644 index 00000000000..2ff3e5f0988 --- /dev/null +++ b/x11/xterm/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/12/17 14:34:17 tron Exp $ + +SHA1 (xterm-164.tar.gz) = eb2698f9fc0e21295e31fd44f20b732088319cd2 +Size (xterm-164.tar.gz) = 602086 bytes diff --git a/x11/xterm/files/Xpoll.h b/x11/xterm/files/Xpoll.h new file mode 100644 index 00000000000..c678af2c04a --- /dev/null +++ b/x11/xterm/files/Xpoll.h @@ -0,0 +1,239 @@ +/* $Xorg: Xpoll.h,v 1.3 2000/08/18 04:05:44 coskrey Exp $ */ + +/* + +Copyright 1994, 1998 The Open Group + +All Rights Reserved. + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of The Open Group shall +not be used in advertising or otherwise to promote the sale, use or +other dealings in this Software without prior written authorization +from The Open Group. + +*/ +/* $XFree86: xc/include/Xpoll.h,v 3.8 2001/01/17 17:53:11 dawes Exp $ */ + +#ifndef _XPOLL_H_ +#define _XPOLL_H_ + +#ifndef WIN32 + +#ifndef USE_POLL + +#include <X11/Xos.h> +#if !defined(DGUX) +#if (defined(SVR4) || defined(CRAY) || defined(AIXV3)) && !defined(FD_SETSIZE) +#include <sys/select.h> +#ifdef luna +#include <sysent.h> +#endif +#endif +#else /* DGUX -- No sys/select in Intel DG/ux */ +#include <sys/time.h> +#include <sys/types.h> +#include <unistd.h> +#endif + +#ifdef __QNX__ /* Make sure we get 256 bit select masks */ +#define FD_SETSIZE 256 +#include <sys/select.h> +#endif + +/* AIX 4.2 fubar-ed <sys/select.h>, so go to heroic measures to get it */ +#if defined(AIXV4) && !defined(NFDBITS) +#include <sys/select.h> +#endif +#include <X11/Xmd.h> +#ifdef CSRG_BASED +#include <sys/param.h> +# if BSD < 199103 +typedef long fd_mask; +# endif +#endif + +#define XFD_SETSIZE 256 +#ifndef FD_SETSIZE +#define FD_SETSIZE XFD_SETSIZE +#endif + +#ifndef NBBY +#define NBBY 8 /* number of bits in a byte */ +#endif + +#ifndef NFDBITS +#define NFDBITS (sizeof(fd_mask) * NBBY) /* bits per mask */ +#endif + +#ifndef howmany +#define howmany(x,y) (((x)+((y)-1))/(y)) +#endif + +#ifdef BSD +# if BSD < 198911 /* 198911 == OSF/1, 199103 == CSRG_BASED */ +# ifndef luna /* and even though on LUNA BSD == 43, it has it */ +typedef struct fd_set { + fd_mask fds_bits[howmany(FD_SETSIZE, NFDBITS)]; +} fd_set; +# endif +# endif +#endif + +#ifndef hpux /* and perhaps old BSD ??? */ +# define Select(n,r,w,e,t) select(n,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t) +#else +# ifndef _XPG4_EXTENDED /* HPUX 9.x and earlier */ +# define Select(n,r,w,e,t) select(n,(int*)r,(int*)w,(int*)e,(struct timeval*)t) +# else +# define Select(n,r,w,e,t) select(n,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t) +# endif +#endif + +#ifndef FD_SET +#define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= ((fd_mask)1 << ((n) % NFDBITS))) +#endif +#ifndef FD_CLR +#define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~((fd_mask)1 << ((n) % NFDBITS))) +#endif +#ifndef FD_ISSET +#define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & ((fd_mask)1 << ((n) % NFDBITS))) +#endif +#ifndef FD_ZERO +#define FD_ZERO(p) bzero((char *)(p), sizeof(*(p))) +#endif + +/* + * The following macros are used by the servers only. There is an + * explicit assumption that the bit array in the fd_set is at least + * 256 bits long (8 32-bit words). This is true on most modern POSIX + * systems. Note that this is merely an optimization for the servers + * based on assumptions about the way that file descripters are + * allocated on POSIX systems. + * + * When porting X to new systems it is important to adjust these + * macros if the system has fewer than 256 bits in the fd_set bit + * array. + */ +#define XFD_ANYSET(p) \ + ((p)->fds_bits[0] || (p)->fds_bits[1] || \ + (p)->fds_bits[2] || (p)->fds_bits[3] || \ + (p)->fds_bits[4] || (p)->fds_bits[5] || \ + (p)->fds_bits[6] || (p)->fds_bits[7]) + +#define XFD_COPYSET(src,dst) \ + (dst)->fds_bits[0] = (src)->fds_bits[0]; \ + (dst)->fds_bits[1] = (src)->fds_bits[1]; \ + (dst)->fds_bits[2] = (src)->fds_bits[2]; \ + (dst)->fds_bits[3] = (src)->fds_bits[3]; \ + (dst)->fds_bits[4] = (src)->fds_bits[4]; \ + (dst)->fds_bits[5] = (src)->fds_bits[5]; \ + (dst)->fds_bits[6] = (src)->fds_bits[6]; \ + (dst)->fds_bits[7] = (src)->fds_bits[7]; + +#define XFD_ANDSET(dst,b1,b2) \ + (dst)->fds_bits[0] = ((b1)->fds_bits[0] & (b2)->fds_bits[0]); \ + (dst)->fds_bits[1] = ((b1)->fds_bits[1] & (b2)->fds_bits[1]); \ + (dst)->fds_bits[2] = ((b1)->fds_bits[2] & (b2)->fds_bits[2]); \ + (dst)->fds_bits[3] = ((b1)->fds_bits[3] & (b2)->fds_bits[3]); \ + (dst)->fds_bits[4] = ((b1)->fds_bits[4] & (b2)->fds_bits[4]); \ + (dst)->fds_bits[5] = ((b1)->fds_bits[5] & (b2)->fds_bits[5]); \ + (dst)->fds_bits[6] = ((b1)->fds_bits[6] & (b2)->fds_bits[6]); \ + (dst)->fds_bits[7] = ((b1)->fds_bits[7] & (b2)->fds_bits[7]); + +#define XFD_ORSET(dst,b1,b2) \ + (dst)->fds_bits[0] = ((b1)->fds_bits[0] | (b2)->fds_bits[0]); \ + (dst)->fds_bits[1] = ((b1)->fds_bits[1] | (b2)->fds_bits[1]); \ + (dst)->fds_bits[2] = ((b1)->fds_bits[2] | (b2)->fds_bits[2]); \ + (dst)->fds_bits[3] = ((b1)->fds_bits[3] | (b2)->fds_bits[3]); \ + (dst)->fds_bits[4] = ((b1)->fds_bits[4] | (b2)->fds_bits[4]); \ + (dst)->fds_bits[5] = ((b1)->fds_bits[5] | (b2)->fds_bits[5]); \ + (dst)->fds_bits[6] = ((b1)->fds_bits[6] | (b2)->fds_bits[6]); \ + (dst)->fds_bits[7] = ((b1)->fds_bits[7] | (b2)->fds_bits[7]); + +#define XFD_UNSET(dst,b1) \ + (dst)->fds_bits[0] &= ~((b1)->fds_bits[0]); \ + (dst)->fds_bits[1] &= ~((b1)->fds_bits[1]); \ + (dst)->fds_bits[2] &= ~((b1)->fds_bits[2]); \ + (dst)->fds_bits[3] &= ~((b1)->fds_bits[3]); \ + (dst)->fds_bits[4] &= ~((b1)->fds_bits[4]); \ + (dst)->fds_bits[5] &= ~((b1)->fds_bits[5]); \ + (dst)->fds_bits[6] &= ~((b1)->fds_bits[6]); \ + (dst)->fds_bits[7] &= ~((b1)->fds_bits[7]); + +#else /* USE_POLL */ +#include <sys/poll.h> +#endif /* USE_POLL */ + +#else /* WIN32 */ + +#define XFD_SETSIZE 256 +#ifndef FD_SETSIZE +#define FD_SETSIZE XFD_SETSIZE +#endif +#include <X11/Xwinsock.h> + +#define Select(n,r,w,e,t) select(0,(fd_set*)r,(fd_set*)w,(fd_set*)e,(struct timeval*)t) + +#define XFD_SETCOUNT(p) (((fd_set FAR *)(p))->fd_count) +#define XFD_FD(p,i) (((fd_set FAR *)(p))->fd_array[i]) +#define XFD_ANYSET(p) XFD_SETCOUNT(p) + +#define XFD_COPYSET(src,dst) { \ + u_int __i; \ + FD_ZERO(dst); \ + for (__i = 0; __i < XFD_SETCOUNT(src) ; __i++) { \ + XFD_FD(dst,__i) = XFD_FD(src,__i); \ + } \ + XFD_SETCOUNT(dst) = XFD_SETCOUNT(src); \ +} + +#define XFD_ANDSET(dst,b1,b2) { \ + u_int __i; \ + FD_ZERO(dst); \ + for (__i = 0; __i < XFD_SETCOUNT(b1) ; __i++) { \ + if (FD_ISSET(XFD_FD(b1,__i), b2)) \ + FD_SET(XFD_FD(b1,__i), dst); \ + } \ +} + +#define XFD_ORSET(dst,b1,b2) { \ + u_int __i; \ + XFD_COPYSET(b1,dst); \ + for (__i = 0; __i < XFD_SETCOUNT(b2) ; __i++) { \ + if (!FD_ISSET(XFD_FD(b2,__i), dst)) \ + FD_SET(XFD_FD(b2,__i), dst); \ + } \ +} + +/* this one is really sub-optimal */ +#define XFD_UNSET(dst,b1) { \ + u_int __i; \ + for (__i = 0; __i < XFD_SETCOUNT(b1) ; __i++) { \ + FD_CLR(XFD_FD(b1,__i), dst); \ + } \ +} + +/* we have to pay the price of having an array here, unlike with bitmasks + calling twice FD_SET with the same fd is not transparent, so be careful */ +#undef FD_SET +#define FD_SET(fd,set) do { \ + if (XFD_SETCOUNT(set) < FD_SETSIZE && !FD_ISSET(fd,set)) \ + XFD_FD(set,XFD_SETCOUNT(set)++)=(fd); \ +} while(0) + +#define getdtablesize() FD_SETSIZE + +#endif /* WIN32 */ + +#endif /* _XPOLL_H_ */ |