Add new config for config-image.
authorRonan Le Martret <ronan@fridu.net>
Thu, 10 Jul 2014 14:35:59 +0000 (16:35 +0200)
committerRonan Le Martret <ronan@fridu.net>
Thu, 10 Jul 2014 14:35:59 +0000 (16:35 +0200)
Change-Id: Ib216884a92a80f49b7d47412d13d56f00859ac6a
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
recipes-image/config-image/config-image.bb [new file with mode: 0644]

diff --git a/recipes-image/config-image/config-image.bb b/recipes-image/config-image/config-image.bb
new file mode 100644 (file)
index 0000000..b7207d2
--- /dev/null
@@ -0,0 +1,24 @@
+SUMMARY = "Config image"
+DESCRIPTION = "This Config image"
+SECTION = "config"
+PR = "r1"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+do_install() {
+  mkdir -p ${D}${sysconfdir}
+  echo "Tizen on Yocto" > ${D}${sysconfdir}/tizen
+}
+
+pkg_postinst_${PN} () {
+  chsmack -t $D${sysconfdir}
+  chsmack -a 'System::Shared' $D${sysconfdir}
+  echo getfattr -d --match=- $D${sysconfdir}
+  getfattr -d --match=- $D${sysconfdir}
+  
+  mkdir -p $D${localstatedir}/volatile/log
+  chsmack -t $D${localstatedir}/volatile/log
+  chsmack -a 'System::Log'  $D${localstatedir}/volatile/log
+}
+
+FILES_${PN} = "${sysconfdir}/tizen"
\ No newline at end of file