|
|
|
@ -1,11 +1,11 @@
|
|
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
|
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
PYTHON_COMPAT=( python{2_7,3_6,3_7} pypy )
|
|
|
|
|
PYTHON_COMPAT=( python{2_7,3_6,3_7} )
|
|
|
|
|
DISTUTILS_SINGLE_IMPL=1
|
|
|
|
|
|
|
|
|
|
inherit distutils-r1 git-r3 systemd
|
|
|
|
|
inherit bash-completion-r1 distutils-r1 git-r3 systemd
|
|
|
|
|
|
|
|
|
|
DESCRIPTION="scans log files and bans IPs that show malicious signs"
|
|
|
|
|
HOMEPAGE="https://www.fail2ban.org/"
|
|
|
|
@ -56,8 +56,8 @@ python_install_all() {
|
|
|
|
|
# not FILESDIR
|
|
|
|
|
newconfd files/gentoo-confd ${PN}
|
|
|
|
|
newinitd files/gentoo-initd ${PN}
|
|
|
|
|
sed -e "s:@BINDIR@:${EPREFIX}/usr/bin:g" files/${PN}.service.in > "${T}"/${PN}.service || die
|
|
|
|
|
systemd_dounit "${T}"/${PN}.service
|
|
|
|
|
sed -e "s:@BINDIR@:${EPREFIX}/usr/bin:g" files/${PN}.service.in > "${T}/${PN}.service" || die
|
|
|
|
|
systemd_dounit "${T}/${PN}.service"
|
|
|
|
|
systemd_dotmpfilesd files/${PN}-tmpfiles.conf
|
|
|
|
|
doman man/*.{1,5}
|
|
|
|
|
|
|
|
|
@ -67,6 +67,9 @@ python_install_all() {
|
|
|
|
|
newins files/${PN}-logrotate ${PN}
|
|
|
|
|
|
|
|
|
|
keepdir /var/lib/${PN}
|
|
|
|
|
|
|
|
|
|
newbashcomp files/bash-completion ${PN}-client
|
|
|
|
|
bashcomp_alias ${PN}-client ${PN}-server ${PN}-regex
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pkg_preinst() {
|
|
|
|
|