summaryrefslogtreecommitdiff
path: root/shells/rc
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1997-10-09 14:30:56 +0000
committeragc <agc@pkgsrc.org>1997-10-09 14:30:56 +0000
commit5a738ca9d8968d3de0c39083b8a8a5a76cd01b02 (patch)
treedb232209ea22925d7f406bcc3a7b5e7457bffa83 /shells/rc
parentd842fc40ac63031ed503242a8f7d04368f208721 (diff)
downloadpkgsrc-5a738ca9d8968d3de0c39083b8a8a5a76cd01b02.tar.gz
Initial import of FreeBSD plan9 ports category into the NetBSD package
system.
Diffstat (limited to 'shells/rc')
-rw-r--r--shells/rc/Makefile18
-rw-r--r--shells/rc/files/md51
-rw-r--r--shells/rc/patches/patch-aa93
-rw-r--r--shells/rc/pkg/COMMENT1
-rw-r--r--shells/rc/pkg/DESCR22
-rw-r--r--shells/rc/pkg/PLIST8
6 files changed, 143 insertions, 0 deletions
diff --git a/shells/rc/Makefile b/shells/rc/Makefile
new file mode 100644
index 00000000000..61f20ad5aa0
--- /dev/null
+++ b/shells/rc/Makefile
@@ -0,0 +1,18 @@
+# New ports collection makefile for: rc
+# Version required: 1.5b1
+# 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:38 obrien Exp
+#
+
+DISTNAME= rc-1.5betadev-1
+PKGNAME= rc-1.5b1
+CATEGORIES= plan9
+MASTER_SITES= ftp://ftp.sys.toronto.edu/pub/rc/
+
+MAINTAINER= erich@FreeBSD.org
+
+NO_WRKSUBDIR= yes
+
+.include <bsd.port.mk>
diff --git a/shells/rc/files/md5 b/shells/rc/files/md5
new file mode 100644
index 00000000000..a510c99d59a
--- /dev/null
+++ b/shells/rc/files/md5
@@ -0,0 +1 @@
+MD5 (rc-1.5betadev-1.tar.gz) = 4ddd5d227fe3817da9cf2781702a6c8b
diff --git a/shells/rc/patches/patch-aa b/shells/rc/patches/patch-aa
new file mode 100644
index 00000000000..8d0ff6190e1
--- /dev/null
+++ b/shells/rc/patches/patch-aa
@@ -0,0 +1,93 @@
+*** Makefile.orig Sun Mar 6 21:32:46 1994
+--- Makefile Fri Aug 11 16:00:41 1995
+***************
+*** 16,23 ****
+ #ADDON=addon.o
+
+ # Use an ANSI compiler (or at least one that groks prototypes and void *):
+! CC=gcc -g -O
+! CFLAGS=
+ LDFLAGS=
+
+ # You may substitute "bison -y" for yacc. (You want to choose the one that
+--- 16,23 ----
+ #ADDON=addon.o
+
+ # Use an ANSI compiler (or at least one that groks prototypes and void *):
+! CC=gcc
+! CFLAGS= -O2
+ LDFLAGS=
+
+ # You may substitute "bison -y" for yacc. (You want to choose the one that
+***************
+*** 29,34 ****
+--- 29,47 ----
+ nalloc.o open.o print.o redir.o sigmsgs.o signal.o status.o tree.o \
+ utils.o var.o version.o wait.o walk.o which.o y.tab.o
+
++ all: rc history
++
++ install:
++ $(INSTALL) -c rc $(PREFIX)/bin
++ $(INSTALL) -c history/history $(PREFIX)/bin
++ for i in - -- -p --p; do rm -f $(PREFIX)/bin/$$i; ln $(PREFIX)/bin/history $(PREFIX)/bin/$$i; done
++ $(INSTALL) -c rc.1 $(PREFIX)/man/man1
++ $(INSTALL) -c history/history.1 $(PREFIX)/man/man1
++ strip $(PREFIX)/bin/rc
++ strip $(PREFIX)/bin/history
++ gzip -9nf $(PREFIX)/man/man1/rc.1
++ gzip -9nf $(PREFIX)/man/man1/history.1
++
+ # If rc is compiled with READLINE defined, you must supply the correct
+ # arguments to ld on this line. Typically this would be something like:
+ #
+*** builtins.c.orig Sun Mar 6 21:32:49 1994
+--- builtins.c Mon Jul 31 12:27:12 1995
+***************
+*** 466,477 ****
+
+ #ifndef SYSVR4
+ extern int getrlimit(int, struct rlimit *);
+ extern int setrlimit(int, struct rlimit *);
+ #endif
+
+ static void printlimit(const Limit *limit, bool hard) {
+ struct rlimit rlim;
+! long lim;
+ getrlimit(limit->flag, &rlim);
+ if (hard)
+ lim = rlim.rlim_max;
+--- 466,481 ----
+
+ #ifndef SYSVR4
+ extern int getrlimit(int, struct rlimit *);
++
++ #ifndef __FreeBSD__
+ extern int setrlimit(int, struct rlimit *);
+ #endif
+
++ #endif
++
+ static void printlimit(const Limit *limit, bool hard) {
+ struct rlimit rlim;
+! u_quad_t lim;
+ getrlimit(limit->flag, &rlim);
+ if (hard)
+ lim = rlim.rlim_max;
+***************
+*** 490,496 ****
+ }
+ }
+
+! static long parselimit(const Limit *limit, char *s) {
+ char *t;
+ int len = strlen(s);
+ long lim = 1;
+--- 494,500 ----
+ }
+ }
+
+! static u_quad_t parselimit(const Limit *limit, char *s) {
+ char *t;
+ int len = strlen(s);
+ long lim = 1;
diff --git a/shells/rc/pkg/COMMENT b/shells/rc/pkg/COMMENT
new file mode 100644
index 00000000000..eb1f3e0e67e
--- /dev/null
+++ b/shells/rc/pkg/COMMENT
@@ -0,0 +1 @@
+A unix incarnation of the plan9 shell.
diff --git a/shells/rc/pkg/DESCR b/shells/rc/pkg/DESCR
new file mode 100644
index 00000000000..90ecb689fec
--- /dev/null
+++ b/shells/rc/pkg/DESCR
@@ -0,0 +1,22 @@
+Excerpts from the README:
+
+ This is release 1.5 of rc.
+
+ A unix version of the Plan-9 Shell.
+
+ FEEPING CREATURISM
+
+ See the end of the man page, under "INCOMPATABILITIES" for (known?)
+ differences from the "real" rc. Most of these changes were necessary
+ to get rc to work in a reasonable fashion on a real (i.e., commercial,
+ non-Labs) UNIX system; a few were changes motivated by concern
+ about some inadequacies in the original design.
+
+ CREDITS
+
+ This shell was written by Byron Rakitzis, but kudos go to Paul
+ Haahr for letting me know what a shell should do and for contributing
+ certain bits and pieces to rc (notably the limits code, print.c,
+ most of which.c and the backquote redirection code).
+
+eric.
diff --git a/shells/rc/pkg/PLIST b/shells/rc/pkg/PLIST
new file mode 100644
index 00000000000..dfe16872b94
--- /dev/null
+++ b/shells/rc/pkg/PLIST
@@ -0,0 +1,8 @@
+bin/rc
+bin/history
+bin/-
+bin/--
+bin/-p
+bin/--p
+man/man1/history.1.gz
+man/man1/rc.1.gz