Update app-svc recipe 77/22877/2
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Thu, 12 Jun 2014 09:01:52 +0000 (11:01 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Mon, 16 Jun 2014 09:30:17 +0000 (11:30 +0200)
* Add pre/post install/uninstall scripts.
* New generated recipe from recent spec file.
* New revision.

Change-Id: I2cc825c173ff5f5e6b971aee1aca5fbb6897cf1c
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
recipes-tizen/app-svc/app-svc.inc
recipes-tizen/app-svc/app-svc_git.bb

index 176e48d..1b98dae 100644 (file)
@@ -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"
index a622404..2cf1451 100644 (file)
@@ -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 "