IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=0.9.1 PROGNAME="mhash $VERSION" DESC="\ mhash (Thread-safe hash library) \n\ \n\ mhash is a thread-safe hash library, implemented in C, and provides av \n\ uniform interface to a large number of hash algorithms (MD5, SHA-1, \n\ HAVAL, RIPEMD128, RIPEMD160, TIGER, GOST). These algorithms can be \n\ used to compute checksums, message digests, and other signatures. \n\ The HMAC support implements the basics for message authentication, \n\ following RFC 2104." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/mhash PKGNAME=mhash-$VERSION-s390-$BUILD TAG=REC compile() { tar -zxvf $CWD/mhash-$VERSION.tar.gz cd mhash-$VERSION/ chown -R root.root . find . -perm 777 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; ./configure --prefix=/usr \ --program-prefix="" \ --program-suffix="" \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { make install DESTDIR=/package-mhash mkdir -p /package-mhash/usr/doc/mhash-$VERSION cp -a AUTHORS COPYING INSTALL NEWS README THANKS TODO \ /package-mhash/usr/doc/mhash-$VERSION ( cd /package-mhash/usr/man/man3 rm -f *.gz gzip -9 *.3 ) } special() { cd $PKG mv package-mhash/* ./ rmdir package-mhash cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-mhash/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }