Make default

Signed-off-by: Armin Kuster <akuster...@gmail.com>
---
 .../scap-security-guide_0.1.67.bb             | 37 +++++++++++++++++--
 1 file 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 @@
+# Copyright (C) 2017 - 2023 Armin Kuster  <akuster...@gmail.com>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
 SUMARRY = "SCAP content for various platforms, upstream version"
+HOME_URL = "https://www.open-scap.org/security-policies/scap-security-guide/";
+LIC_FILES_CHKSUM = "file://LICENSE;md5=9bfa86579213cb4c6adaffface6b2820"
+LICENSE = "BSD-3-Clause"
 
-SRCREV = "ee688320c4478ccb0d4dbefbfbd2f10df6261e17"
+SRCREV = "dad85502ce8da722a6afc391346c41cee61e90a9"
 SRC_URI = 
"git://github.com/ComplianceAsCode/content.git;branch=master;protocol=https"
 
-DEFAULT_PREFERENCE = "-1"
 
-require scap-security-guide.inc
+DEPENDS = "openscap-native python3-pyyaml-native python3-jinja2-native 
libxml2-native expat-native coreutils-native"
+
+S = "${WORKDIR}/git"
+
+inherit cmake pkgconfig python3native python3targetconfig
+
+STAGING_OSCAP_BUILDDIR = "${TMPDIR}/work-shared/openscap/oscap-build-artifacts"
+export OSCAP_CPE_PATH="${STAGING_OSCAP_BUILDDIR}${datadir_native}/openscap/cpe"
+export 
OSCAP_SCHEMA_PATH="${STAGING_OSCAP_BUILDDIR}${datadir_native}/openscap/schemas"
+export 
OSCAP_XSLT_PATH="${STAGING_OSCAP_BUILDDIR}${datadir_native}/openscap/xsl"
+
+OECMAKE_GENERATOR = "Unix Makefiles"
+
+EXTRA_OECMAKE += "-DENABLE_PYTHON_COVERAGE=OFF -DSSG_PRODUCT_DEFAULT=OFF 
-DSSG_PRODUCT_EXAMPLE=ON"
+
+B = "${S}/build"
+
+do_configure[depends] += "openscap-native:do_install"
+
+do_configure:prepend () {
+    sed -i -e 's:NAMES\ sed:NAMES\ ${HOSTTOOLS_DIR}/sed:g' ${S}/CMakeLists.txt
+    sed -i -e 's:NAMES\ grep:NAMES\ ${HOSTTOOLS_DIR}/grep:g' 
${S}/CMakeLists.txt
+}
+
+FILES:${PN} += "${datadir}/xml"
+
+RDEPENDS:${PN} = "openscap"
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60255): https://lists.yoctoproject.org/g/yocto/message/60255
Mute This Topic: https://lists.yoctoproject.org/mt/99480136/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to