# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # openksh # openksh/files # openksh/files/patch-main.c # openksh/files/patch-c_sh.c # openksh/files/patch-lex.c # openksh/files/patch-ksh.1 # openksh/Makefile # openksh/distinfo # openksh/pkg-descr # openksh/pkg-plist # echo c - openksh mkdir -p openksh > /dev/null 2>&1 echo c - openksh/files mkdir -p openksh/files > /dev/null 2>&1 echo x - openksh/files/patch-main.c sed 's/^X//' >openksh/files/patch-main.c << 'END-of-openksh/files/patch-main.c' X--- main.c.orig Thu Nov 2 13:21:20 2006 X+++ main.c Sun Mar 4 00:21:35 2007 X@@ -8,7 +8,7 @@ X X #include "sh.h" X #include X-#include X+#include X X extern char **environ; X X@@ -63,7 +63,7 @@ X NULL X }; X X-char username[_PW_NAME_LEN + 1]; X+char username[MAXLOGNAME]; X X #define version_param (initcoms[2]) X END-of-openksh/files/patch-main.c echo x - openksh/files/patch-c_sh.c sed 's/^X//' >openksh/files/patch-c_sh.c << 'END-of-openksh/files/patch-c_sh.c' X--- c_sh.c.orig Mon Apr 10 10:38:59 2006 X+++ c_sh.c Sat Mar 3 17:41:09 2007 X@@ -926,6 +926,5 @@ X {"ulimit", c_ulimit}, X {"+umask", c_umask}, X {"*=unset", c_unset}, X- {"mknod", c_mknod}, X {NULL, NULL} X }; END-of-openksh/files/patch-c_sh.c echo x - openksh/files/patch-lex.c sed 's/^X//' >openksh/files/patch-lex.c << 'END-of-openksh/files/patch-lex.c' X--- lex.c.orig Mon Jul 10 13:12:41 2006 X+++ lex.c Thu Mar 1 13:36:15 2007 X@@ -7,6 +7,7 @@ X #include "sh.h" X #include X #include X+#include X X X /* Structure to keep track of the lexing state and the various pieces of info END-of-openksh/files/patch-lex.c echo x - openksh/files/patch-ksh.1 sed 's/^X//' >openksh/files/patch-ksh.1 << 'END-of-openksh/files/patch-ksh.1' X--- ksh.1.orig Thu Nov 30 03:47:58 2006 X+++ ksh.1 Sat Mar 3 17:16:46 2007 X@@ -2706,7 +2706,7 @@ X .Nm X regular commands X .Pp X-.Ic \&[ , echo , let , mknod , X+.Ic \&[ , echo , let , X .Ic print , pwd , test , ulimit , X .Ic whence X .Pp X@@ -3298,43 +3298,6 @@ X .No (( Ar expr No )) X is syntactic sugar for X .No let \&" Ns Ar expr Ns \&" . X-.Pp X-.It Xo X-.Ic mknod X-.Op Fl m Ar mode X-.Ar name X-.Op Cm c | Cm b X-.Ar major minor X-.Xc X-.It Xo X-.Ic mknod X-.Op Fl m Ar mode X-.Ar name X-.Cm p X-.Xc X-Create a device special file. X-The file type may be X-.Cm b X-(block type device), X-.Cm c X-(character type device), X-or X-.Cm p X-(named pipe). X-The file created may be modified according to its X-.Ar mode X-(via the X-.Fl m X-option), X-.Ar major X-(major device number), X-and X-.Ar minor X-(minor device number). X-.Pp X-See X-.Xr mknod 8 X-for further information. X .Pp X .It Xo X .Ic print END-of-openksh/files/patch-ksh.1 echo x - openksh/Makefile sed 's/^X//' >openksh/Makefile << 'END-of-openksh/Makefile' X# New ports collection makefile for: openksh X# Date created: 2005-08-27 X# Whom: Tom McLaughlin X# X# $FreeBSD$ X# X XPORTNAME= openksh XPORTVERSION= 4.0 XCATEGORIES= shells XMASTER_SITES= http://people.freebsd.org/~tmclaugh/files/openksh/ X XMAINTAINER= tmclaugh@FreeBSD.org XCOMMENT= The OpenBSD pdksh X XCONFLICTS= pdksh-[0-9]* X XMAN1= ksh.1 XMLINKS= ksh.1 rksh.1 ksh.1 ulimit.1 X Xpost-patch: X @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ X ${WRKSRC}/Makefile X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/ksh ${PREFIX}/bin X @${LN} -s ${PREFIX}/bin/ksh ${PREFIX}/bin/rksh X @${INSTALL_MAN} ${WRKSRC}/ksh.1 ${PREFIX}/man/man1/ X Xpost-install: X @${ECHO} "Updating /etc/shells" X @${CP} /etc/shells /etc/shells.bak X @(${GREP} -v ${PREFIX}/bin/ksh /etc/shells.bak; \ X ${ECHO_CMD} ${PREFIX}/bin/ksh) > /etc/shells X @${RM} /etc/shells.bak X X.include END-of-openksh/Makefile echo x - openksh/distinfo sed 's/^X//' >openksh/distinfo << 'END-of-openksh/distinfo' XMD5 (openksh-4.0.tar.gz) = fe807267a0d775470c78a17975ec002d XSHA256 (openksh-4.0.tar.gz) = 505b34e8eb165315e8f772cb0c24b7b3dda318378ffee936daf31433d11d2341 XSIZE (openksh-4.0.tar.gz) = 383551 END-of-openksh/distinfo echo x - openksh/pkg-descr sed 's/^X//' >openksh/pkg-descr << 'END-of-openksh/pkg-descr' XOpenKSH is the OpenBSD Korn shell. It is based on the Public Domain XKorn Shell (pdksh) which is in turn a work-a-like of the AT&T Korn shell. XOpenKSH's main advantage over the standard pdksh is it is still actively Xmaintained today. X XOpenKSH is in no way affiliated with or endorsed by the OpenBSD project. XIt's existance started simply because I wanted an actively maintained Korn Xshell. END-of-openksh/pkg-descr echo x - openksh/pkg-plist sed 's/^X//' >openksh/pkg-plist << 'END-of-openksh/pkg-plist' Xbin/ksh Xbin/rksh X@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells X@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells END-of-openksh/pkg-plist exit