commit:     4be9865061ccfd45ac0472e706622e3a31c0c8df
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 21 12:53:57 2019 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sun Apr 21 12:54:15 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4be98650

net-analyzer/fail2ban: Explain better how to disable sqlite at run time

Bug: https://bugs.gentoo.org/683960
Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild | 6 ++++--
 net-analyzer/fail2ban/fail2ban-99999999.ebuild  | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild 
b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild
index f03ad9d3815..c44c1d21b5a 100644
--- a/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild
+++ b/net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild
@@ -66,7 +66,7 @@ python_install_all() {
        systemd_dotmpfilesd files/${PN}-tmpfiles.conf
        doman man/*.{1,5}
 
-       # Use INSTALL_MASK  if you do not want to touch /etc/logrotate.d.
+       # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d.
        # See http://thread.gmane.org/gmane.linux.gentoo.devel/35675
        insinto /etc/logrotate.d
        newins files/${PN}-logrotate ${PN}
@@ -101,7 +101,9 @@ pkg_postinst() {
 
        if ! has_version dev-lang/python[sqlite]; then
                elog "If you want to use ${PN}'s persistent database, then 
reinstall"
-               elog "dev-lang/python with USE=sqlite"
+               elog "dev-lang/python with USE=sqlite. If you do not use the"
+               elog "persistent database feature, then you should set"
+               elog "dbfile = :memory: in fail2ban.conf accordingly."
        fi
 
        if has_version sys-apps/systemd[-python]; then

diff --git a/net-analyzer/fail2ban/fail2ban-99999999.ebuild 
b/net-analyzer/fail2ban/fail2ban-99999999.ebuild
index 9dcaaf4be16..a3968f20f62 100644
--- a/net-analyzer/fail2ban/fail2ban-99999999.ebuild
+++ b/net-analyzer/fail2ban/fail2ban-99999999.ebuild
@@ -54,7 +54,7 @@ python_install_all() {
        systemd_dotmpfilesd files/${PN}-tmpfiles.conf
        doman man/*.{1,5}
 
-       # Use INSTALL_MASK  if you do not want to touch /etc/logrotate.d.
+       # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d.
        # See http://thread.gmane.org/gmane.linux.gentoo.devel/35675
        insinto /etc/logrotate.d
        newins files/${PN}-logrotate ${PN}
@@ -89,7 +89,9 @@ pkg_postinst() {
 
        if ! has_version dev-lang/python[sqlite]; then
                elog "If you want to use ${PN}'s persistent database, then 
reinstall"
-               elog "dev-lang/python with USE=sqlite"
+               elog "dev-lang/python with USE=sqlite. If you do not use the"
+               elog "persistent database feature, then you should set"
+               elog "dbfile = :memory: in fail2ban.conf accordingly."
        fi
 
        if has_version sys-apps/systemd[-python]; then

Reply via email to