blob: 0c651f16fe24ca53322096eb2215bf9f6284cd00 [file] [log] [blame]
Brad Bishop26bdd442019-08-16 17:08:17 -04001# Copyright (C) 2017 Armin Kuster <akuster808@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4SUMARRY = "SCAP content for various platforms"
5HOME_URL = "https://www.open-scap.org/security-policies/scap-security-guide/"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=97662e4486d9a1d09f358851d9f41a1a"
7LICENSE = "LGPL-2.1"
8
Andrew Geisslerd1d22e62020-10-16 10:14:32 -05009DEPENDS = "openscap-native python3 python3-pyyaml-native python3-jinja2-native libxml2-native expat-native"
Brad Bishop26bdd442019-08-16 17:08:17 -040010
11S = "${WORKDIR}/git"
12
Andrew Geissler8b139282021-03-05 15:22:30 -060013inherit cmake pkgconfig python3native python3targetconfig
Brad Bishop26bdd442019-08-16 17:08:17 -040014
Brad Bishop26bdd442019-08-16 17:08:17 -040015STAGING_OSCAP_BUILDDIR = "${TMPDIR}/work-shared/openscap/oscap-build-artifacts"
Andrew Geissler1fe918a2020-05-15 14:16:47 -050016export OSCAP_CPE_PATH="${STAGING_OSCAP_BUILDDIR}${datadir_native}/openscap/cpe"
17export OSCAP_SCHEMA_PATH="${STAGING_OSCAP_BUILDDIR}${datadir_native}/openscap/schemas"
18export OSCAP_XSLT_PATH="${STAGING_OSCAP_BUILDDIR}${datadir_native}/openscap/xsl"
Brad Bishop26bdd442019-08-16 17:08:17 -040019
20OECMAKE_GENERATOR = "Unix Makefiles"
21
22EXTRA_OECMAKE += "-DENABLE_PYTHON_COVERAGE=OFF"
23
24B = "${S}/build"
25
Brad Bishop1fdf4aa2019-09-09 14:56:41 -040026do_configure[depends] += "openscap-native:do_install"
27
Patrick Williams213cb262021-08-07 19:21:33 -050028do_configure:prepend () {
Brad Bishop26bdd442019-08-16 17:08:17 -040029 sed -i -e 's:NAMES\ sed:NAMES\ ${HOSTTOOLS_DIR}/sed:g' ${S}/CMakeLists.txt
30 sed -i -e 's:NAMES\ grep:NAMES\ ${HOSTTOOLS_DIR}/grep:g' ${S}/CMakeLists.txt
31}
32
Patrick Williams213cb262021-08-07 19:21:33 -050033FILES:${PN} += "${datadir}/xml"
Brad Bishop1fdf4aa2019-09-09 14:56:41 -040034
Patrick Williams213cb262021-08-07 19:21:33 -050035RDEPENDS:${PN} = "openscap"