From ab56ae87d7ef481aed2636af52bfd2ea7ce2ea7c Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sat, 20 Jan 2024 10:00:13 +0100 Subject: [PATCH] fail2ban: add man pages --- srcpkgs/fail2ban/template | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/srcpkgs/fail2ban/template b/srcpkgs/fail2ban/template index d0842770dc1f0a..67414449940415 100644 --- a/srcpkgs/fail2ban/template +++ b/srcpkgs/fail2ban/template @@ -1,10 +1,11 @@ # Template file for 'fail2ban' pkgname=fail2ban version=1.0.2 -revision=3 +revision=4 build_style=python3-module hostmakedepends="pkg-config python3-setuptools" -depends="python3-pyasynchat" +depends="python3-pyasynchat python3-pyasyncore" +checkdepends="python3-utils ${depends}" short_desc="Authentication failure monitor system" maintainer="Orphaned " license="GPL-2.0-only" @@ -23,7 +24,24 @@ pre_build() { ./fail2ban-2to3 } +do_check() { + # this test uses smtpd which is removed in Python 3.12 + # https://github.com/fail2ban/fail2ban/issues/3487 + rm -f fail2ban/tests/action_d/test_smtp.py + + # testRepairDb does not work with sqlite 3.42.0+ + # https://github.com/fail2ban/fail2ban/issues/3586 + python3 bin/fail2ban-testcases -i testRepairDb +} + post_install() { rm -rf ${DESTDIR}/${py3_sitelib}/fail2ban/tests vsv fail2ban + vman man/fail2ban-client.1 + vman man/fail2ban-python.1 + vman man/fail2ban-regex.1 + vman man/fail2ban-server.1 + vman man/fail2ban-testcases.1 + vman man/fail2ban.1 + vman man/jail.conf.5 }