Commit Graph

6 Commits

Author SHA1 Message Date
Jeffery To 0d9cc4aed2 fail2ban: Fix compatibility with Python 3.11
This backports 2 commits from upstream[1]; the other 3 are not strictly
necessary. One of the patches has been updated to remove a change to a
regex that does not exist in 0.11.2.

[1]: https://github.com/fail2ban/fail2ban/pull/3267

Fixes: https://github.com/openwrt/packages/issues/22736

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-11-30 13:04:58 +08:00
Michal Vasilek 4bd2169e73
fail2ban: fix patch for python 3.10
89d5d2e091 only patched importing
MutableMapping from collections, but importing Mapping has to be patched
too

Closes: #18681
Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
2022-06-20 13:04:50 +02:00
Kerma Gérald ad0e1a1c3c fail2ban: fix 2to3 error
Issue: 2to3 support has been removed in setuptools since version 58.0.0.

Fix: openwrt/packages#17311

Requirements: 2to3/host openwrt/packages#17429

Add upstream patch: 196c55e931

To install/build for python3 from source, it is necessary to convert to py3
codebase before setup (invoke 2to3 or ./fail2ban-2to3 firstly).
> ./fail2ban-2to3
> python3 setup.py build

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
2022-01-08 20:19:32 +01:00
Alexander Ryzhov 89d5d2e091 fail2ban: Python 10.0 compatibility
Signed-off-by: Alexander Ryzhov <github@ryzhov-al.ru>
2021-12-16 15:35:05 -08:00
Michal Vasilek 273a6d19c5
fail2ban: patch CVE-2021-32749
* switch to AUTORELEASE

Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
2021-09-16 23:33:37 +02:00
Kerma Gérald a4f24a353e fail2ban: fix package for fail2ban v0.11.2
fail2ban v0.11.2 package version 2

Following PR #15098, add fixes to build fail2ban package:
- remove use of fail2ban-python (directly use python3 in script)
- remove link to python3 in /usr/bin (break the package build)
- remove python-tests (reduce the package size)

Signed-off-by: Kerma Gérald <gandalf@gk2.net>
2021-09-07 15:12:59 +02:00