IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=5.43 TCLVER=8.4.13 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}.0-s390x-$BUILD TAG=OPT compile() { # We need includes from this: ( cd $TMP tar -yxvf $CWD/tcl$TCLVER-src.tar.bz2 cd tcl$TCLVER/unix ./configure --prefix=/usr \ --enable-64bit \ --libdir='${exec_prefix}/lib64' ) tar -zxvf $CWD/expect-${VERSION}.0.tar.gz cd $TMP/expect-$VERSION/ cp -vp /usr/share/libtool/config.* . chown -R root.root . ./configure --prefix=/usr \ --libdir='${exec_prefix}/lib64' \ --with-tcl=/usr/lib64 \ --with-tclinclude=$TMP/tcl$TCLVER/generic \ --with-tk=/usr/lib64 \ --enable-shared cat $CWD/makefile.${VERSION}.diff | patch -p1 --backup --suffix=.orig 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/lib64 rm -rf libexpect.a ; ln -sf libexpect${VERSION}.a libexpect.a rm -rf libexpect.so ; ln -sf libexpect${VERSION}.so libexpect.so ) ( cd /package-expect/usr/man for dir in 1 3; do ( cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) rm -rf /package-expect/usr/lib } attributes() { chown -R root.bin $PKG/package-expect/usr/bin ( cd $PKG/package-expect/usr/doc/expect-$VERSION/example chmod 755 archie autoexpect autopasswd beer.exp chess.exp cryptdir \ decryptdir dislocate dvorak ftp-inband ftp-rfc gethostbyaddr \ irsh kibitz lpunlock mkpasswd multixterm passmass passwdprompt \ rftp rlogin-cwd robohunt rogue.exp telnet-cwd term_expect \ timed-read timed-run tknewsbiff tkpasswd tkterm unbuffer \ virterm vrfy weather xkibitz xpstat ) return chmod 640 $PKG/package-expect/usr/doc/expect-$VERSION/NEWS \ $PKG/package-expect/usr/doc/expect-$VERSION/README ( cd $PKG/package-expect/usr/doc/expect-$VERSION/example chmod 755 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 passwdprompt 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 }