fail2ban: add useful recommendations

On a systemd-based system, one is likely to make use of
'backend=systemd', which requires the systemd module.

Both the pyinotify and systemd backends require the distutils module.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Rasmus Villemoes
2023-10-04 22:51:11 +02:00
committed by Armin Kuster
parent e63009af19
commit 3f7d40b0fc

View File

@@ -71,3 +71,5 @@ RDEPENDS:${PN} += "python3-sqlite3"
RDEPENDS:${PN} += " python3-logging python3-fcntl python3-json"
RDEPENDS:${PN}-ptest = "python3-core python3-io python3-modules python3-fail2ban"
RRECOMMENDS:${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'python3-systemd', '', d)}"
RRECOMMENDS:${PN} += "python3-distutils"