diff options
| author | Armin Kuster <akuster808@gmail.com> | 2021-07-29 16:31:12 -0700 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2021-08-01 08:47:08 -0700 |
| commit | 11a67b861af74d59ccfd609d6d943e966ccff731 (patch) | |
| tree | ce619cf42798050439a4c04ed471ed293f17ede4 /recipes-security/fail2ban/python3-fail2ban_0.11.2.bb | |
| parent | d3a484abf81fc196389480df89cf5c82d13e6381 (diff) | |
| download | meta-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.bb | 16 |
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 | ||
| 21 | S = "${WORKDIR}/git" | 21 | S = "${WORKDIR}/git" |
| 22 | 22 | ||
| 23 | do_compile_prepend () { | 23 | do_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 | ||
| 29 | do_install_append () { | 29 | do_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 | ||
| 36 | do_install_ptest_append () { | 36 | do_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 | ||
| 43 | FILES_${PN} += "/run" | 43 | FILES:${PN} += "/run" |
| 44 | 44 | ||
| 45 | INITSCRIPT_PACKAGES = "${PN}" | 45 | INITSCRIPT_PACKAGES = "${PN}" |
| 46 | INITSCRIPT_NAME = "fail2ban-server" | 46 | INITSCRIPT_NAME = "fail2ban-server" |
| 47 | INITSCRIPT_PARAMS = "defaults 25" | 47 | INITSCRIPT_PARAMS = "defaults 25" |
| 48 | 48 | ||
| 49 | INSANE_SKIP_${PN}_append = "already-stripped" | 49 | INSANE_SKIP:${PN}:append = "already-stripped" |
| 50 | 50 | ||
| 51 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog} iptables sqlite3 python3-core python3-pyinotify" | 51 | RDEPENDS:${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog} iptables sqlite3 python3-core python3-pyinotify" |
| 52 | RDEPENDS_${PN} += " python3-logging python3-fcntl python3-json" | 52 | RDEPENDS:${PN} += " python3-logging python3-fcntl python3-json" |
| 53 | RDEPENDS_${PN}-ptest = "python3-core python3-io python3-modules python3-fail2ban" | 53 | RDEPENDS:${PN}-ptest = "python3-core python3-io python3-modules python3-fail2ban" |
