IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=3.6.8 PROGNAME="logrotate $VERSION" DESC="\ logrotate (system log rotation tool) \n\ \n\ The logrotate utility is designed to simplify the administration \n\ of log files on a system which generates a lot of log files. \n\ Logrotate allows for the automatic rotation compression, removal \n\ and mailing of log files. Logrotate can be set to handle a log \n\ file daily, weekly, monthly or when the log file gets to a certain \n\ size. Normally, logrotate runs as a daily cron job." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.redhat.com/pub/redhat/linux/code/logrotate PKGNAME=logrotate-$VERSION-s390-$BUILD TAG=ADD compile() { tar -zxvf $CWD/logrotate-$VERSION.tar.gz cd logrotate-$VERSION/ chown -R root.root . zcat $CWD/logrotate.slackware.diff.gz | patch -p1 make clean make } install() { make install PREFIX=/package-logrotate ( cd /package-logrotate tar -zxvf $CWD/_logrotate.tar.gz etc var ) mkdir -p /package-logrotate/usr/doc/logrotate-$VERSION cp -a CHANGES COPYING README* \ /package-logrotate/usr/doc/logrotate-$VERSION ( cd /package-logrotate/usr/man/man8 rm -f *.gz gzip -9 *.8 ) } attributes() { chown -R root.bin $PKG/package-logrotate/usr/sbin } special() { cd $PKG mv package-logrotate/* ./ rmdir package-logrotate cd $CTL cat $CWD/slack-desc > slack-desc cat $CWD/config.sh >> doinst.sh echo "config etc/logrotate.conf.new" >> doinst.sh sed -e 's%package-logrotate/%%' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }