From 87cc22d4c5b954e54d88cfc40761e2904da3e38e Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Wed, 15 Oct 2014 17:11:29 +0200 Subject: [PATCH] Fix post install script Change-Id: I7bc582017684ae39ba674b6c3860d51b42e42c7a Signed-off-by: Ronan Le Martret --- recipes-tizen/efl/efl-extraconf.inc | 14 ++++++++++++++ recipes-tizen/libmm-sound/libmm-sound-extraconf.inc | 17 +++++++++++++++++ recipes-tizen/wrt-widgets/wrt-widgets-extraconf.inc | 8 ++++++++ 3 files changed, 39 insertions(+) diff --git a/recipes-tizen/efl/efl-extraconf.inc b/recipes-tizen/efl/efl-extraconf.inc index 53d4dd2..6975453 100644 --- a/recipes-tizen/efl/efl-extraconf.inc +++ b/recipes-tizen/efl/efl-extraconf.inc @@ -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" diff --git a/recipes-tizen/libmm-sound/libmm-sound-extraconf.inc b/recipes-tizen/libmm-sound/libmm-sound-extraconf.inc index ae0d6c3..cbd3427 100644 --- a/recipes-tizen/libmm-sound/libmm-sound-extraconf.inc +++ b/recipes-tizen/libmm-sound/libmm-sound-extraconf.inc @@ -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 diff --git a/recipes-tizen/wrt-widgets/wrt-widgets-extraconf.inc b/recipes-tizen/wrt-widgets/wrt-widgets-extraconf.inc index e69de29..8c7e8e0 100644 --- a/recipes-tizen/wrt-widgets/wrt-widgets-extraconf.inc +++ b/recipes-tizen/wrt-widgets/wrt-widgets-extraconf.inc @@ -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 -- 2.7.4