diff options
Diffstat (limited to 'shells/rc')
-rw-r--r-- | shells/rc/Makefile | 15 | ||||
-rw-r--r-- | shells/rc/distinfo | 1 | ||||
-rw-r--r-- | shells/rc/files/patch-aa | 93 | ||||
-rw-r--r-- | shells/rc/pkg-comment | 1 | ||||
-rw-r--r-- | shells/rc/pkg-descr | 34 | ||||
-rw-r--r-- | shells/rc/pkg-plist | 8 |
6 files changed, 152 insertions, 0 deletions
diff --git a/shells/rc/Makefile b/shells/rc/Makefile new file mode 100644 index 000000000000..194310cd8fa1 --- /dev/null +++ b/shells/rc/Makefile @@ -0,0 +1,15 @@ +# New ports collection makefile for: rc +# Version required: 1.5b1 +# Date created: Sun Aug 13 12:36:14 CDT 1995 +# Whom: erich@rrnet.com +# +# $Id$ +# + +DISTNAME= rc-1.5betadev-1 +PKGNAME= rc-1.5b1 +CATEGORIES+= plan9 +MASTER_SITES= ftp://ftp.sys.toronto.edu/pub/rc/ +NO_WRKSUBDIR= yes + +.include <bsd.port.mk> diff --git a/shells/rc/distinfo b/shells/rc/distinfo new file mode 100644 index 000000000000..a510c99d59aa --- /dev/null +++ b/shells/rc/distinfo @@ -0,0 +1 @@ +MD5 (rc-1.5betadev-1.tar.gz) = 4ddd5d227fe3817da9cf2781702a6c8b diff --git a/shells/rc/files/patch-aa b/shells/rc/files/patch-aa new file mode 100644 index 000000000000..8d0ff6190e1f --- /dev/null +++ b/shells/rc/files/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 000000000000..5a5234eccdea --- /dev/null +++ b/shells/rc/pkg-comment @@ -0,0 +1 @@ +rc, version 1.5beta-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 000000000000..43142d5d5263 --- /dev/null +++ b/shells/rc/pkg-descr @@ -0,0 +1,34 @@ +This is release 1.5 of rc. + +Read COPYRIGHT for copying information. All files are + +Copyright 1991, Byron Rakitzis. + +CREDITS + +This shell was written by me, 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), and to Hugh +Redelmeier for running rc through his fussy ANSI compiler and +thereby provoking interesting discussions about portability, and +also for providing many valuable suggestions for improving rc's +code in general. Finally, many thanks go to David Sanderson, for +reworking the man page to format well with troff, and for providing +many suggestions both for rc and its man page. + +Thanks to Boyd Roberts for the original history.c, and to Hugh +again for re-working parts of that code. + +Of course, without Tom Duff's design of the original rc, I could +not have written this shell (though I probably would have written +*a* shell). Almost of all of the features, with minor exceptions, +have been implemented as described in the Unix v10 manuals. Hats +off to td for designing a C-like, minimal but very useful shell. + +Tom Duff has kindly given permission for the paper he wrote for +UKUUG to be distributed with this version of rc (called "plan9.ps" +in the same ftp directory as the shell). Please read this paper +bearing in mind that it describes a program that was written at +AT&T and that the version of rc presented here differs in some +respects. diff --git a/shells/rc/pkg-plist b/shells/rc/pkg-plist new file mode 100644 index 000000000000..dfe16872b94e --- /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 |