IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=5.38 PROGNAME="Expect $VERSION" DESC="\ expect \n\ \n\ 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." BUILD=1 MAINTAINER="Mark Post " SOURCE=http://expect.nist.gov PKGNAME=expect-$VERSION-s390-$BUILD TAG=OPT compile() { # We need includes from this: ( cd $TMP tar -zxvf $CWD/tcl8.4.4-src.tar.gz cd tcl8.4.4/unix ./configure --prefix=/usr ) tar -zxvf $CWD/expect-$VERSION.tar.gz cp -p /usr/share/libtool/config.sub ./expect-$VERSION cp -p /usr/share/libtool/config.guess ./expect-$VERSION cd $TMP/expect-$VERSION/ # Get the weather from wunderground instead # since U of MI no longer provides the service: zcat $CWD/expect.weather.diff.gz | patch -p1 chown -R root.root . ./configure --prefix=/usr \ --with-tclconfig=/usr/lib \ --with-tclinclude=$TMP/tcl8.4.4/generic \ --enable-shared make } install() { cd $TMP/expect-$VERSION/ make install INSTALL_ROOT=/package-expect mkdir -p /package-expect/usr/doc/expect-$VERSION cp -a FAQ HISTORY INSTALL NEWS README example \ /package-expect/usr/doc/expect-$VERSION ( cd /package-expect/usr/lib rm -rf libexpect.a ; ln -sf libexpect5.38.a libexpect.a rm -rf libexpect.so ; ln -sf libexpect5.38.so libexpect.so ) ( cd /package-expect/usr/man for dir in 1 3; do ( cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) } attributes() { chown -R root.bin $PKG/package-expect/usr/bin ( cd $PKG/package-expect/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 multixterm rlogin-cwd telnet-cwd \ timed-read timed-run unbuffer vrfy ) } special() { cd $PKG mv package-expect/* ./ rmdir package-expect cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-expect/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }