IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=2.5 PROGNAME="GNU cpio $VERSION" DESC="\ cpio (backup and archiving utility) \n\ \n\ This is GNU cpio, a program to manage archives of files. This package \n\ also includes mt, a tape drive control program. cpio copies files into \n\ or out of a cpio or tar archive, which is a file that contains other \n\ files plus information about them, such as their pathname, owner, \n\ timestamps, and access permissions. The archive can be another file on \n\ the disk, a magnetic tape, or a pipe." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/gnu/cpio PKGNAME=cpio-$VERSION-s390-$BUILD TAG=ADD compile() { tar -zxvf $CWD/cpio-$VERSION.tar.gz cd cpio-$VERSION/ CFLAGS=-O2 \ ./configure --prefix=/usr make makeinfo cpio.texi } install() { make install prefix=/package-cpio/usr mv /package-cpio/usr/bin /package-cpio/bin mv /package-cpio/bin/mt /package-cpio/bin/mt-GNU ( cd /package-cpio/bin/ rm -f mtu ; ln -sf mt-GNU mt ) mkdir -p /package-cpio/usr/doc/cpio-$VERSION cp -a NEWS README COPYING COPYING.LIB ChangeLog INSTALL \ /package-cpio/usr/doc/cpio-$VERSION ( cd /package-cpio/usr/info rm -f *.gz gzip -9 * ) ( cd /package-cpio/usr/man/man1 rm -f *.gz gzip -9 *.1 ) rm -rf /package-cpio/usr/libexec } attributes() { chown -R root.bin $PKG/package-cpio/bin } special () { cd $PKG mv package-cpio/* ./ rmdir package-cpio cd $CTL cat $CWD/slack-desc > $PKG/install/slack-desc sed -e 's%package-cpio/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }