summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Kolesnik <mike@openbunker.org>2008-08-30 14:39:44 +0300
committerMikhail Kolesnik <mike@openbunker.org>2008-08-30 14:39:44 +0300
commit496979d3e6f8526a56addaac04f40d3f7b689b05 (patch)
tree310ed64e99b80b1d304b7f8dae4c910c30fa2ba2
parent3c0a5bf51182f346f4a9d373d22f74afbe67673b (diff)
downloadcontrib-496979d3e6f8526a56addaac04f40d3f7b689b05.tar.gz
contrib-496979d3e6f8526a56addaac04f40d3f7b689b05.tar.xz
logrotate: initial import
-rw-r--r--logrotate/.footprint12
-rw-r--r--logrotate/.md5sum2
-rw-r--r--logrotate/Pkgfile22
-rw-r--r--logrotate/README12
-rw-r--r--logrotate/logrotate.conf31
5 files changed, 79 insertions, 0 deletions
diff --git a/logrotate/.footprint b/logrotate/.footprint
new file mode 100644
index 000000000..eed9bc8e6
--- /dev/null
+++ b/logrotate/.footprint
@@ -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
diff --git a/logrotate/.md5sum b/logrotate/.md5sum
new file mode 100644
index 000000000..e1bf94f6f
--- /dev/null
+++ b/logrotate/.md5sum
@@ -0,0 +1,2 @@
+431e135abb7f3fe19de4c6a65bb66823 logrotate-3.7.7.tar.gz
+453190f4497a810fd48c90b0ce148788 logrotate.conf
diff --git a/logrotate/Pkgfile b/logrotate/Pkgfile
new file mode 100644
index 000000000..48134c6b9
--- /dev/null
+++ b/logrotate/Pkgfile
@@ -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
+}
diff --git a/logrotate/README b/logrotate/README
new file mode 100644
index 000000000..16c80974f
--- /dev/null
+++ b/logrotate/README
@@ -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
diff --git a/logrotate/logrotate.conf b/logrotate/logrotate.conf
new file mode 100644
index 000000000..6a2576936
--- /dev/null
+++ b/logrotate/logrotate.conf
@@ -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.

Generated by cgit