DOCS="CHANGES COPYING" IGNOREPATH=/boot:/dev:/home:/mnt:/proc:/root:/tmp:/var:/storage STRIPLIB=y STRIPBIN=y SETATTR=y ARCH=i386 BUILD=1 # pkginfo VERSION=3.3 PROGNAME="logrotate" DESC="\ The logrotate utility is designed to simplify the administration of \n\ log files on a system which generates a lot of log files. Logrotate \n\ allows for the automatic rotation compression, removal and mailing of \n\ log files. Logrotate can be set to handle a log file daily, weekly, \n\ monthly or when the log file gets to a certain size. Normally, \n\ logrotate runs as a daily cron job." # maintainer MAINTAINER="Robert Stan " SOURCE=ftp://ftp.redhat.com/redhat/code/logrotate # package name PKGNAME=logrotate compile() { tar xvzf $CWD/$PKGNAME-$VERSION.tar.gz cd $PKGNAME-$VERSION CFLAGS=-O2 make } install() { cp -a logrotate /usr/sbin/logrotate mkdir /etc/logrotate.d cat examples/logrotate-default > /etc/logrotate.conf.example cat logrotate.8 | gzip -9c > /usr/man/man8/logrotate.8.gz mkdir -p /usr/doc/$PKGNAME-$VERSION cp -a $DOCS /usr/doc/$PKGNAME-$VERSION }