diff options
Diffstat (limited to 'recipes-security/fail2ban/python3-fail2ban_0.10.4.0.bb')
-rw-r--r-- | recipes-security/fail2ban/python3-fail2ban_0.10.4.0.bb | 53 |
1 files changed, 48 insertions, 5 deletions
diff --git a/recipes-security/fail2ban/python3-fail2ban_0.10.4.0.bb b/recipes-security/fail2ban/python3-fail2ban_0.10.4.0.bb index 23ef027..7a278b4 100644 --- a/recipes-security/fail2ban/python3-fail2ban_0.10.4.0.bb +++ b/recipes-security/fail2ban/python3-fail2ban_0.10.4.0.bb | |||
@@ -1,8 +1,51 @@ | |||
1 | inherit setuptools3 | 1 | SUMMARY = "Daemon to ban hosts that cause multiple authentication errors." |
2 | require python-fail2ban.inc | 2 | DESCRIPTION = "Fail2Ban scans log files like /var/log/auth.log and bans IP addresses having too \ |
3 | many failed login attempts. It does this by updating system firewall rules to reject new \ | ||
4 | connections from those IP addresses, for a configurable amount of time. Fail2Ban comes \ | ||
5 | out-of-the-box ready to read many standard log files, such as those for sshd and Apache, \ | ||
6 | and is easy to configure to read any log file you choose, for any error you choose." | ||
7 | HOMEPAGE = "http://www.fail2ban.org" | ||
3 | 8 | ||
4 | RDEPENDS_${PN}-ptest = "python3-core python3-io python3-modules python3-fail2ban" | 9 | LICENSE = "GPL-2.0" |
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=ecabc31e90311da843753ba772885d9f" | ||
5 | 11 | ||
6 | SRC_URI += " \ | 12 | SRCREV ="822f8adb6a59c37698232580cb66236b51c2721f" |
7 | file://0001-To-fix-build-error-of-xrang.patch \ | 13 | SRC_URI = " \ |
14 | git://github.com/fail2ban/fail2ban.git;branch=0.11 \ | ||
15 | file://initd \ | ||
16 | file://fail2ban_setup.py \ | ||
17 | file://run-ptest \ | ||
18 | file://0001-fail2ban-update-to-work-with-python-3.7.patch \ | ||
8 | " | 19 | " |
20 | |||
21 | inherit setuptools3 update-rc.d ptest | ||
22 | |||
23 | S = "${WORKDIR}/git" | ||
24 | |||
25 | INITSCRIPT_PACKAGES = "${PN}" | ||
26 | INITSCRIPT_NAME = "fail2ban-server" | ||
27 | INITSCRIPT_PARAMS = "defaults 25" | ||
28 | |||
29 | do_compile_prepend () { | ||
30 | cp ${WORKDIR}/fail2ban_setup.py ${S}/setup.py | ||
31 | } | ||
32 | |||
33 | do_install_append () { | ||
34 | install -d ${D}/${sysconfdir}/fail2ban | ||
35 | install -d ${D}/${sysconfdir}/init.d | ||
36 | install -m 0755 ${WORKDIR}/initd ${D}${sysconfdir}/init.d/fail2ban-server | ||
37 | chown -R root:root ${D}/${bindir} | ||
38 | } | ||
39 | |||
40 | do_install_ptest_append () { | ||
41 | install -d ${D}${PTEST_PATH} | ||
42 | sed -i -e 's/##PYTHON##/${PYTHON_PN}/g' ${D}${PTEST_PATH}/run-ptest | ||
43 | install -D ${S}/bin/fail2ban-testcases ${D}${PTEST_PATH} | ||
44 | } | ||
45 | |||
46 | FILES_${PN} += "/run" | ||
47 | |||
48 | INSANE_SKIP_${PN}_append = "already-stripped" | ||
49 | |||
50 | RDEPENDS_${PN} = "sysklogd iptables sqlite3 python3-core python3-pyinotify" | ||
51 | RDEPENDS_${PN}-ptest = "python3-core python3-io python3-modules python3-fail2ban" | ||