summaryrefslogtreecommitdiffstats
path: root/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2021-07-29 16:31:12 -0700
committerArmin Kuster <akuster808@gmail.com>2021-08-01 08:47:08 -0700
commit11a67b861af74d59ccfd609d6d943e966ccff731 (patch)
treece619cf42798050439a4c04ed471ed293f17ede4 /recipes-security/fail2ban/python3-fail2ban_0.11.2.bb
parentd3a484abf81fc196389480df89cf5c82d13e6381 (diff)
downloadmeta-security-11a67b861af74d59ccfd609d6d943e966ccff731.tar.gz
meta-security: Convert to new override syntax
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security/fail2ban/python3-fail2ban_0.11.2.bb')
-rw-r--r--recipes-security/fail2ban/python3-fail2ban_0.11.2.bb16
1 files changed, 8 insertions, 8 deletions
diff --git a/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb b/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb
index b480c76..ed75a0e 100644
--- a/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb
+++ b/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb
@@ -20,34 +20,34 @@ inherit update-rc.d ptest setuptools3
20 20
21S = "${WORKDIR}/git" 21S = "${WORKDIR}/git"
22 22
23do_compile_prepend () { 23do_compile:prepend () {
24 cp ${WORKDIR}/fail2ban_setup.py ${S}/setup.py 24 cp ${WORKDIR}/fail2ban_setup.py ${S}/setup.py
25 cd ${S} 25 cd ${S}
26 ./fail2ban-2to3 26 ./fail2ban-2to3
27} 27}
28 28
29do_install_append () { 29do_install:append () {
30 install -d ${D}/${sysconfdir}/fail2ban 30 install -d ${D}/${sysconfdir}/fail2ban
31 install -d ${D}/${sysconfdir}/init.d 31 install -d ${D}/${sysconfdir}/init.d
32 install -m 0755 ${WORKDIR}/initd ${D}${sysconfdir}/init.d/fail2ban-server 32 install -m 0755 ${WORKDIR}/initd ${D}${sysconfdir}/init.d/fail2ban-server
33 chown -R root:root ${D}/${bindir} 33 chown -R root:root ${D}/${bindir}
34} 34}
35 35
36do_install_ptest_append () { 36do_install_ptest:append () {
37 install -d ${D}${PTEST_PATH} 37 install -d ${D}${PTEST_PATH}
38 install -d ${D}${PTEST_PATH}/bin 38 install -d ${D}${PTEST_PATH}/bin
39 sed -i -e 's/##PYTHON##/${PYTHON_PN}/g' ${D}${PTEST_PATH}/run-ptest 39 sed -i -e 's/##PYTHON##/${PYTHON_PN}/g' ${D}${PTEST_PATH}/run-ptest
40 install -D ${S}/bin/* ${D}${PTEST_PATH}/bin 40 install -D ${S}/bin/* ${D}${PTEST_PATH}/bin
41} 41}
42 42
43FILES_${PN} += "/run" 43FILES:${PN} += "/run"
44 44
45INITSCRIPT_PACKAGES = "${PN}" 45INITSCRIPT_PACKAGES = "${PN}"
46INITSCRIPT_NAME = "fail2ban-server" 46INITSCRIPT_NAME = "fail2ban-server"
47INITSCRIPT_PARAMS = "defaults 25" 47INITSCRIPT_PARAMS = "defaults 25"
48 48
49INSANE_SKIP_${PN}_append = "already-stripped" 49INSANE_SKIP:${PN}:append = "already-stripped"
50 50
51RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog} iptables sqlite3 python3-core python3-pyinotify" 51RDEPENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog} iptables sqlite3 python3-core python3-pyinotify"
52RDEPENDS_${PN} += " python3-logging python3-fcntl python3-json" 52RDEPENDS:${PN} += " python3-logging python3-fcntl python3-json"
53RDEPENDS_${PN}-ptest = "python3-core python3-io python3-modules python3-fail2ban" 53RDEPENDS:${PN}-ptest = "python3-core python3-io python3-modules python3-fail2ban"