IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=5.30 PKGVER=5.30 PROGNAME="smartmontools $VERSION" DESC="\ smartmontools (hard drive monitoring utilities) \n\ \n\ SMARTMONTOOLS contains utilities that control and monitor storage \n\ devices using the Self-Monitoring, Analysis and Reporting Technology \n\ (S.M.A.R.T.) system build into ATA and SCSI Hard Drives. This is used \n\ to check the reliability of the hard drive and to predict drive \n\ failures. SMARTMONTOOLS Version 5.x is designed to comply to the \n\ ATA/ATAPI-5 specification (Revision 1). Future releases of \n\ SMARTMONTOOLS (Versions 6.x and 7.x) will comply with the ATA/ATAPI-6 \n\ and ATA/ATAPI-7 specifications." BUILD=1 MAINTAINER="Mark Post " SOURCE=http://sourceforge.net/projects/smartmontools/ PKGNAME=smartmontools-$VERSION-s390-$BUILD TAG=REC compile() { tar -zxvf $CWD/smartmontools-$PKGVER.tar.gz cd smartmontools-$PKGVER/ chown -R root.root . ./configure --prefix=/usr \ --sysconfdir=/etc make } install() { make install DESTDIR=/package-smartmontools mv /package-smartmontools/usr/share/doc /package-smartmontools/usr/ rmdir /package-smartmontools/usr/share rm -f /package-smartmontools/usr/doc/smartmontools-$VERSION/CHANGELOG \ /package-smartmontools/usr/doc/smartmontools-$VERSION/smartd.conf mv /package-smartmontools/etc/smartd.conf /package-smartmontools/etc/smartd.conf.new ( cd /package-smartmontools/usr/man for dir in 5 8; do ( cd man$dir rm -f *.gz gzip -9 *.$dir ) done ) rm -rf /package-smartmontools/etc/rc.d } attributes() { chown -R root.bin $PKG/package-smartmontools/usr/sbin chmod 755 $PKG/package-smartmontools/usr/doc/smartmontools-$VERSION/examplescripts/Example* } special() { cd $PKG mv package-smartmontools/* ./ rmdir package-smartmontools cd $CTL cat $CWD/slack-desc > slack-desc cat $CWD/config.sh >> doinst.sh echo config etc/smartd.conf.new >> doinst.sh sed -e 's%package-smartmontools/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }