summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-01-10 14:19:30 +0100
committerJeroen Roovers <jer@gentoo.org>2020-01-10 14:20:08 +0100
commit55db316d2faf53a0cd07b0bccf16a37e9d3367fd (patch)
tree94aaa9643f11be16c44c3610279ed1c6019a9311
parentnet-analyzer/fail2ban: Version 0.10.5 (diff)
downloadgentoo-55db316d2faf53a0cd07b0bccf16a37e9d3367fd.tar.gz
gentoo-55db316d2faf53a0cd07b0bccf16a37e9d3367fd.tar.bz2
gentoo-55db316d2faf53a0cd07b0bccf16a37e9d3367fd.zip
net-analyzer/fail2ban: Update live ebuild
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
-rw-r--r--net-analyzer/fail2ban/fail2ban-99999999.ebuild11
1 files 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}