Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [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=236e81befc8154d18c93c848185d7e52" |
| 7 | LICENSE = "LGPL-2.1" |
| 8 | |
| 9 | DEPENDS = "openscap-native" |
| 10 | |
| 11 | SRCREV = "423d9f40021a03abd018bef7818a3a9fe91a083c" |
| 12 | SRC_URI = "git://github.com/akuster/scap-security-guide.git;branch=oe;" |
| 13 | |
| 14 | inherit cmake |
| 15 | |
| 16 | PARALLEL_MAKE = "" |
| 17 | |
| 18 | S = "${WORKDIR}/git" |
| 19 | |
| 20 | STAGING_OSCAP_BUILDDIR = "${TMPDIR}/work-shared/openscap/oscap-build-artifacts" |
| 21 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 22 | OECMAKE_GENERATOR = "Unix Makefiles" |
| 23 | |
Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 24 | EXTRA_OECMAKE += "-DSSG_PRODUCT_CHROMIUM:BOOL=OFF" |
| 25 | EXTRA_OECMAKE += "-DSSG_PRODUCT_DEBIAN8:BOOL=OFF" |
| 26 | EXTRA_OECMAKE += "-DSSG_PRODUCT_FEDORA:BOOL=OFF" |
| 27 | EXTRA_OECMAKE += "-DSSG_PRODUCT_FIREFOX:BOOL=OFF" |
| 28 | EXTRA_OECMAKE += "-DSSG_PRODUCT_JBOSS_EAP5:BOOL=OFF" |
| 29 | EXTRA_OECMAKE += "-DSSG_PRODUCT_JBOSS_FUSE6:BOOL=OFF" |
| 30 | EXTRA_OECMAKE += "-DSSG_PRODUCT_JRE:BOOL=OFF" |
| 31 | EXTRA_OECMAKE += "-DSSG_PRODUCT_OPENSUSE:BOOL=OFF" |
| 32 | EXTRA_OECMAKE += "-DSSG_PRODUCT_OSP7:BOOL=OFF" |
| 33 | EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEL5:BOOL=OFF" |
| 34 | EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEL6:BOOL=OFF" |
| 35 | EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEL7:BOOL=OFF" |
| 36 | EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEV3:BOOL=OFF" |
| 37 | EXTRA_OECMAKE += "-DSSG_PRODUCT_SUSE11:BOOL=OFF" |
| 38 | EXTRA_OECMAKE += "-DSSG_PRODUCT_SUSE12:BOOL=OFF" |
| 39 | EXTRA_OECMAKE += "-DSSG_PRODUCT_UBUNTU1404:BOOL=OFF" |
| 40 | EXTRA_OECMAKE += "-DSSG_PRODUCT_UBUNTU1604:BOOL=OFF" |
| 41 | EXTRA_OECMAKE += "-DSSG_PRODUCT_WRLINUX:BOOL=OFF" |
| 42 | EXTRA_OECMAKE += "-DSSG_PRODUCT_WEBMIN:BOOL=OFF" |
| 43 | |
| 44 | do_configure_prepend () { |
| 45 | sed -i -e 's:NAMES\ sed:NAMES\ ${HOSTTOOLS_DIR}/sed:g' ${S}/CMakeLists.txt |
| 46 | sed -i 's:/usr/share/openscap/:${STAGING_OSCAP_BUILDDIR}${datadir_native}/openscap/:g' ${S}/cmake/SSGCommon.cmake |
| 47 | } |
| 48 | |
| 49 | do_compile () { |
| 50 | cd ${B} |
| 51 | make openembedded |
| 52 | } |
| 53 | |
| 54 | do_install () { |
| 55 | cd ${B} |
| 56 | make DESTDIR=${D} install |
| 57 | } |
| 58 | FILES_${PN} += "${datadir}/xml" |
| 59 | RDEPNEDS_${PN} = "openscap" |