diff options
Diffstat (limited to 'meta/recipes-support/libseccomp/libseccomp_2.5.1.bb')
| -rw-r--r-- | meta/recipes-support/libseccomp/libseccomp_2.5.1.bb | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-support/libseccomp/libseccomp_2.5.1.bb b/meta/recipes-support/libseccomp/libseccomp_2.5.1.bb new file mode 100644 index 0000000000..667d5da824 --- /dev/null +++ b/meta/recipes-support/libseccomp/libseccomp_2.5.1.bb | |||
| @@ -0,0 +1,49 @@ | |||
| 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 | DEPENDS += "gperf-native" | ||
| 8 | |||
| 9 | SRCREV = "4bf70431a339a2886ab8c82e9a45378f30c6e6c7" | ||
| 10 | |||
| 11 | SRC_URI = "git://github.com/seccomp/libseccomp.git;branch=release-2.5 \ | ||
| 12 | file://run-ptest \ | ||
| 13 | " | ||
| 14 | |||
| 15 | COMPATIBLE_HOST_riscv32 = "null" | ||
| 16 | |||
| 17 | S = "${WORKDIR}/git" | ||
| 18 | |||
| 19 | inherit autotools-brokensep pkgconfig ptest features_check | ||
| 20 | |||
| 21 | REQUIRED_DISTRO_FEATURES = "seccomp" | ||
| 22 | |||
| 23 | PACKAGECONFIG ??= "" | ||
| 24 | PACKAGECONFIG[python] = "--enable-python, --disable-python, python3" | ||
| 25 | |||
| 26 | DISABLE_STATIC = "" | ||
| 27 | |||
| 28 | do_compile_ptest() { | ||
| 29 | oe_runmake -C tests check-build | ||
| 30 | } | ||
| 31 | |||
| 32 | do_install_ptest() { | ||
| 33 | install -d ${D}${PTEST_PATH}/tests | ||
| 34 | install -d ${D}${PTEST_PATH}/tools | ||
| 35 | for file in $(find tests/* -executable -type f); do | ||
| 36 | install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tests | ||
| 37 | done | ||
| 38 | for file in $(find tests/*.tests -type f); do | ||
| 39 | install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tests | ||
| 40 | done | ||
| 41 | for file in $(find tools/* -executable -type f); do | ||
| 42 | install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tools | ||
| 43 | done | ||
| 44 | } | ||
| 45 | |||
| 46 | FILES_${PN} = "${bindir} ${libdir}/${BPN}.so*" | ||
| 47 | FILES_${PN}-dbg += "${libdir}/${PN}/tests/.debug/* ${libdir}/${PN}/tools/.debug" | ||
| 48 | |||
| 49 | RDEPENDS_${PN}-ptest = "coreutils bash" | ||
