Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > main-src > by-pkgid > 6b2b82c4c348d453c36365760e35b3b7 > files > 3

swatch-3.0.2-3mdk.src.rpm

%define name	swatch
%define version	3.0.2
%define release 3mdk

Summary:	A utility for monitoring system logs files.
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Monitoring
Source:		ftp://ftp.stanford.edu/general/security-tools/swatch/%{name}-%{version}.tar.bz2
Source1:	swatchrc.bz2
Source2:	README-mandrake.bz2
BuildRequires:	perl-devel, perl-File-Tail, perl-Date-Calc, perl-Time-HiRes, perl-TimeDate
Requires:	perl, perl-File-Tail, perl-Date-Calc, perl-Time-HiRes, perl-TimeDate
BuildArchitectures: noarch
BuildRoot:	%{_tmppath}/%{name}-%{version}-root

%description
The Swatch utility monitors system log files, filters out unwanted data
and takes specified actions (i.e., sending email, executing a script,
etc.) based upon what it finds in the log files.

Install the swatch package if you need a program that will monitor log
files and alert you in certain situations.

%prep
%setup -q
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
make
make test

%install
eval `perl '-V:installarchlib'`
mkdir -p $RPM_BUILD_ROOT/$installarchlib
perl -pi -e "s|^(INSTALLMAN1DIR\s=\s/usr/share/man/man1)|INSTALLMAN1DIR = \\$\(PREFIX\)/share/man/man1|" $RPM_BUILD_DIR/%{name}-%{version}/Makefile
make PREFIX=$RPM_BUILD_ROOT/usr install

mkdir -p %{buildroot}%{_sysconfdir}
bzcat %{SOURCE1} >> %{buildroot}%{_sysconfdir}/swatchrc

bzcat %{SOURCE2} >> $RPM_BUILD_DIR/%{name}-%{version}/README-Mandrake

%clean
rm -rf $RPM_BUILD_ROOT

%files 
%defattr(-,root,root)
%doc CHANGES COPYING INSTALL COPYRIGHT KNOWN_BUGS README* examples tools
%{_bindir}/swatch
%{_bindir}/swatch_oldrc2newrc
%{_mandir}/man1/*
%attr(0700,root,root) %config(noreplace) %{_sysconfdir}/swatchrc

%changelog
* Wed Jul 11 2001 Stefan van der Eijk <stefan@eijk.nu> 3.0.2-3mdk
- BuildRequires:	perl-devel

* Wed May 23 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 3.0.2-2mdk
- s/Copyright/License/;

* Fri Feb 23 2001 Gregory Letoquart <gletoquart@mandrakesoft.com> 3.0.2-1mdk
- Up to version 3.0.2

* Fri Feb 23 2001 Vincent Danen <vdanen@mandrakesoft.com> 3.0.1-2mdk
- include manpages
- include default config file
- new README-Mandrake in docs details some ways to customize and run swatch
  under Linux-Mandrake

* Mon Aug  7 2000 Frederic Crozat <fcrozat@mandrakesoft.com> 3.0.1-1mdk
- Release 3.0.1 (merge from Redhat)

* Fri Jul 28 2000 Frederic Crozat <fcrozat@mandrakesoft.com> 2.2-11mdk
- BM + macroszification (update patch file for man dir)
- rename specfile to remove version of filename

* Sat Mar 25 2000 Daouda Lo <daouda@mandrakesoft.com> 2.2-10mdk
- relocate to new mandrake group structure 

* Fri Nov 5 1999 Damien Krotkine <damien@mandrakesoft.com>
- Mandrakes release

* Wed May 05 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- Mandrake adaptions

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
- auto rebuild in the new build environment (release 7)

* Tue Mar 16 1999 Preston Brown <pbrown@redhat.com>
- patched to use /var/log/messages as default, not /var/log/syslog (duh)

* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
- Injected new description and group.

* Fri Dec 18 1998 Preston Brown <pbrown@redhat.com>
- bumped spec number for initial rh 6.0 build

* Sun Aug 16 1998 Jeff Johnson <jbj@redhat.com>
- build root

* Wed Apr 29 1998 Cristian Gafton <gafton@redhat.com>
- fixed paths

* Thu Oct 23 1997 Cristian Gafton <gafton@redhat.com>
- updated to 2.2

* Fri Aug 22 1997 Erik Troan <ewt@redhat.com>
- made a noarch package