Compare commits

...

2 Commits
epel9 ... i9ce

Author SHA1 Message Date
MSVSphere Packaging Team eb7b601dfe import fail2ban-1.0.2-12.el9
10 months ago
Sergey Cherevko 7ceeaf466e
import fail2ban-1.0.2-7.el9
1 year ago

@ -0,0 +1,2 @@
8da05640142805588a9b9a90656036b773f545a4 SOURCES/fail2ban-1.0.2.tar.gz
06adad5b77192b293e18a971b7dc5402f30e6e0b SOURCES/fail2ban-1.0.2.tar.gz.asc

4
.gitignore vendored

@ -1,2 +1,2 @@
/fail2ban-*/ SOURCES/fail2ban-1.0.2.tar.gz
/fail2ban-*.tar.gz* SOURCES/fail2ban-1.0.2.tar.gz.asc

@ -100,6 +100,11 @@ logging_dontaudit_search_audit_logs(fail2ban_t)
logging_mmap_generic_logs(fail2ban_t) logging_mmap_generic_logs(fail2ban_t)
logging_mmap_journal(fail2ban_t) logging_mmap_journal(fail2ban_t)
allow fail2ban_t fail2ban_log_t:file watch; allow fail2ban_t fail2ban_log_t:file watch;
gen_require(`
attribute logfile;
')
allow fail2ban_t logfile:dir { watch_dir_perms };
allow fail2ban_t logfile:file { watch_file_perms };
# Not in EL9 yet # Not in EL9 yet
#logging_watch_audit_log_files(fail2ban_t) #logging_watch_audit_log_files(fail2ban_t)
gen_require(` gen_require(`

@ -6,7 +6,7 @@
Name: fail2ban Name: fail2ban
Version: 1.0.2 Version: 1.0.2
Release: 7%{?dist} Release: 12%{?dist}
Summary: Daemon to ban hosts that cause multiple authentication errors Summary: Daemon to ban hosts that cause multiple authentication errors
License: GPLv2+ License: GPLv2+
@ -53,11 +53,25 @@ BuildRequires: /usr/bin/2to3
# For testcases # For testcases
BuildRequires: python3-inotify BuildRequires: python3-inotify
%endif %endif
# using a python3_version-based conditional does not work here, so
# this is a proxy for "Python version greater than 3.12". asyncore
# and asynchat were dropped from cpython core in 3.12, these modules
# make them available again. See:
# https://github.com/fail2ban/fail2ban/issues/3487
# https://bugzilla.redhat.com/show_bug.cgi?id=2219991
%if 0%{?fedora} > 38
BuildRequires: python3-pyasyncore
BuildRequires: python3-pyasynchat
%endif
BuildRequires: sqlite BuildRequires: sqlite
BuildRequires: systemd BuildRequires: systemd
BuildRequires: selinux-policy-devel BuildRequires: selinux-policy-devel
BuildRequires: make BuildRequires: make
%if 0%{?fedora} >= 41
BuildRequires: bash-completion-devel
%else
BuildRequires: bash-completion BuildRequires: bash-completion
%endif
BuildRequires: gnupg2 BuildRequires: gnupg2
# Default components # Default components
@ -110,6 +124,11 @@ Requires: (%{name}-selinux if selinux-policy-%{selinuxtype})
%else %else
Requires: %{name}-selinux Requires: %{name}-selinux
%endif %endif
# see note above in BuildRequires section
%if 0%{?fedora} > 38
Requires: python3-pyasyncore
Requires: python3-pyasynchat
%endif
%description server %description server
This package contains the core server components for Fail2Ban with minimal This package contains the core server components for Fail2Ban with minimal
@ -224,6 +243,11 @@ by default.
%prep %prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -p1 %autosetup -p1
# this test uses smtpd which is removed in Python 3.12, rewriting it
# isn't trivial
%if 0%{?fedora} > 38
rm -f fail2ban/tests/action_d/test_smtp.py
%endif
# Use Fedora paths # Use Fedora paths
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
@ -318,8 +342,14 @@ COMPLETIONDIR=%{buildroot}$(pkg-config --variable=completionsdir bash-completion
%if 0%{?rhel} && 0%{?rhel} < 8 %if 0%{?rhel} && 0%{?rhel} < 8
%python2 bin/fail2ban-testcases --verbosity=2 --no-network %python2 bin/fail2ban-testcases --verbosity=2 --no-network
%else %else
%if 0%{?fedora} > 38
# testRepairDb does not work with sqlite 3.42.0+
# https://github.com/fail2ban/fail2ban/issues/3586
%python3 bin/fail2ban-testcases --verbosity=2 --no-network -i testRepairDb
%else
%python3 bin/fail2ban-testcases --verbosity=2 --no-network %python3 bin/fail2ban-testcases --verbosity=2 --no-network
%endif %endif
%endif
%pre selinux %pre selinux
@ -430,6 +460,26 @@ fi
%changelog %changelog
* Thu Feb 22 2024 Orion Poplawski <orion@nwra.com> - 1.0.2-12
- Allow watch on more logfiles
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Nov 22 2023 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 1.0.2-9
- Rebuilt for MSVSphere 9.3
* Wed Sep 27 2023 Adam Williamson <awilliam@redhat.com> - 1.0.2-9
- Require pyasynchat and pyasyncore with Python 3.12+
- Disable smtp tests on F39+ due to removal of smtpd from Python 3.12
- Disable db repair test on F39+ as it's broken with sqlite 3.42.0+
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Mon Jun 26 2023 Todd Zullinger <tmz@pobox.com> - 1.0.2-7 * Mon Jun 26 2023 Todd Zullinger <tmz@pobox.com> - 1.0.2-7
- exclude shorewall subpackage on epel9 (rhbz#2217649) - exclude shorewall subpackage on epel9 (rhbz#2217649)

@ -1,2 +0,0 @@
SHA512 (fail2ban-1.0.2.tar.gz) = 688a84361b5794e1658f53d2d200ce752fe1e3320ddb1742c32c4b4b82a79ace16ae464e7ea3eeb94a0e862bcac73c2d3a0e61dd7b28e179a4c857f950d74dbb
SHA512 (fail2ban-1.0.2.tar.gz.asc) = 1c0af7e454d52879788d9728010a68159a94668d93799da5533999e8c821db87f651b3606347af16fd92a4540a7a343dc682f72bb3bab14e3666f848883d8644
Loading…
Cancel
Save