From 9ba3957cd8da13a279822a9756293aa7ce4449bf 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 | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/srcpkgs/fail2ban/template b/srcpkgs/fail2ban/template index d0842770dc1f0a..cf1bb75dd7be0a 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,21 @@ 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 + # testExecuteTimeoutWithNastyChildren and testKillAfterStart fail on CI + python3 bin/fail2ban-testcases -i "testRepairDb|testExecuteTimeoutWithNastyChildren|testKillAfterStart" +} + post_install() { rm -rf ${DESTDIR}/${py3_sitelib}/fail2ban/tests vsv fail2ban + for f in man/*; do + vman "$f" + done }