1
0
forked from ports/contrib

logrotate: initial import

This commit is contained in:
Mikhail Kolesnik 2008-08-30 14:39:44 +03:00
parent 3c0a5bf511
commit 496979d3e6
5 changed files with 79 additions and 0 deletions

12
logrotate/.footprint Normal file
View File

@ -0,0 +1,12 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/cron/
drwxr-xr-x root/root etc/cron/hourly/
-rwxr-x--- root/root etc/cron/hourly/logrotate
-rw-r----- root/root etc/logrotate.conf
drwxr-xr-x root/root etc/logrotate.d/
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/logrotate.8.gz
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/logrotate

2
logrotate/.md5sum Normal file
View File

@ -0,0 +1,2 @@
431e135abb7f3fe19de4c6a65bb66823 logrotate-3.7.7.tar.gz
453190f4497a810fd48c90b0ce148788 logrotate.conf

22
logrotate/Pkgfile Normal file
View File

@ -0,0 +1,22 @@
# 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
version=3.7.7
release=1
#source=(https://fedorahosted.org/releases/l/o/$name/$name-$version.tar.gz \
# $name.conf)
source=(http://www.sfr-fresh.com/unix/privat/$name-$version.tar.gz \
$name.conf)
build() {
cd $name-$version
make
make PREFIX=$PKG install
mkdir -p $PKG/etc/$name.d
install -D -m 750 examples/$name.cron $PKG/etc/cron/hourly/$name
install -D -m 640 $SRC/$name.conf $PKG/etc/$name.conf
}

12
logrotate/README Normal file
View File

@ -0,0 +1,12 @@
README for logrotate
REQUIREMENTS
PRE-INSTALL
POST-INSTALL
You can adjust /etc/crontab to run hourly jobs:
17 * * * * /usr/sbin/runjobs /etc/cron/hourly
RESOURCES

31
logrotate/logrotate.conf Normal file
View File

@ -0,0 +1,31 @@
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# some packages can drop log rotation information into
# this directory
include /etc/logrotate.d
# few generic files to rotate
/var/log/wtmp {
monthly
create 0644 root root
rotate 1
}
/var/log/btmp {
monthly
create 0600 root root
rotate 1
}
# system-specific logs may be also be configured here.