]> git.pld-linux.org Git - packages/logcheck.git/blobdiff - logcheck.spec
- put logtail to bindir
[packages/logcheck.git] / logcheck.spec
index ed0c9d4dcb98b0fbe36f28e2187b4d1693e31bd6..b84770099f34466523f6f300153e24996e56a78f 100644 (file)
@@ -1,31 +1,73 @@
-Summary:     Logcheck system log analyzer
-Name:        logcheck
-Version:     1.1
-Release:     1d
-Copyright:   Free. See LICENSE file.
-Group:       Utilities/System
-Source:      http://www.psionic.com/abacus/%{name}-%{version}.tar.gz
-Patch:       %{name}-pld.patch
-Vendor:      Craig Rowland <crowland@psionic.com>
-URL:         http://www.psionic.com/abacus
-BuildRoot:   /tmp/%{name}-%{version}-%{release}-root
-Summary(pl): Logcheck - analizator logów systemu
+# TODO:
+# - SECURITY: http://securitytracker.com/alerts/2004/Apr/1009838.html
+Summary:       Logcheck system log analyzer
+Summary(es):   Analizador de logs
+Summary(pl):   Logcheck - analizator logów systemu
+Summary(pt_BR):        Um analisador de logs
+Summary(ru):   Logcheck - ÁÎÁÌÉÚÁÔÏÒ log-ÆÁÊÌÏ×
+Summary(uk):   Logcheck - ÁÎÁ̦ÚÁÔÏÒ log-ÆÁÊ̦×
+Summary(zh_CN):        ÏµÍ³ÈÕÖ¾·ÖÎö¹¤¾ß
+Name:          logcheck
+Version:       1.1.1
+Release:       3.2
+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 is software package that is designed to automatically run and check
-system log files for security violations and unusual activity. Logcheck
-utilizes a program called logtail that remembers the last position it read
-from in a log file and uses this position on subsequent runs to process new
-information. All source code is available for review and the implementation
-was kept simple to avoid problems. This package is a clone of the
-frequentcheck.sh script from the Trusted Information Systems Gauntlet(tm)
-firewall package. TIS has granted permission for me to clone this package.
+Logcheck is software package that is designed to automatically run and
+check system log files for security violations and unusual activity.
+Logcheck utilizes a program called logtail that remembers the last
+position it read from in a log file and uses this position on
+subsequent runs to process new information. All source code is
+available for review and the implementation was kept simple to avoid
+problems. This package is a clone of the frequentcheck.sh script from
+the Trusted Information Systems Gauntlet(tm) firewall package. TIS has
+granted permission for me to clone this package.
+
+%description -l es
+Analizador de logs
 
 %description -l pl
-Pakiet zawiera logcheck - aplikacjê przeznaczon± do automatycznego analizowania
-logów systemowych i przesy³aniu ich po wstêpnjej obróbce poczt± elektroniczn± 
-do administratora systemu. Aplikacja ta jest klonem skryptu frequentcheck.sh z
-Trusted Information Systems Gauntlet(tm). 
+Pakiet zawiera logcheck - aplikacjê przeznaczon± do automatycznego
+analizowania logów systemowych i przesy³aniu ich po wstêpnej obróbce
+poczt± elektroniczn± do administratora systemu. Aplikacja ta jest
+klonem skryptu frequentcheck.sh z Trusted Information Systems
+Gauntlet(tm).
+
+%description -l pt_BR
+O logcheck é um software que foi desenvolvido para automaticamente
+rodar e checar logs do sistema para violações de segurança, e
+atividade não usual.
+
+%description -l ru
+Logcheck - ÐÒÏÇÒÁÍÍÁ ÄÌÑ ÏÔÓÌÅÖÉ×ÁÎÉÑ × ÓÉÓÔÅÍÎÙÈ ÌÏÇÁÈ ÎÅÏÂÙÞÎÙÈ
+ÄÅÊÓÔ×ÉÊ É ÐÏÐÙÔÏË ÎÅÓÁÎËÃÉÏÎÉÒÏ×ÁÎÎÏÇÏ ÄÏÓÔÕÐÁ.
+
+%description -l uk
+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
@@ -33,20 +75,18 @@ Trusted Information Systems Gauntlet(tm).
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.hourly,%{_sbindir},%{_bindir}}
 
-install -d $RPM_BUILD_ROOT/etc/logcheck
-install -d $RPM_BUILD_ROOT/usr/sbin
-
-make CC="gcc" CFLAGS="$RPM_OPT_FLAGS" linux
-
-install -d $RPM_BUILD_ROOT/etc/cron.hourly
+%{__make} linux \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags}"
 
 cat <<EOF > $RPM_BUILD_ROOT/etc/cron.hourly/logcheck
-#!/bin/bash
-/usr/sbin/logcheck
+#!/bin/sh
+exec %{_sbindir}/logcheck
 EOF
 
-strip $RPM_BUILD_ROOT/usr/sbin/logtail
+mv $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}/logtail
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -54,9 +94,11 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc CHANGES CREDITS README* systems/linux/README*
-
-%attr(700,root,root) %dir /etc/logcheck
-%attr(600,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logcheck/*
+%attr(700,root,root) %dir %{_sysconfdir}
+%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
 %attr(700,root,root) %config(missingok) /etc/cron.hourly/logcheck
-%attr(700,root,root) /usr/sbin/logcheck
-%attr(700,root,root) /usr/sbin/logtail
+%attr(755,root,root) %{_sbindir}/logcheck
+
+%files -n logtail
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/logtail
This page took 0.144223 seconds and 4 git commands to generate.