Andrew Geissler | c926e17 | 2021-05-07 16:11:35 -0500 | [diff] [blame^] | 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 | HOMEPAGE = "https://github.com/seccomp/libseccomp" |
| 4 | SECTION = "security" |
| 5 | LICENSE = "LGPL-2.1" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;beginline=0;endline=1;md5=8eac08d22113880357ceb8e7c37f989f" |
| 7 | |
| 8 | DEPENDS += "gperf-native" |
| 9 | |
| 10 | SRCREV = "4bf70431a339a2886ab8c82e9a45378f30c6e6c7" |
| 11 | |
| 12 | SRC_URI = "git://github.com/seccomp/libseccomp.git;branch=release-2.5 \ |
| 13 | file://run-ptest \ |
| 14 | " |
| 15 | |
| 16 | COMPATIBLE_HOST_riscv32 = "null" |
| 17 | |
| 18 | S = "${WORKDIR}/git" |
| 19 | |
| 20 | inherit autotools-brokensep pkgconfig ptest features_check |
| 21 | |
| 22 | REQUIRED_DISTRO_FEATURES = "seccomp" |
| 23 | |
| 24 | PACKAGECONFIG ??= "" |
| 25 | PACKAGECONFIG[python] = "--enable-python, --disable-python, python3" |
| 26 | |
| 27 | DISABLE_STATIC = "" |
| 28 | |
| 29 | do_compile_ptest() { |
| 30 | oe_runmake -C tests check-build |
| 31 | } |
| 32 | |
| 33 | do_install_ptest() { |
| 34 | install -d ${D}${PTEST_PATH}/tests |
| 35 | install -d ${D}${PTEST_PATH}/tools |
| 36 | for file in $(find tests/* -executable -type f); do |
| 37 | install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tests |
| 38 | done |
| 39 | for file in $(find tests/*.tests -type f); do |
| 40 | install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tests |
| 41 | done |
| 42 | for file in $(find tools/* -executable -type f); do |
| 43 | install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tools |
| 44 | done |
| 45 | # Overwrite libtool wrappers with real executables |
| 46 | for file in $(find tools/.libs/* -executable -type f); do |
| 47 | install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tools |
| 48 | done |
| 49 | } |
| 50 | |
| 51 | FILES_${PN} = "${bindir} ${libdir}/${BPN}.so*" |
| 52 | FILES_${PN}-dbg += "${libdir}/${PN}/tests/.debug/* ${libdir}/${PN}/tools/.debug" |
| 53 | |
| 54 | RDEPENDS_${PN}-ptest = "coreutils bash" |