Name: logsurfer
Version: 1.5a
Release: 0vl1
Copyright: distributable
Group: Applications/System
Source: ftp://ftp.cert.dfn.de/pub/tools/audit/%{name}/%{name}-%{version}.tar
Source1: ftp://ftp.cert.dfn.de/pub/tools/audit/%{name}/config-examples/examples.README
Source2: ftp://ftp.cert.dfn.de/pub/tools/audit/%{name}/config-examples/httpd-error
Source3: ftp://ftp.cert.dfn.de/pub/tools/audit/%{name}/config-examples/ntp-logs
Prefix: /usr
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildPreReq: libtool, autoconf
Summary: process logfiles and perform certain actions
Summary(ja): ログファイルを監視し、アクションを実行する
%description
Logsurfer is a program that works on single textlines from a logfile (or
from standard input).  It compares each line against regular expressions of
a set of "rules" and performs certain actions that are defined for this
match.

%description -l ja
logsurferはログファイル(または標準入力)から一行ずつ読み込んで正規表現とのマッ
チングを行い，必要に応じて定められたアクションを実行します．

%prep
%setup -q -c

%build
cd %{name}-%{version}
%configure --with-etcdir=%_sysconfdir/%{name}
make
cd ..

%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man4

mkdir tmp-examples
cp %{SOURCE1} tmp-examples
cp %{SOURCE2} tmp-examples
cp %{SOURCE3} tmp-examples

cd %{name}-%{version}
%makeinstall
cd ..

%clean
rm -rf ${RPM_BUILD_ROOT}
rm -rf tmp-examples

%files
%defattr(-, root, root)
%{_bindir}/logsurfer
%{_mandir}
%doc %{name}-%{version}/ChangeLog
%doc %{name}-%{version}/DISCLAIMER
%doc %{name}-%{version}/README
%doc %{name}-%{version}/TODO
%doc %{name}-%{version}/Y2K
%doc tmp-examples/*

%changelog
* Fri Nov 23 2001 akira yamada <akira@vinelinux.org> 1.5a-0vl1
- Initial packaging.
