From 32f46d87865ffb237d4afa4c4d41b1d49eabc819 Mon Sep 17 00:00:00 2001 From: marc Date: Mon, 28 Sep 1998 21:00:48 +0000 Subject: [PATCH] port added; Markus Friedl --- plan9/sam/Makefile | 37 +++++++++++++++++++++++++++++++++++++ plan9/sam/files/md5 | 1 + plan9/sam/patches/patch-aa | 37 +++++++++++++++++++++++++++++++++++++ plan9/sam/patches/patch-ab | 31 +++++++++++++++++++++++++++++++ plan9/sam/patches/patch-ac | 19 +++++++++++++++++++ plan9/sam/patches/patch-ad | 37 +++++++++++++++++++++++++++++++++++++ plan9/sam/patches/patch-ae | 31 +++++++++++++++++++++++++++++++ plan9/sam/patches/patch-af | 25 +++++++++++++++++++++++++ plan9/sam/pkg/COMMENT | 1 + plan9/sam/pkg/DESCR | 4 ++++ plan9/sam/pkg/PLIST | 12 ++++++++++++ plan9/tcs/Makefile | 30 ++++++++++++++++++++++++++++++ plan9/tcs/files/md5 | 1 + plan9/tcs/pkg/COMMENT | 1 + plan9/tcs/pkg/DESCR | 9 +++++++++ plan9/tcs/pkg/PLIST | 4 ++++ 16 files changed, 280 insertions(+) create mode 100644 plan9/sam/Makefile create mode 100644 plan9/sam/files/md5 create mode 100644 plan9/sam/patches/patch-aa create mode 100644 plan9/sam/patches/patch-ab create mode 100644 plan9/sam/patches/patch-ac create mode 100644 plan9/sam/patches/patch-ad create mode 100644 plan9/sam/patches/patch-ae create mode 100644 plan9/sam/patches/patch-af create mode 100644 plan9/sam/pkg/COMMENT create mode 100644 plan9/sam/pkg/DESCR create mode 100644 plan9/sam/pkg/PLIST create mode 100644 plan9/tcs/Makefile create mode 100644 plan9/tcs/files/md5 create mode 100644 plan9/tcs/pkg/COMMENT create mode 100644 plan9/tcs/pkg/DESCR create mode 100644 plan9/tcs/pkg/PLIST diff --git a/plan9/sam/Makefile b/plan9/sam/Makefile new file mode 100644 index 00000000000..2b563ccd003 --- /dev/null +++ b/plan9/sam/Makefile @@ -0,0 +1,37 @@ +# OpenBSD makefile for: sam +# Version required: 4.3 +# Date created: Sep 3 1998 +# Whom: msfriedl@cs.fau.de +# +# $Id: Makefile,v 1.1.1.1 1998/09/28 21:01:53 marc Exp $ +# + +DISTNAME= sam-4.3-19980506 +CATEGORIES= plan9 +MAINTAINER= msfriedl@cs.fau.de + +MASTER_SITES= ftp://netlib.bell-labs.com/netlib/research/ \ + http://netlib.bell-labs.com/netlib/research/ +DISTFILES= sam.shar.gz + +EXTRACT_SUFX= .shar.gz +EXTRACT_CMD= gzip -d < +EXTRACT_BEFORE_ARGS= +EXTRACT_AFTER_ARGS= |sh + +NO_WRKSUBDIR= yes + +SAMDOCDIR= ${PREFIX}/share/doc/sam +SAMDOCFILES= sam.ps sam.tut.ms se.ps Sam.ad + +post-install: + ${INSTALL_MAN} $(WRKSRC)/doc/sam.1 $(PREFIX)/man/man1 +.if !defined(NOPORTDOCS) + ${MKDIR} ${SAMDOCDIR} + set -e; for f in ${SAMDOCFILES}; do \ + ${INSTALL_DATA} ${WRKSRC}/doc/$${f} ${SAMDOCDIR}/$${f}; \ + done + ${INSTALL_DATA} ${WRKSRC}/README ${SAMDOCDIR}/ +.endif + +.include diff --git a/plan9/sam/files/md5 b/plan9/sam/files/md5 new file mode 100644 index 00000000000..51c3403072e --- /dev/null +++ b/plan9/sam/files/md5 @@ -0,0 +1 @@ +MD5 (sam.shar.gz) = db0f1abf3b414d5b371ac356875be4c6 diff --git a/plan9/sam/patches/patch-aa b/plan9/sam/patches/patch-aa new file mode 100644 index 00000000000..7cc0423b2dd --- /dev/null +++ b/plan9/sam/patches/patch-aa @@ -0,0 +1,37 @@ +--- doc/sam.1-old Thu Sep 3 19:55:50 1998 ++++ doc/sam.1 Thu Sep 3 20:10:53 1998 +@@ -1,34 +1,3 @@ +-.de F +-.B +-.if !"\\$1"" \&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 +-.. +-.de L +-.B +-.if !"\\$1"" \&\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 +-.. +-.de FR +-.BR "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" +-.. +-.de LR +-.BR "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" +-.. +-.de CW +-.ft B +-.. +-.\" This is gross but it avoids relying on internal implementation details +-.\" of the -man macros. +-.de TF +-.br +-.IP "" \w'\fB\\$1\ \ \fP'u +-.PD0 +-.. +-.de EX +-.CW +-.nf +-.. +-.de EE +-.fi +-.. + .\" delete above this point if your system has F, L, FR, LR, CW and TF macros + .ds a \fR*\ \fP + .TH SAM 1 diff --git a/plan9/sam/patches/patch-ab b/plan9/sam/patches/patch-ab new file mode 100644 index 00000000000..a7a12796977 --- /dev/null +++ b/plan9/sam/patches/patch-ab @@ -0,0 +1,31 @@ +--- libXg/Makefile.dist Thu Sep 3 19:20:34 1998 ++++ libXg/Makefile Thu Sep 3 22:23:12 1998 +@@ -8,17 +8,17 @@ + # + # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified + # if your compiler supports posix-compatible compilation +-OS=-DIRIX5 -ansiposix ++OS=-D_POSIX_SOURCE -DSOLARIS + + # add -Iincludedir for any include directories that need to be searched +-INCS=-I../include ++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=-lXt + + # add name of library orderer - use ":" if none +-RANLIB=: ++RANLIB=ranlib + + # add name of librarian + AR=ar +@@ -50,7 +50,5 @@ + $(LIB): $(OBJS) + $(AR) rv $(LIB) $(OBJS) + $(RANLIB) $(LIB) +- +-$(LIB)(%.o): %.o + + $(OBJS): ../include/libg.h libgint.h ../include/libc.h diff --git a/plan9/sam/patches/patch-ac b/plan9/sam/patches/patch-ac new file mode 100644 index 00000000000..3757393a2f0 --- /dev/null +++ b/plan9/sam/patches/patch-ac @@ -0,0 +1,19 @@ +--- libframe/Makefile.dist Thu Sep 3 19:20:34 1998 ++++ libframe/Makefile Thu Sep 3 22:20:25 1998 +@@ -8,14 +8,14 @@ + # + # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified + # if your compiler supports posix-compatible compilation +-OS=-DIRIX5 -ansiposix ++OS=-D_POSIX_SOURCE -DSOLARIS + + # 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=: ++RANLIB=ranlib + + # add name of library + AR=ar diff --git a/plan9/sam/patches/patch-ad b/plan9/sam/patches/patch-ad new file mode 100644 index 00000000000..f7450c18529 --- /dev/null +++ b/plan9/sam/patches/patch-ad @@ -0,0 +1,37 @@ +--- sam/Makefile.dist Thu Sep 3 19:20:33 1998 ++++ sam/Makefile Thu Sep 3 22:17:14 1998 +@@ -8,7 +8,7 @@ + # + # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified + # if your compiler supports posix-compatible compilation +-OS=-DIRIX5 -ansiposix ++OS=-D_POSIX_SOURCE -DSOLARIS + + # add -Iincludedir for any include directories that need to be searched + # for posix header files (for UMIPS, add -I/usr/include/posix) +@@ -22,12 +22,12 @@ + # 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 ++TERMNAME=/usr/local/bin/samterm ++SAMDIR=/usr/local/bin ++SAMSAVEDIR=/usr/local/bin + + # Set TMP to a good place for tmp files (with lots of room) +-TMP=/tmp ++TMP=/var/tmp + + # Set SHELLNAME and SHELLPATH to the name of a shell and the pathname + # of its executable +@@ -37,7 +37,7 @@ + # Set RXNAME and RXPATHNAME to the name of the remote execution command + # and the pathname of its executable + RXNAME=rsh +-RXPATHNAME=/usr/bsd/rsh ++RXPATHNAME=/usr/bin/rsh + + SAMSAVE=/bin/sh\\n$(SAMSAVEDIR)/samsave + diff --git a/plan9/sam/patches/patch-ae b/plan9/sam/patches/patch-ae new file mode 100644 index 00000000000..a745c130694 --- /dev/null +++ b/plan9/sam/patches/patch-ae @@ -0,0 +1,31 @@ +--- sam/unix.c.dist Thu Sep 3 19:23:37 1998 ++++ sam/unix.c Thu Sep 3 19:24:32 1998 +@@ -147,18 +147,18 @@ + int + newtmp(int i) + { +- char *s; +- FILE *f; +- extern char *tempnam(const char*, const char*); ++ char file[40]; ++ int fd; ++ extern int mkstemp(char *); + +- s = tempnam(TMPDIR, "sam."); +- if (!s) ++ snprintf(file, 40, "%s/sam.XXXXXXXXXX", TMPDIR); ++ fd = mkstemp(file); ++ if(fd < 0){ ++ unlink(file); + return -1; +- f = fopen(s, "w+"); +- if (!f) +- return -1; +- unlink(s); +- return fileno(f); ++ } ++ unlink(file); ++ return fd; + } + + void diff --git a/plan9/sam/patches/patch-af b/plan9/sam/patches/patch-af new file mode 100644 index 00000000000..d81e83519bb --- /dev/null +++ b/plan9/sam/patches/patch-af @@ -0,0 +1,25 @@ +--- samterm/Makefile.dist Thu Sep 3 19:20:34 1998 ++++ samterm/Makefile Thu Sep 3 22:27:39 1998 +@@ -8,7 +8,7 @@ + # + # Additionally, -D_POSIX_SOURCE (or its equivalent) may be specified + # if your compiler supports posix-compatible compilation +-OS=-DIRIX5 -ansiposix ++OS=-D_POSIX_SOURCE -DSOLARIS + + # add -Iincludedir for any include directories that need to be searched + # for posix header files (for UMIPS, add -I/usr/include/posix) +@@ -16,11 +16,11 @@ + + # SAMTERM contains the name of the file containing the samterm + # executable. +-SAMTERM=/v/bin/samterm ++SAMTERM=/usr/local/bin/samterm + + # set this if your X libraries are in different locations + # or if you need extra libraries to load with X11 applications +-XLIBS=-lXt -lX11 ++XLIBS=-L/usr/X11R6/lib -lXt -lX11 + + CFLAGS=$(OS) $(INCS) -D_LIBXG_EXTENSION + diff --git a/plan9/sam/pkg/COMMENT b/plan9/sam/pkg/COMMENT new file mode 100644 index 00000000000..e32958bb836 --- /dev/null +++ b/plan9/sam/pkg/COMMENT @@ -0,0 +1 @@ +This is an X11 version of Rob Pike's editor, sam. diff --git a/plan9/sam/pkg/DESCR b/plan9/sam/pkg/DESCR new file mode 100644 index 00000000000..2ca2bcd095c --- /dev/null +++ b/plan9/sam/pkg/DESCR @@ -0,0 +1,4 @@ +Documentation describing its use and construction are provided in +subdirectory share/doc/sam. The file sam.tut.ms is a tutorial +that can be formatted with troff -ms, se.ps describes structural +regular expressions, sam.ps contains a paper about sam. diff --git a/plan9/sam/pkg/PLIST b/plan9/sam/pkg/PLIST new file mode 100644 index 00000000000..e295ca6f228 --- /dev/null +++ b/plan9/sam/pkg/PLIST @@ -0,0 +1,12 @@ +@cwd /usr/local +@name sam-4.3-19980506 +bin/samsave +bin/sam +bin/samterm +man/man1/sam.1 +share/doc/sam/sam.ps +share/doc/sam/sam.tut.ms +share/doc/sam/se.ps +share/doc/sam/Sam.ad +share/doc/sam/README +@dirrm share/doc/sam diff --git a/plan9/tcs/Makefile b/plan9/tcs/Makefile new file mode 100644 index 00000000000..3124ff67c4c --- /dev/null +++ b/plan9/tcs/Makefile @@ -0,0 +1,30 @@ +# OpenBSD makefile for: tcs +# Version required: 19950325 +# Date created: Sep 23 1998 +# Whom: msfriedl@cs.fau.de +# +# $Id: Makefile,v 1.1.1.1 1998/09/28 21:00:48 marc Exp $ +# + +DISTNAME= tcs-19950325 +CATEGORIES= plan9 +MAINTAINER= msfriedl@cs.fau.de + +MASTER_SITES= ftp://plan9.bell-labs.com/plan9/unixsrc/ \ + ftp://ftp.gwdg.de/pub/gnu2/plan9/unixsrc/ + +DISTFILES= tcs.shar.Z + +EXTRACT_SUFX= .shar.Z +EXTRACT_CMD= gzip -d < +EXTRACT_BEFORE_ARGS= +EXTRACT_AFTER_ARGS= |sh + +NO_WRKSUBDIR= yes +ALL_TARGET= tcs + +do-install: + @${INSTALL_MAN} $(WRKSRC)/tcs.1 $(PREFIX)/man/man1 + @${INSTALL_PROGRAM} $(WRKSRC)/tcs $(PREFIX)/bin + +.include diff --git a/plan9/tcs/files/md5 b/plan9/tcs/files/md5 new file mode 100644 index 00000000000..9aac7ed4ca1 --- /dev/null +++ b/plan9/tcs/files/md5 @@ -0,0 +1 @@ +MD5 (tcs.shar.Z) = 919f9ed292c9d247171f5b5909645b57 diff --git a/plan9/tcs/pkg/COMMENT b/plan9/tcs/pkg/COMMENT new file mode 100644 index 00000000000..8235cf7f86b --- /dev/null +++ b/plan9/tcs/pkg/COMMENT @@ -0,0 +1 @@ +translate character sets diff --git a/plan9/tcs/pkg/DESCR b/plan9/tcs/pkg/DESCR new file mode 100644 index 00000000000..81020d21550 --- /dev/null +++ b/plan9/tcs/pkg/DESCR @@ -0,0 +1,9 @@ +Tcs interprets the named file(s) (standard input default) as a +stream of characters from the INPUT character set or format, converts +them to runes, and then converts them into a stream of characters +from the OUTPUT character set or format on the standard output. + +Available character sets: + utf utf1 ascii cp1251 ov sf1 sf2 jis(from) jis-kanji ujis + ms-kanji big5 gb euc-k tis viet1 viet2 viscii msdos msdos2 + ps2 macrom next atari unicode ebcdic utf-l2 latin1 etc. diff --git a/plan9/tcs/pkg/PLIST b/plan9/tcs/pkg/PLIST new file mode 100644 index 00000000000..e2f717a5f5e --- /dev/null +++ b/plan9/tcs/pkg/PLIST @@ -0,0 +1,4 @@ +@cwd /usr/local +@name tcs +bin/tcs +man/man1/tcs.1