|
|
@ -1,9 +1,10 @@
|
|
|
|
|
|
|
|
# Not defined in Fedora's buildsystem
|
|
|
|
%global _initdir %{_sysconfdir}/rc.d/init.d
|
|
|
|
%global _initdir %{_sysconfdir}/rc.d/init.d
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Ban IPs that make too many password failures
|
|
|
|
Summary: Ban IPs that make too many password failures
|
|
|
|
Name: fail2ban
|
|
|
|
Name: fail2ban
|
|
|
|
Version: 0.8.0
|
|
|
|
Version: 0.8.0
|
|
|
|
Release: 7%{?dist}
|
|
|
|
Release: 8%{?dist}
|
|
|
|
License: GPL
|
|
|
|
License: GPL
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
URL: http://fail2ban.sourceforge.net/
|
|
|
|
URL: http://fail2ban.sourceforge.net/
|
|
|
@ -11,6 +12,7 @@ Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
|
|
|
Source1: fail2ban-logrotate
|
|
|
|
Source1: fail2ban-logrotate
|
|
|
|
Patch0: fail2ban-0.8.0-init.patch
|
|
|
|
Patch0: fail2ban-0.8.0-init.patch
|
|
|
|
Patch1: fail2ban-0.8.0-sshd.patch
|
|
|
|
Patch1: fail2ban-0.8.0-sshd.patch
|
|
|
|
|
|
|
|
Patch2: fail2ban-0.8-sshd-filter.diff
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
BuildRequires: python-devel >= 2.4
|
|
|
|
BuildRequires: python-devel >= 2.4
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
@ -28,6 +30,7 @@ failures. It updates firewall rules to reject the IP address.
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1 -b .init
|
|
|
|
%patch0 -p1 -b .init
|
|
|
|
%patch1 -p1 -b .sshd
|
|
|
|
%patch1 -p1 -b .sshd
|
|
|
|
|
|
|
|
%patch2 -p1 -b .sshdallowusersm
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
python setup.py build
|
|
|
@ -73,6 +76,10 @@ fi
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/fail2ban
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/fail2ban
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sun Jun 3 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.8.0-8
|
|
|
|
|
|
|
|
- Also trigger on non-AllowUsers failures (Jonathan Underwood
|
|
|
|
|
|
|
|
<jonathan.underwood@gmail.com>).
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 23 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.8.0-7
|
|
|
|
* Wed May 23 2007 Axel Thimm <Axel.Thimm@ATrpms.net> - 0.8.0-7
|
|
|
|
- logrotate should restart fail2ban (Zing <zing@fastmail.fm>).
|
|
|
|
- logrotate should restart fail2ban (Zing <zing@fastmail.fm>).
|
|
|
|
- send mail to root; logrotate (Jonathan Underwood
|
|
|
|
- send mail to root; logrotate (Jonathan Underwood
|
|
|
|