Fix post install script
authorRonan Le Martret <ronan@fridu.net>
Wed, 15 Oct 2014 15:11:29 +0000 (17:11 +0200)
committerRonan Le Martret <ronan@fridu.net>
Wed, 15 Oct 2014 15:11:29 +0000 (17:11 +0200)
Change-Id: I7bc582017684ae39ba674b6c3860d51b42e42c7a
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
recipes-tizen/efl/efl-extraconf.inc
recipes-tizen/libmm-sound/libmm-sound-extraconf.inc
recipes-tizen/wrt-widgets/wrt-widgets-extraconf.inc

index 53d4dd2..6975453 100644 (file)
@@ -99,6 +99,20 @@ do_install() {
   
 }
 
+pkg_postinst_ecore() {
+    #!/bin/sh -e
+
+    [ "x$D" == "x" ] && ldconfig
+    f="$D/etc/profile.d/ecore.sh"
+    grep --silent EFL_WAYLAND_USE_XDG_SHELL "$f" \
+        || printf "\nEFL_WAYLAND_USE_XDG_SHELL='defined'\nexport EFL_WAYLAND_USE_XDG_SHELL\n" >> "$f"
+    grep --silent ECORE_EVAS_ENGINE "$f" \
+        || printf "\nECORE_EVAS_ENGINE=wayland_shm\n[ ! -d /dev/dri ] || ECORE_EVAS_ENGINE=wayland_egl\nexport ECORE_EVAS_ENGINE" >> "$f"
+    grep --silent ECORE_IMF_MODULE "$f" \
+        || printf "\nECORE_IMF_MODULE=wayland\nexport ECORE_IMF_MODULE\n" >> "$f"
+
+}
+
 FILES_${PN}-dbg += "${prefix}/lib/eeze/modules/sensor/tizen/v-1.9/.debug"
 FILES_${PN}-dbg += "${prefix}/lib/eeze/modules/sensor/udev/v-1.9/.debug"
 FILES_${PN}-dbg += "${prefix}/lib/ecore_evas/engines/extn/v-1.9/.debug"
index ae0d6c3..cbd3427 100644 (file)
@@ -57,3 +57,20 @@ FILES_${PN} = "${libmm-sound_files}"
 
 PKG_libmm-sound-dev= "libmm-sound-dev"
 PKG_libmm-sound= "libmm-sound"
+
+pkg_postinst_${PN}() {
+    #!/bin/sh -e
+
+    [ "x$D" == "x" ] && ldconfig
+    vconftool set -t int memory/Sound/ASMReady 0 -g 29 -f -i
+    vconftool set -t int file/private/sound/volume/system 5 -g 29 -f
+    vconftool set -t int file/private/sound/volume/notification 7 -g 29 -f
+    vconftool set -t int file/private/sound/volume/alarm 7 -g 29 -f
+    vconftool set -t int file/private/sound/volume/ringtone 13 -g 29 -f
+    vconftool set -t int file/private/sound/volume/media 7 -g 29 -f
+    vconftool set -t int file/private/sound/volume/call 7 -g 29 -f
+    vconftool set -t int file/private/sound/volume/voip 7 -g 29 -f
+    vconftool set -t int file/private/sound/volume/fixed 0 -g 29 -f
+    vconftool set -t int file/private/sound/volume/java 11 -g 29 -f
+
+}
\ No newline at end of file
index e69de29..8c7e8e0 100644 (file)
@@ -0,0 +1,8 @@
+pkg_postinst_${PN}() {
+    #!/bin/sh -e
+
+    # setup xwalk preinstall service (inside user session)
+    mkdir -p $D${systemd_unitdir}/user/default.target.wants/
+    ln -sf ../xwalk_widgets_preinstall.service $D${systemd_unitdir}/user/default.target.wants/
+
+}
\ No newline at end of file