blob: 7fa417de43d2a8c9e3601117dc0337ea063f5328 [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
22EXTRA_OECMAKE += "-DSSG_PRODUCT_CHROMIUM:BOOL=OFF"
23EXTRA_OECMAKE += "-DSSG_PRODUCT_DEBIAN8:BOOL=OFF"
24EXTRA_OECMAKE += "-DSSG_PRODUCT_FEDORA:BOOL=OFF"
25EXTRA_OECMAKE += "-DSSG_PRODUCT_FIREFOX:BOOL=OFF"
26EXTRA_OECMAKE += "-DSSG_PRODUCT_JBOSS_EAP5:BOOL=OFF"
27EXTRA_OECMAKE += "-DSSG_PRODUCT_JBOSS_FUSE6:BOOL=OFF"
28EXTRA_OECMAKE += "-DSSG_PRODUCT_JRE:BOOL=OFF"
29EXTRA_OECMAKE += "-DSSG_PRODUCT_OPENSUSE:BOOL=OFF"
30EXTRA_OECMAKE += "-DSSG_PRODUCT_OSP7:BOOL=OFF"
31EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEL5:BOOL=OFF"
32EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEL6:BOOL=OFF"
33EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEL7:BOOL=OFF"
34EXTRA_OECMAKE += "-DSSG_PRODUCT_RHEV3:BOOL=OFF"
35EXTRA_OECMAKE += "-DSSG_PRODUCT_SUSE11:BOOL=OFF"
36EXTRA_OECMAKE += "-DSSG_PRODUCT_SUSE12:BOOL=OFF"
37EXTRA_OECMAKE += "-DSSG_PRODUCT_UBUNTU1404:BOOL=OFF"
38EXTRA_OECMAKE += "-DSSG_PRODUCT_UBUNTU1604:BOOL=OFF"
39EXTRA_OECMAKE += "-DSSG_PRODUCT_WRLINUX:BOOL=OFF"
40EXTRA_OECMAKE += "-DSSG_PRODUCT_WEBMIN:BOOL=OFF"
41
42do_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
47do_compile () {
48 cd ${B}
49 make openembedded
50}
51
52do_install () {
53 cd ${B}
54 make DESTDIR=${D} install
55}
56FILES_${PN} += "${datadir}/xml"
57RDEPNEDS_${PN} = "openscap"