[logcheck/f13/master] initial import
Matthias Runge
mrunge at fedoraproject.org
Fri Sep 10 19:51:57 UTC 2010
commit bbeaa03745edb36e9b86402890d5b8cd2a947919
Author: Matthias Runge <mrunge at matthias-runge.de>
Date: Fri Sep 10 21:51:45 2010 +0200
initial import
.gitignore | 1 +
logcheck.spec | 130 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 132 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3acb0dd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/logcheck_1.3.13.tar.gz
diff --git a/logcheck.spec b/logcheck.spec
new file mode 100644
index 0000000..0b6dad7
--- /dev/null
+++ b/logcheck.spec
@@ -0,0 +1,130 @@
+Name: logcheck
+Version: 1.3.13
+Release: 1%{?dist}
+Summary: Analyzes log files and sends noticeable events as email
+
+License: GPLv2
+Group: Applications/System
+URL: http://logcheck.org/
+Source0: http://ftp.de.debian.org/debian/pool/main/l/%{name}/%{name}_%{version}.tar.gz
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Requires: lockfile-progs perl-mime-construct
+Requires(pre): shadow-utils
+BuildRequires: docbook-utils
+
+%description
+Logcheck is a simple utility which is designed to allow a system administrator
+to view the log-files which are produced upon hosts under their control.
+
+It does this by mailing summaries of the log-files to them, after first
+filtering out "normal" entries.
+
+Normal entries are entries which match one of the many included regular
+expression files contain in the database.
+
+%prep
+%setup -q -n %{name}
+# use fedora-style logfiles. (/var/log/syslog is /var/log/messages,
+# auth.log is named secure)
+sed -i "s/syslog/messages/" etc/logcheck.logfiles
+sed -i "s/auth\.log/secure/" etc/logcheck.logfiles
+
+# use fedora run-parts (misses --list-option)
+sed -i "s/for rulefile in \$(run-parts --list "\$dir"); do/for rulefile in \$(run-parts "\$dir"); do/" src/logcheck
+
+
+%build
+
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+rm -f %{buildroot}/%{_sysconfdir}/%{name}/violations.d/logcheck
+
+%{__mkdir} -pm 755 %{buildroot}%{_mandir}/man8
+%{__install} -pm 644 docs/logtail.8 %{buildroot}%{_mandir}/man8/
+%{__install} -pm 644 docs/logtail2.8 %{buildroot}%{_mandir}/man8/
+# create man-page from sgml.
+docbook2man -o %{buildroot}%{_mandir}/man8/ docs/logcheck.sgml
+# man-page-name is named Logcheck instead of logcheck:
+mv %{buildroot}%{_mandir}/man8/Logcheck.8 %{buildroot}%{_mandir}/man8/%{name}.8
+
+rm -f %{buildroot}%{_mandir}/man8/manpage.*
+
+%{__mkdir} -pm 755 %{buildroot}%{_mandir}/man1
+%{__install} -pm 644 docs/logcheck-test.1 %{buildroot}%{_mandir}/man1/
+%{__install} -pm 644 docs/logtail2.8 %{buildroot}%{_mandir}/man8/
+
+%{__mkdir} -pm 755 %{buildroot}%{_sysconfdir}/cron.d
+%{__install} -pm 644 debian/%{name}.cron.d %{buildroot}%{_sysconfdir}/cron.d/%{name}
+%{__mkdir} -pm 755 %{buildroot}%{_localstatedir}/lock/%{name}
+# create homedir for logcheck-user
+%{__mkdir} -pm 644 %{buildroot}%{_sharedstatedir}/%{name}
+
+%clean
+rm -rf %{buildroot}
+
+%pre
+getent group logcheck >/dev/null || groupadd -r logcheck
+getent passwd logcheck >/dev/null || \
+ useradd -r -g logcheck -G adm -d /var/lib/logcheck -s /sbin/nologin \
+ -c "Logcheck user" logcheck
+exit 0
+
+%files
+%defattr(-,root,root,-)
+%attr(0755,root,root) %dir %{_sysconfdir}/%{name}/
+%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/logcheck.conf
+%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/logcheck.logfiles
+%attr(0755,root,root) %dir %{_sysconfdir}/%{name}/cracking.d/
+%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/cracking.d/*
+%attr(0755,root,root) %dir %{_sysconfdir}/%{name}/ignore.d.workstation/
+%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/ignore.d.workstation/*
+%attr(0755,root,root) %dir %{_sysconfdir}/%{name}/ignore.d.server/
+%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/ignore.d.server/*
+%attr(0755,root,root) %dir %{_sysconfdir}/%{name}/ignore.d.paranoid/
+%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/ignore.d.paranoid/*
+%attr(0755,root,root) %dir %{_sysconfdir}/%{name}/violations.d/
+%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/violations.d/*
+%attr(0755,root,root) %dir %{_sysconfdir}/%{name}/violations.ignore.d/
+%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/violations.ignore.d/*
+#%config(noreplace) %{_sysconfdir}/%{name}/*
+%config(noreplace) %{_sysconfdir}/cron.d/*
+%{_bindir}/logcheck-test
+%{_sbindir}/*
+%{_datadir}/logtail/
+%{_mandir}/man?/*
+%attr(0700,logcheck,logcheck) %{_localstatedir}/lock/%{name}
+%attr(0700,logcheck,logcheck) %{_sharedstatedir}/%{name}
+%doc docs/* LICENSE
+
+
+%changelog
+* Mon Sep 6 2010 Matthias Runge <mrunge at matthias-runge.de> 1.3.13-1
+- update to 1.3.13
+- make permissions fit to fedora-packaging guidelines
+
+* Thu Aug 5 2010 Matthias Runge <mrunge at matthias-runge.de> 1.3.11-1
+- substitute patches with sed-invocations for readability
+- install creates logcheck-homedir, package owns homedir
+- update to 1.3.11
+
+* Mon May 17 2010 Matthias Runge <mrunge at matthias-runge.de> 1.3.8-5
+- add lockfile-progs as requirement
+- debians run-parts accepts --list parameter, fedoras doesn't need it
+
+* Wed May 12 2010 Matthias Runge <mrunge at matthias-runge.de> 1.3.8-4
+- added requires, homedir created
+
+* Mon May 10 2010 Matthias Runge <mrunge at matthias-runge.de> 1.3.8-3
+- patch logcheck-logfiles
+
+* Sat May 8 2010 Matthias Runge <mrunge at matthias-runge.de> 1.3.8-2
+- install man page
+- clean up permissions and files section
+- user logcheck added
+
+* Wed Apr 28 2010 Matthias Runge <mrunge at matthias-runge.de> 1.3.8-1
+- initial spec
diff --git a/sources b/sources
index e69de29..1d162b7 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e2ff14f522bf2e30d5947c85fed44973 logcheck_1.3.13.tar.gz
More information about the scm-commits
mailing list