IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=0.60.5 PROGNAME="busybox $VERSION" DESC="\ BusyBox \n\ \n\ BusyBox combines tiny versions of many common UNIX utilities into a \n\ single small executable. It provides minimalist replacements for most \n\ of the utilities you usually find in fileutils, shellutils, findutils, \n\ textutils, grep, gzip, tar, etc. BusyBox provides a fairly complete \n\ POSIX environment for any small or embedded system. The utilities in \n\ BusyBox generally have fewer options than their full featured GNU \n\ cousins; however, the options that are included provide the expected \n\ functionality and behave very much like their GNU counterparts." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/busybox PKGNAME=busybox-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/busybox-0.60.5.tar.bz2 cd busybox-$VERSION/ chown -R root.root * echo --- busybox-0.60.5.noisereduction.diff.gz zcat $CWD/busybox-0.60.5.noisereduction.diff.gz | patch -p0 echo --- busybox-0.60.5.rootdisks.diff.gz zcat $CWD/busybox-0.60.5.rootdisks.diff.gz | patch -p0 # Some of the settings don't seem to match what Pat actually ships. echo --- initrd.diff cat $CWD/initrd.diff | patch -p1 make } install() { make install PREFIX=/package-busybox mkdir -p /package-busybox/usr/doc/busybox-$VERSION cp -a AUTHORS INSTALL LICENSE README TODO \ /package-busybox/usr/doc/busybox-$VERSION ( cd /package-busybox/bin/ ln -sf test \[ ln -sf ash bash ln -sf ash sh ) ( cd /package-busybox/sbin/ ln -sf update bdflush ) ( cd /package-busybox/usr/bin/ ln -sf ../../bin/gzip zcat ) } attributes() { chown -R root.bin $PKG/package-busybox/bin \ $PKG/package-busybox/sbin } special() { cd $PKG mv package-busybox/* ./ rmdir package-busybox cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-busybox/%%g' -e 's%package-busybox%.%' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }