VERSION=5.32.1 BUILD=1 ARCH=i386 PKGNAME=expect-$VERSION-$ARCH-$BUILD PROGNAME="Expect" DESC="\ Expect is a program that talks to other interactive programs according \n\ to a script. Following the script, Expect knows what can be expected \n\ from a program and what the correct response should be. An \n\ interpreted language provides branching and high-level control \n\ structures to direct the dialogue. \n\ \n\ Expect was written by Don Libes of the National Institute of Standards \n\ and Technology." MAINTAINER="Logan Johnson " SOURCE=http://expect.nist.gov LOCATION= IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt STRIPLIB=y STRIPBIN=y TAG=OPT compile() { ( cd /tmp tar -xvzf $CWD/tcl8.3.3.tar.gz cd tcl8.3.3/unix ./configure --prefix=/usr ) tar -xvzf $CWD/expect-$VERSION.tar.gz cp -a expect-$VERSION expect.shared/ # # build the static version # cd $TMP/expect-$VERSION/ ./configure --prefix=/usr \ --with-tclconfig=/usr/lib \ --with-tclinclude=/tmp/tcl8.3.3/generic make # # build the shared version # cd $TMP/expect.shared/ ./configure --prefix=/usr \ --with-tclconfig=/usr/lib \ --with-tclinclude=/tmp/tcl8.3.3/generic \ --enable-shared make } install() { # # install the static version # cd $TMP/expect-$VERSION/ mkdir -p /usr/doc/expect-$VERSION cp -r FAQ HISTORY INSTALL NEWS README example \ /usr/doc/expect-$VERSION make install # # install the shared version # cd $TMP/expect.shared/ make install ( cd /usr/lib ; rm -rf libexpect.a ) ( cd /usr/lib ; ln -sf libexpect5.32.a libexpect.a ) ( cd /usr/lib ; rm -rf libexpect.so ) ( cd /usr/lib ; ln -sf libexpect5.32.so libexpect.so ) rm -r /tmp/tcl8.3.3 } attributes() { ( cd usr/doc/expect-$VERSION/example chmod 754 autoexpect beer.exp chess.exp cryptdir decryptdir dislocate \ dvorak ftp-inband ftp-rfc gethostbyaddr kibitz lpunlock \ mkpasswd passmass rftp robohunt rogue.exp term_expect \ tknewsbiff tkpasswd tkterm virterm weather xkibitz xpstat chmod 755 archie autopasswd irsh rlogin-cwd telnet-cwd timed-read \ timed-run unbuffer vrfy ) }