IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=5.0 PROGNAME="coreutils $VERSION" DESC="\ coreutils (core GNU utilities) \n\ \n\ These are the GNU core utilities, the basic command line programs \n\ such as 'mkdir', 'ls', and 'rm' that are needed for the system to \n\ run. This package is the union of the GNU fileutils, sh-utils, and \n\ textutils packages. Most of these programs have significant \n\ advantages over their Unix counterparts, such as greater speed, \n\ additional options, and fewer arbitrary limits." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/coreutils PKGNAME=coreutils-$VERSION-s390-$BUILD TAG=ADD compile() { tar -yxvf $CWD/coreutils-$VERSION.tar.bz2 cd coreutils-$VERSION/ chown -R root.root . # Pat says... # The GNU version still hasn't caught up with the features of the Slackware dircolors from long ago: zcat $CWD/dircolors.c.gz > src/dircolors.c zcat $CWD/dircolors.h.gz > src/dircolors.h CFLAGS=-O2 \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --build=s390-slackware-linux \ --host=s390-slackware-linux \ --target=s390-slackware-linux make } install() { make install DESTDIR=/package-coreutils mkdir -p /package-coreutils/usr/doc/coreutils-$VERSION cp -a ABOUT-NLS AUTHORS COPYING NEWS README THANKS THANKS-to-translators TODO \ /package-coreutils/usr/doc/coreutils-$VERSION ( cd /package-coreutils # Remove things that are provided by other Slackware packages: for dupe in hostname kill su uptime ; do rm -f usr/bin/${dupe} usr/sbin/${dupe} usr/man/man?/${dupe}.* done ) # These things have always been in /bin on Linux: ( cd /package-coreutils mkdir bin for move in cat chgrp chmod chown cp cut date dd df dircolors du echo \ false head ln ls mkdir mkfifo mknod mv pwd rm rmdir shred sleep \ stty sync touch true uname ; do mv usr/bin/${move} bin ln -sf ../../bin/${move} usr/bin/${move} done ) ( cd /package-coreutils # Add a chroot link in case any scripts use the historic location: mkdir -p usr/sbin ln -sf ../bin/chroot usr/sbin/chroot ) ( cd /package-coreutils mkdir -p etc zcat $CWD/DIR_COLORS.gz > etc/DIR_COLORS ) ( cd /package-coreutils/usr/bin rm -rf [ ; ln -sf test [ rm -rf ginstall ; ln -sf install ginstall ) ( cd /package-coreutils/usr/info rm -f *.gz gzip -9 * ) # Replace this manpage: zcat $CWD/dircolors.1.gz > /package-coreutils/usr/man/man1/dircolors.1 ( cd /package-coreutils/usr/man/man1 rm -f *.gz gzip -9 *.1 rm -rf ginstall.1.gz ; ln -sf install.1.gz ginstall.1.gz ) rmdir /package-coreutils/usr/lib } attributes() { chown -R root.bin $PKG/package-coreutils/bin \ $PKG/package-coreutils/usr/bin \ $PKG/package-coreutils/usr/sbin } special() { cd $PKG mv package-coreutils/* ./ rmdir package-coreutils cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-coreutils/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }