debian/0000775000000000000000000000000012757032300007167 5ustar debian/logwatch.00logwatch.cron.daily0000664000000000000000000000041412152416321014727 0ustar #!/bin/bash #Check if removed-but-not-purged test -x /usr/share/logwatch/scripts/logwatch.pl || exit 0 #execute /usr/sbin/logwatch --output mail #Note: It's possible to force the recipient in above command #Just pass --mailto address@a.com instead of --output mail debian/control0000664000000000000000000000204012167023245010571 0ustar Source: logwatch Section: admin Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Willi Mann Build-Depends: debhelper (>> 8.0.0~) Standards-Version: 3.9.4 Homepage: http://www.logwatch.org/ Package: logwatch Architecture: all Depends: ${perl:Depends}, ${misc:Depends}, postfix | mail-transport-agent Recommends: libdate-manip-perl Suggests: fortune-mod Description: log analyser with nice output written in Perl Logwatch is a modular log analyser that runs every night and mails you the results. It can also be run from command line. . The output is by service and you can limit the output to one particular service. The subscripts which are responsible for the output, mostly convert the raw log lines in structured format. . Logwatch generally ignores the time component in the output, that means, you will know that the reported event was logged in the requested range of time, but you will have to go to the raw log files to get the exact details. debian/docs0000664000000000000000000000004012152416321010032 0ustar README HOWTO-Customize-LogWatch debian/changelog0000664000000000000000000007257512757032300011061 0ustar logwatch (7.4.0+svn20130529rev144-1ubuntu1.1) trusty; urgency=medium * debian/patches/fix-match-samba-logs.patch: Fix match rules for samba logs (LP: #1010602) -- Wesley Wiedenmeier Mon, 22 Aug 2016 23:14:26 -0500 logwatch (7.4.0+svn20130529rev144-1ubuntu1) saucy; urgency=low * Merge from Debian unstable. Remaining changes: + debian/control: - Depend on postfix rather than exim4. + debian/dist.conf/logfiles/maillog.conf: adjust for logrotation -- Robie Basak Tue, 09 Jul 2013 15:06:43 +0000 logwatch (7.4.0+svn20130529rev144-1) unstable; urgency=low * Imported Upstream version 7.4.0+svn20130529rev144 * Refresh patches, drop dovecot and AppArmor patch - they are included upstream * Use my debian.org mail address in the Maintainer field * Update Standards-Version 3.9.3 -> 3.9.4 (no changes) * s/s/php: Accept time format with specification of time zone (Closes: #705600) -- Willi Mann Sat, 01 Jun 2013 14:03:28 +0200 logwatch (7.4.0+svn20120502rev103-1ubuntu1) raring; urgency=low * Merge from Debian testing (LP: #1102414). Remaining changes: + debian/control: - Depend on postfix rather than exim4. + debian/dist.conf/logfiles/maillog.conf: adjust for logrotation * Dropped changes, merged in Debian: + debian/dist.conf/services/cron.conf: this change already disappeared previously, looks related to Debian bug 615006 which is already applied and thus presumed no longer needed. -- Robie Basak Mon, 21 Jan 2013 13:53:24 +0000 logwatch (7.4.0+svn20120502rev103-1) unstable; urgency=low * Set VDate in logwatch.pl to svn date for svn snapshots * Imported Upstream version 7.4.0+svn20120502rev103 * Refresh patches, remove patches applied upstream * Add nginx log file location to httpd logfile specification. Thanks to Clint Byrum (Closes: 624271) -- Willi Mann Sat, 05 May 2012 21:20:23 +0200 logwatch (7.4.0+svn20120227rev85-1) unstable; urgency=low * Imported Upstream version 7.4.0+svn20120227rev85 * Refresh patches - amavis patch removed * No longer use logreporter's postfix script - included upstream now * Include new {postfix,amavis}-lw manpage * Update d/copyright to reflect new postfix script status * Standards-Version 3.9.2 -> 3.9.3 (no changes) * Support alternative OoM kernel message in kernel 2.6.32 (Closes: 656806) * Another try to fix dovecot reporting (Closes: 571163) -- Willi Mann Fri, 06 Apr 2012 21:11:23 +0200 logwatch (7.4.0+svn20111221rev79-1ubuntu1) precise; urgency=low [ Chuck Short ] * Merge from Debian testing. Remaining changes: + debian/conrol: - Depend on postfix rather than exim4. + debian/dist.conf/services_cron.conf, debian/dist.conf/logfiles_maillog.conf: Adjust for logrotation -- Chuck Short Mon, 06 Feb 2012 08:59:12 -0500 logwatch (7.4.0+svn20111221rev79-1) unstable; urgency=low * Imported Upstream version 7.4.0+svn20111221rev79 * scripts/services/amavis: Handle some previously unmatched entries. Thanks to Patrice Le Gurun for the patch (Closes: 575866) * Bug618604: Support some kerberos lines in secure. Thanks to Ben Hildred for the patch (Closes: 618604) * Bug649194: Handle unmatched entry in saslauthd. Thanks to Kees Cook for the patch (Closes: 649194) * Bug649197: Add AppArmor log processing to the audit service. Thanks to Kees Cook for the patch (Closes: 649197) * Bug571163: Handle changes in dovecot logging. Thanks to Thorsten Kohlhepp for his assistance (Closes: 571163) * debian/control: Depends: exim4 -> default-mta -- Willi Mann Sat, 14 Jan 2012 20:02:05 +0100 logwatch (7.4.0+svn20111018rev68-1) unstable; urgency=low * Imported Upstream version 7.4.0+svn20111018rev68 * services/dpkg: Support new remove line format (Closes: 646101) * services/cron: Support more service names (Closes: 615006) * Cope with .1 as first logfile rotation name (Closes: 612634) * Remove final white space from logwatch text output (Closes: 642398) * zz-disk_space: Support GNU/kFreeBSD. Thanks to mattpays (Closes: 576735) -- Willi Mann Sat, 05 Nov 2011 20:44:36 +0100 logwatch (7.4.0+svn20110808rev66-1ubuntu1) precise; urgency=low * Merged from Debian testing, remaining changes are: + debian/conrol: - Depend on postfix rather than exim4. + debian/dist.conf/services_cron.conf, debian/dist.conf/logfiles_maillog.conf, debian/dist.conf/logfiles_messages.conf: Adjust for logrotation. + Dropped: - debian/patches/lp-809753-comify: No longer needed. - debian/rules: Dont use quilt anymore logwatch uses source 3.0 -- Chuck Short Mon, 14 Nov 2011 09:39:15 -0500 logwatch (7.4.0+svn20110808rev66-1) unstable; urgency=low * New Upstream snapshot 7.4.0+svn20110808rev66 (closes: #644053) - Use postfix-logwatch 1.39.05 as postfix script * Packaging now done with git-buildpackage * Update the patch for the secure script * Switch to debian source format 3 * debian/rules: Convert to dh command sequencer * debian/rules: Ensure permissions are correctly set on all scripts * debian/rules: Refine Shebang inserter (for postfix script) * Use postfix-logwatch 1.39.05 as postfix script * debian/control: Standards-Version 3.9.2 * debian/control: Remove SVN VC hints, switched to git, but not yet published. * debian/watch: reflect upstream move to sf.net -- Willi Mann Sun, 16 Oct 2011 17:26:59 +0200 logwatch (7.3.6.cvs20090906-2) unstable; urgency=high * CVE-2011-1018: Remote code execution by combination of - Logfile name by attacker's choice (e.g. samba log files) and - Missing sanitization of logfile names in system() call. - fix by encapsulating logfile names in ' and disallowing '. Taken from upstream. - closes: #615995 -- Willi Mann Wed, 02 Mar 2011 08:57:07 +0100 logwatch (7.3.6.cvs20090906-1ubuntu5) oneiric; urgency=low * debian/patches/lp-809753-commify: - return undef is not defined, instead of error (LP: #809753) * debian/control: - build depend on quilt * debian/rules: - add dh_quilt_patch and dh_quilt_unpatch -- Ante Karamatic Wed, 17 Aug 2011 19:28:17 +0200 logwatch (7.3.6.cvs20090906-1ubuntu4) natty; urgency=low * SECURITY UPDATE: privileged code execution via badly named logfiles - scripts/logwatch.pl: encapsulate logfiles in 's and ensure logfile names don't contain '. - http://logwatch.svn.sourceforge.net/viewvc/logwatch?view=revision&revision=26 - CVE-2011-1018 * debian/dist.conf/services/cron.conf: adjust to capture cron entries, thanks to Oliver Brakmann (LP: #719898) * scripts/services/named: update to upstream version to correctly capture more information (LP: #584229) - http://logwatch.svn.sourceforge.net/viewvc/logwatch/scripts/services/named?revision=19 * logwatch.8: replace examples containing obsolete --print argument with --output=stdout (LP: #564796) -- Steve Beattie Wed, 02 Mar 2011 13:44:53 +0100 logwatch (7.3.6.cvs20090906-1ubuntu3) maverick; urgency=low * conf/logfiles/*, debian/dist.conf/logfiles/*: Due to migration to rsyslog, the first rotation is now .1 and not .0 (fixes LP: #606715) -- Thierry Carrez (ttx) Mon, 06 Sep 2010 14:57:14 +0200 logwatch (7.3.6.cvs20090906-1ubuntu2) lucid; urgency=low * conf/html/{footer.html,header.html} Re-add dropped from the previous version of logtwatch. (LP: #481327) -- Chuck Short Tue, 17 Nov 2009 14:57:58 -0500 logwatch (7.3.6.cvs20090906-1ubuntu1) karmic; urgency=low * Merge from debian unstable (LP: #228917, #391077, #425206, #443252), remaining changes: - Use postfix rather than exim4. -- Kees Cook Mon, 05 Oct 2009 09:20:31 -0700 logwatch (7.3.6.cvs20090906-1) unstable; urgency=low * New CVS snapshot + postfix-logwatch 1.38.01 - postfix-logwatch now supports SPF \S+ lines (closes: #507937) * Support cron with -L2 loglevel (closes: #542453) * Move logfiles ending with *.gz or *.bz2 to archive list, so they are unpacked before being processed (closes: #536472) * Include patch for imapd to support loglines from uw-imapd, submitted by Marcin Szewczyk, closes: #541152 * scripts/services/denyhosts: Output one host per line, not one possibly very long line with all hosts. closes: #507042 * Support "command continues" lines in sudo. closes: #505432 * Fix typos in exim script. LP: #425206. * No longer force recipient in the cron script. (--output mail instead of --mailto root) * change comment concerning the Mailto parameter to no longer talk about removed Print parameter. closes: #499109 * lintian: - Standards-Version: 3.8.3 (no changes) - Change path to GPL2 in debian/copyright -- Willi Mann Mon, 07 Sep 2009 17:04:43 +0200 logwatch (7.3.6.cvs20080702-2ubuntu1) jaunty; urgency=low [ Bhavani Shankar ] * Merge from debian unstable, remaining changes: LP: #314620 - Use postfix rather than exim4. - Fix logwatch.pl for servers that have the same hostname as a config variable (ie: medium). Thanks for Nathan Crawford. (LP: #296349) -- Mathias Gug Wed, 07 Jan 2009 19:23:58 -0500 logwatch (7.3.6.cvs20080702-2) unstable; urgency=low * add Michael Tautschnig to changelog of former version, crediting him for his hard work fixing the unknown copyright holders issue. * Fix manpage: - --filename instead of --save to save output to a file (closes: #441358) - --print no longer exists, output to stdout is now the default - Fix some formatting issues in the manpage (thanks again to Michael Tautschnig) * services/dpkg: Ignore some previously unknown lines (closes: #491972, thanks Jeremie Bouttier for the report) -- Willi Mann Sun, 07 Dec 2008 08:20:06 +0100 logwatch (7.3.6.cvs20080702-1ubuntu4) jaunty; urgency=low * Fix typo. (LP: #296349) -- Chuck Short Wed, 03 Dec 2008 15:22:33 +0000 logwatch (7.3.6.cvs20080702-1ubuntu3) jaunty; urgency=low * Fix logwatch.pl for servers that have the same hostname as a config variable (ie: medium). Thanks for Nathan Crawford. (LP: #296349) -- Chuck Short Mon, 10 Nov 2008 16:46:59 +0000 logwatch (7.3.6.cvs20080702-1ubuntu2) intrepid; urgency=low * Corrected FTBFS from the merge by correcting arch from any to all -- Michael Casadevall Fri, 05 Sep 2008 19:20:30 -0400 logwatch (7.3.6.cvs20080702-1ubuntu1) intrepid; urgency=low * Merge from debian unstable, remaining changes: - Use postfix rather than exim4. - Update maintainers according to spec. -- Chuck Short Sat, 05 Jul 2008 11:49:54 +0100 logwatch (7.3.6.cvs20080702-1) unstable; urgency=medium * New upstream CVS snapshot - Fixes issue of unknown copyright holders (thanks Michael Tautschnig) - fixes postfix warnings, closes: #461227 - fixes a typo in services/secure script, closes: #432118 - print arguments in case of failure executing cat (logwatch.pl), closes: #428183 - ignore some more pam_unix lines in proftpd-messages, closes: #480761 * add patch by Justin Pryzby to fix an assignment instead of an regex in the services/cron script, closes: #488737 * update to Standards-Version 3.8.0 (no changes) * remove preinst script that was used in upgrades from sarge * No longer override upstream detail level to medium, closes: #441144 * Fix lintian warning: homepage-in-description * The cron script now explicitly mails to root -- Willi Mann Fri, 04 Jul 2008 16:51:36 +0200 logwatch (7.3.6-1ubuntu1) hardy; urgency=low * Added patch from Paul Schulz to fix 'pam_unix unknown entries' for authlog. (LP: #181690) * Bumped starndards version to 3.7.3 * Use postfix rather than exim4. -- Chuck Short Thu, 21 Feb 2008 08:35:13 -0500 logwatch (7.3.6-1) unstable; urgency=low * New upstream version: - closes: #317388 "Unmatched entries in Postfix section" - closes: #406084 "range examples are wrong ..." - closes: #406411 "bind/named SERVFAIL != Query form disallowed client" * Depend on exim4 rather than exim in debian/controls (closes: #420270) * Add watch file (thanks to Clint Adams, closes: #420243) * Use Homepage: instead of verbosity in Description (closes: #416488) * Avoid using syslog for maillog services. This fixes double reports of postfix, courier and maybe some others. * Add patch that allows --mailto to take no email address. This is used in the cron script. Do not rely on this, the print/encode options will probably be changed in the next version. * Add XS-Vcs-Svn and XS-Vcs-Browser to debian/control. * No longer set DH_COMPAT in debian/rules, use debian/compat. (thanks to lintian). Set compatibility to version 5 and depend on it. -- Willi Mann Mon, 23 Apr 2007 11:46:23 +0200 logwatch (7.3.1-5) unstable; urgency=low * Regression: fail2ban doesn't filter by date, thanks Yaroslav Halchenko for notifying me. Also, the fail2ban.log.1 was missing from the Archives definition. again closes: #399864 -- Willi Mann Sun, 3 Dec 2006 11:38:45 +0100 logwatch (7.3.1-4) unstable; urgency=low * fail2ban updated, (for new fail2ban upstream and the log filename was wrong) thanks Yaroslav Halchenko (closes: #399864) * additional infos in README.Debian. -- Willi Mann Tue, 28 Nov 2006 20:53:42 +0100 logwatch (7.3.1-3) unstable; urgency=medium * Fixes concerning postfix reported by Andreas Beckmann (thanks): - missing postfix logs (closes: #390741) - ignore some logs in secure, concerning postfix related authentication by modifying the config file for secure. (closes: #390743). The nss-libmyql issue is not fixed. See http://svn.debian.org/wsvn/pkg-logwatch/trunk/?rev=55&sc=1 -- Willi Mann Tue, 3 Oct 2006 08:47:47 +0200 logwatch (7.3.1-2) unstable; urgency=low * Another unmatched line for secure. * Recommend libdate-manip-perl. * Change the logwatch warning when Date::Manip not available. * Create the same directory structure in /etc as in the logwatch install script. -- Willi Mann Fri, 22 Sep 2006 11:50:25 +0200 logwatch (7.3.1-1) unstable; urgency=low * New upstream release - closes: #385032: some logging changes in postfix 2.3 - fail2ban scripts now included upstream * Add parser for dpkg.log * Some updates to debian/copyright * Pull in patch from upstream for issues with subdirectories in logdirs. * Created patches for secure, pam_unix, cron, openvpn, named, courier to support some unmatched entries. * Also, remove some redundant reporting for secure. This is logged in pam_unix anyway. * Improve the reporting in pam_unix to replace uids with names in two places. -- Willi Mann Sat, 16 Sep 2006 21:04:24 +0200 logwatch (7.3-2) unstable; urgency=low * Update fail2ban script to recognise some more messages. Patch by Yaroslav Halchenko. * Update standards version to 3.7.2. No changes. * Update debian/copyright * Fix lintian warning build-depends-indep-should-be-build-depends debhelper. -- Willi Mann Thu, 25 May 2006 17:37:58 +0200 logwatch (7.3-1) unstable; urgency=low * New upstream release - this should fix the reports about exim "Unmatched Entries". closes: #298275. * Add another unmatched entry for imapd - thanks again to Richard Burton for the report. closes: #356815 * Add some unmatched lines for smartd. * remove no longer needed debian-specific logfile definitions. merged upstream. * add fail2ban scripts from Yaroslav Halchenko. closes: #359177 * policy version 3.7.0.0, no changes -- Willi Mann Sun, 19 Mar 2006 18:29:50 +0100 logwatch (7.2.1-2) unstable; urgency=low * Set absolute path to sendmail in logwatch.conf * MailFrom set to "root". The user "logwatch" may not exist and cause problems. * Add Unmatched line for imapd. closes: #352333, thanks to Richard Burton for the report. * Handle some unmatched lines for secure. closes: #355528, thanks again to Richard Burton for the report. * Drop the service-exim patch, it's no longer needed. -- Willi Mann Sat, 11 Feb 2006 16:49:59 +0100 logwatch (7.2.1-1) unstable; urgency=low * New upstream release - Drop dependency on gawk - Drop all patches except service-exim.diff, service-secure.diff * Change DH_COMPAT from 3 to 4. Put ${misc:Depends} to Depends: in debian/control. * Support the string " (remote reception)" as additional part in sysklogd restarts. closes: #348974, thanks to Richard Antony Burton for the report. (new patch z-bug-348974.diff) * Document how to get fortunes in ones favourite language. * Change MTA to sendmail, change dependencies to exim | mail-transport-agent * The logfiles/sonicwall.conf file included messages in its LogFile setting, duplicating the whole messages logfile, and much earlier filing up the root partition for busy sites. closes: #349328, thanks to Graham Cobb for the report. * Add new unrecognized line from su in secure. We ignore it, it's handled by pam_unix anyway. thanks Richard Antony Burton for the report (no bug id) -- Willi Mann Sat, 21 Jan 2006 13:34:03 +0100 logwatch (7.1-2) unstable; urgency=low * Remove part of the cron patch, it was redundant. * Workaround to preserve language environment for fortunes closes: #340903, thanks to Benoit Dejean for the report. * Openvpn logs to daemon, the server uses ovpn-[^\s]* as name. (The simpler form ovpn-\S* does not work, 'cause logwatch lowercases all conf options.) closes: #341863, thanks to David Anselmi for the report. * logfiles/daemon.conf didn't contain the calls to the appropriate logfile scripts. closes: #343331, thanks to Arne Roolfs for the report. -- Willi Mann Sun, 4 Dec 2005 10:53:37 +0100 logwatch (7.1-1) unstable; urgency=low * New upstream release - new standards version 3.6.2 (no changes) - Closes: #317894, frequent typo "IngnoreUnmatched" in various scripts, Closes: #317913, fixes in pure-ftpd both fixes by Piotr Krukowiecki (thanks) - Closes: #323919, regexes for http exploits did not escape "." thanks to Taco IJsselmuiden for the report * Cope with the new directory layout. - There is a preinst script now, the removes unneeded config files. - README.Debian updated - NEWS.Debian added - debian/rules updated * This package is now maintained as project "pkg-logwatch" on alioth.debian.org. The svn repository is on svn.debian.org. * Depend on gawk, and explicity use it in zz-disk_space. Seems that there is some GNUism. -- Willi Mann Sat, 19 Nov 2005 16:39:24 +0100 logwatch (6.1.2-1) unstable; urgency=low * New upstream release * Provide a script that removes "dead" service configuration files. Located at /usr/share/doc/logwatch/examples/. closes: #310504 * Some updates to README.Debian. * Update the copyright file. -- Willi Mann Wed, 15 Jun 2005 16:06:55 +0200 logwatch (6.1.1-1) unstable; urgency=low * New upstream release - New format for specifying the format of http Logformat (it's possible that we lose debian apache1 support) * Ignore some cyrus lines (patch submitted by Tommy ) -- Willi Mann Thu, 9 Jun 2005 21:48:56 +0200 logwatch (6.1-1) unstable; urgency=low * New upstream release * Drop Recommends on libtie-ixhash-perl, libdate-calc-perl. services/exim no longer needs them. * Ignore two unknown entries in services/secure. (pam_authenticate, - pts). They are done in services/pam_unix. -- Willi Mann Wed, 8 Jun 2005 15:18:27 +0200 logwatch (6.0.2-1) experimental; urgency=low * New upstream release - Many patches were applied upstream * Remove the Makefile, do that job in debian/rules. -- Willi Mann Sat, 30 Apr 2005 16:02:53 +0200 logwatch (6.0.1-1) experimental; urgency=low * New upstream release (closes: #302423) - Dropped many patches that were applied upstream. - gawk is no longer needed for sendmail-largeboxes (changes in README.Debian and control) - some patch porting in sshd. * fixes from 5.2.2-5 and 5.2.2-6: - services/http: + Support .html.language-ext html files. (Bug: #303345, thanks to Klaus Ethgen for the report and the fix) + Add support for "/sqwebmail". - Accept more chars in usernames in services/sudo script (Bug: #302132, thanks to Richard Mortimer ) * Add perl header "#!/usr/bin/perl" at the top of every executeable perl script. The code is in the Makefile. Don't know why upstream removed it. -- Willi Mann Mon, 21 Mar 2005 20:39:45 +0100 logwatch (5.2.2-4) unstable; urgency=medium * Reformat README.Debian. * Add info to README.Debian how to get correct http output when using default apache1 configuration as LogFormat. Add the apache1 default LogFormat as alternative to conf/services/http.conf. (Closes: #293115, thanks to Vic Gedris ) * Make the smartd service (smartmontools) working. It's logging to daemon.log, not to messages. (Closes: #295234, thanks to Piotr Krukowiecki ) * Set LC_ALL=C in the main logwatch script. (closes: #296979, thanks to Gilmar Junior * Fix logfiles/http.conf. All events were logged twice. * Correct logfiles/{daemon,http,maillog,secure}.conf to always include the first rotated logfile. (So no need to use --archives for full accuracy for reports of range "yesterday"). Otherwise some events might get lost. Some other logfile configurations should also get corrected but I can't verify them because I don't have the services running. -- Willi Mann Wed, 16 Feb 2005 19:43:30 +0100 logwatch (5.2.2-3) unstable; urgency=medium * Include HOWTO-Make-Filter (closes: #287165) * Patches from Piotr Krukowiecki : - One line to postfix ("starting TLS engine") - One modification to samba ("*initially* as user") (closes: #289073) * Move binary building from binary-arch to binary-indep (finally) * s/_/./ in conf/logfiles/http.conf to make it work with apache1 * Syslogd now gets feeded by syslog logfile, not messages. * Added a kernel logfile group (kern.log), and the kernel script now uses this instead of messages. (thanks to Petr Stehlik for the last three suggested enhancements, closes: #287963) * Added short info how to modify a filter to README.Debian * Consider space in the postfix logs (closes: #289074, thanks to Alex Satrapa ) * Fix two lintian warnings concerning the synopsis part of the package description. (Remove the "A ") -- Willi Mann Sat, 25 Dec 2004 10:09:58 +0100 logwatch (5.2.2-2) unstable; urgency=high * Enhance description, fix some typos and spelling mistakes. * Fix zz-disk_space for very long device names: Use POSIX output to ensure that there's always one line per mount point and the grep works correctly. (closes: #278816, thanks to Kees van Vloten ) * Small fixes to the courier script. - Don't print newline if nothing else is printed. - add -ssl for pop3d and imap (closes: #278680, thanks to Wayne Davison ) * Change title of courier reports to "courier mail services". * Cleanups and fixes for the logfiles configuration files: - fix and remove Archive lines. - fix http.conf for debian - consistency fixes mostly reported by Simon Schoar , closes: #280164 * two minor enhancements/fixes to named reporting. (Unmatched Entries) * support "not in AllowUsers" log line in sshd. -- Willi Mann Sat, 23 Oct 2004 11:05:32 +0200 logwatch (5.2.2-1) unstable; urgency=low * New upstream release (Closes: #261275) * Completely remove su reporting from secure + other minor changes in secure. * Update copyright file. * Add support for kcheckpass to pam_unix (which I've seen for unlocking the screen saver) * Remove the unneccessary part "first accept valid lines" from pam_unix. * Other small changes to pam_unix. * Make clam-update working. * Big rewrite of the courier script (and courier.conf). It's now under GPL. * Recommend gawk, but don't print stupid error message if it doesn't exist (exit the script), and add info to README.Debian about that. (The affected service was sendmail-largeboxes) * Get rid of some unmatched entries in cron * Fix for parsing postfix 2.1.4. ("Client Host") (closes: #275051, thanks to Wayne Davison ) -- Willi Mann Fri, 3 Sep 2004 09:20:58 +0200 logwatch (5.1-6) unstable; urgency=medium Urgency medium because of wrong copyright file currently in sarge. * Correct copyright file. * Fix the service extraction in pam_unix for woody. * exim filter: - Fix some problems with the exim service script and the logfile config file. - include information in Readme.Debian about the required packages for the exim script. (closes: #260056, thanks to James Clendenan for the report.) * Fix reporting of samba in pam_unix. * Throw out some unneeded lines in debian/rules. -- Willi Mann Mon, 21 Jun 2004 22:50:52 +0200 logwatch (5.1-5) unstable; urgency=medium Urgency medium because non-working cron-reporting should go away from testing as fast as possible. * Fix cron-script /usr/bin -> /usr/sbin. (closes: #253859, thanks to Ian MacDonald). Forgot to list that change in previous changelog. * Fix (the first really upstream?) bug in logwatch: A small mistake in sshd-reporting. (thanks to Manabu Matsui, closes: #254968) * Don't report pam_unix in SSHD. * Fix a pam_unix -line for su. * Don't report pam_limits in secure. -- Willi Mann Sat, 12 Jun 2004 12:07:42 +0200 logwatch (5.1-4) unstable; urgency=low * Fix typo in Description, thanks to Gustavo Franco (closes: #247497) * Fix pam_unix reporting. It seems that pam has changed. Maybe I need script that warns me when the log-format of pam_unix-entries changes... thanks for reporting Klaus Ethgen. (closes: #247257) * Handle some previously unmatched lines in secure. Added temporary hack to have a nice output until I can fix #239626. * Add syslog.0 as logfile to syslog.conf because syslog is rotated daily, so I would never see cron-reporting if I use logwatch from command-line (helps development). + Move symlink to main script from /usr/bin -> /usr/sbin. Fixes a lintian warning. (This changelog entry was added after the package has been uploaded.) -- Willi Mann Wed, 5 May 2004 19:47:35 +0200 logwatch (5.1-3) unstable; urgency=low * I'm not from marketing: proper upstream homepage url: www... -> http://www... * Don't report PAM_unix lines in secure: support for woody. thanks to Michael Stovenour for the report (closes: #239626) * Added fortune-mod to Suggests. * Removed some lines which were already commented out. -- Willi Mann Mon, 15 Mar 2004 21:31:39 +0100 logwatch (5.1-2) unstable; urgency=low * Verify in the cron script that logwatch is really installed (not removed-but-not-purged) * Set standards-version to 3.6.1.0 instead of 3.6.1 to exactly match the current version. * Make reporting of syslogd - restarts working again * Force permissions of all *.confs to 0644 using find * logfile-group maillog now uses mail.log instead of mail.err, mail.info, mail.warn to avoid possible double-reporting * Avoid calling the target install of Makefile twice -- Willi Mann Wed, 11 Feb 2004 23:29:08 +0100 logwatch (5.1-1) unstable; urgency=low * New upstream release 5.1 * Make cron reporting working again. It's the only service that only logs to the syslog logfile. -- Willi Mann Wed, 4 Feb 2004 20:18:37 +0100 logwatch (5.0+5.1pre1-2) unstable; urgency=low * Force permissions of all scripts to 0755 -- Willi Mann Mon, 2 Feb 2004 11:36:38 +0100 logwatch (5.0+5.1pre1-1) unstable; urgency=low * Bump to pre5.1 * Revert some changes, that turned out not to be neccessary. * Changed description -- Willi Mann Sun, 1 Feb 2004 23:44:03 +0100 logwatch (5.0-2) unstable; urgency=low * Fix permission of /etc/logwatch/conf/services/pureftpd.conf by chmod in Makefile. * Make more services work (see state_of_debianizing). -- Willi Mann Wed, 14 Jan 2004 17:30:12 +0100 logwatch (5.0-1) unstable; urgency=low * Initial Release. * Reporting for many services should work, including cron, ssh, courier, exim. * Please report bugs. If a particular service has no output, I need the path to the logfile(s). That's most likely the problem. -- Willi Mann Wed, 12 Nov 2003 20:14:15 +0100 debian/dist.conf/0000775000000000000000000000000012152416322011055 5ustar debian/dist.conf/logfiles/0000775000000000000000000000000012152416322012661 5ustar debian/dist.conf/logfiles/secure.conf0000664000000000000000000000031612152416321015015 0ustar # Debian bug #612634: new rotation uses .1 as first uncompressed extension # should be added to default secure.conf # This could also be changing the Archive auth.log.*.gz > auth.log.* LogFile = auth.log.1 debian/dist.conf/logfiles/syslog.conf0000664000000000000000000000020712152416321015046 0ustar # Debian bug #612634: new rotation uses .1 as first uncompressed extension # should be added to default syslog.conf LogFile = syslog.1 debian/dist.conf/logfiles/cron.conf0000664000000000000000000000006312152416321014467 0ustar LogFile = cron.log Archive = Archive = cron.log.* debian/dist.conf/logfiles/daemon.conf0000664000000000000000000000021312152416321014766 0ustar # Debian bug #612634: new rotation uses .1 as first uncompressed extension # should be added to default daemon.conf LogFile = daemon.log.1 debian/dist.conf/logfiles/maillog.conf0000664000000000000000000000041512152416321015153 0ustar # Note that we have to override the default logwatch configuration, # because in Debian, syslog receives the same messages as mail.log, # so we would otherwise report each event twice LogFile = LogFile = mail.log LogFile = mail.log.1 Archive = Archive = mail.log.*.gz debian/dist.conf/logfiles/kernel.conf0000664000000000000000000000021112152416321015001 0ustar # Debian bug #612634: new rotation uses .1 as first uncompressed extension # should be added to default kernel.conf LogFile = kern.log.1 debian/dist.conf/logwatch.conf0000664000000000000000000000007712152416321013537 0ustar mailer = "/usr/sbin/sendmail -t" TmpDir = /tmp MailFrom = root debian/dist.conf/services/0000775000000000000000000000000012152416322012700 5ustar debian/dist.conf/services/pound.conf0000664000000000000000000000003412152416321014670 0ustar LogFile = LogFile = daemon debian/dist.conf/services/syslogd.conf0000664000000000000000000000013012152416321015224 0ustar Logfile = LogFile = syslog *OnlyService = syslogd *RemoveHeaders #TODO: fix onlyservice debian/dist.conf/services/cron.conf0000664000000000000000000000012712152416321014507 0ustar LogFile = syslog *OnlyService = (CRON|cron|CROND|\/USR\/SBIN\/CRON|\/usr\/sbin\/cron) debian/dist.conf/services/named.conf0000664000000000000000000000003312152416321014626 0ustar LogFile = LogFile = daemon debian/dist.conf/services/smartd.conf0000664000000000000000000000003412152416321015035 0ustar LogFile = LogFile = daemon debian/dist.conf/services/openvpn.conf0000664000000000000000000000011712152416321015232 0ustar LogFile = LogFile = daemon *MultiService = openvpn,ovpn-[^\s]* *RemoveHeaders debian/dist.conf/services/pam_unix.conf0000664000000000000000000000003312152416321015362 0ustar LogFile = LogFile = secure debian/dist.conf/services/kernel.conf0000664000000000000000000000003312152416321015022 0ustar LogFile = LogFile = kernel debian/source/0000775000000000000000000000000012152416322010466 5ustar debian/source/format0000664000000000000000000000001412152416321011673 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000212152416321010363 0ustar 8 debian/patches/0000775000000000000000000000000012757032236010626 5ustar debian/patches/series0000664000000000000000000000052412757032236012044 0ustar 0001-00-debspecific-disable-su-reporting-in-secure.diff.patch 0002-02-bug536472-treat-compressed-logfiles-always-as-arc.patch 0003-Bug-656806-Support-alternative-OoM-kernel-message-in.patch 0004-Bug-624271-Add-nginx-log-file-location-to-httpd.patch 0005-s-s-php-Accept-time-format-with-specification-of-tim.patch fix-match-samba-logs.patch debian/patches/0004-Bug-624271-Add-nginx-log-file-location-to-httpd.patch0000664000000000000000000000164312152361667022370 0ustar From: Willi Mann Date: Fri, 4 May 2012 21:48:46 +0200 Subject: Bug#624271: Add nginx log file location to httpd Closes: 624271 Thanks: Clint Byrum --- conf/logfiles/http.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/logfiles/http.conf b/conf/logfiles/http.conf index d9e34a6..3addee3 100644 --- a/conf/logfiles/http.conf +++ b/conf/logfiles/http.conf @@ -11,6 +11,8 @@ LogFile = apache2/*access.log LogFile = apache2/*access_log LogFile = apache-ssl/*access.log.1 LogFile = apache-ssl/*access.log +LogFile = nginx/*access.log +LogFile = nginx/*access.log.1 # If the archives are searched, here is one or more line @@ -28,6 +30,7 @@ Archive = apache/*access.log-*.gz Archive = apache2/*access.log-*.gz Archive = apache2/*access_log-*.gz Archive = apache-ssl/*access.log-*.gz +Archive = nginx/*access.log.*.gz # Expand the repeats (actually just removes them now) *ExpandRepeats debian/patches/0005-s-s-php-Accept-time-format-with-specification-of-tim.patch0000664000000000000000000000176612152361667024133 0ustar From: Willi Mann Date: Tue, 14 May 2013 19:57:36 +0200 Subject: s/s/php: Accept time format with specification of time zone The php logfiles may contain log entries with the time specified with a timezone. This patch reflects this in the script. Bug-Debian: http://bugs.debian.org/705600 --- scripts/services/php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/services/php b/scripts/services/php index adc0147..4715ee2 100644 --- a/scripts/services/php +++ b/scripts/services/php @@ -62,7 +62,9 @@ pop(@message_categories) if $detail < 5; while(<>) { my $line = $_; # skipping messages that are not within the requested range - next unless $line =~ /^\[($filter)\]/o; + # the last part of the regex matches optionally occurring specification + # of timezones, either in Continent/City or abbrevations like UTC + next unless $line =~ /^\[($filter)(?: \w+(?:\/\w+)?)?\]/o; $1 =~ /(\d+)-(\w+)-(\d+) (\d+):(\d+):(\d+)/; my $time; debian/patches/0002-02-bug536472-treat-compressed-logfiles-always-as-arc.patch0000664000000000000000000000203712152416321023430 0ustar From: Willi Mann Date: Sat, 13 Aug 2011 14:26:39 +0200 Subject: 02-bug536472-treat-compressed-logfiles-always-as-archive.diff --- scripts/logwatch.pl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/logwatch.pl b/scripts/logwatch.pl index ce843e3..d03bc3b 100755 --- a/scripts/logwatch.pl +++ b/scripts/logwatch.pl @@ -725,7 +725,16 @@ foreach $LogFile (@LogFileList) { } @FileList = $TempDir . $LogFile . "-archive"; - push @FileList, @{$LogFileData{$LogFile}{'logfiles'}}; + #quick and dirty fix for debian bug #536472: + #move logfiles ending with *.gz or *.bz2 to archive list, + #so they are unpacked before being processed + foreach my $lf (@{$LogFileData{$LogFile}{'logfiles'}}) { + if($lf =~ /\.gz$|\.bz2$/) { + push @{$LogFileData{$LogFile}{'archives'}}, $lf; + } else { + push @FileList, $lf; + } + } my $DestFile = $TempDir . $LogFile . "-archive"; my $Archive; foreach $Archive (@{$LogFileData{$LogFile}{'archives'}}) { debian/patches/0003-Bug-656806-Support-alternative-OoM-kernel-message-in.patch0000664000000000000000000000161112152361667023503 0ustar From: Willi Mann Date: Sun, 18 Mar 2012 22:01:18 +0100 Subject: Bug #656806: Support alternative OoM kernel message in kernel 2.6.32 This patch could be removed once support for squeeze ends. --- scripts/services/kernel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/services/kernel b/scripts/services/kernel index 86143d4..75ab579 100755 --- a/scripts/services/kernel +++ b/scripts/services/kernel @@ -97,7 +97,7 @@ while (defined(my $ThisLine = )) { $UnalignedErrors{$1}++; } elsif ($ThisLine =~ /([^(]*)\(\d+\): floating-point assist fault at ip/) { $FPAssists{$1}++; - } elsif ($ThisLine =~ /Out of memory: Killed process \d+ \((.*)\)/) { + } elsif ($ThisLine =~ /Out of memory: (?:Killed|kill) process \d+ \((.*)\)/) { $OOM{$1}++; } elsif ($ThisLine =~ /(EDAC (MC|PCI)\d:.*)/) { # Standard boot messages debian/patches/fix-match-samba-logs.patch0000664000000000000000000000206412757032236015554 0ustar Description: Fix match rules for samba log files Bug: https://sourceforge.net/p/logwatch/bugs/21/ Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/logwatch/+bug/1010602 Origin: upstream, https://sourceforge.net/p/logwatch/code/246/#diff-1 Last-Update: 2016-08-22 Index: logwatch-7.4.0+svn20130529rev144/conf/logfiles/samba.conf =================================================================== --- logwatch-7.4.0+svn20130529rev144.orig/conf/logfiles/samba.conf +++ logwatch-7.4.0+svn20130529rev144/conf/logfiles/samba.conf @@ -1,5 +1,5 @@ ########################################################################## -# $Id: samba.conf,v 1.12 2007/10/02 17:04:12 mike Exp $ +# $Id: samba.conf 246 2014-09-24 12:06:12Z stefjakobs $ ########################################################################## ######################################################## @@ -13,6 +13,7 @@ # What actual file? Defaults to LogPath if not absolute path.... LogFile = samba-log.* LogFile = samba/*.log +LogFile = samba/log.* #Negate hostlimit command NoHostFilter = Yes debian/patches/0001-00-debspecific-disable-su-reporting-in-secure.diff.patch0000664000000000000000000000246012152416321023526 0ustar From: Willi Mann Date: Sat, 13 Aug 2011 14:26:39 +0200 Subject: 00-debspecific-disable-su-reporting-in-secure.diff --- scripts/services/secure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/services/secure b/scripts/services/secure index 913dd24..156587d 100755 --- a/scripts/services/secure +++ b/scripts/services/secure @@ -470,11 +470,11 @@ while (defined($ThisLine = )) { } elsif ($ThisLine =~ /^pam_pwdfile\[\d+\]: password too short or NULL/) { $pwd_file_too_short++; } elsif ( ($User,$Su) = ($ThisLine =~ /^su: ([^ ]+) to ([^ ]+) on \/dev\/ttyp([0-9a-z]+)/) ) { - $Su_User{$User}{$Su}++; + #$Su_User{$User}{$Su}++; #disabled for debian: reported in pam_unix } elsif ( ($Su,$User) = ($ThisLine =~ /^su: \(to ([^ ]+)\) ([^ ]+) on (?:none|\/dev\/(pts\/|ttyp)([0-9]+))/) ) { - $Su_User{$User}{$Su}++; + #$Su_User{$User}{$Su}++; # -|- } elsif ( ($Su,$User) = ($ThisLine =~ /^su\[\d+\]: Successful su for (\S+) by (\S+)/) ) { - $Su_User{$User}{$Su}++; + #$Su_User{$User}{$Su}++; # -|- } elsif ($ThisLine =~ /^userhelper\[\d+\]: running '([^']+)' with ([^']+) privileges on behalf of '([^']+)'/) { $Executed_app{"$1,$2,$3"}++; } elsif ( ($User) = $ThisLine =~ /change user `([^']+)' password/) { debian/dirs0000664000000000000000000000001112152416321010041 0ustar usr/sbin debian/NEWS0000664000000000000000000000076612152416321007675 0ustar logwatch (7.1-1) unstable; urgency=low * This version will remove untouched configuration files in /etc/logwatch/conf. If you modified it, it will be renamed to $file.dpkg-bak. You should read /usr/share/doc/logwatch/HOWTO-Customize-LogWatch and only put the required modification back in $file. * This package is now maintained as alioth project "pkg-logwatch". It uses an svn repository on svn.debian.org. -- Willi Mann Sat, 19 Nov 2005 16:39:24 +0100 debian/copyright0000664000000000000000000001072512152416321011125 0ustar This package was debianized by Willi Mann on Wed, 12 Nov 2003 20:14:15 +0100. The last released version was downloaded from ftp://ftp.kaybee.org/pub/linux/logwatch-7.3.6.tar.gz Logwatch consists of many individual scripts. Many of them were written by Kirk Bauer , who is also one of the maintainers of logwatch and deserves the credit for initiating this project. copyright holders ----------------- Copyright © 2004, Sparta, Inc Copyright © 2005-2006 Mike Tremaine Copyright © 2008 Anders Blomdell Copyright © 2008 Andy Bolstridge Copyright © 2008 Benjamin Baudoux Copyright © 2008 Bob Hendry Copyright © 2008 Bob Hutchinson Copyright © 2008 Chris Smith Copyright © 2008 Colin Smith Copyright © 2008 Daniel Barrett Copyright © 2008 David Baldwin Copyright © 2008 Eric Moret Copyright © 2008 Gary Allen Vollink Copyright © 2008 Hugo van der Kooij Copyright © 2008 Jaco Botha Copyright © 2008 Jeff Frost Copyright © 2008 Jim Richardson Copyright © 2008 Kenneth Porter Copyright © 2008 Kirk Bauer Copyright © 2008 Lars Skjærlund Copyright © 2008 Laurent Dufour Copyright © 2008 Laurent DUFOUR Copyright © 2008 Michael Romeo Copyright © 2008 Mike Tremaine Copyright © 2008 Orion Poplawski Copyright © 2008 Osma Ahvenlampi Copyright © 2008 Patrick Vande Walle Copyright © 2008 Paweł Gołaszewski Copyright © 2008 Pawel Jarosz Copyright © 2008 Simon Liddington Copyright © 2008 S. Schimkat Copyright © 2008 Sven Conrad Copyright © 2008 Sy Beamont Copyright © 2008 William Roumier Copyright © 2008 Willi Mann Copyright © 2008 Win Bent Copyright © 2008 Yaroslav Halchenko Copyright © 2006,2007 Mike Cappella Licenses: --------- Except for a few scripts, logwatch is distributed under the permissive X11 license. The exceptions: scripts/services/dnssec: 3-clause BSD (Sparta) scripts/services/resolver: 3-clause BSD (Sparta) scripts/shared/applybinddate: 3-clause BSD (Sparta) Text of the licenses: --------------------- X11 license: -BEGIN LICENSE -- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --END LICENSE-- 3-clause BSD (Sparta): --BEGIN LICENSE-- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Sparta, Inc nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --END LICENSE-- debian/watch0000664000000000000000000000014512152416321010216 0ustar # Watch file by Clint Adams version=3 http://sf.net/logwatch/logwatch-(.+)\.tar\.gz debian uupdate debian/README.Debian0000664000000000000000000000651312152416321011233 0ustar Sections of this file: - Customizing the configuration - More specific ranges - access.log parsing - service http - Getting fortunes in your language - Howto modify a filter - Logwatch runs daily for range yesterday by default Customizing the configuration: ============================== Please read the documentation in /usr/share/doc/logwatch/HOWTO-Customize-LogWatch.gz. For modifying a filter also read the last section in this file. More specific ranges: ==================== Logwatch's range parameter supports a lot of range options if you apt-get install libdate-manip-perl (Date::Manip in Perl terms). Type logwatch --range Help for more information. access.log parsing - service http: ================================== Since 6.1.2, there is a new format for specifying the logfile format. I could only test it for apache2. If it doesn't work for your webserver, please submit a bugreport with some LogLines. Getting fortunes in your language ================================= If you want to see fortunes in your favourite language, you need to pass a valid LC_ALL setting to logwatch. If you don't use a valid (read: enabled by dpkg-reconfigure locales) value, logwatch (perl) will complain. To pass that setting in the automatic daily run, you need to modify /etc/cron.daily/00logwatch Howto modify a filter: ====================== Way #1: copy the filterscript from /usr/share/logwatch/scripts to /etc/logwatch/scripts, preserving the hierarchy. Then modfiy it. The disadvantage is that you will not be able to track upstream changes. Please read more in /usr/share/doc/logwatch/HOWTO-Customize-LogWatch Way #2: patch the source, rebuild. This might be the better option if you have many machines to maintain. A text that I've written for version 5.2.2 follows, explaining how to recompile: In Redhat, the distribution logwatch was written on, all logwatch files where put in /etc, so the problem didn't exist (This is no longer true since 7.0). In Debian, this is not allowed because nobody can seriously claim the filter scripts to be configuration files. This means that you have to: (This is meant to be short HOWTO, just in case you've never modified the source of a debian package before) - download the source $ apt-get source logwatch - cd to source dir $ cd logwatch-$version - save the file you want to edit $ cp $filetochange $filetochange.old - make the modifications $ $EDITOR $filetochange - save the diff somewhere, so you can simply patch the file if a new version comes out $ diff -u $filetochange.old $filetochange > $someplacetostorediff - I recommend to increment the version number $ dch -i you get an editor with debian/changelog. Modify the version number so it's only slightly larger than the current debian version (e.g. 5.2.2-2 => 5.2.2-2.0.0.1) - build the package, eg: $ dpkg-buildpackage -rfakeroot or $ debuild -install the package $ debi or $ dpkg -i ../logwatch_$version.deb Logwatch runs daily for range yesterday by default ================================================== This is for people who install packages without reading their description. Additional information (that's obviously not in the description): If you don't want that, simply delete /etc/cron.daily/00logwatch or modify it. New versions of this package will preserve this change, thanks to dpkg's configuration file handling. debian/logwatch.manpages0000664000000000000000000000010012152416321012501 0ustar logwatch.8 logwatch.conf.5 postfix-logwatch.1 amavis-logwatch.1 debian/logwatch.links0000664000000000000000000000007112152416321012035 0ustar usr/share/logwatch/scripts/logwatch.pl usr/sbin/logwatch debian/rules0000775000000000000000000000420612152416321010247 0ustar #!/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 export DESTDIR=$(CURDIR)/debian/logwatch SHELL=/bin/bash LOGDIR=$(DESTDIR)/etc/logwatch SHAREDIR=$(DESTDIR)/usr/share/logwatch LOGWATCHPL=$(SHAREDIR)/scripts/logwatch.pl %: dh $@ override_dh_install: # Add here commands to install the package into debian/logwatch. mkdir -p $(LOGDIR) mkdir -p $(LOGDIR)/conf mkdir -p $(LOGDIR)/conf/logfiles mkdir -p $(LOGDIR)/conf/services mkdir -p $(LOGDIR)/scripts mkdir -p $(LOGDIR)/scripts/services # Remove "update" files # find $(LOGDIR) -name "*.orig" -or -name "*.rej" -exec rm -f {} \; mkdir -p $(SHAREDIR) cp -a scripts/ $(SHAREDIR) cp -a lib/ $(SHAREDIR) mkdir -p $(SHAREDIR)/default.conf cp -a conf/* $(SHAREDIR)/default.conf mkdir -p $(SHAREDIR)/dist.conf cp -a debian/dist.conf/* $(SHAREDIR)/dist.conf # Move dist.conf files to default.conf in case they are missing there for i in `find $(SHAREDIR)/dist.conf/ -type f`; do \ if [ ! -f $(SHAREDIR)/default.conf/$${i##$(SHAREDIR)/dist.conf/} ]; then \ mv $$i $(SHAREDIR)/default.conf/$${i##$(SHAREDIR)/dist.conf/}; \ fi \ done # Fix permissions of scripts chmod -R 0755 $(SHAREDIR)/scripts mkdir -p $(DESTDIR)/usr/sbin #Ensure all configuration files have 0644 find $(SHAREDIR)/ -name "*.conf" -type f -exec chmod 0644 {} \; # Add #!/usr/bin/perl at the top of the scripts (mainly for debugging and avoiding lintian warnings) for i in `find $(SHAREDIR)/scripts -type f `; do head -n1 $$i | grep -q '^#!/usr/bin/perl$$' || sed -e '1i #!/usr/bin/perl' -e '/#!\/usr\/bin\/perl -T/d' --in-place $$i;done VERSION=$$(dpkg-parsechangelog -c1 -ldebian/changelog | grep "^Version" | grep svn); \ if [ ! -z "$$VERSION" ]; then \ VERSION=$$( echo $$VERSION | perl -pe 's|.*svn20(\d{2})(\d{2})(\d{2}).*|$$2/$$3/$$1|'); \ perl -pi -e "s|^(my .VDate = .)\d{2}/\d{2}/\d{2}(.;.*)|\$${1}$$VERSION\$$2|" $(LOGWATCHPL); \ fi # Remove empty directories find $(SHAREDIR) -depth -type d -empty -exec rmdir {} \; override_dh_installcron: dh_installcron --name=00logwatch