IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=0.7 PROGNAME="mt-st $VERSION" DESC="\ mt-st (controls magnetic tape drive operation) \n\ \n\ This mt originates from BSD NET-2. Some Linux SCSI tape-specific \n\ ioctls have been added to the original source and the man page has \n\ been updated. Although this mt program is tailored for SCSI tape, it \n\ can also be used with the QIC-02 driver and hopefully with other Linux \n\ tape drivers using the same ioctls (some of the commands may not work \n\ with all drivers)." BUILD=1 MAINTAINER="Mark Post " SOURCE=??? PKGNAME=mt-st-$VERSION-s390-$BUILD TAG=REC compile() { tar -zxvf $CWD/mt-st-$VERSION.tar.gz cd mt-st-$VERSION/ rm -f mt make } install() { mkdir /package-mt-st ( cd /package-mt-st ; tar -zxvf $CWD/_mt-st.tar.gz ; rm -rf install ) mkdir /package-mt-st/usr/man/man8 make install BINDIR=/package-mt-st/bin SBINDIR=/package-mt-st/sbin MANDIR=/package-mt-st/usr/man mv /package-mt-st/usr/man/man1/mt.1 /package-mt-st/usr/man/man1/mt-st.1 ( cd /package-mt-st/bin mv mt mt-st ln -sf mt-st mt ) mkdir -p /package-mt-st/usr/doc/mt-st-$VERSION cp -a COPYING README* *.lsm stinit.def.examples \ /package-mt-st/usr/doc/mt-st-$VERSION ( cd /package-mt-st/usr/man/ for dir in 1 8; do ( cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) } attributes() { chown -R root.bin $PKG/package-mt-st/bin \ $PKG/package-mt-st/sbin chmod 644 $PKG/package-mt-st/usr/man/man1/* \ $PKG/package-mt-st/usr/man/man8/* } special() { cd $PKG mv package-mt-st/* ./ rmdir package-mt-st cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-mt-st/%%' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }