VERSION=2.05 BUILD=1 ARCH=i386 TAG=ADD PKGNAME=bash MAINTAINER="David Cantrell " IGNOREPATH=/tmp:/proc:/dev:/root:/var:/a:/home STRIPLIB=y STRIPBIN=y PROGNAME="GNU bash" DESC="\ GNU bash-$VERSION\n\ \n\ The GNU Bourne-Again SHell. Bash is a sh-compatible command\n\ interpreter that executes commands read from the standard input or\n\ from a file. Bash also incorporates useful features from the Korn\n\ and C shells (ksh and csh). Bash is ultimately intended to be a\n\ conformant implementation of the IEEE Posix Shell and Tools\n\ specification (IEEE Working Group 1003.2).\n\ \n\ Bash must be present for the system to boot properly." compile() { tar xvzf $CWD/bash-$VERSION.tar.gz cd bash-$VERSION CFLAGS=-O2 ./configure --prefix=/usr $ARCH-slackware-linux make } install() { mkdir -p /usr/doc/bash-$VERSION cp AUTHORS CHANGES COMPAT COPYING INSTALL MANIFEST NEWS NOTES \ README Y2K doc/FAQ doc/INTRO /usr/doc/bash-$VERSION groff -ms -Tascii doc/article.ms > /usr/doc/bash-$VERSION/article.txt ( cd doc cp bash.1 builtins.1 bashbug.1 rbash.1 /usr/man/man1 cp bashref.info /usr/info ) } special() { mkdir -p $PKG/bin cat $TMP/bash-$VERSION/bash > $PKG/bin/bash chown root.bin $PKG/bin/bash chown root.bin $PKG/bin chmod 755 $PKG/bin/bash cat << "EOF" >> $CTL/doinst.sh # backup the old shell and install the new one if [ -r bin/bash ] then mv bin/bash bin/bash.old fi if [ "`grep '/bin/bash' etc/shells 2>/dev/null`" = "" ] then echo "/bin/bash" >> etc/shells fi EOF }