summaryrefslogtreecommitdiff
path: root/editors/sam
diff options
context:
space:
mode:
Diffstat (limited to 'editors/sam')
-rw-r--r--editors/sam/Makefile22
-rw-r--r--editors/sam/files/md51
-rw-r--r--editors/sam/patches/patch-aa62
-rw-r--r--editors/sam/patches/patch-ab46
-rw-r--r--editors/sam/patches/patch-ac71
-rw-r--r--editors/sam/patches/patch-ad119
-rw-r--r--editors/sam/patches/patch-ae23
-rw-r--r--editors/sam/patches/patch-af41
-rw-r--r--editors/sam/pkg/COMMENT1
-rw-r--r--editors/sam/pkg/DESCR17
-rw-r--r--editors/sam/pkg/PLIST19
11 files changed, 422 insertions, 0 deletions
diff --git a/editors/sam/Makefile b/editors/sam/Makefile
new file mode 100644
index 00000000000..5a385e28a21
--- /dev/null
+++ b/editors/sam/Makefile
@@ -0,0 +1,22 @@
+# New ports collection makefile for: sam
+# Version required: 4.3
+# Date created: Sun Aug 13 12:36:14 CDT 1995
+# Whom: erich@rrnet.com
+#
+# FreeBSD Id: Makefile,v 1.3 1996/11/12 02:19:40 obrien Exp
+#
+
+DISTNAME= sam
+PKGNAME= sam-4.3
+CATEGORIES= plan9
+MASTER_SITES= ftp://ftp.ecf.toronto.edu/pub/plan9/matty/
+EXTRACT_SUFX= .msg.gz
+
+MAINTAINER= erich@FreeBSD.org
+
+NO_WRKSUBDIR= yes
+EXTRACT_CMD= zcat
+EXTRACT_BEFORE_ARGS=
+EXTRACT_AFTER_ARGS= |sh
+
+.include <bsd.port.mk>
diff --git a/editors/sam/files/md5 b/editors/sam/files/md5
new file mode 100644
index 00000000000..f5d6a51ab30
--- /dev/null
+++ b/editors/sam/files/md5
@@ -0,0 +1 @@
+MD5 (sam.msg.gz) = c7e1e2f262ae7a9d08c7b7553d80595a
diff --git a/editors/sam/patches/patch-aa b/editors/sam/patches/patch-aa
new file mode 100644
index 00000000000..6b5c32ede1d
--- /dev/null
+++ b/editors/sam/patches/patch-aa
@@ -0,0 +1,62 @@
+*** libXg/Makefile.orig Fri Jul 28 14:02:17 1995
+--- libXg/Makefile Fri Jul 21 15:03:43 1995
+***************
+*** 1,24 ****
+ # Copyright (c) 1992 AT&T - All rights reserved.
+ #
+! # Prototype Makefile for libXg
+ #
+- # define operating system. ONE of:
+- # -DIRIX -DSUNOS -DUMIPS -DSYSVR3 -DAIX -DOSF1
+- # -DHPUX -DAPOLLO -DCONVEX -DDYNIX
+- #
+ # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
+ # if your compiler supports posix-compatible compilation
+! OS=-DIRIX -ansiposix
+
+ # add -Iincludedir for any include directories that need to be searched
+! INCS=-I../include
+
+ # set this if your X libraries are in different locations
+ # or if you need extra libraries to load with X11 applications
+! XLIBS=/usr/local/X11R5/lib/libXt.a /usr/local/X11R5/lib/libX11.a
+
+ # add name of library orderer - use ":" if none
+! RANLIB=:
+
+ # add name of librarian
+ AR=ar
+--- 1,23 ----
+ # Copyright (c) 1992 AT&T - All rights reserved.
+ #
+! # Prototype BSDi Makefile for libXg
+! # Courtesy of Boyd Roberts
+! #
+! # Define operating system type: -DBSDi
+ #
+ # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
+ # if your compiler supports posix-compatible compilation
+! OS=-O2 -DBSDi
+
+ # add -Iincludedir for any include directories that need to be searched
+! INCS=-I../include -I/usr/X11R6/include
+
+ # set this if your X libraries are in different locations
+ # or if you need extra libraries to load with X11 applications
+! XLIBS=/usr/X11/lib/libXt.a /usr/X11/lib/libX11.a
+
+ # add name of library orderer - use ":" if none
+! RANLIB=ranlib
+
+ # add name of librarian
+ AR=ar
+***************
+*** 50,56 ****
+ $(LIB): $(OBJS)
+ $(AR) rv $(LIB) $(OBJS)
+ $(RANLIB) $(LIB)
+-
+- $(LIB)(%.o): %.o
+
+ $(OBJS): ../include/libg.h libgint.h ../include/libc.h
+--- 49,53 ----
diff --git a/editors/sam/patches/patch-ab b/editors/sam/patches/patch-ab
new file mode 100644
index 00000000000..3ff1dcdce98
--- /dev/null
+++ b/editors/sam/patches/patch-ab
@@ -0,0 +1,46 @@
+*** libframe/Makefile.orig Fri Jul 28 14:08:32 1995
+--- libframe/Makefile Fri Jul 21 15:02:32 1995
+***************
+*** 1,21 ****
+ # Copyright (c) 1992 AT&T - All rights reserved.
+ #
+! # Prototype Makefile for libframe
+ #
+- # define operating system. ONE of:
+- # -DIRIX -DSUNOS -DUMIPS -DSYSVR3 -DAIX -DOSF1
+- # -DHPUX -DAPOLLO -DCONVEX -DDYNIX
+- #
+ # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
+ # if your compiler supports posix-compatible compilation
+! OS=-DIRIX -ansiposix
+
+ # add -Iincludedir for any include directories that need to be searched
+ # for posix header files (for UMIPS, add -I/usr/include/posix)
+! INCS=-I../include
+
+ # add name of library orderer - use ":" if none exists
+! RANLIB=:
+
+ # add name of library
+ AR=ar
+--- 1,20 ----
+ # Copyright (c) 1992 AT&T - All rights reserved.
+ #
+! # Prototype BSDi Makefile for libframe
+! # Courtesy of Boyd Roberts
+! #
+! # Define operating system type: -DBSDi
+ #
+ # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
+ # if your compiler supports posix-compatible compilation
+! OS=-DBSDi -O2
+
+ # add -Iincludedir for any include directories that need to be searched
+ # for posix header files (for UMIPS, add -I/usr/include/posix)
+! INCS=-I../include -I/usr/include/posix
+
+ # add name of library orderer - use ":" if none exists
+! RANLIB=ranlib
+
+ # add name of library
+ AR=ar
diff --git a/editors/sam/patches/patch-ac b/editors/sam/patches/patch-ac
new file mode 100644
index 00000000000..00db47f4ac6
--- /dev/null
+++ b/editors/sam/patches/patch-ac
@@ -0,0 +1,71 @@
+*** samterm/Makefile.orig Fri Jul 28 14:09:32 1995
+--- samterm/Makefile Fri Jul 21 15:30:09 1995
+***************
+*** 1,31 ****
+ # Copyright (c) 1992 AT&T - All rights reserved.
+ #
+! # Prototype Makefile for samterm
+ #
+- # define operating system. ONE of:
+- # -DIRIX -DSUNOS -DUMIPS -DSYSVR3 -DAIX -DOSF1
+- # -DHPUX -DAPOLLO -DCONVEX -DDYNIX
+- #
+ # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
+ # if your compiler supports posix-compatible compilation
+! OS=-DIRIX -ansiposix
+
+ # add -Iincludedir for any include directories that need to be searched
+ # for posix header files (for UMIPS, add -I/usr/include/posix)
+! INCS=-I../include
+
+ # SAMTERM contains the name of the file containing the samterm
+ # executable. SAMTERMDIR is the directory where it is installed.
+ SAMTERM=samterm
+! SAMTERMDIR=/v/bin
+
+ # set this if your X libraries are in different locations
+ # or if you need extra libraries to load with X11 applications
+! XLIBS=/usr/local/X11R5/lib/libXt.a /usr/local/X11R5/lib/libX11.a
+
+ CFLAGS=$(OS) $(INCS) -D_LIBXG_EXTENSION
+
+! LIBS=../libframe/libframe.a ../libXg/libXg.a
+ CC=cc
+
+ OBJ=main.o flayer.o icons.o io.o menu.o mesg.o rasp.o scroll.o unix.o
+--- 1,35 ----
+ # Copyright (c) 1992 AT&T - All rights reserved.
+ #
+! # Prototype BSDi Makefile for samterm
+! # Courtesy of Boyd Roberts
+! #
+! # Define operating system type: -DBSDi
+ #
+ # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
+ # if your compiler supports posix-compatible compilation
+! OS=-DBSDi -O2
+
+ # add -Iincludedir for any include directories that need to be searched
+ # for posix header files (for UMIPS, add -I/usr/include/posix)
+! INCS=-I../include -I/usr/include/posix
+
+ # SAMTERM contains the name of the file containing the samterm
+ # executable. SAMTERMDIR is the directory where it is installed.
+ SAMTERM=samterm
+! SAMTERMDIR=$(PREFIX)/bin
+
+ # set this if your X libraries are in different locations
+ # or if you need extra libraries to load with X11 applications
+! #XLIBS= /usr/X11R6/lib/libXt.a \
+! # /usr/X11R6/lib/libSM.a \
+! # /usr/X11R6/lib/libICE.a \
+! # /usr/X11R6/lib/libX11.a
+!
+! XLIBS=-L/usr/X11R6/lib -lXt -lSM -lICE -lX11
+
+ CFLAGS=$(OS) $(INCS) -D_LIBXG_EXTENSION
+
+! LIBS=../libframe/libframe.a ../libXg/libXg.a
+ CC=cc
+
+ OBJ=main.o flayer.o icons.o io.o menu.o mesg.o rasp.o scroll.o unix.o
diff --git a/editors/sam/patches/patch-ad b/editors/sam/patches/patch-ad
new file mode 100644
index 00000000000..d444b917162
--- /dev/null
+++ b/editors/sam/patches/patch-ad
@@ -0,0 +1,119 @@
+*** sam/Makefile.orig Mon Jul 31 15:45:40 1995
+--- sam/Makefile Mon Jul 31 15:46:24 1995
+***************
+*** 1,18 ****
+ # Copyright (c) 1992 AT&T - All rights reserved.
+ #
+! # Prototype Makefile for sam
+ #
+- # define operating system. ONE of:
+- # -DIRIX -DSUNOS -DUMIPS -DSYSVR3 -DAIX -DOSF1
+- # -DHPUX -DAPOLLO -DCONVEX -DDYNIX
+- #
+ # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
+ # if your compiler supports posix-compatible compilation
+! OS=-DIRIX -ansiposix
+
+ # add -Iincludedir for any include directories that need to be searched
+ # for posix header files (for UMIPS, add -I/usr/include/posix)
+! INCS=-I../include
+
+ # Set the name of the environment variable containing the user's home directory
+ HOMEDIR=HOME
+--- 1,17 ----
+ # Copyright (c) 1992 AT&T - All rights reserved.
+ #
+! # Prototype BSDi Makefile for sam
+! # Courtesy of Boyd Roberts
+! #
+! # Define operating system type: -DBSDi
+ #
+ # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified
+ # if your compiler supports posix-compatible compilation
+! OS=-DBSDi -O2
+
+ # add -Iincludedir for any include directories that need to be searched
+ # for posix header files (for UMIPS, add -I/usr/include/posix)
+! INCS=-I../include -I/usr/include/posix
+
+ # Set the name of the environment variable containing the user's home directory
+ HOMEDIR=HOME
+***************
+*** 22,33 ****
+ # where sam is to be installed. SAMSAVEDIR is the name of the directory
+ # where the samsave file restoration script is stored.
+ RSAMNAME=sam
+! TERMNAME=/v/bin/samterm
+! SAMDIR=/usr/bin
+! SAMSAVEDIR=/v/bin
+
+ # Set TMP to a good place for tmp files (with lots of room)
+! TMP=/usr/tmp
+
+ # Set SHELLNAME and SHELLPATH to the name of a shell and the pathname
+ # of its executable
+--- 21,32 ----
+ # where sam is to be installed. SAMSAVEDIR is the name of the directory
+ # where the samsave file restoration script is stored.
+ RSAMNAME=sam
+! TERMNAME=$(PREFIX)/bin/samterm
+! SAMDIR=$(PREFIX)/bin
+! SAMSAVEDIR=$(PREFIX)/bin
+
+ # Set TMP to a good place for tmp files (with lots of room)
+! TMP=/var/tmp
+
+ # Set SHELLNAME and SHELLPATH to the name of a shell and the pathname
+ # of its executable
+***************
+*** 37,43 ****
+ # Set RXNAME and RXPATHNAME to the name of the remote execution command
+ # and the pathname of its executable
+ RXNAME=rsh
+! RXPATHNAME=/usr/bsd/rsh
+
+ SAMSAVE=/bin/sh\\n$(SAMSAVEDIR)/samsave
+
+--- 36,42 ----
+ # Set RXNAME and RXPATHNAME to the name of the remote execution command
+ # and the pathname of its executable
+ RXNAME=rsh
+! RXPATHNAME=/usr/bin/rsh
+
+ SAMSAVE=/bin/sh\\n$(SAMSAVEDIR)/samsave
+
+***************
+*** 68,76 ****
+ rm -f sam
+
+ install: sam
+! cp sam $(SAMDIR)/$(RSAMNAME)
+! cp samsave $(SAMSAVEDIR)/samsave
+! chmod +x samsave
+
+ $(OBJ): sam.h ../include/u.h ../include/libc.h errors.h mesg.h
+
+--- 67,76 ----
+ rm -f sam
+
+ install: sam
+! $(INSTALL) -c sam $(SAMDIR)/$(RSAMNAME)
+! $(INSTALL) -c samsave $(SAMSAVEDIR)/samsave
+! $(INSTALL) -c B.rc $(SAMDIR)/B
+! chmod +x $(SAMSAVEDIR)/samsave
+
+ $(OBJ): sam.h ../include/u.h ../include/libc.h errors.h mesg.h
+
+*** sam/B.rc.orig Mon Jul 31 15:45:31 1995
+--- sam/B.rc Mon Jul 31 15:47:10 1995
+***************
+*** 1,4 ****
+! #!/bin/rc
+
+ files=()
+ line=''
+--- 1,4 ----
+! #!/usr/local/bin/rc
+
+ files=()
+ line=''
diff --git a/editors/sam/patches/patch-ae b/editors/sam/patches/patch-ae
new file mode 100644
index 00000000000..95c677a8425
--- /dev/null
+++ b/editors/sam/patches/patch-ae
@@ -0,0 +1,23 @@
+*** include/u.h~ Fri Jul 21 15:01:18 1995
+--- include/u.h Fri Jul 21 16:47:00 1995
+***************
+*** 46,53 ****
+ #define NOFIFO /* turn off exstart in samterm/unix.c */
+ #endif /* UMIPS */
+
+! #ifdef SUNOS
+ typedef unsigned short ushort;
+ typedef unsigned long ulong;
+ extern char *strerror(int);
+ extern void *memmove(void*, const void*, size_t);
+--- 46,55 ----
+ #define NOFIFO /* turn off exstart in samterm/unix.c */
+ #endif /* UMIPS */
+
+! #if defined(SUNOS)
+! #ifndef __FreeBSD__
+ typedef unsigned short ushort;
++ #endif
+ typedef unsigned long ulong;
+ extern char *strerror(int);
+ extern void *memmove(void*, const void*, size_t);
diff --git a/editors/sam/patches/patch-af b/editors/sam/patches/patch-af
new file mode 100644
index 00000000000..ba87ef18a54
--- /dev/null
+++ b/editors/sam/patches/patch-af
@@ -0,0 +1,41 @@
+*** Makefile.orig Fri Aug 11 15:55:41 1995
+--- Makefile Fri Aug 11 16:08:35 1995
+***************
+*** 3,8 ****
+--- 3,17 ----
+ # master makefile for sam. configure sub-makefiles first.
+ #
+
++
++ MAN=man
++ MAN1=sam
++ MAN3=add balloc bitblt cachechars event frame graphics rgbpix rune
++ MAN4=font keyboard utf
++ MAN6=bitmap regexp
++ APP_DEFAULT_DIR=/usr/X11R6/lib/X11/app-defaults
++ AD=Sam
++
+ all: lXg lframe samdir samtermdir
+
+ lXg:
+***************
+*** 21,26 ****
+--- 30,47 ----
+ cd libframe; $(MAKE) install
+ cd sam; $(MAKE) install
+ cd samterm; $(MAKE) install
++ pwd
++ for i in $(MAN1); do cp doc/$$i.1 $(PREFIX)/$(MAN)/man1/$$i.1; done
++ for i in $(MAN3); do cp doc/$$i.3 $(PREFIX)/$(MAN)/man3/$$i.3; done
++ for i in $(MAN4); do cp doc/$$i.4 $(PREFIX)/$(MAN)/man4/$$i.4; done
++ for i in $(MAN6); do cp doc/$$i.6 $(PREFIX)/$(MAN)/man6/$$i.6; done
++ cp doc/$(AD).ad $(APP_DEFAULT_DIR)/$(AD)
++ strip $(PREFIX)/bin/sam
++ strip $(PREFIX)/bin/samterm
++ for i in $(MAN1); do gzip -9nf $(PREFIX)/$(MAN)/man1/$$i.1; done
++ for i in $(MAN3); do gzip -9nf $(PREFIX)/$(MAN)/man3/$$i.3; done
++ for i in $(MAN4); do gzip -9nf $(PREFIX)/$(MAN)/man4/$$i.4; done
++ for i in $(MAN6); do gzip -9nf $(PREFIX)/$(MAN)/man6/$$i.6; done
+
+ clean:
+ cd libXg; $(MAKE) clean
diff --git a/editors/sam/pkg/COMMENT b/editors/sam/pkg/COMMENT
new file mode 100644
index 00000000000..1bbc7df747a
--- /dev/null
+++ b/editors/sam/pkg/COMMENT
@@ -0,0 +1 @@
+A unix version of Rob Pike's editor for plan9
diff --git a/editors/sam/pkg/DESCR b/editors/sam/pkg/DESCR
new file mode 100644
index 00000000000..2eab5d1faea
--- /dev/null
+++ b/editors/sam/pkg/DESCR
@@ -0,0 +1,17 @@
+This is an X11 version of Rob Pike's editor, sam. Documentation describing
+its use and construction are provided in subdirectory doc. The file doc/sam.1
+contains the manual page; doc/sam.tut.ms is a tutorial that can be
+formatted with troff -ms. It substitutes Bold and Italics for the
+fonts named CW and CS; if your system has these fonts, remove the
+CW and CS macros at the beginning of the file. The files doc/sam.ps
+and doc/se.ps are postscript versions of published papers describing
+sam and structural regular expressions. These papers reflect sam's
+capabilities at the time of publication several years ago; while the
+general description remains accurate, some functions may have changed
+or been removed. Other files in the doc directory contain manual pages
+for the library packages used by sam.
+
+Sam is composed of two programs: sam itself, which does the command processing
+and file manipulation; and samterm, which controls the display and
+interacts with the user. You can run sam on one machine and samterm on another
+connected via remote execution.
diff --git a/editors/sam/pkg/PLIST b/editors/sam/pkg/PLIST
new file mode 100644
index 00000000000..4ca58d2dc24
--- /dev/null
+++ b/editors/sam/pkg/PLIST
@@ -0,0 +1,19 @@
+bin/sam
+bin/samterm
+bin/samsave
+bin/B
+man/man3/add.3.gz
+man/man3/balloc.3.gz
+man/man3/bitblt.3.gz
+man/man6/bitmap.6.gz
+man/man3/cachechars.3.gz
+man/man3/event.3.gz
+man/man4/font.4.gz
+man/man3/frame.3.gz
+man/man3/graphics.3.gz
+man/man4/keyboard.4.gz
+man/man6/regexp.6.gz
+man/man3/rgbpix.3.gz
+man/man3/rune.3.gz
+man/man1/sam.1.gz
+man/man4/utf.4.gz