--- scanerrlog-2.01.orig/scanerrlog.py +++ scanerrlog-2.01/scanerrlog.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/python # scanerrlog - (c) 2000-2002 Jerome Alet & Free Software Foundation # # You're welcome to redistribute this software under the --- scanerrlog-2.01.orig/scanerrlog.1 +++ scanerrlog-2.01/scanerrlog.1 @@ -0,0 +1,84 @@ +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH SCANERRLOG 1 "May 2001" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +scanerrlog \- program to summarize Apache error log files +.SH SYNOPSIS +.B scanerrlog +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents the +.B scanerrlog +command. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +Instead, it has documentation in the GNU Info format; see below. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +.B scanerrlog +is a program that allows people to parse Apache error_log files from different sources and present the information in decreasing frequency of messages. +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +.TP +.B \-c, \-\-continue +Use a cache (ScanErrLog.stats) in order to speed up subsequent processing of the same file. +.br +.B WARNING: +This option is incompatible with the parsing of multiple files. +.TP +.B \-d, \-\-date +Include the date at which the last message of each type occurred. Mutually exclusive with the +.B \-\-pattern +option. +.TP +\fB\-e, \-\-exclude\fR \fILIST\fR +Exclude messages with severities in LIST from the final report. LIST is a slash separated list of message severities. +.TP +\fB\-f, \-\-format\fR \fITYPE\fR +Set the output format to TYPE, which is one of: html (default), pdf, text, xml +.TP +.B \-h, \-\-help +Show summary of options. +.TP +\fB\-l, \-\-limit\fR \fINUMBER\fR +Only include messages which occur at least NUMBER times. +.TP +.B \-n, \-\-nocumulate +Don't accumulate counts across multiple file arguments. If \fB\-o\fR is not used, then this option implies \fB\-w\fR. +.TP +\fB\-o, \-\-outputfile\fR \fIFILE\fR +Save the report in FILE. If \fB\-n\fR is used, then reports will be saved in FILE.N, where N is a number starting at 1 and incremented for each report. +.TP +\fB\-p, \-\-pattern\fR \fIPATTERN\fR +Select only lines which match PATTERN. The default pattern selects all Apache log messages, excluding others (e.g. CGI script errors). To work correctly, PATTERN should match all characters from the beginning of the line up to the beginning of the real error message. This option is mutually exclusive with \fB\-\-date\fR. +.TP +\fB\-t, \-\-title\fR \fITITLE\fR +Set the report title to TITLE. +.TP +.B \-v, \-\-version +Show version of program. +.TP +.B \-w, \-\-withoutheader +Suppress headers from HTML output. Useful if you want to include the output in another HTML document. +.SH AUTHOR +Jerome Alet . +.PP +This manual page was written by JP Sugarbroad , +for the Debian GNU/Linux system (but may be used by others). --- scanerrlog-2.01.orig/debian/examples +++ scanerrlog-2.01/debian/examples @@ -0,0 +1 @@ +ScanErrLog.html --- scanerrlog-2.01.orig/debian/manpages +++ scanerrlog-2.01/debian/manpages @@ -0,0 +1 @@ +scanerrlog.1 --- scanerrlog-2.01.orig/debian/control +++ scanerrlog-2.01/debian/control @@ -0,0 +1,15 @@ +Source: scanerrlog +Section: admin +Priority: extra +Maintainer: Víctor Pérez Pereira +Build-Depends-Indep: python-jaxml, python-setuptools, python-support (>= 1.0.0) +Build-Depends: debhelper (>> 4.0.0), python (>= 2.5.3-1~) +Standards-Version: 3.7.3 + +Package: scanerrlog +Architecture: all +Depends: ${python:Depends}, python-jaxml +Description: Generate summaries from Apache error logs + This program allows people to parse Apache error_log files from multiple + sources and present a summary of the frequency of error messages in one of a + variety of different formats (text, html, xml, pdf). --- scanerrlog-2.01.orig/debian/rules +++ scanerrlog-2.01/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=4 + +build: build-stamp +build-stamp: + dh_testdir + + python setup.py build + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + -python setup.py clean + -rm -rf build *.py[co] + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + python setup.py install -O2 --root $(CURDIR)/debian/scanerrlog --install-layout=deb + for f in $(CURDIR)/debian/scanerrlog/usr/*bin/*.py; do \ + X=`echo $$f | sed -e 's/\.py$$//'`; \ + mv $$f $$X; \ + done + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installchangelogs + dh_installman + dh_link + dh_compress -X.py + dh_fixperms + dh_pysupport + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure + +# vim:noet:nosta:nolist: --- scanerrlog-2.01.orig/debian/copyright +++ scanerrlog-2.01/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by JP Sugarbroad on +Sun, 13 May 2001 12:25:43 -0500. +It is currently maintained by +Víctor Pérez Pereira +It was downloaded from http://www.librelogiciel.com/software/ScanErrLog/action_Presentation + +Upstream Author: Jerome Alet + +Copyright: + + 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; version 2 dated June, 1991. + + 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. + +On Debian systems, the complete text of the GNU General Public License +can be found in `/usr/share/common-licenses/GPL'. --- scanerrlog-2.01.orig/debian/changelog +++ scanerrlog-2.01/debian/changelog @@ -0,0 +1,90 @@ +scanerrlog (2.01-4.2) unstable; urgency=low + + * Non-maintainer upload, to prepare for Python 2.6 transition + * debian/rules + - added '--install-layout=deb' parameter to setup.py install call; thanks to + Jakub Wilk for the report; Closes: #571511 + * debian/control + - set b-d on python (instead of p-dev) and bump version to '>= 2.5.3-1~', to + support install-layout + - bump versioned b-d on python-support to properly support Python + + -- Sandro Tosi Thu, 04 Mar 2010 13:26:36 +0100 + +scanerrlog (2.01-4.1) unstable; urgency=low + + * Non-maintainer upload. + * Make the package conform to the current python policy. + Closes: #406729. + + Build-depend on python-support. + + Use python:Depends. + + Call dh_pysupport. + + Remove versioned build-dependency on python-dev << 2.5. + + Move python-dev to Build-Depends (used in the clean target). + * Fix encoding of the copyright file. + * Standards version is 3.7.3. + + -- Josselin Mouette Tue, 22 Jan 2008 13:18:24 +0100 + +scanerrlog (2.01-4) unstable; urgency=low + + * Add README.logrotate (Closes: #148871). + * Update debhelper version. + * Update Debian Policy. + * ACK NMU (Closes: #382399). + * Build with python 2.4 (Closes: #382916). + + -- Víctor Pérez Pereira Tue, 14 Oct 2006 20:00:11 -0400 + +scanerrlog (2.01-3.1) unstable; urgency=low + + * Non-maintainer upload. + * Changing build dependency from jaxml to python-jaxml (Closes: #382399). + + -- David Moreno Garza Sun, 13 Aug 2006 15:30:31 -0500 + +scanerrlog (2.01-3) unstable; urgency=low + + * New maintainer (closes: #302300). + + -- Víctor Pérez Pereira Wed, 19 Oct 2005 22:41:01 -0400 + +scanerrlog (2.01-2) unstable; urgency=low + + * QA upload. + * Package is orphaned (see #302300); set maintainer to Debian QA Group. + * scanerrlog.1: Mention upstream author. + * Conforms to Standards version 3.6.1. + + -- Matej Vela Tue, 26 Apr 2005 15:56:29 +0200 + +scanerrlog (2.01-1.1) unstable; urgency=low + + * NMU + * Update to python2.3. + + -- Matthias Klose Tue, 26 Aug 2003 14:20:34 +0200 + +scanerrlog (2.01-1) unstable; urgency=low + + * New upstream release + * Update to python 2.2 + * Update to Standards-Version 3.5.7 + + -- JP Sugarbroad Sat, 14 Sep 2002 16:20:52 -0500 + +scanerrlog (2.00-2) unstable; urgency=low + + * Integrate NMU changes: (thanks Matthias) + * Use new python policy (closes: #119227) + * Add jaxml to build dependencies + + -- JP Sugarbroad Fri, 21 Dec 2001 18:30:58 -0600 + +scanerrlog (2.00-1) unstable; urgency=low + + * Initial Release + + -- JP Sugarbroad Sun, 13 May 2001 12:25:43 -0500 + +# vim:nosta: --- scanerrlog-2.01.orig/debian/docs +++ scanerrlog-2.01/debian/docs @@ -0,0 +1,4 @@ +BUGS +CREDITS +NEWS +README