diff options
author | Louis Sautier <sautier.louis@gmail.com> | 2016-02-24 13:55:51 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2016-03-09 14:07:38 +0000 |
commit | feb118383adb2e8b93bc802d5703ab631f6b3969 (patch) | |
tree | 9f066c4c380e4b4b7740d9942fe8310e4f4de4b8 /net-analyzer/fail2ban | |
parent | net-analyzer/fail2ban: add missing die, rewrite find/sed (diff) | |
download | gentoo-feb118383adb2e8b93bc802d5703ab631f6b3969.tar.gz gentoo-feb118383adb2e8b93bc802d5703ab631f6b3969.tar.bz2 gentoo-feb118383adb2e8b93bc802d5703ab631f6b3969.zip |
net-analyzer/fail2ban: use distutils-r1 functions
Package-Manager: portage-2.2.27
Diffstat (limited to 'net-analyzer/fail2ban')
-rw-r--r-- | net-analyzer/fail2ban/fail2ban-0.9.3-r1.ebuild | 8 |
1 files changed, 4 insertions, 4 deletions
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 |