IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.14 PROGNAME="GNU tar $VERSION" DESC="\ tar (archiving utility) \n\ \n\ This is the GNU version of tar, an archiving program designed to store \n\ and extract files from an archive file known as a tarfile. A tarfile \n\ may be made on a tape drive, however, it is also common to write a \n\ tarfile to a normal file. \n\ \n\ Slackware's package system uses tarfiles compressed with GNU gzip." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/gnu/tar/ PKGNAME=tar-$VERSION-s390-$BUILD TAG=ADD compile() { # This old version is the only one that won't clobber synlinks, e.g.: # someone moves /opt to /usr/opt and makes a symlink. With newer # versions of tar, installing any new package will remove the /opt # symlink and plop down a new directory there. # Well, there's a lot of other bugs (the remote stuff particularly I'm # told is flaky) in tar-1.13, so it'll only be here now for use by the # Slackware package utils. And, we'll even let people remove it and # the pkgutils will still try to work (but eventually they'll pay the # price :) tar -zxvf $CWD/tar-1.13.tar.gz cd tar-1.13 chown -R root.root . cp -vp /usr/share/libtool/config.* ./ zcat $CWD/bzip2-tar.diff.gz | patch -p1 CFLAGS=-O2 ./configure --prefix=/usr --disable-nls s390-slackware-linux make cd $TMP tar -yxvf $CWD/tar-$VERSION.tar.bz2 cd tar-$VERSION/ zcat $CWD/tar.nolonezero.diff.gz | patch -p1 --verbose chown -R root.root . CFLAGS=-O2 \ ./configure --prefix=/usr \ --enable-backup-scripts \ --host=s390-slackware-linux \ --build=s390-slackware-linux \ --target=s390-slackware-linux make } install() { cd $TMP/tar-$VERSION/ make install DESTDIR=/package-tar mkdir -p /package-tar/bin/ cp -p ../tar-1.13/src/tar /package-tar/bin/tar-1.13 mkdir -p /package-tar/usr/doc/tar-$VERSION cp -a ABOUT-NLS AUTHORS COPYING NEWS PORTS README THANKS TODO \ /package-tar/usr/doc/tar-$VERSION mv /package-tar/usr/bin/tar /package-tar/bin/ ( cd /package-tar/usr/bin/ ln -sf /bin/tar . ) ( cd /package-tar/bin ln -sf tar tar-$VERSION ) mkdir /package-tar/etc /package-tar/sbin ( cd /package-tar/etc rm -rf rmt ; ln -sf /usr/libexec/rmt rmt ) ( cd /package-tar/sbin rm -rf rmt ; ln -sf /usr/libexec/rmt rmt ) mkdir -p /package-tar/usr/man/man{1,8} cat $CWD/tar.1.gz > /package-tar/usr/man/man1/tar.1.gz cat $CWD/rmt.8.gz > /package-tar/usr/man/man8/rmt.8.gz ( cd /package-tar/usr/info rm -f *.gz gzip -9 * ) } attributes() { chown -R root.bin $PKG/package-tar/bin \ $PKG/package-tar/usr/bin \ $PKG/package-tar/usr/sbin \ $PKG/package-tar/sbin chmod 644 $PKG/package-tar/usr/doc/tar-$VERSION/* chmod 644 $PKG/package-tar/usr/doc/tar-$VERSION/TODO chmod -w $PKG/package-tar/usr/doc/tar-$VERSION/scripts/* chmod +x $PKG/package-tar/usr/doc/tar-$VERSION/scripts/dump-remind \ $PKG/package-tar/usr/doc/tar-$VERSION/scripts/level-* } special() { cd $PKG mv package-tar/* ./ rmdir package-tar/ cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-tar/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }