[Lunar-commits] CVS: moonbase/utils/logrotate DETAILS, 1.3, 1.4 BUILD, 1.2, 1.3

Jerry Lundström prox at lunar-linux.org
Thu Jul 8 08:49:02 GMT 2004


Update of /var/cvs/lunar/moonbase/utils/logrotate
In directory dbguin.lunar-linux.org:/tmp/cvs-serv31863

Modified Files:
	DETAILS BUILD 
Log Message:
bump and took some patches from debian, importent once was datetime check and setting right owner after compression fix

Index: DETAILS
===================================================================
RCS file: /var/cvs/lunar/moonbase/utils/logrotate/DETAILS,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- DETAILS	7 Jul 2004 08:35:26 -0000	1.3
+++ DETAILS	8 Jul 2004 08:48:59 -0000	1.4
@@ -1,10 +1,14 @@
           MODULE=logrotate
-         VERSION=3.6.6
+         VERSION=3.7
           SOURCE=$MODULE-$VERSION.tar.gz
-SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
-      SOURCE_URL=http://lunar-linux.org/lunar/mirrors/$SOURCE
+         SOURCE2=$MODULE-$VERSION.patch.gz
+   SOURCE_URL[0]=http://ftp.su.se/lunar/source-archive/
+   SOURCE_URL[1]=http://kenny.it.su.se/lunar/source-archive/
+     SOURCE2_URL=$PATCH_URL/
+      SOURCE_VFY=md5:bf0de3a495294300f32e71f136119c41
+     SOURCE2_VFY=md5:3027835a152c9457b2c25b606aa4a5a0
          ENTERED=20021231
-         UPDATED=20021231
+         UPDATED=20040707
            SHORT="automatic rotation compression, removal, of log files."
 cat << EOF
 The logrotate utility is designed to simplify the administration of

Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/utils/logrotate/BUILD,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- BUILD	8 Jan 2003 15:11:08 -0000	1.2
+++ BUILD	8 Jul 2004 08:48:59 -0000	1.3
@@ -1,22 +1,32 @@
 (
 
-  sedit "s:/var/lib/logrotate.status:/var/state/logrotate:g" config.h &&
+  patch_it $SOURCE2 1 &&
   
   make                               &&
   prepare_install                    &&
   make install                       &&
 
   mkdir -p /etc/logrotate.d          &&
-  mkdir -p /etc/cron.daily           &&
-  
+  mkdir -p /var/state/logrotate      &&
+  mkdir -p /usr/share/doc/logrotate  &&
+
   if [ ! -e /etc/logrotate.conf ] ; then
-    cp examples/logrotate-default /etc/logrotate.conf
-  fi                                                    &&
-  cp examples/logrotate.cron /etc/cron.daily/logrotate  &&
+    cp examples/logrotate-default /etc/logrotate.conf &&
+    chmod 0644 /etc/logrotate.conf
+  fi &&
+
+  if [ -d /etc/cron.daily -a ! -e /etc/cron.daily/logrotate ]; then
+    cp examples/logrotate.cron /etc/cron.daily/logrotate &&
+    chmod 0755 /etc/cron.daily/logrotate
+  fi &&
+
+  if [ -d /usr/share/doc/logrotate ]; then
+    cp -r examples /usr/share/doc/logrotate/
+  fi &&
+
   chmod 0755 /usr/sbin/logrotate                        &&
   chmod 0644 /usr/share/man/man8/logrotate.8            &&
-  chmod 0755 /etc/cron.daily/logrotate                  &&
-  chmod 0644 /etc/logrotate.conf                        &&
-  chmod 0755 /etc/logrotate.d
+  chmod 0755 /etc/logrotate.d                           &&
+  chmod 0755 /var/state/logrotate
 
 ) > $C_FIFO 2>&1



More information about the Lunar-commits mailing list