net-analyzer/fail2ban: Explain better how to disable sqlite at run time
authorJeroen Roovers <jer@gentoo.org>
Sun, 21 Apr 2019 12:53:57 +0000 (14:53 +0200)
committerJeroen Roovers <jer@gentoo.org>
Sun, 21 Apr 2019 12:54:15 +0000 (14:54 +0200)
Bug: https://bugs.gentoo.org/683960
Package-Manager: Portage-2.3.64, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
net-analyzer/fail2ban/fail2ban-0.10.4-r2.ebuild
net-analyzer/fail2ban/fail2ban-99999999.ebuild

index f03ad9d38155b35128257d5d694164e5d9197403..c44c1d21b5a949269a4373c0547bdf9e374e3868 100644 (file)
@@ -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
index 9dcaaf4be164fa92717794c9bb7a3b414d0cbace..a3968f20f6291bb89584be5364e4086239ab3a62 100644 (file)
@@ -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