diff options
-rw-r--r-- | meta-security-compliance/recipes-openscap/scap-security-guide/scap-security-guide_0.1.67.bb | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/meta-security-compliance/recipes-openscap/scap-security-guide/scap-security-guide_0.1.67.bb b/meta-security-compliance/recipes-openscap/scap-security-guide/scap-security-guide_0.1.67.bb index af1ddf7..53ee03e 100644 --- a/meta-security-compliance/recipes-openscap/scap-security-guide/scap-security-guide_0.1.67.bb +++ b/meta-security-compliance/recipes-openscap/scap-security-guide/scap-security-guide_0.1.67.bb | |||
@@ -1,8 +1,39 @@ | |||
1 | # Copyright (C) 2017 - 2023 Armin Kuster <akuster808@gmail.com> | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
1 | SUMARRY = "SCAP content for various platforms, upstream version" | 4 | SUMARRY = "SCAP content for various platforms, upstream version" |
5 | HOME_URL = "https://www.open-scap.org/security-policies/scap-security-guide/" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=9bfa86579213cb4c6adaffface6b2820" | ||
7 | LICENSE = "BSD-3-Clause" | ||
2 | 8 | ||
3 | SRCREV = "ee688320c4478ccb0d4dbefbfbd2f10df6261e17" | 9 | SRCREV = "dad85502ce8da722a6afc391346c41cee61e90a9" |
4 | SRC_URI = "git://github.com/ComplianceAsCode/content.git;branch=master;protocol=https" | 10 | SRC_URI = "git://github.com/ComplianceAsCode/content.git;branch=master;protocol=https" |
5 | 11 | ||
6 | DEFAULT_PREFERENCE = "-1" | ||
7 | 12 | ||
8 | require scap-security-guide.inc | 13 | DEPENDS = "openscap-native python3-pyyaml-native python3-jinja2-native libxml2-native expat-native coreutils-native" |
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | inherit cmake pkgconfig python3native python3targetconfig | ||
18 | |||
19 | STAGING_OSCAP_BUILDDIR = "${TMPDIR}/work-shared/openscap/oscap-build-artifacts" | ||
20 | export OSCAP_CPE_PATH="${STAGING_OSCAP_BUILDDIR}${datadir_native}/openscap/cpe" | ||
21 | export OSCAP_SCHEMA_PATH="${STAGING_OSCAP_BUILDDIR}${datadir_native}/openscap/schemas" | ||
22 | export OSCAP_XSLT_PATH="${STAGING_OSCAP_BUILDDIR}${datadir_native}/openscap/xsl" | ||
23 | |||
24 | OECMAKE_GENERATOR = "Unix Makefiles" | ||
25 | |||
26 | EXTRA_OECMAKE += "-DENABLE_PYTHON_COVERAGE=OFF -DSSG_PRODUCT_DEFAULT=OFF -DSSG_PRODUCT_EXAMPLE=ON" | ||
27 | |||
28 | B = "${S}/build" | ||
29 | |||
30 | do_configure[depends] += "openscap-native:do_install" | ||
31 | |||
32 | do_configure:prepend () { | ||
33 | sed -i -e 's:NAMES\ sed:NAMES\ ${HOSTTOOLS_DIR}/sed:g' ${S}/CMakeLists.txt | ||
34 | sed -i -e 's:NAMES\ grep:NAMES\ ${HOSTTOOLS_DIR}/grep:g' ${S}/CMakeLists.txt | ||
35 | } | ||
36 | |||
37 | FILES:${PN} += "${datadir}/xml" | ||
38 | |||
39 | RDEPENDS:${PN} = "openscap" | ||