[Lunar-commits] <moonbase> logrotate: A few configuration fixes

Stefan Wold ratler at lunar-linux.org
Sun Feb 14 11:01:23 CET 2010


commit 5918fb9930ae527d9be0d8c6720994ca873810df
Author: Stefan Wold <ratler at lunar-linux.org>
Date:   Sun Feb 14 11:01:23 2010 +0100

    logrotate: A few configuration fixes
---
 utils/logrotate/BUILD   |    9 ++++++++-
 utils/logrotate/DEPENDS |    1 +
 utils/logrotate/DETAILS |    2 +-
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/utils/logrotate/BUILD b/utils/logrotate/BUILD
index 9880d8e..e7de972 100644
--- a/utils/logrotate/BUILD
+++ b/utils/logrotate/BUILD
@@ -3,12 +3,19 @@
   # Logrotate craps out without this
   unset CPP
 
+  # A few fixes for logrotate.conf
+  sedit 's:^dateext:#&:;s:^#compress:compress:;/^compress/acompresscmd /usr/bin/bzip2' examples/logrotate-default &&
+  sedit '/^compresscmd/acompressext .bz2' examples/logrotate-default &&
+
   make RPM_OPT_FLAGS="${CFLAGS}"     &&
+
+  # We don't want the status file tracked
+  touch /var/lib/logrotate.status    &&
+
   prepare_install                    &&
   make install                       &&
 
   mkdir -p /etc/logrotate.d          &&
-  touch /var/lib/logrotate.status    &&
 
   if [ ! -e /etc/logrotate.conf ]; then
     install -m 0644 examples/logrotate-default /etc/logrotate.conf
diff --git a/utils/logrotate/DEPENDS b/utils/logrotate/DEPENDS
index a3980d8..a8d8b09 100644
--- a/utils/logrotate/DEPENDS
+++ b/utils/logrotate/DEPENDS
@@ -1 +1,2 @@
 depends popt
+depends bzip2
diff --git a/utils/logrotate/DETAILS b/utils/logrotate/DETAILS
index cadd98e..695aff6 100644
--- a/utils/logrotate/DETAILS
+++ b/utils/logrotate/DETAILS
@@ -4,7 +4,7 @@
       SOURCE_URL=https://fedorahosted.org/releases/l/o/logrotate
       SOURCE_VFY=sha1:5742dc0d9541ac59eba5f5718520f7504aea2159
          ENTERED=20021231
-         UPDATED=20091107
+         UPDATED=20100214
            SHORT="Automatic rotation, compression and removal of log files"
 cat << EOF
 The logrotate utility is designed to simplify the administration of


More information about the Lunar-commits mailing list