From feb118383adb2e8b93bc802d5703ab631f6b3969 Mon Sep 17 00:00:00 2001 From: Louis Sautier Date: Wed, 24 Feb 2016 13:55:51 +0100 Subject: net-analyzer/fail2ban: use distutils-r1 functions Package-Manager: portage-2.2.27 --- net-analyzer/fail2ban/fail2ban-0.9.3-r1.ebuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'net-analyzer') diff --git a/net-analyzer/fail2ban/fail2ban-0.9.3-r1.ebuild b/net-analyzer/fail2ban/fail2ban-0.9.3-r1.ebuild index 4196d5868457..9e04e5fa178e 100644 --- a/net-analyzer/fail2ban/fail2ban-0.9.3-r1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.9.3-r1.ebuild @@ -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 -- cgit v1.2.3-65-gdbad