From 12e0db0a574c2331f1796316c4ce0ff0208b4e15 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sat, 20 Jan 2024 10:00:13 +0100 Subject: [PATCH] fail2ban: update to 1.1.0. --- srcpkgs/fail2ban/template | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/srcpkgs/fail2ban/template b/srcpkgs/fail2ban/template index d0842770dc1f0a..7c0e3cd3dd70cb 100644 --- a/srcpkgs/fail2ban/template +++ b/srcpkgs/fail2ban/template @@ -1,17 +1,18 @@ # Template file for 'fail2ban' pkgname=fail2ban -version=1.0.2 -revision=3 +version=1.1.0 +revision=1 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" homepage="https://www.fail2ban.org/" changelog="https://raw.githubusercontent.com/fail2ban/fail2ban/master/ChangeLog" distfiles="https://github.com/fail2ban/fail2ban/archive/${version}.tar.gz" -checksum=ae8b0b41f27a7be12d40488789d6c258029b23a01168e3c0d347ee80b325ac23 +checksum=474fcc25afdaf929c74329d1e4d24420caabeea1ef2e041a267ce19269570bae conf_files=" /etc/fail2ban/fail2ban.conf /etc/fail2ban/jail.conf @@ -19,11 +20,15 @@ conf_files=" /etc/fail2ban/filter.d/*.conf" make_dirs="/var/lib/fail2ban 0700 root root" -pre_build() { - ./fail2ban-2to3 +do_check() { + # testExecuteTimeoutWithNastyChildren and testKillAfterStart fail on CI + python3 bin/fail2ban-testcases -i "testExecuteTimeoutWithNastyChildren|testKillAfterStart" } post_install() { rm -rf ${DESTDIR}/${py3_sitelib}/fail2ban/tests vsv fail2ban + for f in man/*.{1,5}; do + vman "$f" + done }