Skip to content

Commit

Permalink
fail2ban: add man pages
Browse files Browse the repository at this point in the history
  • Loading branch information
AnInternetTroll committed May 31, 2024
1 parent 898aead commit 9ba3957
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions srcpkgs/fail2ban/template
Original file line number Diff line number Diff line change
@@ -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 <orphan@voidlinux.org>"
license="GPL-2.0-only"
Expand All @@ -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
}

0 comments on commit 9ba3957

Please sign in to comment.