net-analyzer/fail2ban: Update live ebuild
authorJeroen Roovers <jer@gentoo.org>
Fri, 10 Jan 2020 13:19:30 +0000 (14:19 +0100)
committerJeroen Roovers <jer@gentoo.org>
Fri, 10 Jan 2020 13:20:08 +0000 (14:20 +0100)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-analyzer/fail2ban/fail2ban-99999999.ebuild

index bb304da8236de63fa095722a631fe9c69fbf974a..59fb036b167590690aa6f859707da1edec60ad3b 100644 (file)
@@ -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}