import drawterm 20110221

Drawterm is a program that users of non-Plan 9 systems can use to
establish graphical cpu connections with Plan 9 cpu servers.  Just as
a real Plan 9 terminal does, drawterm serves its local name space as
well as some devices (the keyboard, mouse, and screen) to a remote cpu
server, which mounts this name space on /mnt/term and starts a shell.
Typically, either explicitly or via the profile, one uses the shell to
start rio.

from Stanley Lieber (MAINTAINER)
ok sthen@
This commit is contained in:
jasper 2011-08-18 08:04:03 +00:00
parent 526f5f22f0
commit 6639eb58eb
9 changed files with 121 additions and 0 deletions

32
plan9/drawterm/Makefile Normal file
View File

@ -0,0 +1,32 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/08/18 08:04:03 jasper Exp $
COMMENT= Plan9 terminal emulator
DISTNAME= drawterm-20110221
CATEGORIES= plan9
HOMEPAGE= http://swtch.com/drawterm/
MASTER_SITES= ${HOMEPAGE} \
http://openbsd.stanleylieber.com/drawterm/
EXTRACT_SUFX= .tgz
MAINTAINER= Stanley Lieber <stanley.lieber@gmail.com>
# Lucent Public License Version 1.02
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB = X11 c pthread
NO_REGRESS= Yes
MAKE_FLAGS= CONF=unix AUDIO=none
WRKDIST= ${WRKDIR}/drawterm/
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/drawterm/drawterm ${PREFIX}/bin
.include <bsd.port.mk>

5
plan9/drawterm/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (drawterm-20110221.tgz) = 38+/svpS+H/itLaOK36wqg==
RMD160 (drawterm-20110221.tgz) = NH8ikF7VCDMzgxR58MsLxTOYbdc=
SHA1 (drawterm-20110221.tgz) = fdh/e0T5nHaaSzYmdpBdCYsSY+8=
SHA256 (drawterm-20110221.tgz) = 8yHq1y7YlvoMSYbcyfmE4T2XVwvb09H05vjYQT74Fqg=
SIZE (drawterm-20110221.tgz) = 1191194

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-Make_unix,v 1.1.1.1 2011/08/18 08:04:03 jasper Exp $
--- Make.unix.orig Wed Aug 26 07:44:41 2009
+++ Make.unix Wed Jul 20 19:57:34 2011
@@ -5,8 +5,8 @@ AR=ar
AS=as
RANLIB=ranlib
X11=/usr/X11R6
-CC=gcc
-CFLAGS=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD) -O2
+CC?=gcc
+CFLAGS+=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD)
O=o
OS=posix
GUI=x11
@@ -19,5 +19,5 @@ AUDIO=unix
all: default
libmachdep.a:
- arch=`uname -m|sed 's/i.86/386/;s/Power Macintosh/power/; s/x86_64/amd64/'`; \
+ arch=`uname -m|sed 's/i.86/386/;s/Power Macintosh/power/; s/x86_64/amd64/; s/sparc64/sun4u/; s/sgi/mips/'`; \
(cd posix-$$arch && make)

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-posix-mips_Makefile,v 1.1.1.1 2011/08/18 08:04:03 jasper Exp $
--- posix-mips/Makefile.orig Fri Dec 30 00:50:49 2005
+++ posix-mips/Makefile Mon Mar 30 18:22:24 2009
@@ -13,13 +13,6 @@ $(LIB): $(OFILES)
$(AR) r $(LIB) $(OFILES)
$(RANLIB) $(LIB)
-%.$O: %.c
- $(CC) $(CFLAGS) $*.c
-
-%.$O: %.s
- $(AS) $(ASFLAGS) -o $*.$O $*.s
-
-%.s: %.spp
- cpp $*.spp >$*.s
-
-
+tas.$O: tas.s
+ ln -sf tas.s tas.S
+ $(CC) -c -o tas.$O -mips3 tas.S

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-posix-mips_getcallerpc_c,v 1.1.1.1 2011/08/18 08:04:03 jasper Exp $
--- posix-mips/getcallerpc.c.orig Tue Mar 10 11:45:20 2009
+++ posix-mips/getcallerpc.c Tue Mar 10 11:45:24 2009
@@ -1,7 +1,7 @@
#include "u.h"
#include "libc.h"
-ulong
+uintptr
getcallerpc(void *a)
{
return ((ulong*)a)[-1];

View File

@ -0,0 +1,10 @@
$OpenBSD: patch-posix-mips_tas_s,v 1.1.1.1 2011/08/18 08:04:03 jasper Exp $
--- posix-mips/tas.s.orig Fri Dec 30 00:50:05 2005
+++ posix-mips/tas.s Mon Mar 30 17:43:08 2009
@@ -1,5 +1,4 @@
-#include <sys/regdef.h>
-#include <sys/asm.h>
+#include <machine/regdef.h>
.globl tas
.ent tas 2

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-posix-sun4u_getcallerpc_c,v 1.1.1.1 2011/08/18 08:04:03 jasper Exp $
--- posix-sun4u/getcallerpc.c.orig Tue Mar 10 11:45:20 2009
+++ posix-sun4u/getcallerpc.c Tue Mar 10 11:45:24 2009
@@ -1,7 +1,7 @@
#include "u.h"
#include "libc.h"
-ulong
+uintptr
getcallerpc(void *a)
{
return ((ulong*)a)[-1];

7
plan9/drawterm/pkg/DESCR Normal file
View File

@ -0,0 +1,7 @@
Drawterm is a program that users of non-Plan 9 systems can use to
establish graphical cpu connections with Plan 9 cpu servers. Just as
a real Plan 9 terminal does, drawterm serves its local name space as
well as some devices (the keyboard, mouse, and screen) to a remote cpu
server, which mounts this name space on /mnt/term and starts a shell.
Typically, either explicitly or via the profile, one uses the shell to
start rio.

2
plan9/drawterm/pkg/PLIST Normal file
View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/08/18 08:04:03 jasper Exp $
@bin bin/drawterm