commit: 55db316d2faf53a0cd07b0bccf16a37e9d3367fd
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 10 13:19:30 2020 +0000
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Fri Jan 10 13:20:08 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55db316d
net-analyzer/fail2ban: Update live ebuild
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
net-analyzer/fail2ban/fail2ban-99999999.ebuild | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/net-analyzer/fail2ban/fail2ban-99999999.ebuild
b/net-analyzer/fail2ban/fail2ban-99999999.ebuild
index bb304da8236..59fb036b167 100644
--- a/net-analyzer/fail2ban/fail2ban-99999999.ebuild
+++ b/net-analyzer/fail2ban/fail2ban-99999999.ebuild
@@ -41,6 +41,13 @@ python_prepare_all() {
distutils-r1_python_prepare_all
}
+python_compile() {
+ if python_is_python3; then
+ ./fail2ban-2to3 || die
+ fi
+ distutils-r1_python_compile
+}
+
python_install_all() {
distutils-r1_python_install_all
@@ -49,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}