Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 1 | # Copyright (C) 2017 Armin Kuster <akuster808@gmail.com> |
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 3 | |
| 4 | SUMARRY = "SCAP content for various platforms" |
| 5 | HOME_URL = "https://www.open-scap.org/security-policies/scap-security-guide/" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=97662e4486d9a1d09f358851d9f41a1a" |
| 7 | LICENSE = "LGPL-2.1" |
| 8 | |
| 9 | DEPENDS = "openscap-native python3 python3-pyyaml-native python3-jinja2-native libxml2-native" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 10 | |
| 11 | S = "${WORKDIR}/git" |
| 12 | |
| 13 | inherit cmake pkgconfig python3native |
| 14 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 15 | STAGING_OSCAP_BUILDDIR = "${TMPDIR}/work-shared/openscap/oscap-build-artifacts" |
| 16 | |
| 17 | OECMAKE_GENERATOR = "Unix Makefiles" |
| 18 | |
| 19 | EXTRA_OECMAKE += "-DENABLE_PYTHON_COVERAGE=OFF" |
| 20 | |
| 21 | B = "${S}/build" |
| 22 | |
Brad Bishop | 1fdf4aa | 2019-09-09 14:56:41 -0400 | [diff] [blame] | 23 | do_configure[depends] += "openscap-native:do_install" |
| 24 | |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 25 | do_configure_prepend () { |
| 26 | sed -i -e 's:NAMES\ sed:NAMES\ ${HOSTTOOLS_DIR}/sed:g' ${S}/CMakeLists.txt |
| 27 | sed -i -e 's:NAMES\ grep:NAMES\ ${HOSTTOOLS_DIR}/grep:g' ${S}/CMakeLists.txt |
| 28 | } |
| 29 | |
| 30 | FILES_${PN} += "${datadir}/xml" |
Brad Bishop | 1fdf4aa | 2019-09-09 14:56:41 -0400 | [diff] [blame] | 31 | |
| 32 | RDEPENDS_${PN} = "openscap" |