diff --git a/.cvsignore b/.cvsignore index e69de29..dad68a7 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +logwatch-2.1.1.tar.gz diff --git a/logwatch.spec b/logwatch.spec new file mode 100644 index 0000000..695e8db --- /dev/null +++ b/logwatch.spec @@ -0,0 +1,123 @@ +Summary: A log file analysis program. +Name: logwatch +Version: 2.1.1 +Release: 1 +Copyright: GPL +Group: Applications/System +URL: http://www.kaybee.org/~kirk/html/linux.html +Source: ftp://ftp.kaybee.org/pub/linux/logwatch-2.1.1.tar.gz +Requires: textutils,sh-utils,grep,perl +BuildRoot: %{_tmppath}/logwatch-build +BuildArchitectures: noarch + +%description +LogWatch is a customizable log analysis system. LogWatch parses +through your system's logs for a given period of time and creates a +report analyzing areas that you specify, in as much detail as you +require. LogWatch is easy to use and claims that it will work right +out of the package on almost all systems. Note that LogWatch now +analyzes Samba logs. + +%prep +%setup -q + +%build + +%install +rm -rf %{buildroot} +install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/conf/logfiles +install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/conf/services +install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/scripts/services +install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/scripts/shared +install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/scripts/logfiles/xferlog +install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/scripts/logfiles/cron +install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/scripts/logfiles/samba + +install -m 0755 scripts/logwatch.pl %{buildroot}%{_sysconfdir}/log.d/scripts/logwatch.pl +install -m 0755 scripts/logfiles/xferlog/* %{buildroot}%{_sysconfdir}/log.d/scripts/logfiles/xferlog +install -m 0755 scripts/logfiles/cron/* %{buildroot}%{_sysconfdir}/log.d/scripts/logfiles/cron +install -m 0755 scripts/logfiles/samba/* %{buildroot}%{_sysconfdir}/log.d/scripts/logfiles/samba +install -m 0755 scripts/services/* %{buildroot}%{_sysconfdir}/log.d/scripts/services +install -m 0755 scripts/shared/* %{buildroot}%{_sysconfdir}/log.d/scripts/shared + +install -m 0644 conf/logwatch.conf %{buildroot}%{_sysconfdir}/log.d/conf/logwatch.conf +install -m 0644 conf/logfiles/* %{buildroot}%{_sysconfdir}/log.d/conf/logfiles +install -m 0644 conf/services/* %{buildroot}%{_sysconfdir}/log.d/conf/services + +install -m 0755 -d %{buildroot}%{_mandir}/man8 +install -m 0644 logwatch.8 %{buildroot}%{_mandir}/man8 + +rm -f %{buildroot}%{_sysconfdir}/log.d/logwatch \ + %{buildroot}%{_sysconfdir}/log.d/logwatch.conf \ + %{buildroot}%{_sysconfdir}/cron.daily/00-logwatch \ + %{buildroot}%{_sbindir}/logwatch + +ln -s scripts/logwatch.pl %{buildroot}%{_sysconfdir}/log.d/logwatch +ln -s conf/logwatch.conf %{buildroot}%{_sysconfdir}/log.d/logwatch.conf +install -m 0755 -d %{buildroot}%{_sysconfdir}/cron.daily +ln -s ../log.d/scripts/logwatch.pl %{buildroot}%{_sysconfdir}/cron.daily/00-logwatch +install -m 0755 -d %{buildroot}%{_sbindir} +ln -s ../..%{_sysconfdir}/log.d/scripts/logwatch.pl %{buildroot}%{_sbindir}/logwatch + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%doc COPYING README HOWTO-Make-Filter +%dir %{_sysconfdir}/log.d +%dir %{_sysconfdir}/log.d/conf +%dir %{_sysconfdir}/log.d/scripts +%dir %{_sysconfdir}/log.d/conf/logfiles +%dir %{_sysconfdir}/log.d/conf/services +%dir %{_sysconfdir}/log.d/scripts/logfiles +%dir %{_sysconfdir}/log.d/scripts/services +%dir %{_sysconfdir}/log.d/scripts/shared +%dir %{_sysconfdir}/log.d/scripts/logfiles/xferlog +%dir %{_sysconfdir}/log.d/scripts/logfiles/cron +%dir %{_sysconfdir}/log.d/scripts/logfiles/samba +%config %{_sysconfdir}/log.d/conf/logwatch.conf +%config %{_sysconfdir}/log.d/conf/services/* +%config %{_sysconfdir}/log.d/conf/logfiles/* +%{_sysconfdir}/log.d/scripts/logwatch.pl +%{_sbindir}/logwatch +%{_sysconfdir}/log.d/scripts/shared/* +%{_sysconfdir}/log.d/scripts/services/* +%{_sysconfdir}/log.d/scripts/logfiles/xferlog/* +%{_sysconfdir}/log.d/scripts/logfiles/cron/* +%{_sysconfdir}/log.d/scripts/logfiles/samba/* +%{_sysconfdir}/log.d/logwatch +%{_sysconfdir}/log.d/logwatch.conf +%{_sysconfdir}/cron.daily/00-logwatch +%doc %{_mandir}/man8/logwatch.8.gz + +%changelog +* Mon May 21 2001 Tim Powers +- updated to 2.1.1 +- adapted changes from Kirk Bauer's spec file into this one + +* Sat Aug 5 2000 Tim Powers +- fix bug #15478, spelling error in the description + +* Mon Jul 24 2000 Prospector +- rebuilt + +* Mon Jul 10 2000 Tim Powers +- rebuilt + +* Thu Jun 8 2000 Tim Powers +- fixed man page location to be FHS compliant +- use predefined RPM macros whenever possible + +* Mon May 15 2000 Tim Powers +- rebuilt for 7.0 + +* Mon Jul 19 1999 Tim Powers +- rebuilt for 6.1 + +* Thu Apr 15 1999 Michael Maher +- built package for 6.0 +- updated source + +* Fri Oct 2 1998 Michael Maher +- built package diff --git a/sources b/sources index e69de29..d70512f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b8cba2619973b86c878b4bed4cc27ca3 logwatch-2.1.1.tar.gz