debian/0000755000000000000000000000000011600120200007144 5ustar debian/docs0000644000000000000000000000002111566454005010040 0ustar NEWS README TODO debian/info0000644000000000000000000000002211566454005010044 0ustar doc/cronolog.info debian/patches/0000755000000000000000000000000011600117455010615 5ustar debian/patches/010_info_section.diff0000644000000000000000000000136611576515003014517 0ustar Description: put cronoloag info doc in 'administrative commands' section. Author: Joel Baker Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=193350 Forwarded: yes Last-Update: 2011-05-27 Index: cronolog-1.6.2/doc/cronolog.info =================================================================== --- cronolog-1.6.2.orig/doc/cronolog.info 2011-05-27 01:20:54.564457720 +0200 +++ cronolog-1.6.2/doc/cronolog.info 2011-05-27 01:21:06.300457716 +0200 @@ -1,6 +1,7 @@ This is Info file cronolog.info, produced by Makeinfo-1.63 from the input file cronolog.texi. +INFO-DIR-SECTION Administration commands START-INFO-DIR-ENTRY * Cronolog: (cronolog). A log file rotation program for web servers END-INFO-DIR-ENTRY debian/patches/070_manpages_fixes.diff0000644000000000000000000001141111573720307015031 0ustar Description: fix manpages errors * change a invalid .C nroff macro to .B macro. * some lintian warning fixed. * added --print-invalid in cronosplit manpage. * change "/www/sbin/cronolog" to "/usr/bin/cronolog" in example. Author: Maxime Chatelle Forwarded: no Last-Update: 2011-06-05 Index: cronolog-1.6.2/doc/cronolog.1m =================================================================== --- cronolog-1.6.2.orig/doc/cronolog.1m 2011-06-04 02:13:51.374919134 +0200 +++ cronolog-1.6.2/doc/cronolog.1m 2011-06-04 03:07:52.314917891 +0200 @@ -29,7 +29,7 @@ if not it closes the current file, expands the template using the current date and time to generate a new file name, opens the new file (creating missing directories on the path of the new log file as -needed unless the program is compiled with -DDONT_CREATE_SUBDIRS) and +needed unless the program is compiled with \-DDONT_CREATE_SUBDIRS) and calculates the time at which the new file will become invalid. .PP .B cronolog @@ -37,8 +37,8 @@ Apache to split the access log into daily or monthly logs. For example the Apache configuration directives: .LP - TransferLog "|/www/sbin/cronolog /www/logs/%Y/%m/%d/access.log" - ErrorLog "|/www/sbin/cronolog /www/logs/%Y/%m/%d/errors.log" + TransferLog "|/usr/bin/cronolog /www/logs/%Y/%m/%d/access.log" + ErrorLog "|/usr/bin/cronolog /www/logs/%Y/%m/%d/errors.log" .LP would instruct Apache to pipe its access and error log messages into separate copies of cronolog, which would create new log files each day @@ -59,7 +59,7 @@ ErrorLog directive.) .SH Options -.C cronolog +.B cronolog accepts the following options and arguments: .\" .IP "-H \fINAME\fP" @@ -85,8 +85,8 @@ option is specified, as cronolog renames the current link to the name specified for the previous link. .\" -.IP -h -.IP --help +.IP "-h" +.IP "--help" print a help message and then exit. .\" .IP "-p \fIPERIOD\fP" @@ -129,19 +129,19 @@ seconds are omitted then they are taken as zero and if the hours and minutes are omitted then the time of day is taken as 00:00:00 (i.e. midnight). The day, month and year can be separated by spaces, -hyphens (-) or solidi (/). +hyphens (\-) or solidi (/). .\" -.IP -a -.IP --american +.IP "-a" +.IP "--american" Interprete the date part of the starting time the American way (month then day). -.IP -e -.IP --european +.IP "-e" +.IP "--european" Interprete the date part of the starting time the European way (day then month). This is the default. .\" -.IP -v -.IP --version +.IP "-v" +.IP "--version" print version information and exit. .\" .\" @@ -159,7 +159,7 @@ .IP % a literal % character .IP n -a new-line character +a new\-line character .IP t a horizontal tab character .PP @@ -226,7 +226,7 @@ .B cronolog can be obtained from .LP - http://www.ford-mason.co.uk/resources/cronolog/ + http://www.ford\-mason.co.uk/resources/cronolog/ .LP If you have any suggestions, bug reports, fixes, or enhancements, please mail them to the author. @@ -245,7 +245,7 @@ (template), for example where different virtual servers write to the same set of log files. .SH AUTHOR -Andrew Ford +Andrew Ford .LP .B cronolog is based on a program called Index: cronolog-1.6.2/doc/cronosplit.1m =================================================================== --- cronolog-1.6.2.orig/doc/cronosplit.1m 2011-06-05 16:37:43.722866088 +0200 +++ cronolog-1.6.2/doc/cronosplit.1m 2011-06-08 18:15:04.645929608 +0200 @@ -11,7 +11,7 @@ .\" .SH SYNOPSIS .B cronosplit ---template=TEMPLATE [--print-invalid] [--help] [--version] file ... +\-\-template=TEMPLATE [\-\-print\-invalid] [\-\-help] [\-\-version] file ... .\" .SH DESCRIPTION .B cronosplit @@ -30,11 +30,13 @@ function). .\" .SH Options -.C cronosplit +.B cronosplit accepts the following options and arguments: .IP "--template=\fITEMPLATE\fP" specifies the template for the output log files (using the format specifiers described below). +.IP "--print-invalid" +print invalid log file entries to the standard error stream. .IP "--verbose" print additional status messages to the standard error stream. .IP "--debug" @@ -52,7 +54,7 @@ .IP % a literal % character .IP n -a new-line character +a new\-line character .IP t a horizontal tab character .PP @@ -122,7 +124,7 @@ .B cronosplit can be obtained from .LP - http://www.ford-mason.co.uk/resources/cronolog/ + http://www.ford\-mason.co.uk/resources/cronolog/ .LP If you have any suggestions, bug reports, fixes, or enhancements, please mail them to the author. @@ -131,7 +133,7 @@ .LP http://www.apache.org .SH AUTHOR -Andrew Ford +Andrew Ford .LP .B cronosplit is based on a script called debian/patches/080_cronosplit_utime.diff0000644000000000000000000000561711574023677015462 0ustar Description: add a --utime option to cronosplit Author: Christoph Biedl Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=370297 Forwarded: yes Last-Update: 2011-06-09 Index: cronolog-1.6.2/src/cronosplit.in =================================================================== --- cronolog-1.6.2.orig/src/cronosplit.in 2011-06-09 03:42:05.513916553 +0200 +++ cronolog-1.6.2/src/cronosplit.in 2011-06-09 03:43:13.309916526 +0200 @@ -122,6 +122,7 @@ my $template; my $debug; my $verbose; +my $utime; my $PrintInvalids; my $print_help; my $print_version; @@ -129,11 +130,13 @@ my %OpenHandles = (); my @HandlesInUse = (); +my %utimes = (); # Process options (GetOptions("template=s", \$template, "print-invalid", \$PrintInvalids, + "utime", \$utime, "debug", \$debug, "verbose", \$verbose, "help", \$print_help, @@ -176,6 +179,7 @@ --template=TEMPLATE output log-file template --print-invalid print invalid log-file entries + --utime update mtime of output files to last entry --help print this help, then exit --version print version number, then exit EOS @@ -264,6 +268,17 @@ close(INFILE); } +# close any open files +foreach my $oldkey (@HandlesInUse) +{ + $handle = $OpenHandles{$oldkey}; + close $handle; + if ($utime) + { + my $mtime = $utimes{$oldkey}; + utime $mtime, $mtime, $oldkey; + } +} # Get a file handle for a log file, closing the oldest handle if there # are too many handles open @@ -279,6 +294,14 @@ my(@time) = localtime($time_t); $file =~ s/(%[a-zA-Z%])/strftime($1, @time)/eg; + if ($utime) + { + if (!defined ($utimes{$file}) || $time_t > $utimes{$file}) + { + $utimes{$file} = $time_t; + } + } + # See if we already have it open and ready to write return $handle if defined($handle = $OpenHandles{$file}); @@ -289,8 +312,13 @@ { my ($oldkey) = shift @HandlesInUse; # close the oldest $handle = $OpenHandles{$oldkey}; - delete $OpenHandles{$oldkey}; close $handle; + if ($utime) + { + my $mtime = $utimes{$oldkey}; + utime $mtime, $mtime, $oldkey; + } + delete $OpenHandles{$oldkey}; } # Finally, try to open and remember a new handle for this pathkey Index: cronolog-1.6.2/doc/cronosplit.1m =================================================================== --- cronolog-1.6.2.orig/doc/cronosplit.1m 2011-06-09 03:44:29.325916496 +0200 +++ cronolog-1.6.2/doc/cronosplit.1m 2011-06-09 03:46:12.157916457 +0200 @@ -37,6 +37,8 @@ specifiers described below). .IP "--print-invalid" print invalid log file entries to the standard error stream. +.IP "--utime" +update modification time of output file according to last parsed log entry. .IP "--verbose" print additional status messages to the standard error stream. .IP "--debug" debian/patches/050_cronolog_getopt_long.diff0000644000000000000000000000212611576515003016262 0ustar diff -urp cronolog-1.6.2/src/cronolog.c cronolog-1.6.2/src/cronolog.c --- cronolog-1.6.2/src/cronolog.c 2001-05-03 09:42:48.000000000 -0700 +++ cronolog-1.6.2/src/cronolog.c 2008-01-05 23:54:53.000000000 -0800 @@ -139,7 +139,8 @@ struct option long_options[] = { "delay", required_argument, NULL, 'd' }, { "once-only", no_argument, NULL, 'o' }, { "help", no_argument, NULL, 'h' }, - { "version", no_argument, NULL, 'V' } + { "version", no_argument, NULL, 'V' }, + { NULL, 0, NULL, 0 } }; #endif diff -urp cronolog-1.6.2/src/cronotest.c cronolog-1.6.2/src/cronotest.c --- cronolog-1.6.2/src/cronotest.c 2001-05-03 09:26:44.000000000 -0700 +++ cronolog-1.6.2/src/cronotest.c 2008-01-06 00:02:24.000000000 -0800 @@ -112,7 +112,8 @@ struct option long_options[] = { "test-subdirs", required_argument, NULL, 'D' }, { "help", no_argument, NULL, 'h' }, { "version", no_argument, NULL, 'V' }, - { "verbose", no_argument, NULL, 'v' } + { "verbose", no_argument, NULL, 'v' }, + { NULL, 0, NULL, 0 } }; debian/patches/series0000644000000000000000000000030011600117455012023 0ustar 010_info_section.diff 040_cronosplit.diff 050_cronolog_manpage_typo.diff 050_cronolog_getopt_long.diff 060_cronosplit_manpage_correction.diff 070_manpages_fixes.diff 080_cronosplit_utime.diff debian/patches/060_cronosplit_manpage_correction.diff0000644000000000000000000000135611572274131020157 0ustar Description: add a supported log format in cronosplit manpage Author: Daniel Freedman Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=217566 Forwarded: no Last-Update: 2011-06-03 Index: cronolog-1.6.2/doc/cronosplit.1m =================================================================== --- cronolog-1.6.2.orig/doc/cronosplit.1m 2011-06-03 23:19:07.086923156 +0200 +++ cronolog-1.6.2/doc/cronosplit.1m 2011-06-03 23:20:18.774923130 +0200 @@ -18,6 +18,8 @@ is a simple program that reads lines from a set of input log files, which must be in .I "Common Log Format" +or +.I "NCSA Combined/XLF/ELF Format" and write each lines to an output files, the name of which is constructed using the .B template debian/patches/050_cronolog_manpage_typo.diff0000644000000000000000000000126711571554703016436 0ustar Description: correct a typo error in the manpage of cronolog Author: Daniel Freedman Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=217554 Forwarded: no Last-Update: 2011-06-02 Index: cronolog-1.6.2/doc/cronolog.1m =================================================================== --- cronolog-1.6.2.orig/doc/cronolog.1m 2011-06-02 02:09:56.672257657 +0200 +++ cronolog-1.6.2/doc/cronolog.1m 2011-06-02 02:10:40.356257639 +0200 @@ -77,7 +77,7 @@ to the current log file. .\" .IP "-P \fINAME\fP" -.IP "--prevlink=\fINAME\fP" +.IP "--prev-simlink=\fINAME\fP" maintain a symbolic link from .I NAME to the previous log file. Requires that the debian/patches/040_cronosplit.diff0000644000000000000000000001572211576515003014240 0ustar Description: cronosplit bugfixes and improvements. from changelog: * cronosplit bugfixes: * Print content of invalid lines. * Also split error logfiles. (Closes: #241492) * Safe open for input files/pipes. * cronosplit improvements: * use strict; * Use strftime for template conversion. * Add processing of bzip2 compressed logfiles. * Incorporate the above changes + 020_cronosplit_HMS.diff into new 040_cronosplit.diff. Author: Christoph Biedl Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=241492 Forwarded: no Last-Update: 2011-05-27 Index: cronolog-1.6.2/src/cronosplit.in =================================================================== --- cronolog-1.6.2.orig/src/cronosplit.in 1999-12-27 16:52:52.000000000 +0100 +++ cronolog-1.6.2/src/cronosplit.in 2011-05-27 03:18:06.620455021 +0200 @@ -70,26 +70,38 @@ # (splitlog is part of the wwwstat package, # see ) +require 5.8.0; use Getopt::Long; +use Time::Local; +use POSIX qw(strftime); -$program = 'cronosplit'; -$version = '@VERSION@'; +use strict; -# Parameters +my $program = 'cronosplit'; +my $version = '@VERSION@'; + +# Programs -$MaxHandles = 50; -$DirMode = 0775; +my $ZCAT = '/bin/zcat'; +my $BZCAT = '/usr/bin/bzcat'; + +# Parameters +my $MaxHandles = 50; +my $DirMode = 0775; # Patterns for log file entries (Common Log Format) and timestamps -$log_entry_pattern = "^(\\S+) (\\S+) ([^[]+) \\[([^]]*)] \"([^\"]*)\" (\\S+) (\\S+)(.*)"; -$timestamp_pattern = "^([ 0-3]?\\d)/([A-Za-z]+)/(\\d{4}):(\\d\\d):(\\d\\d):(\\d\\d) [+ -]\\d{1,4}"; +my $access_log_entry_pattern = "^(\\S+) (\\S+) ([^[]+) \\[([^]]*)] \"([^\"]*)\" (\\S+) (\\S+)(.*)"; +my $access_timestamp_pattern = "^([ 0-3]?\\d)/([A-Za-z]+)/(\\d{4}):(\\d\\d):(\\d\\d):(\\d\\d) [+ -]\\d{1,4}"; + +my $error_log_entry_pattern = "^\\[([^]]*)] \\[([^]]*)] (\\S+)(.*)"; +my $error_timestamp_pattern = "^[A-Z][a-z]{2} ([A-Z][a-z]{2}) ([0-3]?\\d) (\\d\\d):(\\d\\d):(\\d\\d) (\\d{4})"; # An associative array of month names and abbreviations -%month = (Jan => 1, January => 1, +my %month = (Jan => 1, January => 1, Feb => 2, February => 2, Mar => 3, March => 3, Apr => 4, April => 4, @@ -102,15 +114,21 @@ Nov => 11, November => 11, Dec => 12, December => 12); -@month = ("", "January", "February", "March", "April", "May", "June", - "July", "August", "September", "October", "November", "December"); -@mmm = ("", "Jan", "Feb", "Mar", "Apr", "May", "Jun", - "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"); - -@days = ("Sunday", "Monday", "Tuesday", "Wednesday", - "Thursday", "Friday", "Saturday"); -@ddd = ("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"); +# Variables + +my $file; +my $outfile; +my $template; +my $debug; +my $verbose; +my $PrintInvalids; +my $print_help; +my $print_version; +my $handle; + +my %OpenHandles = (); +my @HandlesInUse = (); # Process options @@ -170,25 +188,37 @@ push(@ARGV, "-") unless @ARGV; - FILE: foreach $file (@ARGV) { if ($file eq "-") { print STDERR "reading from STDIN\n" if $verbose; *INFILE = *STDIN; - } + } elsif ($file =~ /\.gz$/) { print STDERR "opening \"$file\"\n" if $verbose; - if (!open(INFILE, "zcat $file|")) { + if (!open(INFILE, "-|", $ZCAT, $file)) { + print STDERR "cannot open \"$file\"\n"; + next FILE; + } + } + elsif ($file =~ /\.bz2$/) { + if (! -x $BZCAT) + { + print STDERR "Cannot process \"$file\", install bzip2 first.\n"; + next FILE; + } + print STDERR "opening \"$file\"\n" if $verbose; + + if (!open(INFILE, "-|", $BZCAT, $file)) { print STDERR "cannot open \"$file\"\n"; next FILE; } } else { print STDERR "opening \"$file\"\n" if $verbose; - - if (! open(INFILE, $file)) { + + if (! open(INFILE, "<$file")) { print STDERR "cannot open \"$file\"\n"; next FILE; } @@ -201,32 +231,34 @@ LINE: while () { - my($host, $ident, $authuser, $timestamp, - $request, $status, $bytes, $trailer) = /$log_entry_pattern/; - - if (!($host && $ident && $authuser && $timestamp && $request && $status)) - { - if ($PrintInvalids) { print STDERR "$.:$saveline"; } - next LINE; - } - - if ($timestamp =~ /$timestamp_pattern/) + my ($timestamp, $time_t); + if (/$access_log_entry_pattern/) { - ($day, $mon, $year, $hour, $min, $sec) = ($1, $2, $3, $4, $5, $6); - } - else + $timestamp = $4; + if ($timestamp =~ /$access_timestamp_pattern/) + { + # 1:day 2:month 3:year 4:hour 5:minute 6:second + $time_t = eval { timelocal($6, $5, $4, $1, $month{$2} - 1, $3 - 1900) }; + } + } + elsif (/$error_log_entry_pattern/) + { + $timestamp = $1; + if ($timestamp =~ /$error_timestamp_pattern/) + { + # 1:month 2:day 3:hour 4:minute 5:second 6:year + $time_t = eval { timelocal($5, $4, $3, $2, $month{$1} - 1, $6 - 1900) }; + } + } + if (!defined ($time_t)) { - if ($PrintInvalids) { print STDERR "$.:$saveline"; } + if ($PrintInvalids) { print STDERR "$.:$_"; } next LINE; } - next LINE unless defined($outfile = &get_handle($template, - $day, $mon, $year, - $hour, $min, $sec)); - - print($outfile $host, ' ', $ident, ' ', $authuser, - ' [', $timestamp, '] "', $request, '" ', - $status, ' ', $bytes, $trailer, "\n"); + next LINE unless defined($outfile = &get_handle($template, $time_t)); + + print($outfile $_); } close(INFILE); @@ -238,22 +270,14 @@ sub get_handle { - my($template, $day, $mon, $year, $hour, $min, $sec) = @_; - $mon = $month{$mon}; + my($template, $time_t) = @_; # Determine the filename from the template and time my($file) = $template; - $file =~ s/%Y/sprintf("%04d", $year)/eg; - $file =~ s/%m/sprintf("%02d", $mon)/eg; - $file =~ s/%d/sprintf("%02d", $day)/eg; - $file =~ s/%b/$mmm[$mon]/g; - $file =~ s/%B/$month[$mon]/g; - $file =~ s/%H/sprintf("%02d", $hour)/eg; - $file =~ s/%M/sprintf("%02m", $min)/eg; - $file =~ s/%S/sprintf("%02m", $sec)/eg; - + my(@time) = localtime($time_t); + $file =~ s/(%[a-zA-Z%])/strftime($1, @time)/eg; # See if we already have it open and ready to write @@ -263,7 +287,7 @@ if (($#HandlesInUse + 1) >= $MaxHandles) { - local($oldkey) = shift @HandlesInUse; # close the oldest + my ($oldkey) = shift @HandlesInUse; # close the oldest $handle = $OpenHandles{$oldkey}; delete $OpenHandles{$oldkey}; close $handle; @@ -271,7 +295,7 @@ # Finally, try to open and remember a new handle for this pathkey - $handle = ++$NextHandle; + undef $handle; make_dirs($file); @@ -321,7 +345,7 @@ # Check each directory on the path - foreach $i (0 .. $#path) + foreach my $i (0 .. $#path) { $path = $abs . join("/", (@path[0 .. $i])); print(STDERR "Testing $path\n") if $debug; debian/rules0000755000000000000000000000165011576515003010253 0ustar #!/usr/bin/make -f # -*- makefile -*- # debian/rules file, written by Maxime Chatelle # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 # install destination DESTDIR = $(CURDIR)/debian/cronolog # std flags CFLAGS += -g -Wall # must be used on architecture where sizeof(ptr*) > sizeof(int) (bug#323425) CFLAGS += -D_XOPEN_SOURCE # enable large file support (more than 2GiB) (bug#304626) CFLAGS += -D_FILE_OFFSET_BITS=64 %: dh $@ # move command to /usr/bin instead of /usr/sbin override_dh_auto_install: dh_auto_install mkdir -p $(DESTDIR)/usr/bin mv $(DESTDIR)/usr/sbin/cronolog $(DESTDIR)/usr/bin mv $(DESTDIR)/usr/sbin/cronosplit $(DESTDIR)/usr/bin rmdir $(DESTDIR)/usr/sbin # delete "dir" file, auto-generated by install-info override_dh_installinfo: dh_installinfo rm -f $(DESTDIR)/usr/share/info/dir $(DESTDIR)cronolog/usr/share/info/dir.old # disable testing override_dh_auto_test: debian/copyright0000644000000000000000000000217111576515003011125 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: cronolog Source: http://cronolog.org/ Comment: Package originaly written by Ford & Mason, Limited then donated to The Apache Software Fondation. Files: * Copyright: 1996-1999 The Apache Software Foundation License: GPL-2.0+ Files: debian/* Copyright: 2011 Maxime Chatelle License: GPL-2.0+ License: GPL-2.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/watch0000644000000000000000000000011611572272522010222 0ustar version=3 http://cronolog.org/download/index.html cronolog-([\d\.]+)\.tar\.gz debian/control0000644000000000000000000000207311600117253010567 0ustar Source: cronolog Section: web Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Maxime Chatelle Build-Depends: debhelper (>= 8.0), dejagnu, autotools-dev Standards-Version: 3.9.2 Homepage: http://www.cronolog.org/ Package: cronolog Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends} Description: Logfile rotator for web servers A simple program that reads log messages from its input and writes them to a set of output files, the names of which are constructed using template and the current date and time. The template uses the same format specifiers as the Unix date command (which are the same as the standard C strftime library function). . It intended to be used in conjunction with a Web server, such as Apache, to split the access log into daily or monthly logs: . TransferLog "|/usr/bin/cronolog /var/log/apache/%Y/access.%Y.%m.%d.log" . A cronosplit script is also included, to convert existing traditionally-rotated logs into this rotation format. debian/compat0000644000000000000000000000000211576515003010367 0ustar 8 debian/source/0000755000000000000000000000000011576515003010471 5ustar debian/source/format0000644000000000000000000000001411566454005011702 0ustar 3.0 (quilt) debian/README.Debian0000644000000000000000000000167411576515003011242 0ustar Cronolog was origionally designed to work with Apache logging modules, and this remains one of it's primary uses. To that end, I have included some example configuration directives for Apache 1.x below (note that some of these are already in place, on default Debian installations of Apache). # The following directives define some format nicknames for use with # a CustomLog directive (see below). LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %v" full LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent # The location of the access logfile (Common Logfile Format). # If this does not start with /, ServerRoot is prepended to it. # If it starts with |, the Debian cron scripts will not rotate it. CustomLog "|/usr/bin/cronolog /var/log/apache/access.%Y.%m.log" combined debian/changelog0000644000000000000000000001335611600120200011026 0ustar cronolog (1.6.2+rpk-1ubuntu1) oneiric; urgency=low * Merge from debian unstable. Remaining changes: - debian/patches/050_cronolog_getopt_long.diff: + Last record of a struct option must be NULL, so add a NULL record at the bottom of long_options, thanks Carlo Marcelo Arenas Belon! -- Angel Abad Tue, 21 Jun 2011 15:37:38 +0200 cronolog (1.6.2+rpk-1) unstable; urgency=low * RePacKaging of orig.tar.gz to change source tarball in the archive. (was a tarball-in-tarball source archive, for dbs use) -- Maxime Chatelle Tue, 14 Jun 2011 23:47:39 +0200 cronolog (1.6.2-6) unstable; urgency=low * New Maintainer: Maxime Chatelle (Closes: #465934). * Upgraded to Policy 3.9.2. * Upgraded to "3.0 (quilt)" package format and full rewrite of debian/rules, removing dbs build dependency (Closes: #576045). * cronolog manpage: typo error fixed (050_cronolog_manpage_typo.diff) (Closes: #217554). * cronosplit manpage: add some precisions about supported formats (060_cronosplit_manpage_correction.diff)(Closes: #217566). * removed "030_define_xopen_source.diff" patch and use CFLAGS in debian/rules instead (see 1.6.2-5.1, was #323425). * added -D_FILE_OFFSET_BITS=64 in CFLAGS for large file support (Closes: #304626). * removed the, now very old, wrapper in /usr/sbin (see 1.6.2-3). * errors fixed in manpages (070_manpages_fixes.diff) * --utime option added to cronosplit (Closes: #370297). -- Maxime Chatelle Mon, 4 Jun 2011 14:49:57 +0200 cronolog (1.6.2-5.3ubuntu1) jaunty; urgency=low * debian/patches/050_cronolog_getopt_long.diff (LP: #71177): - Last record of a struct option must be NULL, so add a NULL record at the bottom of long_options, thanks Carlo Marcelo Arenas Belon! -- Luca Falavigna Sat, 21 Feb 2009 11:45:28 +0100 cronolog (1.6.2-5.3) unstable; urgency=low * Porter NMU. * Update config.guess/config.sub at build-time (Closes: #331428). -- Aurelien Jarno Sun, 10 Dec 2006 23:45:56 +0100 cronolog (1.6.2-5.2) unstable; urgency=low * Non-maintainer upload. * cronosplit bugfixes: * Print content of invalid lines. * Also split error logfiles. (Closes: #241492) * Safe open for input files/pipes. * cronosplit improvements: * use strict; * Use strftime for template conversion. * Add processing of bzip2 compressed logfiles. * Incorporate the above changes + 020_cronosplit_HMS.diff into new 040_cronosplit.diff. -- Christoph Biedl Sun, 4 Jun 2006 13:20:49 +0200 cronolog (1.6.2-5.1) unstable; urgency=low * Non-maintainer upload. * Define _XOPEN_SOURCE to fix an implicitly converted pointer. Closes: #323425 -- dann frazier Tue, 27 Sep 2005 00:36:07 -0600 cronolog (1.6.2-5) unstable; urgency=low * Upgraded to Policy 3.6.1. * Corrected patch 020_cronosplit_HMS.diff to also patch cronosplit.in (we don't regenerate anything, so it isn't crucial, but it's good to keep things in sync). * Added upstream ChangeLog, NEWS, README, and TODO files to the doc directory. (Closes: #241487) -- Joel Baker Mon, 5 Apr 2004 20:54:01 -0600 cronolog (1.6.2-4) unstable; urgency=low * Upgraded to Policy 3.6.0. * Fixed a problem in cronosplit which caused %M and %S templates to go haywire. (Closes: #203372) -- Joel Baker Tue, 29 Jul 2003 22:44:10 -0600 cronolog (1.6.2-3) unstable; urgency=low * Changed documentation to point to /usr/bin, and added a wrapper script in /usr/sbin that throws a message to STDERR warning about the deprecated location. The wrapper can be dropped after the next major release. (Closes: #193822) * Patch cronolog.info to be in section 'Administrative commands'; next upstream release will put it there anyway. (Closes: #193350) -- Joel Baker Mon, 19 May 2003 13:27:10 -0600 cronolog (1.6.2-2) unstable; urgency=low * Fixed /usr/info stupidity in cronolog.dirs; I need to hook lintian/linda into my pbuilder runs. -- Joel Baker Wed, 14 May 2003 12:50:51 -0600 cronolog (1.6.2-1) unstable; urgency=low * New Maintainer: Joel Baker . (Closes: #192662) * New upstream release. * Acknowlege periodicity NMU (even if NMUs shouldn't normally change upstream versions). Version 1.6.2 shows no obvious reversion. (Closes: #66482) * Complete rewrite (from scratch) of debian/rules. * Added a Build-Depend on debhelper (>= 4). (Closes: #189112) * Switched to using DBS for the build system. * Run 'make check' for the dejagnu testsuite. * Manually move cronolog and cronosplit from /usr/sbin to /usr/bin, since I agree that they probably belong there. (Closes: #138990) * Moved http.conf to README.Debian, and added some introductory comments. -- Joel Baker Wed, 14 May 2003 11:50:00 -0600 cronolog (1.6.1-0.1) unstable; urgency=medium * NMU * New upstream release * Periodicity is calculated correctly, closes: #66482 (important) -- Piotr Roszatycki Fri, 7 Jul 2000 13:40:46 +0200 cronolog (1.5b9-2) unstable; urgency=low * Merges perl upgrade NMU, closes: #41494. * Updated to Standards-Version: 3.0.1.1. -- Johnie Ingram Mon, 6 Sep 1999 11:02:02 -0500 cronolog (1.5b9-1.1) unstable; urgency=low * NMU for the perl upgrade. Closes: #41494 * Corrected the perl dependency. * Upgraded standards-version. * Stripped executables. -- Raphael Hertzog Sat, 24 Jul 1999 00:46:38 +0200 cronolog (1.5b9-1) unstable; urgency=low * Initial Release. -- Johnie Ingram Tue, 16 Jun 1998 14:59:47 -0400