Your message dated Sat, 11 May 2013 10:05:52 +0000
with message-id <[email protected]>
and subject line Bug#707655: Removed package(s) from unstable
has caused the Debian Bug report #285087,
regarding please export number of log files to keep
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
285087: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=285087
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sysklogd
Version: 1.4.1-16
Severity: wishlist
Tags: patch

The attached patch allows the definition of the number of logfiles
to keep (/etc/cron.*/sysklogd) in /etc/default/sysklogd.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (600, 'testing'), (98, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-cirrus
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages sysklogd depends on:
ii  klogd [linux-kernel-log-dae 1.4.1-16     Kernel Logging Daemon
ii  libc6                       2.3.2.ds1-18 GNU C Library: Shared libraries an

-- no debconf information

-- 
 .''`.     martin f. krafft <[email protected]>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
diff -u sysklogd-1.4.1/debian/changelog sysklogd-1.4.1/debian/changelog
--- sysklogd-1.4.1/debian/changelog
+++ sysklogd-1.4.1/debian/changelog
@@ -1,3 +1,13 @@
+sysklogd (1.4.1-16.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Exported the roll counts for savelog from the cron.*/sysklogd scripts to
+    /etc/default/sysklogd. The latter now has one variable each for daily and
+    weekly rotated log files, whose value specifies how many previous log
+    files are to be kept.
+
+ -- martin f. krafft <[email protected]>  Fri, 10 Dec 2004 16:28:20 +0100
+
 sysklogd (1.4.1-16) unstable; urgency=medium
 
   * applied patch by cph
diff -u sysklogd-1.4.1/debian/conffiles sysklogd-1.4.1/debian/conffiles
--- sysklogd-1.4.1/debian/conffiles
+++ sysklogd-1.4.1/debian/conffiles
@@ -4,0 +5 @@
+/etc/default/sysklogd
diff -u sysklogd-1.4.1/debian/cron.daily sysklogd-1.4.1/debian/cron.daily
--- sysklogd-1.4.1/debian/cron.daily
+++ sysklogd-1.4.1/debian/cron.daily
@@ -26,11 +26,18 @@
 
 set -e
 
+# allow specification of number of logs to keep in /etc/default/sysklogd
+test -f /etc/default/sysklogd && . /etc/default/sysklogd
+# handle cases with invalid or unspecified values
+case ${SYSKLOGD_KEEP_DAILY:-unset} in
+  *[^[:digit:]]*) SYSKLOGD_KEEP_DAILY=7;;
+esac
+
 cd /var/log
 for LOG in `syslogd-listfiles`
 do
    if [ -s $LOG ]; then
-      savelog -g adm -m 640 -u root -c 7 $LOG >/dev/null
+      savelog -g adm -m 640 -u root -c $SYSKLOGD_KEEP_DAILY $LOG >/dev/null
    fi
 done
 
diff -u sysklogd-1.4.1/debian/cron.weekly sysklogd-1.4.1/debian/cron.weekly
--- sysklogd-1.4.1/debian/cron.weekly
+++ sysklogd-1.4.1/debian/cron.weekly
@@ -25,11 +25,18 @@
 
 set -e
 
+# allow specification of number of logs to keep in /etc/default/sysklogd
+test -f /etc/default/sysklogd && . /etc/default/sysklogd
+# handle cases with invalid or unspecified values
+case ${SYSKLOGD_KEEP_WEEKLY:-unset} in
+  *[^[:digit:]]*) SYSKLOGD_KEEP_WEEKLY=4;;
+esac
+
 cd /var/log
 for LOG in `syslogd-listfiles --weekly`
 do
    if [ -s $LOG ]; then
-      savelog -g adm -m 640 -u root -c 4 $LOG >/dev/null
+      savelog -g adm -m 640 -u root -c $SYSKLOGD_KEEP_WEEKLY $LOG >/dev/null
    fi
 done
 
diff -u sysklogd-1.4.1/debian/rules sysklogd-1.4.1/debian/rules
--- sysklogd-1.4.1/debian/rules
+++ sysklogd-1.4.1/debian/rules
@@ -91,10 +91,11 @@
        $(installbin) debian/syslogd-listfiles debian/tmp.sysklogd/usr/sbin
        $(installbin) debian/syslog-facility debian/tmp.sysklogd/usr/sbin
        #
-       $(installbin) -d debian/tmp.sysklogd/etc/{init.d,cron.{daily,weekly}}
+       $(installbin) -d 
debian/tmp.sysklogd/etc/{init.d,cron.{daily,weekly},default}
        $(installbin) debian/rc debian/tmp.sysklogd/etc/init.d/sysklogd
        $(installbin) debian/cron.weekly 
debian/tmp.sysklogd/etc/cron.weekly/sysklogd
        $(installbin) debian/cron.daily 
debian/tmp.sysklogd/etc/cron.daily/sysklogd
+       $(installdoc) debian/default debian/tmp.sysklogd/etc/default/sysklogd
        $(installdoc) debian/syslog.conf debian/tmp.sysklogd/etc/syslog.conf
        $(installbin) -d debian/tmp.sysklogd/var/log
        #
only in patch2:
unchanged:
--- sysklogd-1.4.1.orig/debian/default
+++ sysklogd-1.4.1/debian/default
@@ -0,0 +1,18 @@
+#
+# sysklogd configuration parameters
+#
+
+# SYSKLOGD_KEEP_DAILY
+#   set this variable to the number of previous logs you want to keep for log
+#   files that are rotated on a daily basis. For example, if you want to keep
+#   a year's worth of log files, set this to 365. The default is 7 (one week).
+#   
+#SYSKLOGD_KEEP_DAILY=7
+
+# SYSKLOGD_KEEP_WEEKLY
+#   set this variable to the number of previous logs you want to keep for log
+#   files that are rotated on a weekly basis. For example, if you want to keep
+#   a year's worth of log files, set this to 52. The default is 4 (roughly one
+#   month).
+#   
+#SYSKLOGD_KEEP_WEEKLY=4

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Version: 1.5-6.2+rm

Dear submitter,

as the package sysklogd has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see http://bugs.debian.org/707655

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Ansgar Burchardt (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to