Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [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 | SECTION = "security" |
| 4 | LICENSE = "LGPL-2.1" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;beginline=0;endline=1;md5=8eac08d22113880357ceb8e7c37f989f" |
| 6 | |
Andrew Geissler | b2fe863 | 2020-08-21 15:57:21 -0500 | [diff] [blame] | 7 | DEPENDS += "gperf-native" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 8 | |
Andrew Geissler | 8b13928 | 2021-03-05 15:22:30 -0600 | [diff] [blame] | 9 | SRCREV = "4bf70431a339a2886ab8c82e9a45378f30c6e6c7" |
Andrew Geissler | b2fe863 | 2020-08-21 15:57:21 -0500 | [diff] [blame] | 10 | |
| 11 | SRC_URI = "git://github.com/seccomp/libseccomp.git;branch=release-2.5 \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 12 | file://run-ptest \ |
Andrew Geissler | 8b13928 | 2021-03-05 15:22:30 -0600 | [diff] [blame] | 13 | " |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 14 | |
Andrew Geissler | b2fe863 | 2020-08-21 15:57:21 -0500 | [diff] [blame] | 15 | COMPATIBLE_HOST_riscv32 = "null" |
| 16 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 17 | S = "${WORKDIR}/git" |
| 18 | |
| 19 | inherit autotools-brokensep pkgconfig ptest |
| 20 | |
| 21 | PACKAGECONFIG ??= "" |
Andrew Geissler | b2fe863 | 2020-08-21 15:57:21 -0500 | [diff] [blame] | 22 | PACKAGECONFIG[python] = "--enable-python, --disable-python, python3" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 23 | |
Brad Bishop | 1fdf4aa | 2019-09-09 14:56:41 -0400 | [diff] [blame] | 24 | DISABLE_STATIC = "" |
| 25 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 26 | do_compile_ptest() { |
| 27 | oe_runmake -C tests check-build |
| 28 | } |
| 29 | |
| 30 | do_install_ptest() { |
| 31 | install -d ${D}${PTEST_PATH}/tests |
| 32 | install -d ${D}${PTEST_PATH}/tools |
| 33 | for file in $(find tests/* -executable -type f); do |
| 34 | install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tests |
| 35 | done |
| 36 | for file in $(find tests/*.tests -type f); do |
| 37 | install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tests |
| 38 | done |
| 39 | for file in $(find tools/* -executable -type f); do |
| 40 | install -m 744 ${S}/${file} ${D}/${PTEST_PATH}/tools |
| 41 | done |
| 42 | } |
| 43 | |
| 44 | FILES_${PN} = "${bindir} ${libdir}/${BPN}.so*" |
| 45 | FILES_${PN}-dbg += "${libdir}/${PN}/tests/.debug/* ${libdir}/${PN}/tools/.debug" |
| 46 | |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 47 | RDEPENDS_${PN}-ptest = "coreutils bash" |