diff options
Diffstat (limited to 'recipes-security/libseccomp/libseccomp_2.4.3.bb')
| -rw-r--r-- | recipes-security/libseccomp/libseccomp_2.4.3.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-security/libseccomp/libseccomp_2.4.3.bb b/recipes-security/libseccomp/libseccomp_2.4.3.bb new file mode 100644 index 0000000..9ca41e6 --- /dev/null +++ b/recipes-security/libseccomp/libseccomp_2.4.3.bb | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | SUMMARY = "interface to seccomp filtering mechanism" | ||
| 2 | DESCRIPTION = "The libseccomp library provides and easy to use, platform independent,interface to the Linux Kernel's syscall filtering mechanism: seccomp." | ||
| 3 | SECTION = "security" | ||
| 4 | LICENSE = "LGPL-2.1" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;beginline=0;endline=1;md5=8eac08d22113880357ceb8e7c37f989f" | ||
| 6 | |||
| 7 | SRCREV = "1dde9d94e0848e12da20602ca38032b91d521427" | ||
| 8 | |||
| 9 | SRC_URI = "git://github.com/seccomp/libseccomp.git;branch=release-2.4 \ | ||
| 10 | file://run-ptest \ | ||
| 11 | " | ||
| 12 | |||
| 13 | S = "${WORKDIR}/git" | ||
| 14 | |||
| 15 | inherit autotools-brokensep pkgconfig ptest | ||
| 16 | |||
| 17 | PACKAGECONFIG ??= "" | ||
| 18 | PACKAGECONFIG[python] = "--enable-python, --disable-python, python" | ||
| 19 | |||
| 20 | DISABLE_STATIC = "" | ||
| 21 | |||
| 22 | do_compile_ptest() { | ||
| 23 | oe_runmake -C tests check-build | ||
| 24 | } | ||
| 25 | |||
| 26 | do_install_ptest() { | ||
| 27 | install -d ${D}${PTEST_PATH}/tests | ||
| 28 | install -d ${D}${PTEST_PATH}/tools | ||
| 29 | for file in $(find tests/* -executable -type f); do | ||
| 30 | install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tests | ||
| 31 | done | ||
| 32 | for file in $(find tests/*.tests -type f); do | ||
| 33 | install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tests | ||
| 34 | done | ||
| 35 | for file in $(find tools/* -executable -type f); do | ||
| 36 | install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tools | ||
| 37 | done | ||
| 38 | } | ||
| 39 | |||
| 40 | FILES_${PN} = "${bindir} ${libdir}/${BPN}.so*" | ||
| 41 | FILES_${PN}-dbg += "${libdir}/${PN}/tests/.debug/* ${libdir}/${PN}/tools/.debug" | ||
| 42 | |||
| 43 | RDEPENDS_${PN}-ptest = "bash" | ||
