net-analyzer/fail2ban: Install bashcomp file
authorJeroen Roovers <jer@gentoo.org>
Sun, 12 Jan 2020 09:01:05 +0000 (10:01 +0100)
committerJeroen Roovers <jer@gentoo.org>
Sun, 12 Jan 2020 09:01:40 +0000 (10:01 +0100)
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Closes: https://bugs.gentoo.org/705176
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild [moved from net-analyzer/fail2ban/fail2ban-0.10.5.ebuild with 95% similarity]
net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild [moved from net-analyzer/fail2ban/fail2ban-0.11.1.ebuild with 95% similarity]
net-analyzer/fail2ban/fail2ban-99999999.ebuild

similarity index 95%
rename from net-analyzer/fail2ban/fail2ban-0.10.5.ebuild
rename to net-analyzer/fail2ban/fail2ban-0.10.5-r1.ebuild
index 85730ff0b68425c64fc0f95baf7e9d47b681d6d9..56a0f3046d23b029de1a8760fc28d89cc5414566 100644 (file)
@@ -5,7 +5,7 @@ EAPI=7
 PYTHON_COMPAT=( python{2_7,3_6} )
 DISTUTILS_SINGLE_IMPL=1
 
-inherit distutils-r1 systemd
+inherit bash-completion-r1 distutils-r1 systemd
 
 DESCRIPTION="scans log files and bans IPs that show malicious signs"
 HOMEPAGE="https://www.fail2ban.org/"
@@ -72,6 +72,9 @@ python_install_all() {
        newins files/${PN}-logrotate ${PN}
 
        keepdir /var/lib/${PN}
+
+       newbashcomp files/bash-completion ${PN}-client
+       bashcomp_alias ${PN}-client ${PN}-server ${PN}-regex
 }
 
 pkg_preinst() {
similarity index 95%
rename from net-analyzer/fail2ban/fail2ban-0.11.1.ebuild
rename to net-analyzer/fail2ban/fail2ban-0.11.1-r1.ebuild
index 2b9834eff16a24e6111756c8a53f5c794f11fb2d..8481a7ca53ffc0b7629e1879f215b396669cdf50 100644 (file)
@@ -5,7 +5,7 @@ EAPI=7
 PYTHON_COMPAT=( python{2_7,3_6} )
 DISTUTILS_SINGLE_IMPL=1
 
-inherit distutils-r1 systemd
+inherit bash-completion-r1 distutils-r1 systemd
 
 DESCRIPTION="scans log files and bans IPs that show malicious signs"
 HOMEPAGE="https://www.fail2ban.org/"
@@ -67,6 +67,9 @@ python_install_all() {
        newins files/${PN}-logrotate ${PN}
 
        keepdir /var/lib/${PN}
+
+       newbashcomp files/bash-completion ${PN}-client
+       bashcomp_alias ${PN}-client ${PN}-server ${PN}-regex
 }
 
 pkg_preinst() {
index 59fb036b167590690aa6f859707da1edec60ad3b..1618b1f20e2484fa053454170a44544fc3fadcdf 100644 (file)
@@ -5,7 +5,7 @@ EAPI=7
 PYTHON_COMPAT=( python{2_7,3_6} )
 DISTUTILS_SINGLE_IMPL=1
 
-inherit distutils-r1 git-r3 systemd
+inherit bash-completion-r1 distutils-r1 git-r3 systemd
 
 DESCRIPTION="scans log files and bans IPs that show malicious signs"
 HOMEPAGE="https://www.fail2ban.org/"
@@ -67,6 +67,9 @@ python_install_all() {
        newins files/${PN}-logrotate ${PN}
 
        keepdir /var/lib/${PN}
+
+       newbashcomp files/bash-completion ${PN}-client
+       bashcomp_alias ${PN}-client ${PN}-server ${PN}-regex
 }
 
 pkg_preinst() {