Tmp fix ail post install.
authorRonan Le Martret <ronan@fridu.net>
Tue, 8 Jul 2014 15:57:39 +0000 (17:57 +0200)
committerRonan Le Martret <ronan@fridu.net>
Tue, 8 Jul 2014 15:57:39 +0000 (17:57 +0200)
Change-Id: I65cde8eea8aadb34953bcc1434a746f8cbec4921
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
recipes-tizen/ail/ail-extraconf.inc
recipes-tizen/pam/pam-extraconf.inc

index d9c7f96..dfeb3d1 100644 (file)
@@ -5,4 +5,20 @@ SRC_URI_append_class-native = " file://remove-dlog-for-native-build.patch"
 RDEPENDS_${PN}_remove_class-native = "systemd-native"
 DEPENDS_remove_class-native = "dlog-native"
 
-DEPENDS_class-target += " ail-native"
\ No newline at end of file
+DEPENDS_class-target += " ail-native"
+
+pkg_postinst_${PN}() {
+    #!/bin/sh -e
+
+    [ "x\$D" == "x" ] && ldconfig
+    vconftool set -t string db/ail/ail_info "0" -f -s system::vconf_inhouse
+    vconftool set -t string db/menuscreen/desktop "0" -f -s system::vconf_inhouse
+    vconftool set -t string db/menu_widget/language "en_US.utf8" -f -s system::vconf_inhouse
+    chsmack -a User $D${prefix}/kdb/db/ail
+    chsmack -a User $D${prefix}/kdb/db/ail/ail_info
+    chsmack -a User $D${prefix}/kdb/db/menuscreen
+    chsmack -a User $D${prefix}/kdb/db/menuscreen/desktop
+    chsmack -a User $D${prefix}/kdb/db/menu_widget
+    chsmack -a User $D${prefix}/kdb/db/menu_widget/language
+
+}
\ No newline at end of file
index 9db5280..dca7101 100644 (file)
@@ -80,11 +80,13 @@ RPROVIDES_${PN}-modules-extra += "pam-plugin-loginuid"
 pkg_postinst_${PN}() {
     #!/bin/sh -e
 
-    ldconfig
+    [ "x\$D" == "x" ] && ldconfig
     if [ ! -a $D/var/log/faillog ] ; then
+        mkdir -p $D/var/log
        /usr/bin/install -m 600 /dev/null $D/var/log/faillog
     fi
     if [ ! -a $D/var/log/tallylog ] ; then
+        mkdir -p $D/var/log
        /usr/bin/install -m 600 /dev/null $D/var/log/tallylog
     fi