|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
Summary: Daemon to ban hosts that cause multiple authentication errors
|
|
|
|
|
Name: fail2ban
|
|
|
|
|
Version: 0.9.1
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: http://fail2ban.sourceforge.net/
|
|
|
|
|
Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
@ -150,6 +150,11 @@ python setup.py build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
python setup.py install -O1 --root %{buildroot}
|
|
|
|
|
|
|
|
|
|
# Do not load user paths
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1202151
|
|
|
|
|
sed -i -e '1s/python$/python -Es/' %{buildroot}%{_bindir}/fail2ban-{client,server}
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
|
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
|
cp -p files/fail2ban.service %{buildroot}%{_unitdir}/
|
|
|
|
@ -266,6 +271,9 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Mar 16 2015 Orion Poplawski <orion@cora.nwra.com> - 0.9.1-4
|
|
|
|
|
- Do not load user paths for fail2ban-{client,server} (bug #1202151)
|
|
|
|
|
|
|
|
|
|
* Sun Feb 22 2015 Orion Poplawski <orion@cora.nwra.com> - 0.9.1-3
|
|
|
|
|
- Do not use systemd by default
|
|
|
|
|
|
|
|
|
|