# 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/Makefile # openksh/distinfo # openksh/pkg-descr # openksh/pkg-plist # echo c - openksh mkdir -p openksh > /dev/null 2>&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.2p1.b1 XCATEGORIES= shells XMASTER_SITES= http://people.freebsd.org/~tmclaugh/files/openksh/ XDISTNAME= ${PORTNAME}-4.2p1-beta1 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.2p1-beta1.tar.gz) = 7ce481f28f8a89e7ffb49189bd0f563a XSHA256 (openksh-4.2p1-beta1.tar.gz) = eba6bb199bf925000453ce6d3388abde480dc661efab0f2e904d18252ab09250 XSIZE (openksh-4.2p1-beta1.tar.gz) = 445835 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