summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libseccomp/libseccomp_2.5.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/libseccomp/libseccomp_2.5.1.bb')
-rw-r--r--meta/recipes-support/libseccomp/libseccomp_2.5.1.bb49
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 @@
1SUMMARY = "interface to seccomp filtering mechanism"
2DESCRIPTION = "The libseccomp library provides and easy to use, platform independent,interface to the Linux Kernel's syscall filtering mechanism: seccomp."
3SECTION = "security"
4LICENSE = "LGPL-2.1"
5LIC_FILES_CHKSUM = "file://LICENSE;beginline=0;endline=1;md5=8eac08d22113880357ceb8e7c37f989f"
6
7DEPENDS += "gperf-native"
8
9SRCREV = "4bf70431a339a2886ab8c82e9a45378f30c6e6c7"
10
11SRC_URI = "git://github.com/seccomp/libseccomp.git;branch=release-2.5 \
12 file://run-ptest \
13 "
14
15COMPATIBLE_HOST_riscv32 = "null"
16
17S = "${WORKDIR}/git"
18
19inherit autotools-brokensep pkgconfig ptest features_check
20
21REQUIRED_DISTRO_FEATURES = "seccomp"
22
23PACKAGECONFIG ??= ""
24PACKAGECONFIG[python] = "--enable-python, --disable-python, python3"
25
26DISABLE_STATIC = ""
27
28do_compile_ptest() {
29 oe_runmake -C tests check-build
30}
31
32do_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
46FILES_${PN} = "${bindir} ${libdir}/${BPN}.so*"
47FILES_${PN}-dbg += "${libdir}/${PN}/tests/.debug/* ${libdir}/${PN}/tools/.debug"
48
49RDEPENDS_${PN}-ptest = "coreutils bash"