diff options
Diffstat (limited to 'dynamic-layers/meta-python')
| -rw-r--r-- | dynamic-layers/meta-python/recipes-security/fail2ban/python3-fail2ban_1.0.2.bb | 10 | 
1 files changed, 10 insertions, 0 deletions
| 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 9379494..81fa00d 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 | |||
| @@ -20,6 +20,9 @@ SRC_URI = "git://github.com/fail2ban/fail2ban.git;branch=master;protocol=https \ | |||
| 20 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" | 20 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" | 
| 21 | 21 | ||
| 22 | inherit update-rc.d ptest setuptools3_legacy | 22 | inherit update-rc.d ptest setuptools3_legacy | 
| 23 | inherit systemd | ||
| 24 | |||
| 25 | SYSTEMD_SERVICE:${PN} = "fail2ban.service" | ||
| 23 | 26 | ||
| 24 | S = "${WORKDIR}/git" | 27 | S = "${WORKDIR}/git" | 
| 25 | 28 | ||
| @@ -38,6 +41,12 @@ do_install:append () { | |||
| 38 | install -d ${D}/${sysconfdir}/fail2ban | 41 | install -d ${D}/${sysconfdir}/fail2ban | 
| 39 | install -d ${D}/${sysconfdir}/init.d | 42 | install -d ${D}/${sysconfdir}/init.d | 
| 40 | install -m 0755 ${WORKDIR}/initd ${D}${sysconfdir}/init.d/fail2ban-server | 43 | install -m 0755 ${WORKDIR}/initd ${D}${sysconfdir}/init.d/fail2ban-server | 
| 44 | |||
| 45 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
| 46 | install -d ${D}${systemd_system_unitdir} | ||
| 47 | install -m 0644 ${B}/fail2ban.service ${D}${systemd_system_unitdir} | ||
| 48 | fi | ||
| 49 | |||
| 41 | chown -R root:root ${D}/${bindir} | 50 | chown -R root:root ${D}/${bindir} | 
| 42 | rm -rf ${D}/run | 51 | rm -rf ${D}/run | 
| 43 | } | 52 | } | 
| @@ -60,3 +69,4 @@ INSANE_SKIP:${PN}:append = "already-stripped" | |||
| 60 | RDEPENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog} iptables sqlite3 python3-core python3-pyinotify" | 69 | RDEPENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog} iptables sqlite3 python3-core python3-pyinotify" | 
| 61 | RDEPENDS:${PN} += " python3-logging python3-fcntl python3-json" | 70 | RDEPENDS:${PN} += " python3-logging python3-fcntl python3-json" | 
| 62 | RDEPENDS:${PN}-ptest = "python3-core python3-io python3-modules python3-fail2ban" | 71 | RDEPENDS:${PN}-ptest = "python3-core python3-io python3-modules python3-fail2ban" | 
| 72 | |||
