diff options
author | Armin Kuster <akuster808@gmail.com> | 2018-10-28 01:07:32 +0100 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-10-31 09:02:21 -0700 |
commit | d32ae3cb832e002976aeaa12c8a8d61fd52379d2 (patch) | |
tree | 801992219f03400c506810350b19fda43f6858f5 | |
parent | af173c0440613f15db584270b83b9a41592f79cd (diff) | |
download | meta-security-d32ae3cb832e002976aeaa12c8a8d61fd52379d2.tar.gz |
fail2ban: add ptest
Signed-off-by: Armin Kuster <akuster808@gmail.com>
4 files changed, 15 insertions, 1 deletions
diff --git a/recipes-security/fail2ban/files/run-ptest b/recipes-security/fail2ban/files/run-ptest new file mode 100644 index 0000000..9f6aebe --- /dev/null +++ b/recipes-security/fail2ban/files/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | ##PYTHON## fail2ban-testcases | ||
diff --git a/recipes-security/fail2ban/python-fail2ban.inc b/recipes-security/fail2ban/python-fail2ban.inc index 0b88f83..9245f17 100644 --- a/recipes-security/fail2ban/python-fail2ban.inc +++ b/recipes-security/fail2ban/python-fail2ban.inc | |||
@@ -14,9 +14,10 @@ SRC_URI = " \ | |||
14 | git://github.com/fail2ban/fail2ban.git;branch=0.11 \ | 14 | git://github.com/fail2ban/fail2ban.git;branch=0.11 \ |
15 | file://initd \ | 15 | file://initd \ |
16 | file://fail2ban_setup.py \ | 16 | file://fail2ban_setup.py \ |
17 | file://run-ptest \ | ||
17 | " | 18 | " |
18 | 19 | ||
19 | inherit update-rc.d | 20 | inherit update-rc.d ptest |
20 | 21 | ||
21 | S = "${WORKDIR}/git" | 22 | S = "${WORKDIR}/git" |
22 | 23 | ||
@@ -35,6 +36,12 @@ do_install_append () { | |||
35 | chown -R root:root ${D}/${bindir} | 36 | chown -R root:root ${D}/${bindir} |
36 | } | 37 | } |
37 | 38 | ||
39 | do_install_ptest_append () { | ||
40 | install -d ${D}${PTEST_PATH} | ||
41 | sed -i -e 's/##PYTHON##/${PYTHON_PN}/g' ${D}${PTEST_PATH}/run-ptest | ||
42 | install -D ${S}/bin/fail2ban-testcases ${D}${PTEST_PATH} | ||
43 | } | ||
44 | |||
38 | FILES_${PN} += "/run" | 45 | FILES_${PN} += "/run" |
39 | 46 | ||
40 | INSANE_SKIP_${PN}_append = "already-stripped" | 47 | INSANE_SKIP_${PN}_append = "already-stripped" |
diff --git a/recipes-security/fail2ban/python-fail2ban_0.10.3.1.bb b/recipes-security/fail2ban/python-fail2ban_0.10.3.1.bb index 70c3bd9..17a7dd8 100644 --- a/recipes-security/fail2ban/python-fail2ban_0.10.3.1.bb +++ b/recipes-security/fail2ban/python-fail2ban_0.10.3.1.bb | |||
@@ -1,2 +1,4 @@ | |||
1 | inherit setuptools | 1 | inherit setuptools |
2 | require python-fail2ban.inc | 2 | require python-fail2ban.inc |
3 | |||
4 | RDEPENDS_${PN}-ptest = "python python-modules python-fail2ban" | ||
diff --git a/recipes-security/fail2ban/python3-fail2ban_0.10.3.1.bb b/recipes-security/fail2ban/python3-fail2ban_0.10.3.1.bb index bdb4146..5c887e8 100644 --- a/recipes-security/fail2ban/python3-fail2ban_0.10.3.1.bb +++ b/recipes-security/fail2ban/python3-fail2ban_0.10.3.1.bb | |||
@@ -1,2 +1,4 @@ | |||
1 | inherit setuptools3 | 1 | inherit setuptools3 |
2 | require python-fail2ban.inc | 2 | require python-fail2ban.inc |
3 | |||
4 | RDEPENDS_${PN}-ptest = "python3-core python3-io python3-modules python3-fail2ban" | ||