net-analyzer/fail2ban: use distutils-r1 functions
authorLouis Sautier <sautier.louis@gmail.com>
Wed, 24 Feb 2016 12:55:51 +0000 (13:55 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Wed, 9 Mar 2016 14:07:38 +0000 (14:07 +0000)
Package-Manager: portage-2.2.27

net-analyzer/fail2ban/fail2ban-0.9.3-r1.ebuild

index 4196d5868457f293cacbdada96c5130fd1e060bd..9e04e5fa178ee3078ec4a03cb1dbeb03f55faadc 100644 (file)
@@ -33,7 +33,7 @@ REQUIRED_USE="systemd? ( !python_single_target_pypy )"
 
 DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt )
 
-src_prepare() {
+python_prepare_all() {
        # Replace /var/run with /run, but not in the top source directory
        find . -mindepth 2 -type f -exec \
                sed -i -e 's|/var\(/run/fail2ban\)|\1|g' {} + || die
@@ -44,15 +44,15 @@ src_prepare() {
                "${FILESDIR}"/${PN}-0.9.2-initd.patch \
                "${FILESDIR}"/${PN}-0.9.2-logrotate.patch
 
-       distutils-r1_src_prepare
+       distutils-r1_python_prepare_all
 }
 
 python_test() {
        "${PYTHON}" "bin/${PN}-testcases" || die "tests failed with ${EPYTHON}"
 }
 
-src_install() {
-       distutils-r1_src_install
+python_install_all() {
+       distutils-r1_python_install_all
 
        rm -r "${D}"/usr/share/doc/${PN} "${D}"/run || die