From 3f7d40b0fc92e4de3c008c8a0e1d26960d3f4085 Mon Sep 17 00:00:00 2001 From: Rasmus Villemoes Date: Wed, 4 Oct 2023 22:51:11 +0200 Subject: 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 Signed-off-by: Armin Kuster --- .../meta-python/recipes-security/fail2ban/python3-fail2ban_1.0.2.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dynamic-layers/meta-python/recipes-security/fail2ban/python3-fail2ban_1.0.2.bb b/dynamic-layers/meta-python/recipes-security/fail2ban/python3-fail2ban_1.0.2.bb index d64108a..68695f2 100644 --- a/dynamic-layers/meta-python/recipes-security/fail2ban/python3-fail2ban_1.0.2.bb +++ b/dynamic-layers/meta-python/recipes-security/fail2ban/python3-fail2ban_1.0.2.bb @@ -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" -- cgit v1.2.3-54-g00ecf