aboutsummaryrefslogtreecommitdiffstats
path: root/meta-security-compliance
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2017-09-27 09:42:01 -0700
committerArmin Kuster <akuster808@gmail.com>2017-09-30 11:47:20 -0700
commitf42925b1c329c76f3ad88f6d8acb52a13feb9097 (patch)
treebc1f0fda4208cae50c1c8ca795e95f88df21362d /meta-security-compliance
parent01a20104b2cb6672f306323e6b4f6a353cc7e965 (diff)
downloadmeta-security-f42925b1c329c76f3ad88f6d8acb52a13feb9097.tar.gz
meta-security-f42925b1c329c76f3ad88f6d8acb52a13feb9097.tar.bz2
meta-security-f42925b1c329c76f3ad88f6d8acb52a13feb9097.zip
oe-release: add oe-release file for openscap
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-security-compliance')
-rw-r--r--meta-security-compliance/recipes-core/openembedded-release/openembedded-release_1.0.bb32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-security-compliance/recipes-core/openembedded-release/openembedded-release_1.0.bb b/meta-security-compliance/recipes-core/openembedded-release/openembedded-release_1.0.bb
new file mode 100644
index 0000000..0ad427d
--- /dev/null
+++ b/meta-security-compliance/recipes-core/openembedded-release/openembedded-release_1.0.bb
@@ -0,0 +1,32 @@
+inherit allarch
+
+SUMMARY = "Operating release identification"
+DESCRIPTION = "The /etc/openembedded-release file contains operating system identification data."
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+INHIBIT_DEFAULT_DEPS = "1"
+
+do_fetch[noexec] = "1"
+do_unpack[noexec] = "1"
+do_patch[noexec] = "1"
+do_configure[noexec] = "1"
+
+VERSION = "0"
+RELEASE_NAME = "${DISTRO_NAME} ${DISTRO} ${VERSION}"
+
+def sanitise_version(ver):
+ ret = ver.replace('+', '-').replace(' ','_')
+ return ret.lower()
+
+python do_compile () {
+ import shutil
+ release_name = d.getVar('RELEASE_NAME')
+ with open(d.expand('${B}/openemebedded-release'), 'w') as f:
+ f.write('%s\n' % release_name)
+}
+do_compile[vardeps] += "${RELEASE_NAME}"
+
+do_install () {
+ install -d ${D}${sysconfdir}
+ install -m 0644 openemebedded-release ${D}${sysconfdir}/
+}