2008-08-30 14:39:44 +03:00
|
|
|
# Description: Rotates, compresses, removes and mails system log files
|
|
|
|
# URL: https://fedorahosted.org/releases/l/o/logrotate/
|
|
|
|
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
|
|
|
|
# Depends on: popt
|
|
|
|
|
|
|
|
name=logrotate
|
2013-01-20 14:02:33 +02:00
|
|
|
version=3.8.3
|
2009-03-30 17:17:59 +03:00
|
|
|
release=1
|
2010-12-23 20:30:30 +02:00
|
|
|
source=(https://fedorahosted.org/releases/l/o/$name/$name-$version.tar.gz
|
|
|
|
$name.conf logrotate-paths.diff)
|
2008-08-30 14:39:44 +03:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2010-12-23 20:30:30 +02:00
|
|
|
patch -p1 -i $SRC/logrotate-paths.diff
|
2008-08-30 14:39:44 +03:00
|
|
|
make
|
|
|
|
make PREFIX=$PKG install
|
|
|
|
mkdir -p $PKG/etc/$name.d
|
2008-11-11 17:41:31 +02:00
|
|
|
mkdir -p $PKG/var/state/logrotate
|
2008-08-30 14:39:44 +03:00
|
|
|
install -D -m 750 examples/$name.cron $PKG/etc/cron/hourly/$name
|
|
|
|
install -D -m 640 $SRC/$name.conf $PKG/etc/$name.conf
|
|
|
|
}
|