|
|
@ -13,11 +13,9 @@ Patch0: fail2ban-test.patch
|
|
|
|
# https://github.com/fail2ban/fail2ban/issues/1354
|
|
|
|
# https://github.com/fail2ban/fail2ban/issues/1354
|
|
|
|
Patch1: fail2ban-mysql.patch
|
|
|
|
Patch1: fail2ban-mysql.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
# For 2to3
|
|
|
|
|
|
|
|
BuildRequires: python2-tools
|
|
|
|
|
|
|
|
# For testcases
|
|
|
|
# For testcases
|
|
|
|
BuildRequires: python3-inotify
|
|
|
|
BuildRequires: python-inotify
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: systemd
|
|
|
@ -48,7 +46,7 @@ configurations.
|
|
|
|
%package server
|
|
|
|
%package server
|
|
|
|
Summary: Core server component for Fail2Ban
|
|
|
|
Summary: Core server component for Fail2Ban
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
|
Requires: python3-systemd
|
|
|
|
Requires: systemd-python
|
|
|
|
Requires(post): systemd
|
|
|
|
Requires(post): systemd
|
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
|
|
|
Requires(postun): systemd
|
|
|
@ -75,12 +73,10 @@ Requires: %{name}-mail = %{version}-%{release}
|
|
|
|
Requires: %{name}-sendmail = %{version}-%{release}
|
|
|
|
Requires: %{name}-sendmail = %{version}-%{release}
|
|
|
|
Requires: %{name}-server = %{version}-%{release}
|
|
|
|
Requires: %{name}-server = %{version}-%{release}
|
|
|
|
Requires: %{name}-shorewall = %{version}-%{release}
|
|
|
|
Requires: %{name}-shorewall = %{version}-%{release}
|
|
|
|
# Currently this breaks jails that don't log to the journal
|
|
|
|
|
|
|
|
#Requires: %{name}-systemd = %{version}-%{release}
|
|
|
|
#Requires: %{name}-systemd = %{version}-%{release}
|
|
|
|
# No python3 support for gamin
|
|
|
|
Requires: gamin-python
|
|
|
|
#Requires: gamin-python
|
|
|
|
|
|
|
|
Requires: perl
|
|
|
|
Requires: perl
|
|
|
|
Requires: python3-inotify
|
|
|
|
Requires: python-inotify
|
|
|
|
Requires: /usr/bin/whois
|
|
|
|
Requires: /usr/bin/whois
|
|
|
|
|
|
|
|
|
|
|
|
%description all
|
|
|
|
%description all
|
|
|
@ -154,13 +150,12 @@ by default.
|
|
|
|
sed -i -e 's/^before = paths-.*/before = paths-fedora.conf/' config/jail.conf
|
|
|
|
sed -i -e 's/^before = paths-.*/before = paths-fedora.conf/' config/jail.conf
|
|
|
|
# Start after firewalld (https://bugzilla.redhat.com/show_bug.cgi?id=1067147)
|
|
|
|
# Start after firewalld (https://bugzilla.redhat.com/show_bug.cgi?id=1067147)
|
|
|
|
sed -i -e '/^After=/s/$/ firewalld.service/' files/fail2ban.service
|
|
|
|
sed -i -e '/^After=/s/$/ firewalld.service/' files/fail2ban.service
|
|
|
|
2to3 --write --nobackups .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%py3_build
|
|
|
|
%py_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%py3_install
|
|
|
|
%py_install
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
@ -205,7 +200,7 @@ rm -r %{buildroot}%{_docdir}/%{name}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
# Need a UTF-8 locale to work
|
|
|
|
# Need a UTF-8 locale to work
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
./fail2ban-testcases-all-python3 --no-network
|
|
|
|
./fail2ban-testcases-all --no-network
|
|
|
|
|
|
|
|
|
|
|
|
%post server
|
|
|
|
%post server
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
@ -237,7 +232,7 @@ fi
|
|
|
|
%{_bindir}/fail2ban-client
|
|
|
|
%{_bindir}/fail2ban-client
|
|
|
|
%{_bindir}/fail2ban-regex
|
|
|
|
%{_bindir}/fail2ban-regex
|
|
|
|
%{_bindir}/fail2ban-testcases
|
|
|
|
%{_bindir}/fail2ban-testcases
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
%{python_sitelib}/*
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
|
%{_unitdir}/fail2ban.service
|
|
|
|
%{_unitdir}/fail2ban.service
|
|
|
|
%else
|
|
|
|
%else
|
|
|
@ -284,9 +279,6 @@ fi
|
|
|
|
- Update to 0.9.4
|
|
|
|
- Update to 0.9.4
|
|
|
|
- Use mariadb log path by default
|
|
|
|
- Use mariadb log path by default
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 23 2016 Orion Poplawski <orion@cora.nwra.com> - 0.9.3-3
|
|
|
|
|
|
|
|
- Use python3 (bug #1282498)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-2
|
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|