port added; Markus Friedl <Markus.Friedl@informatik.uni-erlangen.de>

This commit is contained in:
marc 1998-09-28 21:00:48 +00:00
parent 4c68432aac
commit 32f46d8786
16 changed files with 280 additions and 0 deletions

37
plan9/sam/Makefile Normal file
View File

@ -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 <bsd.port.mk>

1
plan9/sam/files/md5 Normal file
View File

@ -0,0 +1 @@
MD5 (sam.shar.gz) = db0f1abf3b414d5b371ac356875be4c6

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

1
plan9/sam/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
This is an X11 version of Rob Pike's editor, sam.

4
plan9/sam/pkg/DESCR Normal file
View File

@ -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.

12
plan9/sam/pkg/PLIST Normal file
View File

@ -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

30
plan9/tcs/Makefile Normal file
View File

@ -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 <bsd.port.mk>

1
plan9/tcs/files/md5 Normal file
View File

@ -0,0 +1 @@
MD5 (tcs.shar.Z) = 919f9ed292c9d247171f5b5909645b57

1
plan9/tcs/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
translate character sets

9
plan9/tcs/pkg/DESCR Normal file
View File

@ -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.

4
plan9/tcs/pkg/PLIST Normal file
View File

@ -0,0 +1,4 @@
@cwd /usr/local
@name tcs
bin/tcs
man/man1/tcs.1