aboutsummaryrefslogtreecommitdiffstats
path: root/meta-security-compliance/recipes-openscap/oe-scap/oe-scap_1.0.bb
blob: 5b6137569eaed28d34d42cb8f502f2f01c4b71f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright (C) 2017 Armin Kuster  <akuster808@gmail.com>
# Released under the MIT license (see COPYING.MIT for the terms)

SUMARRY = "OE SCAP files"
LIC_FILES_CHKSUM = "file://README.md;md5=46dec9f167b6e05986cb4023df6d92f4"
LICENSE = "MIT"

SRCREV = "7147871d7f37d408c0dd7720ef0fd3ec1b54ad98"
SRC_URI = "git://github.com/akuster/oe-scap.git"
SRC_URI += " \
	file://run_cve.sh \
	file://run_test.sh \
	file://OpenEmbedded_nodistro_0.xml \
        file://OpenEmbedded_nodistro_0.xccdf.xml \
"
	

S = "${WORKDIR}/git"

do_configure[noexec] = "1"
do_compile[noexec] = "1"

do_install () {
	install -d ${D}/${datadir}/oe-scap
	install ${WORKDIR}/run_cve.sh ${D}/${datadir}/oe-scap/.
	install ${WORKDIR}/run_test.sh ${D}/${datadir}/oe-scap/.
	install ${WORKDIR}/OpenEmbedded_nodistro_0.xml ${D}/${datadir}/oe-scap/.
	install ${WORKDIR}/OpenEmbedded_nodistro_0.xccdf.xml ${D}/${datadir}/oe-scap/.
	cp ${S}/* ${D}/${datadir}/oe-scap/.
}

FILES_${PN} += "${datadir}/oe-scap"

RDEPENDS_${PN} = "openscap"