A new user interface for you! Read more...

File fail2ban.spec of Package fail2ban

%define name fail2ban
%define version 0.6.2
%define release 1

Summary: Ban IPs that make too many password failure
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.gz
License: GPL
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: %{_prefix}
BuildArch: noarch
Vendor: Cyril Jaquier <lostcontrol@users.sourceforge.net>
Packager: Manuel Arostegui <manuel@todo-linux.com>
Url: http://fail2ban.sourceforge.net
BuildRequires: python python-devel

%description

Fail2Ban scans log files like /var/log/pwdfail or
/var/log/apache/error_log and bans IP that makes
too many password failures. It updates firewall rules
to reject the IP address or executes user defined
commands.

%prep
%setup

%build
python setup.py build

%install
mkdir -p $RPM_BUILD_ROOT/usr/
mkdir -p $RPM_BUILD_ROOT/usr/lib/
mkdir -p $RPM_BUILD_ROOT/usr/lib/fail2ban/
python setup.py install --root=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT

%files
/usr/lib/fail2ban/confreader/__init__.py
/usr/lib/fail2ban/confreader/configreader.py
/usr/lib/fail2ban/fail2ban.py
/usr/lib/fail2ban/firewall/__init__.py
/usr/lib/fail2ban/firewall/firewall.py
/usr/lib/fail2ban/logreader/__init__.py
/usr/lib/fail2ban/logreader/logreader.py
/usr/lib/fail2ban/utils/__init__.py
/usr/lib/fail2ban/utils/dns.py
/usr/lib/fail2ban/utils/mail.py
/usr/lib/fail2ban/utils/pidlock.py
/usr/lib/fail2ban/utils/process.py
/usr/lib/fail2ban/utils/strings.py
/usr/lib/fail2ban/version.py
/usr/bin/fail2ban
/usr/lib/fail2ban/confreader/__init__.pyc
/usr/lib/fail2ban/confreader/configreader.pyc
/usr/lib/fail2ban/fail2ban.pyc
/usr/lib/fail2ban/firewall/__init__.pyc
/usr/lib/fail2ban/firewall/firewall.pyc
/usr/lib/fail2ban/logreader/__init__.pyc
/usr/lib/fail2ban/logreader/logreader.pyc
/usr/lib/fail2ban/utils/__init__.pyc
/usr/lib/fail2ban/utils/dns.pyc
/usr/lib/fail2ban/utils/mail.pyc
/usr/lib/fail2ban/utils/pidlock.pyc
/usr/lib/fail2ban/utils/process.pyc
/usr/lib/fail2ban/utils/strings.pyc
/usr/lib/fail2ban/version.pyc