[net-analyzer/fail2ban] sync with tree
This commit is contained in:
parent
045ef0736e
commit
470ee8f2da
@ -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
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
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
|
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"
|
DESCRIPTION="scans log files and bans IPs that show malicious signs"
|
||||||
HOMEPAGE="https://www.fail2ban.org/"
|
HOMEPAGE="https://www.fail2ban.org/"
|
||||||
@ -56,8 +56,8 @@ python_install_all() {
|
|||||||
# not FILESDIR
|
# not FILESDIR
|
||||||
newconfd files/gentoo-confd ${PN}
|
newconfd files/gentoo-confd ${PN}
|
||||||
newinitd files/gentoo-initd ${PN}
|
newinitd files/gentoo-initd ${PN}
|
||||||
sed -e "s:@BINDIR@:${EPREFIX}/usr/bin:g" files/${PN}.service.in > "${T}"/${PN}.service || die
|
sed -e "s:@BINDIR@:${EPREFIX}/usr/bin:g" files/${PN}.service.in > "${T}/${PN}.service" || die
|
||||||
systemd_dounit "${T}"/${PN}.service
|
systemd_dounit "${T}/${PN}.service"
|
||||||
systemd_dotmpfilesd files/${PN}-tmpfiles.conf
|
systemd_dotmpfilesd files/${PN}-tmpfiles.conf
|
||||||
doman man/*.{1,5}
|
doman man/*.{1,5}
|
||||||
|
|
||||||
@ -67,6 +67,9 @@ python_install_all() {
|
|||||||
newins files/${PN}-logrotate ${PN}
|
newins files/${PN}-logrotate ${PN}
|
||||||
|
|
||||||
keepdir /var/lib/${PN}
|
keepdir /var/lib/${PN}
|
||||||
|
|
||||||
|
newbashcomp files/bash-completion ${PN}-client
|
||||||
|
bashcomp_alias ${PN}-client ${PN}-server ${PN}-regex
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_preinst() {
|
pkg_preinst() {
|
||||||
|
Loading…
Reference in New Issue
Block a user