void-packages/srcpkgs/fail2ban/template

27 lines
711 B
Bash

# Template file for 'fail2ban'
pkgname=fail2ban
version=0.10.3.1
revision=2
build_style=python3-module
hostmakedepends="pkg-config python3"
depends="python3"
short_desc="Authentication failure monitor system"
pycompile_module="fail2ban"
maintainer="necrophcodr <necrophcodr@necrophcodr.me>"
license="GPL-2.0-only"
homepage="http://www.fail2ban.org/"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
checksum=7ee3fd0e94d58c94298718b25e6bcfa96932712b7aa683580e162403f68d40c8
noarch=yes
conf_files="
/etc/fail2ban/fail2ban.conf
/etc/fail2ban/jail.conf
/etc/fail2ban/action.d/*.conf
/etc/fail2ban/filter.d/*.conf"
pre_build() {
./fail2ban-2to3
}
post_install() {
vsv fail2ban
}