summaryrefslogtreecommitdiffstats
path: root/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2021-02-28 22:32:03 +0000
committerArmin Kuster <akuster808@gmail.com>2021-03-02 11:56:27 -0800
commit6d810428600b84df6cd7f4342963fd3bb58aa73b (patch)
tree690d14b71f077b39b0a23f0a696f45bea6bcac0e /recipes-security/fail2ban/python3-fail2ban_0.11.2.bb
parent0085b2cda92ce15ef2db17b1d2d095252cd1d2c8 (diff)
downloadmeta-security-6d810428600b84df6cd7f4342963fd3bb58aa73b.tar.gz
python3-fail2ban: update to 0.11.2
drop hard python3 patch and create it dufing compile. 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.bb52
1 files changed, 52 insertions, 0 deletions
diff --git a/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb b/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb
new file mode 100644
index 0000000..6767d80
--- /dev/null
+++ b/recipes-security/fail2ban/python3-fail2ban_0.11.2.bb
@@ -0,0 +1,52 @@
1SUMMARY = "Daemon to ban hosts that cause multiple authentication errors."
2DESCRIPTION = "Fail2Ban scans log files like /var/log/auth.log and bans IP addresses having too \
3many failed login attempts. It does this by updating system firewall rules to reject new \
4connections from those IP addresses, for a configurable amount of time. Fail2Ban comes \
5out-of-the-box ready to read many standard log files, such as those for sshd and Apache, \
6and is easy to configure to read any log file you choose, for any error you choose."
7HOMEPAGE = "http://www.fail2ban.org"
8
9LICENSE = "GPL-2.0"
10LIC_FILES_CHKSUM = "file://COPYING;md5=ecabc31e90311da843753ba772885d9f"
11
12SRCREV ="eea1881b734b73599a21df2bfbe58b11f78d0a46"
13SRC_URI = " git://github.com/fail2ban/fail2ban.git;branch=0.11 \
14 file://initd \
15 file://fail2ban_setup.py \
16 file://run-ptest \
17"
18
19inherit update-rc.d ptest setuptools3
20
21S = "${WORKDIR}/git"
22
23do_compile_prepend () {
24 cp ${WORKDIR}/fail2ban_setup.py ${S}/setup.py
25 cd ${S}
26 ./fail2ban-2to3
27}
28
29do_install_append () {
30 install -d ${D}/${sysconfdir}/fail2ban
31 install -d ${D}/${sysconfdir}/init.d
32 install -m 0755 ${WORKDIR}/initd ${D}${sysconfdir}/init.d/fail2ban-server
33 chown -R root:root ${D}/${bindir}
34}
35
36do_install_ptest_append () {
37 install -d ${D}${PTEST_PATH}
38 sed -i -e 's/##PYTHON##/${PYTHON_PN}/g' ${D}${PTEST_PATH}/run-ptest
39 install -D ${S}/fail2ban-testcases-all-python3 ${D}${PTEST_PATH}
40}
41
42FILES_${PN} += "/run"
43
44INITSCRIPT_PACKAGES = "${PN}"
45INITSCRIPT_NAME = "fail2ban-server"
46INITSCRIPT_PARAMS = "defaults 25"
47
48INSANE_SKIP_${PN}_append = "already-stripped"
49
50RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_base-utils-syslog} iptables sqlite3 python3-core python3-pyinotify"
51RDEPENDS_${PN} += " python3-logging python3-fcntl python3-json"
52RDEPENDS_${PN}-ptest = "python3-core python3-io python3-modules python3-fail2ban"