From 382f21bf1dc0ca259dccd526ceefc1e56e514f8b Mon Sep 17 00:00:00 2001 From: =?utf8?q?K=C3=A9vin=20THIERRY?= Date: Thu, 12 Jun 2014 11:01:52 +0200 Subject: [PATCH] Update app-svc recipe MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * Add pre/post install/uninstall scripts. * New generated recipe from recent spec file. * New revision. Change-Id: I2cc825c173ff5f5e6b971aee1aca5fbb6897cf1c Signed-off-by: Kévin THIERRY --- recipes-tizen/app-svc/app-svc.inc | 21 +++++++++++++++++---- recipes-tizen/app-svc/app-svc_git.bb | 2 +- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/recipes-tizen/app-svc/app-svc.inc b/recipes-tizen/app-svc/app-svc.inc index 176e48d..1b98dae 100644 --- a/recipes-tizen/app-svc/app-svc.inc +++ b/recipes-tizen/app-svc/app-svc.inc @@ -43,6 +43,7 @@ DEPENDS += "libsoup-2.4" DEPENDS += "sqlite3" DEPENDS += "ecore" DEPENDS += "libprivilege-control" +DEPENDS += "tizen-platform-config" do_prep() { cd ${S} @@ -111,8 +112,8 @@ do_install() { find ${D} -regex ".*\.a$" | xargs rm -f -- # Create database - mkdir -p ${D}/opt/dbspace - sqlite3 ${D}/opt/dbspace/.appsvc.db < data/appsvc_db.sql + mkdir -p ${D}/usr/dbspace + sqlite3 ${D}/usr/dbspace/.appsvc.db < data/appsvc_db.sql mkdir -p ${D}/usr/share/license cp LICENSE ${D}/usr/share/license/app-svc @@ -120,11 +121,23 @@ do_install() { } +pkg_postinst_${PN}() { + #!/bin/sh -e + + /sbin/ldconfig +} + +pkg_postrm_${PN}() { + #!/bin/sh -e + + /sbin/ldconfig +} + app-svc_files = "" app-svc_files += "app-svc.manifest" -app-svc_files += "%verify(not md5 mtime size) %attr(664,root,app) /opt/dbspace/.appsvc.db" -app-svc_files += "%verify(not md5 mtime size) %attr(664,root,app) /opt/dbspace/.appsvc.db-journal" +app-svc_files += "%verify(not md5 mtime size) %attr(664,root,users) /usr/dbspace/.appsvc.db" +app-svc_files += "%verify(not md5 mtime size) %attr(664,root,users) /usr/dbspace/.appsvc.db-journal" app-svc_files += "/usr/bin/appsvc_test" app-svc_files += "${prefix}/lib/libappsvc.so.0" app-svc_files += "${prefix}/lib/libappsvc.so.0.1.0" diff --git a/recipes-tizen/app-svc/app-svc_git.bb b/recipes-tizen/app-svc/app-svc_git.bb index a622404..2cf1451 100644 --- a/recipes-tizen/app-svc/app-svc_git.bb +++ b/recipes-tizen/app-svc/app-svc_git.bb @@ -4,7 +4,7 @@ PRIORITY = "10" LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" -SRC_URI += "git://review.tizen.org/platform/core/appfw/app-svc;tag=9b9315bfadc5764fabbf8c310db051dc30648fba;nobranch=1" +SRC_URI += "git://review.tizen.org/platform/core/appfw/app-svc;tag=20a5461703eabca371b655ec968ed0175e06ea25;nobranch=1" BBCLASSEXTEND += " native " -- 2.7.4