From 5572d3a73808022758372cf33383acdc6e31c167 Mon Sep 17 00:00:00 2001 From: =?utf8?q?K=C3=A9vin=20THIERRY?= Date: Fri, 13 Jun 2014 14:42:48 +0200 Subject: [PATCH] Update privacy-manager recipe MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * Add pre/post install/uninstall scripts. * New recipe from recent spec file. * New revision. Change-Id: I0c10726257eb09c96939609f294938227a132237 Signed-off-by: Kévin THIERRY --- .../privacy-manager/privacy-manager-extraconf.inc | 2 +- recipes-tizen/privacy-manager/privacy-manager.inc | 51 ++++++++++++++++++++-- .../privacy-manager/privacy-manager_git.bb | 2 +- 3 files changed, 50 insertions(+), 5 deletions(-) diff --git a/recipes-tizen/privacy-manager/privacy-manager-extraconf.inc b/recipes-tizen/privacy-manager/privacy-manager-extraconf.inc index 1f3bbc6..9bb415d 100644 --- a/recipes-tizen/privacy-manager/privacy-manager-extraconf.inc +++ b/recipes-tizen/privacy-manager/privacy-manager-extraconf.inc @@ -11,7 +11,7 @@ privacy-manager-client_files += "${prefix}/lib/systemd/system/multi-user.target. privacy-manager-server_files = "" privacy-manager-server_files += "privacy-manager-server.manifest" privacy-manager-server_files += "${prefix}/lib/libprivacy-manager-server.so.*" -privacy-manager-server_files += "/opt/dbspace/.privacylist.db" +privacy-manager-server_files += "${prefix}/dbspace/.privacylist.db" privacy-manager-server_files += "${prefix}/bin/*" privacy-manager-server-dev_files = "" diff --git a/recipes-tizen/privacy-manager/privacy-manager.inc b/recipes-tizen/privacy-manager/privacy-manager.inc index 139970a..a16a489 100644 --- a/recipes-tizen/privacy-manager/privacy-manager.inc +++ b/recipes-tizen/privacy-manager/privacy-manager.inc @@ -64,6 +64,7 @@ DEPENDS += "glib-2.0" DEPENDS += "system-info" DEPENDS += "common" DEPENDS += "sqlite3" +DEPENDS += "tizen-platform-config" DEPENDS += "libslp-db-util" do_prep() { @@ -135,8 +136,8 @@ do_install() { mkdir -p ${D}${prefix}/bin cp res/usr/bin/* ${D}${prefix}/bin/ - mkdir -p ${D}/opt/dbspace - cp res/opt/dbspace/.privacylist.db /${D}/opt/dbspace/ + mkdir -p ${D}/usr/dbspace + cp res/opt/dbspace/.privacylist.db /${D}/usr/dbspace mkdir -p ${D}${prefix}/share/privacy-manager/ cp res/usr/share/privacy-manager/privacy-filter-list.ini ${D}${prefix}/share/privacy-manager/ @@ -158,6 +159,50 @@ do_install() { } +pkg_postinst_privacy-manager-client() { + #!/bin/sh -e + + /sbin/ldconfig +} + +pkg_postinst_privacy-manager-server() { + #!/bin/sh -e + + /sbin/ldconfig + echo "Check privacy DB" + if [ ! -f /usr/dbspace/.privacy.db ] + then + echo "Create privacy DB" + ${prefix}/bin/privacy_manager_create_clean_db.sh + fi + chsmack -a 'User' /usr/dbspace/.privacy.db* + +} + +pkg_postinst_capi-security-privacy-manager() { + #!/bin/sh -e + + /sbin/ldconfig +} + +pkg_postrm_${PN}() { + #!/bin/sh -e + + /sbin/ldconfig +} + +pkg_postrm_capi-security-privacy-manager() { + #!/bin/sh -e + + /sbin/ldconfig +} + +pkg_postrm_privacy-manager-client() { + #!/bin/sh -e + + /sbin/ldconfig +} + PACKAGES += " privacy-manager-client " PACKAGES += " privacy-manager-server " PACKAGES += " privacy-manager-server-dev " @@ -174,7 +219,7 @@ privacy-manager-client_files += "${sysconfdir}/package-manager/parserlib/libpriv privacy-manager-server_files = "" privacy-manager-server_files += "privacy-manager-server.manifest" privacy-manager-server_files += "${prefix}/lib/libprivacy-manager-server.so*" -privacy-manager-server_files += "/opt/dbspace/.privacylist.db" +privacy-manager-server_files += "/usr/dbspace/.privacylist.db" privacy-manager-server_files += "/usr/bin/*" privacy-manager-server-dev_files = "" diff --git a/recipes-tizen/privacy-manager/privacy-manager_git.bb b/recipes-tizen/privacy-manager/privacy-manager_git.bb index 3906e19..e77f407 100644 --- a/recipes-tizen/privacy-manager/privacy-manager_git.bb +++ b/recipes-tizen/privacy-manager/privacy-manager_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/security/privacy-manager;tag=5989bdf8a27392f56de66b3b093d853e92093aa9;nobranch=1" +SRC_URI += "git://review.tizen.org/platform/core/security/privacy-manager;tag=3ca7a656bf292b9692dbe73e58db7c2f6a931c6e;nobranch=1" BBCLASSEXTEND += " native " -- 2.7.4