diff options
author | Armin Kuster <akuster808@gmail.com> | 2018-10-28 00:22:40 +0100 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-10-31 09:02:21 -0700 |
commit | dd5b5c2753690b33ef12be2cf3959fc490807ee1 (patch) | |
tree | 1ee7207836dca6434db133a157020fc8099f710a | |
parent | e8f5ec707f6384eed1ecfd4b4efc3c6f91ad14f7 (diff) | |
download | meta-security-dd5b5c2753690b33ef12be2cf3959fc490807ee1.tar.gz |
tripwire: add ptest
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-security/tripwire/files/run-ptest | 3 | ||||
-rw-r--r-- | recipes-security/tripwire/tripwire_2.4.3.6.bb | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/recipes-security/tripwire/files/run-ptest b/recipes-security/tripwire/files/run-ptest new file mode 100644 index 0000000..aedfddc --- /dev/null +++ b/recipes-security/tripwire/files/run-ptest | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | ./twtest.pl | ||
diff --git a/recipes-security/tripwire/tripwire_2.4.3.6.bb b/recipes-security/tripwire/tripwire_2.4.3.6.bb index 465960f..59d1f35 100644 --- a/recipes-security/tripwire/tripwire_2.4.3.6.bb +++ b/recipes-security/tripwire/tripwire_2.4.3.6.bb | |||
@@ -16,11 +16,12 @@ SRC_URI = "\ | |||
16 | file://twcfg.txt \ | 16 | file://twcfg.txt \ |
17 | file://twinstall.sh \ | 17 | file://twinstall.sh \ |
18 | file://twpol-yocto.txt \ | 18 | file://twpol-yocto.txt \ |
19 | file://run-ptest \ | ||
19 | " | 20 | " |
20 | 21 | ||
21 | S = "${WORKDIR}/git" | 22 | S = "${WORKDIR}/git" |
22 | 23 | ||
23 | inherit autotools-brokensep update-rc.d | 24 | inherit autotools-brokensep update-rc.d ptest |
24 | 25 | ||
25 | INITSCRIPT_NAME = "tripwire" | 26 | INITSCRIPT_NAME = "tripwire" |
26 | INITSCRIPT_PARAMS = "start 40 S ." | 27 | INITSCRIPT_PARAMS = "start 40 S ." |
@@ -58,9 +59,15 @@ do_install () { | |||
58 | install -m 0644 ${WORKDIR}/tripwire.txt ${D}${docdir}/${BPN} | 59 | install -m 0644 ${WORKDIR}/tripwire.txt ${D}${docdir}/${BPN} |
59 | } | 60 | } |
60 | 61 | ||
62 | do_install_ptest_append () { | ||
63 | install -d ${D}${PTEST_PATH}/tests | ||
64 | cp -a ${S}/src/test-harness/* ${D}${PTEST_PATH} | ||
65 | } | ||
61 | 66 | ||
62 | FILES_${PN} += "${libdir} ${docdir}/${PN}/*" | 67 | FILES_${PN} += "${libdir} ${docdir}/${PN}/*" |
63 | FILES_${PN}-dbg += "${sysconfdir}/${PN}/.debug" | 68 | FILES_${PN}-dbg += "${sysconfdir}/${PN}/.debug" |
64 | FILES_${PN}-staticdev += "${localstatedir}/lib/${PN}/lib*.a" | 69 | FILES_${PN}-staticdev += "${localstatedir}/lib/${PN}/lib*.a" |
70 | FILES_${PN}-ptest += "${PTEST_PATH}/tests " | ||
65 | 71 | ||
66 | RDEPENDS_${PN} += " perl nano msmtp cronie" | 72 | RDEPENDS_${PN} += " perl nano msmtp cronie" |
73 | RDEPENDS_${PN}-ptest = " perl lib-perl" | ||