IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/tmp:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.2.1 PROGNAME="Linux/390 tools $VERSION" DESC="\ s390-tools \n\ \n\ This package contains utilities related to Linux for S/390. \n\ Currently, the following programs are provided: \n\ - dasdfmt, which is used to low-level format ECKD DASD with \n\ either the classic linux disk layout or the new z/OS \n\ compatible disk layout. \n\ - dasdview, which displays DASD and VTOC information and \n\ dump the content of a DASD to the console. \n\ - fdasd, which is used to create or modify partitions on \n\ ECKD DASD formatted with the z/OS compatible disk layout. \n\ - osasnmpd, a SNMP subagent for the ucd-snmp 4.2.x package and \n\ supports the MIBs provided by an IBM OSA-Express network card. \n\ - qetharp, which is used for querying and purging address data \n\ in the OSA and Hipersocket hardware. \n\ - tape390_display, which displays messages on the display \n\ unit of a zSeries tape device. \n\ - zipl, which is used to make either DASD or tapes bootable \n\ for system IPL or system dump. \n\ - zgetdump, which is used to retrieve system dumps from either \n\ tapes or DASD." BUILD=1 MAINTAINER="Mark Post " SOURCE=http://www10.software.ibm.com/developerworks/opensource/linux390/ PKGNAME=s390-tools-$VERSION-s390-$BUILD TAG=ADD compile() { cd $TMP tar -zxvf $CWD/s390-tools-$VERSION-june2003.tar.gz cd s390-tools-$VERSION/ cat $CWD/common.mak.diff | patch -p1 cat $CWD/osasnmpd.makefile.diff | patch -p1 cat $CWD/zfcpdump.config.diff | patch -p1 # Lord only knows why this is not there already... if [ ! -d zfcpdump/ramdisk/mnt ]; then mkdir zfcpdump/ramdisk/mnt fi make } install() { mkdir -p /package-s390-tools/bin/ make install INSTROOT=/package-s390-tools ( cd /package-s390-tools/usr/man/man8 rm -f *.gz gzip -9 *.8 ) } attributes() { chown -R root.bin $PKG/package-s390-tools/sbin \ $PKG/package-s390-tools/usr/sbin } special() { cd $PKG mv package-s390-tools/* ./ rmdir package-s390-tools cd $CTL cat $CWD/slack-desc > slack-desc cat << EOF >> doinst.sh if [ -x sbin/ldconfig ]; then sbin/ldconfig 2> /dev/null fi EOF sed -e 's%package-s390-tools/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }