IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=3.1.17 PROGNAME="db3 $VERSION" DESC="\ db3 (Berkeley database library version 3) \n\ \n\ The Berkeley Database (Berkeley DB) library provides embedded database \n\ support for both traditional and client/server applications. \n\ \n\ This package should be installed if compatibility is needed with \n\ databases created with the Berkeley DB version 3. \n\ \n\ This library used to be part of the glibc package." BUILD=1 MAINTAINER="Mark Post " SOURCE=http://www.sleepycat.com/download/index.shtml PKGNAME=db3-$VERSION-s390-$BUILD TAG=REC compile() { tar -zxvf $CWD/db-$VERSION.tar.gz cd db-$VERSION/ zcat $CWD/db-3.1.17.mutex.diff.gz | patch -p1 -E --suffix=.orig --backup chown -R root.root . find . -perm 775 | xargs chmod 755 find . -perm 444 | xargs chmod 644 cd dist rm -f config.log config.cache config.status ./configure --prefix= \ --enable-compat185 \ --disable-shared \ --enable-rpc \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make mv libdb.a libdb-3.1.a make clean ./configure --prefix= \ --enable-compat185 \ --enable-shared \ --enable-rpc \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { cd $TMP/db-$VERSION/dist make install prefix=/package-db3/usr docdir=/package-db3/usr/doc/db-$VERSION/ cp -a libdb-3.1.a /package-db3/usr/lib/ cd .. mkdir -p /package-db3/usr/doc/db-$VERSION cp -a LICENSE README /package-db3/usr/doc/db-$VERSION ( cd /package-db3/usr/include mkdir db3 mv *.h db3/ ln -sf db3/db.h db.h ) mkdir -p /package-db3/lib/incoming mv /package-db3/usr/lib/libdb-3.1.so /package-db3/lib/incoming/ ( cd /package-db3/lib rm -rf libdb.so ; ln -sf libdb-3.1.so libdb.so ) ( cd /package-db3/usr/lib rm -rf libdb-3.1.so ; ln -sf /lib/libdb-3.1.so libdb-3.1.so rm -rf libdb-3.so ; ln -sf /lib/libdb-3.1.so libdb.so rm -rf libdb.a ; ln -sf libdb-3.1.a libdb.a rm -rf libdb-3.so ) } attributes() { chown -R root.bin $PKG/package-db3/usr/bin/ chmod 755 $PKG/package-db3/usr/bin/* \ $PKG/package-db3/lib/* find $PKG/package-db3/usr/include -type f | xargs chmod 644 } special() { cd $PKG mv package-db3/* ./ rmdir package-db3 cd $CTL cat $CWD/slack-desc > slack-desc # Copy in script, but lose the #!/bin/sh header... zcat $CWD/doinst.sh.gz | sed -e '1,2d' >> doinst.sh sed -e 's%package-db3/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }