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 | |
| 22 | EXTRA_OECMAKE += "-DSSG_PRODUCT_CHROMIUM:BOOL=OFF" |
| 23 | EXTRA_OECMAKE += "-DSSG_PRODUCT_DEBIAN8:BOOL=OFF" |
| 24 | EXTRA_OECMAKE += "-DSSG_PRODUCT_FEDORA:BOOL=OFF" |
| 25 | EXTRA_OECMAKE += "-DSSG_PRODUCT_FIREFOX:BOOL=OFF" |
| 26 | EXTRA_OECMAKE += "-DSSG_PRODUCT_JBOSS_EAP5:BOOL=OFF" |
| 27 | EXTRA_OECMAKE += "-DSSG_PRODUCT_JBOSS_FUSE6:BOOL=OFF" |
| 28 | EXTRA_OECMAKE += "-DSSG_PRODUCT_JRE:BOOL=OFF" |
| 29 | EXTRA_OECMAKE += "-DSSG_PRODUCT_OPENSUSE:BOOL=OFF" |
| 30 | EXTRA_OECMAKE += "-DSSG_PRODUCT_OSP7:BOOL=OFF" |
| 31 | EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEL5:BOOL=OFF" |
| 32 | EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEL6:BOOL=OFF" |
| 33 | EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEL7:BOOL=OFF" |
| 34 | EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEV3:BOOL=OFF" |
| 35 | EXTRA_OECMAKE += "-DSSG_PRODUCT_SUSE11:BOOL=OFF" |
| 36 | EXTRA_OECMAKE += "-DSSG_PRODUCT_SUSE12:BOOL=OFF" |
| 37 | EXTRA_OECMAKE += "-DSSG_PRODUCT_UBUNTU1404:BOOL=OFF" |
| 38 | EXTRA_OECMAKE += "-DSSG_PRODUCT_UBUNTU1604:BOOL=OFF" |
| 39 | EXTRA_OECMAKE += "-DSSG_PRODUCT_WRLINUX:BOOL=OFF" |
| 40 | EXTRA_OECMAKE += "-DSSG_PRODUCT_WEBMIN:BOOL=OFF" |
| 41 | |
| 42 | do_configure_prepend () { |
| 43 | sed -i -e 's:NAMES\ sed:NAMES\ ${HOSTTOOLS_DIR}/sed:g' ${S}/CMakeLists.txt |
| 44 | sed -i 's:/usr/share/openscap/:${STAGING_OSCAP_BUILDDIR}${datadir_native}/openscap/:g' ${S}/cmake/SSGCommon.cmake |
| 45 | } |
| 46 | |
| 47 | do_compile () { |
| 48 | cd ${B} |
| 49 | make openembedded |
| 50 | } |
| 51 | |
| 52 | do_install () { |
| 53 | cd ${B} |
| 54 | make DESTDIR=${D} install |
| 55 | } |
| 56 | FILES_${PN} += "${datadir}/xml" |
| 57 | RDEPNEDS_${PN} = "openscap" |