info:logwatch.spec devel+stable

Wojtek Slusarczyk wojtek w SHADOW.EU.ORG
Sob, 12 Wrz 1998, 20:02:17 CEST


Hej,
Dorobilem kolejnego "ogladacza" logow:

Summary: Analyzes system logs (for RHL5 & PLD)
Summary: Logwatch - analizator logów systemowych
Name: logwatch
Version: 1.1
Release: 2
Copyright: GPL
Group: Utilities/System
Source: ftp://ftp.kaybee.org/pub/linux/%{name}-%{version}.tar.gz
Requires: textutils,sh-utils,grep,perl
Buildroot: /var/tmp/%{name}-%{version}-%{release}-root
BuildArchitectures: noarch

%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 - aplikację przeznaczoną 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

%build

%install
install -d $RPM_BUILD_ROOT/etc/log.d/scripts/{services,shared,logfiles/{messages,xferlog}}
install -d $RPM_BUILD_ROOT/etc/log.d/conf/{services,logfiles}
install -d $RPM_BUILD_ROOT/usr/{sbin,man/man8}
install -d $RPM_BUILD_ROOT/etc/cron.daily

install scripts/logwatch.pl $RPM_BUILD_ROOT/etc/log.d/scripts/logwatch.pl
install scripts/logfiles/xferlog/* $RPM_BUILD_ROOT/etc/log.d/scripts/logfiles/xferlog
install scripts/services/* $RPM_BUILD_ROOT/etc/log.d/scripts/services
install scripts/shared/* $RPM_BUILD_ROOT/etc/log.d/scripts/shared

install conf/logwatch.conf $RPM_BUILD_ROOT/etc/log.d/conf/logwatch.conf
install conf/logfiles/* $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
install conf/services/* $RPM_BUILD_ROOT/etc/log.d/conf/services

install logwatch.8 $RPM_BUILD_ROOT/usr/man/man8

rm -f $RPM_BUILD_ROOT/etc/log.d/logwatch 
rm -f $RPM_BUILD_ROOT/etc/log.d/logwatch.conf 
rm -f $RPM_BUILD_ROOT/etc/cron.daily/00-logwatch 
rm -f $RPM_BUILD_ROOT/usr/sbin/logwatch

ln -sf /etc/log.d/scripts/logwatch.pl $RPM_BUILD_ROOT/etc/log.d/logwatch 
ln -sf /etc/log.d/conf/logwatch.conf $RPM_BUILD_ROOT/etc/log.d/logwatch.conf 
ln -sf /etc/log.d/scripts/logwatch.pl $RPM_BUILD_ROOT/etc/cron.daily/00-logwatch 
ln -sf /etc/log.d/scripts/logwatch.pl $RPM_BUILD_ROOT/usr/sbin/logwatch 

%clean
rm -rf $RPM_BUILD_ROOT

%post
echo
echo "You should take a look at /etc/log.d/logwatch.conf..."
echo "Especially the Detail entry..."
echo

%files
%defattr(0644, root, root, 755)
%doc COPYING README
%attr(0700, root, root) %dir /etc/log.d
%attr(0700, root, root) %dir /etc/log.d/conf
%attr(0700, root, root) %dir /etc/log.d/scripts
%attr(0700, root, root) %dir /etc/log.d/conf/logfiles
%attr(0700, root, root) %dir /etc/log.d/conf/services
%attr(0700, root, root) %dir /etc/log.d/scripts/logfiles
%attr(0700, root, root) %dir /etc/log.d/scripts/services
%attr(0700, root, root) %dir /etc/log.d/scripts/shared
%attr(0700, root, root) %dir /etc/log.d/scripts/logfiles/messages
%attr(0700, root, root) %dir /etc/log.d/scripts/logfiles/xferlog
%attr(0600, root, root) %config(noreplace) %verify(not size mtime md5) /etc/log.d/conf/logwatch.conf
%attr(0600, root, root) %config /etc/log.d/conf/services/*
%attr(0600, root, root) %config /etc/log.d/conf/logfiles/*
%attr(0700, root, root) /etc/log.d/scripts/logwatch.pl
%attr(0700, root, root) /usr/sbin/logwatch
%attr(0700, root, root) %config /etc/log.d/scripts/shared/*
%attr(0700, root, root) %config /etc/log.d/scripts/services/*
%attr(0700, root, root) %config /etc/log.d/scripts/logfiles/xferlog/*
%attr(0700, root, root) /etc/log.d/logwatch
%attr(0600, root, root) %config(noreplace) %verify(not size mtime md5) /etc/log.d/logwatch.conf
%attr(0700, root, root) /etc/cron.daily/00-logwatch
%attr(0644, root, man) /usr/man/man8/logwatch.8

%changelog
* Sat Sep 12 1998 Wojtek Ślusarczyk <wojtek w 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.

* Sun Feb 23 1998 Kirk Bauer <kirk w kaybee.org>

- Minor changes and addition of man-page

* Sun Feb 22 1998 Kirk Bauer <kirk w kaybee.org>

- initial release


Wojciech Slusarczyk (091)4494148
Technical University of Szczecin
PGP KeyServer pgpkeys.mit.edu



Więcej informacji o liście dyskusyjnej pld-devel-pl