[Logwatch-Devel] Logwatch 5.2.1 is now available

Paweł Gołaszewski blues at ds.pg.gda.pl
Wed Jun 23 13:37:50 MST 2004


On Wed, 23 Jun 2004, Kirk Bauer wrote:
> > > > What about rest of the patches? I can still apply them. Did you 
> > > > rejected them? Forgot?
> > > I applied the two patches you sent me -- I thought I had got all of 
> > > them.  If I have missed anything, let me know and I'll do another 
> > > release.
> > I've sent links to that patches:
> I don't know how I missed all of those... but I just released 5.2.2 with 
> all of your patches.

Great !!

It was really long time ago I had so few patches in my spec ;)

> Regarding your move of the scripts to /usr/share I like the idea.

:)

> But I don't know what problems I'll cause if I made that the new default 
> location in the RPM. Any suggestions from the list?

rpm has something like %trigger.
Example from PLD Linux:
<cite>
%triggerpostun -- vixie-cron <= 3.0.1-73
if [ -f /etc/cron.d/cron.allow.rpmsave ]; then
        mv -f /etc/cron.d/cron.allow.rpmsave /etc/cron/cron.allow
fi
if [ -f /etc/cron.d/cron.allow ]; then
        mv -f /etc/cron.d/cron.allow /etc/cron/cron.allow
fi
if [ -f /etc/cron.d/cron.deny.rpmsave ]; then
        mv -f /etc/cron.d/cron.deny.rpmsave /etc/cron/cron.deny
fi
if [ -f /etc/cron.d/cron.deny ]; then
        mv -f /etc/cron.d/cron.deny /etc/cron/cron.deny
fi

%triggerpostun -- vixie-cron <= 3.0.1-70
if [ -f /etc/cron.allow ]; then
        mv -f /etc/cron.allow /etc/cron/cron.allow
fi
if [ -f /etc/cron.deny ]; then
        mv -f /etc/cron.deny /etc/cron/cron.deny
fi
</cite>

This makes automagically upgrade when changing some things.

In PLD I've moved configs into /etc/log.d/ :
%pre
# needed for smooth upgrade from < 4.3.2 package
if [ -d /etc/log.d/conf ]; then
        mv -f /etc/log.d/conf/logwatch.conf* /etc/log.d/
        mv -f /etc/log.d/conf/services /etc/log.d/
        mv -f /etc/log.d/conf/logfiles /etc/log.d/
fi

It should be trigger but it would be much more complicated.

I'm including current spec from PLD-Linux.

-- 
pozdr.  Pawe³ Go³aszewski 
---------------------------------
My jsme borgové. Odpor je marný, budete asimilováni...
-------------- next part --------------
# $Revision: 1.107 $, $Date: 2004/06/23 18:37:01 $
%include	/usr/lib/rpm/macros.perl
Summary:	Analyzes system logs
Summary(pl):	Logwatch - analizator log?w systemowych
Name:		logwatch
Version:	5.2.2
Release:	0.9
License:	MIT
Group:		Applications/System
#Path for pre-versions:
#Source0:	ftp://ftp.kaybee.org/pub/beta/linux/%{name}-pre%{version}.tar.gz
Source0:	ftp://ftp.logwatch.org/pub/linux/%{name}-%{version}.tar.gz
# Source0-md5:	d3b676fd15e51a00027ee13b4a5ce486
Patch0:		%{name}-config.patch
Patch1:		%{name}-log_conf.patch
Patch7:		%{name}-main.patch
URL:		http://www.logwatch.org/
BuildRequires:	rpm-perlprov
Requires:	crondaemon
Requires:	gawk
Requires:	perl-modules
Requires:	smtpdaemon
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define		_logwatchdir	%{_datadir}/logwatch
%define		_logwatchconf	%{_sysconfdir}/log.d

%description
LogWatch is a customizable, pluggable log-monitoring system. It will
go through your logs for a given period of time and make a report in
the areas that you wish with the detail that you wish. Easy to use -
works right out of the package on almost all systems.

%description -l pl
Pakiet zawiera logwatch - program przeznaczony do automatycznego
analizowania log?w systemowych i przesy?aniu ich po wst?pnjej obr?bce
poczt? elektroniczn? do administratora systemu. Logwatch jest ?atwy w
u?yciu i moze pracowa? na wi?kszo?ci system?w.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
#patch7 -p0

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_logwatchconf},/etc/cron.daily} \
	$RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8,%{_logwatchdir}/lib}

install conf/logwatch.conf $RPM_BUILD_ROOT%{_logwatchconf}
# Where to put it The Right Way(TM)?
install lib/Logwatch.pm $RPM_BUILD_ROOT%{_logwatchdir}/lib

cp -a conf/services $RPM_BUILD_ROOT%{_logwatchconf}
cp -a conf/logfiles $RPM_BUILD_ROOT%{_logwatchconf}
cp -a scripts $RPM_BUILD_ROOT%{_logwatchdir}

mv $RPM_BUILD_ROOT%{_logwatchdir}/scripts/logwatch.pl $RPM_BUILD_ROOT%{_sbindir}/logwatch

ln -sf %{_sbindir}/logwatch $RPM_BUILD_ROOT%{_logwatchdir}/scripts/logwatch.pl
ln -sf %{_sbindir}/logwatch $RPM_BUILD_ROOT%{_logwatchconf}/logwatch
ln -sf %{_sbindir}/logwatch $RPM_BUILD_ROOT/etc/cron.daily/00-logwatch

install logwatch.8 $RPM_BUILD_ROOT%{_mandir}/man8

%clean
rm -rf $RPM_BUILD_ROOT

%pre
# needed for smooth upgrade from < 4.3.2 package
if [ -d /etc/log.d/conf ]; then
	mv -f /etc/log.d/conf/logwatch.conf* /etc/log.d/
	mv -f /etc/log.d/conf/services /etc/log.d/
	mv -f /etc/log.d/conf/logfiles /etc/log.d/
fi

%files
%defattr(644,root,root,755)
%doc README HOWTO-Make-Filter project/{CHANGES,TODO}
%attr(700,root,root) %dir %{_logwatchconf}
%attr(700,root,root) %dir %{_logwatchdir}
%attr(700,root,root) %dir %{_logwatchdir}/scripts

%attr(700,root,root) %dir %{_logwatchconf}/logfiles
%attr(700,root,root) %dir %{_logwatchconf}/services

%attr(700,root,root) %dir %{_logwatchdir}/scripts/services
%attr(700,root,root) %dir %{_logwatchdir}/scripts/shared
%attr(700,root,root) %dir %{_logwatchdir}/scripts/logfiles
%attr(700,root,root) %dir %{_logwatchdir}/scripts/logfiles/autorpm
%attr(700,root,root) %dir %{_logwatchdir}/scripts/logfiles/cron
%attr(700,root,root) %dir %{_logwatchdir}/scripts/logfiles/samba
%attr(700,root,root) %dir %{_logwatchdir}/scripts/logfiles/up2date
%attr(700,root,root) %dir %{_logwatchdir}/scripts/logfiles/xferlog
%attr(700,root,root) %dir %{_logwatchdir}/lib

%attr(700,root,root) %{_logwatchdir}/scripts/shared/*
%attr(700,root,root) %{_logwatchdir}/scripts/services/*
%attr(700,root,root) %{_logwatchdir}/scripts/logfiles/*/*
%attr(700,root,root) %{_logwatchdir}/scripts/logwatch.pl

%attr(600,root,root) %{_logwatchdir}/lib/*.pm

%attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_logwatchconf}/logwatch.conf
%attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_logwatchconf}/services/*.conf
%attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_logwatchconf}/logfiles/*.conf

%attr(700,root,root) %{_sbindir}/logwatch
%attr(700,root,root) /etc/cron.daily/00-logwatch
%{_mandir}/man8/*

%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log: logwatch.spec,v $
Revision 1.107  2004/06/23 18:37:01  blues
- 5.2.2, removed almoust all of the patches (included)

Revision 1.106  2004/06/22 14:59:58  blues
- started upgrade to 5.2.1

Revision 1.105  2004/06/22 09:34:58  blues
- added BR: gawk (suxx), http, sendmail-largeboxes and main patches

Revision 1.104  2004/06/21 22:17:01  blues
- release 0.9, not tested, updated all of the patches.

Revision 1.103  2004/06/21 16:30:31  blues
- started upgrade to 5.2

Revision 1.102  2004/06/09 11:59:35  blues
- release 11

Revision 1.101  2004/06/09 11:40:57  blues
- release 10

Revision 1.100  2004/05/20 07:28:39  blues
- well... this post was not needed.

Revision 1.99  2004/05/20 07:27:05  blues
- release 9 - added clam-update patch, updated many others patches; STBR
  to AC (maybe to RA too?)

Revision 1.98  2004/04/28 12:01:38  blues
- release 8 - added clam-update.conf patch - use PLD locations of logs
  STBR to AC... for it would be nice too... this is half-security update

Revision 1.97  2004/04/13 08:05:14  blues
- release 7 - added sendmail patch

Revision 1.96  2004/04/01 11:04:52  blues
- release 6

Revision 1.95  2004/03/31 13:36:26  blues
- added amavis patch

Revision 1.94  2004/03/19 09:06:47  blues
- release 5

Revision 1.93  2004/03/19 08:25:16  blues
- pam_unix patch added

Revision 1.92  2004/03/16 06:43:22  blues
- crontab patch alive again

Revision 1.91  2004/03/13 21:01:58  blues
- release 4 - initial imap support

Revision 1.90  2004/03/09 07:51:18  blues
- release 3 - added pop3 support, removed it from courier filter, some ssh
  fixes

Revision 1.89  2004/02/16 07:32:53  blues
- release 2 - added patches: oidentd, http and postfix

Revision 1.88  2004/02/03 22:05:29  blues
- full final release 1. removed included patches

Revision 1.87  2004/02/03 09:21:12  blues
- release 18 - this is new beta release. Removed outdated patches and
  sources, updated rest of them.

Revision 1.86  2004/02/02 07:53:09  blues
- release 17 - many updated patches

Revision 1.85  2004/01/23 20:49:14  blues
- release 16 - support for oidentd, some updated patches

Revision 1.84  2004/01/18 17:43:49  blues
- release 15 - updated sendmail, postfix and proftpd patches

Revision 1.83  2004/01/14 08:38:00  blues
- release 14 - proftpd-messages patch added, many other updated

Revision 1.82  2004/01/05 11:37:50  blues
- release 13 - courier patch added (well, not quite good, but lets see what
  author will say...), updated many other patches

Revision 1.81  2003/12/26 00:20:33  blues
- release 12 - clam-update soource was some time ago included (-> removing)
  New patches: cron and named, updated few older

Revision 1.80  2003/12/25 20:25:11  blues
- release 11 - more macros in spec, added shaperd support off-line made
  (please, test it before I'll send it to author - only on Christmast I'm
  having anything to do with shaperd and small links... it suxx). STBR for
  AC?

Revision 1.79  2003/12/23 23:48:22  blues
- release 11 - pureftpd patch added (not tested, arekm wanted it...)

Revision 1.78  2003/12/23 22:24:19  blues
- release 10 - added http, pam_unix and modprobe patches (many new entries
  defined and some bugfixes)

Revision 1.77  2003/12/17 08:41:04  blues
- release 10 - postfix patch added with some bugfixes and new features

Revision 1.76  2003/12/17 07:22:22  blues
- release 8 - added patches: sshd, sendmail, secure, samba with lots of new
  logs classified.

Revision 1.75  2003/12/15 22:51:12  blues
- release 7 - this is next official beta (applied all of patches + few
  more extensions)

Revision 1.74  2003/12/10 08:05:24  blues
- release 6 - pam_unix patch added, postfix, http and samba patches updated

Revision 1.73  2003/12/09 10:59:37  blues
- release 5 - added http filter update (more file types, more stats)

Revision 1.72  2003/12/08 00:02:47  blues
- release 4 - config2 replaced with config3 patch (unified), updated
  patches: postfix, samba and modprobe. Added proftpd-messages.

Revision 1.71  2003/12/07 22:00:47  eothane
- wrong switch for patch3 (postfix) [was -p1, should be -p0]

Revision 1.70  2003/12/02 09:54:11  blues
- release 3 - clam-update log analisis by Lars Skj?rlund <lars at spinn.dk>
- user_login - count users logins; samba - disabled accounts reporting;
  postfix-sort replaced by enchanced postfix patch; config2 patch - some
  PLD-scecific entries.

Revision 1.69  2003/12/01 07:55:34  blues
- typo

Revision 1.68  2003/12/01 07:53:42  blues
- release 2 - dhcp_start-stop patch added (1 space more in message),
  postfix-sort patch added (sort printed message)

Revision 1.67  2003/11/26 16:46:11  blues
- pre5.1 - removed applied patches

Revision 1.66  2003/11/26 06:49:14  blues
- release 8 - dhcpd patch by Anssi Kolehmainen <kolean-5.listat at pp.inet.fi>

Revision 1.65  2003/11/25 10:22:16  blues
- release 7 - postfix_samba patch replaced by misc patch (ssh, sendmail,
  secure entries)

Revision 1.64  2003/11/24 15:52:47  blues
- release 6 - postfix4 patch replaced by postfix_samba patch (entries about
  samba)

Revision 1.63  2003/11/24 08:30:59  blues
- release 5 - postfix3 patch outdated, postfix4 patch added

Revision 1.62  2003/11/22 23:37:12  blues
- release 4 - postfix3 patch added - less unmatched entries

Revision 1.61  2003/11/18 09:08:58  blues
- postfix2 patch - ignore some unmatched entries

Revision 1.60  2003/11/18 08:38:31  blues
- release 3 - added xscreensaver patch

Revision 1.59  2003/11/17 09:42:14  blues
- release 2 - postfix and pam_unix patch added (less unmatched entries)

Revision 1.58  2003/11/11 01:42:28  ankry
- caps unification, other cosmetics

Revision 1.57  2003/11/10 19:22:36  blues
- final 5.0

Revision 1.56  2003/11/07 09:53:09  blues
- release 3 - added log_conf patch for standard PLD configuration

Revision 1.55  2003/11/07 09:34:56  blues
- release 2 - removed applied cosmetic patch and sed patching. It suxx -
  other version under the same tar-name... :(

Revision 1.54  2003/11/05 09:39:32  blues
- 5.0pre - removed all patches (applied), added config and cosmetic (change
  configuration and allow to live config patch across the versions).
  This is devel version - use with care (author woke up from loooong sleep)

Revision 1.53  2003/09/10 14:44:38  mick3y
- requires crondaemon (domelu)

Revision 1.52  2003/08/20 15:33:34  qboosh
- no // in paths, other cosmetics

Revision 1.51  2003/08/18 08:08:18  gotar
- mass commit: cosmetics (removed trailing white spaces)

Revision 1.50  2003/07/01 08:11:07  blues
- release 6 - added sendmail_detail patch, modprobe patch is back

Revision 1.49  2003/05/28 18:58:23  erjot
- req smtpdaemon

Revision 1.48  2003/05/28 12:59:37  malekith
- massive attack: source-md5

Revision 1.47  2003/05/25 05:50:16  misi3k
- massive attack s/pld.org.pl/pld-linux.org/

Revision 1.46  2003/05/10 22:15:17  radek
- removed R: perl (implied by R: perl-modules)

Revision 1.45  2003/04/13 08:42:03  blues
- updated pam_unix2 patch (expiry entries) and temporary removed modprobe
  patch.

Revision 1.44  2003/04/03 13:05:02  blues
- fixed pre script - rpmsave and rpmnew will be moved too and conf
  directory will be removed now

Revision 1.43  2003/04/02 20:25:39  blues
- release 5; modprobe and pam_unix2 patches added; STBR to ra updates

Revision 1.42  2003/03/28 10:52:15  blues
- sendmail_warning patch added

Revision 1.41  2003/03/27 09:27:40  blues
- release 4 - added nice patch with sendmail statistics and amavis support

Revision 1.40  2003/03/25 08:39:09  blues
- release 3; added init patch; STBR to Ra updates general

Revision 1.39  2003/03/22 15:58:02  blues
- release 2 - removed all the links sorcery (not needed), dirs patch added
  STBR ASAP and remove broken logwatch from updates KJM!!!!

Revision 1.38  2003/03/21 13:52:20  blues
- release 1 - pre that allows smooth upgrade from previous versions

Revision 1.37  2003/03/21 09:55:26  blues
- 0.12

Revision 1.36  2003/03/21 09:21:50  blues
- sendmail patch renamed to more_features patch (with more features :) )

Revision 1.35  2003/03/20 08:23:27  blues
- added sendmail.patch (fixed some Unmatched Entries)

Revision 1.34  2003/03/02 03:47:46  blues
- 4.3.2 - works fine, but some magic-trigger is needed for smooth upgrade

Revision 1.33  2002/12/13 22:46:55  ankry
- adapterized

Revision 1.32  2002/12/03 21:34:25  ankry
- cleaning

Revision 1.31  2002/11/29 13:17:56  roman
- added perl-modules to Requires:
- changed release from 2 to 3

Revision 1.30  2002/11/20 12:56:08  blues
- release 2 - moved perl scripts to better place - perl deps are complete
  now; more docs - STBR

Revision 1.29  2002/10/31 14:31:16  blues
- use perl deps finding

Revision 1.28  2002/10/30 07:49:52  blues
- 4.2.1 - STBR

Revision 1.27  2002/06/30 18:14:34  blues
- 3.3 (more filters, few fixes)
STBR

Revision 1.26  2002/06/18 10:00:43  blues
- 3.2 (many bugfixes, few new features)
STBR

Revision 1.25  2002/05/23 14:13:12  pioklo
- up to 3.1, new %%doc

Revision 1.24  2002/05/05 13:36:06  kloczek
- License changed to MIT.

Revision 1.23  2002/05/05 12:59:40  blues
- 3.0 (new filters, some updated)

Revision 1.22  2002/04/28 12:34:12  blues
- 2.9 (more rules added)
- URL added
- mktemp patch commented out - it's empty...
STBR

Revision 1.21  2002/04/19 12:09:58  pioklo

- up to 2.8.5, STBR

Revision 1.20  2002/04/10 11:05:23  lukasz
- 2.8

Revision 1.19  2002/04/05 14:55:45  pioklo
-up to 2.7,STBR

Revision 1.18  2002/04/04 07:59:56  kloczek
- merge mktemp rawhide patch.

Revision 1.17  2002/04/04 07:47:07  qboosh
- SECURITY update to 2.6 (one more exploitable tmp race)
- fixed group

Revision 1.16  2002/03/28 10:24:22  lukasz
- Released 0.1->1

Revision 1.15  2002/03/28 10:15:39  lukasz
- 2.5 (This release fixes a root exploit using a race condition in /tmp)

Revision 1.14  2002/02/22 23:29:13  kloczek
- removed all Group fields translations (oure rpm now can handle translating
  Group field using gettext).

Revision 1.13  2002/01/18 02:13:45  kloczek
perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"

Revision 1.12  2001/09/23 13:08:45  orzech
- group{pl,de} in logwatch.spec
- s/Copyright/License/ - both

Revision 1.11  2000/10/04 01:23:52  kloczek
- use rpm new automation suit.

Revision 1.10  2000/10/03 11:20:43  wiget
2.1.1

Revision 1.9  2000/04/01 11:14:53  zagrodzki
- changed all BuildRoot definitons
- removed all applnkdir defs
- changed some prereqs/requires
- removed duplicate empty lines

Revision 1.8  2000/03/28 16:54:41  baggins
- translated kloczkish into english

Revision 1.7  1999/07/13 22:34:43  kloczek
- scripts/shared/{onlycontains,remove} are also POSIX sh scripts.

Revision 1.6  1999/07/13 22:24:44  kloczek
- scripts/services/zz-fortune is clean POSIX sh csript (no bash).

Revision 1.5  1999/07/13 22:17:45  kloczek
- %%clean before %%files.

Revision 1.4  1999/07/13 22:09:56  wiget
updated to 1.6.6

Revision 1.3  1999/07/12 23:06:06  kloczek
- added using CVS keywords in %changelog (for automating them).

* Sat Sep 12 1998 Wojtek ?lusarczyk <wojtek at shadow.eu.org>
[1.1-2]
- build against PLD,
- added buildroot suport,
- translation modified for pl,
- fixed files permissions,
- build from non root's account,
- made a noarch package,
- minor changes of spec file.


More information about the Logwatch-Devel mailing list