fail2ban: fix 2to3 error
authorKerma Gérald <gandalf@gk2.net>
Sun, 12 Dec 2021 10:59:39 +0000 (11:59 +0100)
committerKerma Gérald <gandalf@gk2.net>
Sat, 8 Jan 2022 19:19:32 +0000 (20:19 +0100)
commitad0e1a1c3ce871da079779bf9ac706859445f3c5
tree82054b7d6a250fec3082c3b9674d9ba9756a5da3
parent98d8680a8c26adfba431da008c9a76ff85786390
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: https://github.com/fail2ban/fail2ban/commit/196c55e93103d1e56d1336f27a5f2591b4e54fef

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>
net/fail2ban/Makefile
net/fail2ban/patches/020-fix-2to3.patch [new file with mode: 0644]