blob: 27d3d869aff8c9226d4491042802e0d7d3c52f84 [file] [log] [blame]
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +05301# Copyright (C) 2017 Armin Kuster <akuster808@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4SUMARRY = "SCAP content for various platforms"
5HOME_URL = "https://www.open-scap.org/security-policies/scap-security-guide/"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=236e81befc8154d18c93c848185d7e52"
7LICENSE = "LGPL-2.1"
8
9DEPENDS = "openscap-native"
10
11SRCREV = "423d9f40021a03abd018bef7818a3a9fe91a083c"
12SRC_URI = "git://github.com/akuster/scap-security-guide.git;branch=oe;"
13
14inherit cmake
15
16PARALLEL_MAKE = ""
17
18S = "${WORKDIR}/git"
19
20STAGING_OSCAP_BUILDDIR = "${TMPDIR}/work-shared/openscap/oscap-build-artifacts"
21
Brad Bishop19323692019-04-05 15:28:33 -040022OECMAKE_GENERATOR = "Unix Makefiles"
23
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +053024EXTRA_OECMAKE += "-DSSG_PRODUCT_CHROMIUM:BOOL=OFF"
25EXTRA_OECMAKE += "-DSSG_PRODUCT_DEBIAN8:BOOL=OFF"
26EXTRA_OECMAKE += "-DSSG_PRODUCT_FEDORA:BOOL=OFF"
27EXTRA_OECMAKE += "-DSSG_PRODUCT_FIREFOX:BOOL=OFF"
28EXTRA_OECMAKE += "-DSSG_PRODUCT_JBOSS_EAP5:BOOL=OFF"
29EXTRA_OECMAKE += "-DSSG_PRODUCT_JBOSS_FUSE6:BOOL=OFF"
30EXTRA_OECMAKE += "-DSSG_PRODUCT_JRE:BOOL=OFF"
31EXTRA_OECMAKE += "-DSSG_PRODUCT_OPENSUSE:BOOL=OFF"
32EXTRA_OECMAKE += "-DSSG_PRODUCT_OSP7:BOOL=OFF"
33EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEL5:BOOL=OFF"
34EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEL6:BOOL=OFF"
35EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEL7:BOOL=OFF"
36EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEV3:BOOL=OFF"
37EXTRA_OECMAKE += "-DSSG_PRODUCT_SUSE11:BOOL=OFF"
38EXTRA_OECMAKE += "-DSSG_PRODUCT_SUSE12:BOOL=OFF"
39EXTRA_OECMAKE += "-DSSG_PRODUCT_UBUNTU1404:BOOL=OFF"
40EXTRA_OECMAKE += "-DSSG_PRODUCT_UBUNTU1604:BOOL=OFF"
41EXTRA_OECMAKE += "-DSSG_PRODUCT_WRLINUX:BOOL=OFF"
42EXTRA_OECMAKE += "-DSSG_PRODUCT_WEBMIN:BOOL=OFF"
43
44do_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
49do_compile () {
50 cd ${B}
51 make openembedded
52}
53
54do_install () {
55 cd ${B}
56 make DESTDIR=${D} install
57}
58FILES_${PN} += "${datadir}/xml"
59RDEPNEDS_${PN} = "openscap"