|
|
|
@ -3,11 +3,12 @@
|
|
|
|
|
Summary: Ban IPs that make too many password failures
|
|
|
|
|
Name: fail2ban
|
|
|
|
|
Version: 0.8.0
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
License: GPL
|
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
|
URL: http://fail2ban.sourceforge.net/
|
|
|
|
|
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
|
|
|
|
Source1: fail2ban-logrotate
|
|
|
|
|
Patch0: fail2ban-0.8.0-init.patch
|
|
|
|
|
Patch1: fail2ban-0.8.0-sshd.patch
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
@ -38,7 +39,8 @@ mkdir -p %{buildroot}%{_initdir}
|
|
|
|
|
install -p -m 755 files/redhat-initd %{buildroot}%{_initdir}/fail2ban
|
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
|
install -p -m 644 man/fail2ban*.1 %{buildroot}%{_mandir}/man1
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
|
|
|
|
|
install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/fail2ban
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
@ -68,8 +70,13 @@ fi
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/fail2ban/jail.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/fail2ban/action.d/*.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/fail2ban/filter.d/*.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/fail2ban
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed May 23 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.8.0-5
|
|
|
|
|
- send mail to root; logrotate (Jonathan Underwood
|
|
|
|
|
<jonathan.underwood@gmail.com>)
|
|
|
|
|
|
|
|
|
|
* Sat May 19 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.8.0-4
|
|
|
|
|
- Update to 0.8.0.
|
|
|
|
|
- enable ssh by default, fix log file for ssh scanning, adjust python
|
|
|
|
|