# TODO:
# - SECURITY: http://securitytracker.com/alerts/2004/Apr/1009838.html
+# - put logtail to bin instead of sbin?
Summary: Logcheck system log analyzer
Summary(es): Analizador de logs
Summary(pl): Logcheck - analizator logów systemu
Summary(zh_CN): ϵͳÈÕÖ¾·ÖÎö¹¤¾ß
Name: logcheck
Version: 1.1.1
-Release: 3
+Release: 3.1
License: GPL
Group: Applications/System
#Source0: http://www.psionic.com/tools/%{name}-%{version}.tar.gz
# Adopted by Debian ? They have 1.3.14 in pool
+# Debian has 1.2.32 now.
Source0: %{name}-%{version}.tar.gz
# Source0-md5: e97c2f096e219e20310c1b80e9e1bc29
Patch0: %{name}-pld.patch
#URL: http://www.psionic.com/abacus
Requires: /usr/sbin/sendmail
Requires: crondaemon
+Requires: logtail = %{epoch}:%{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
%define _sysconfdir /etc/logcheck
%description
Logcheck - ÐÒÏÇÒÁÍÁ ÄÌÑ ×¦ÄÓ̦ÄËÏ×Õ×ÁÎÎÑ × ÓÉÓÔÅÍÎÉÈ ÌÏÇÁÈ ÎÅÚ×ÉÞÁÊÎÉÈ Ä¦Ê
ÔÁ ÓÐÒÏ ÎÅÓÁÎËæÏÎÏ×ÁÎÏÇÏ ÄÏÓÔÕÐÕ.
+%package -n logtail
+Summary: logtail program from logcheck package
+Group: Applications/System
+
+%description -n logtail
+This package contains logtail that remembers the last position it read
+from in a log file and uses this position on subsequent runs to
+process new information.
+
%prep
%setup -q
%patch -p1
%attr(600,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
%attr(700,root,root) %config(missingok) /etc/cron.hourly/logcheck
%attr(755,root,root) %{_sbindir}/logcheck
+
+%files -n logtail
+%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/logtail