From 64bb997502d9beb1fe05e7456a8c2b5818a7aac2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?K=C3=A9vin=20THIERRY?= Date: Wed, 11 Jun 2014 12:58:33 +0200 Subject: [PATCH] Update vconf recipe MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * New generated recipe from recet spec file. * Add pre/post install/uninstall scripts. Change-Id: I3143a648895cd46653025b735c9fe2db56028542 Signed-off-by: Kévin THIERRY --- recipes-tizen/vconf/vconf.inc | 32 +++++++++++++++++++++++++------- recipes-tizen/vconf/vconf_git.bb | 2 +- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/recipes-tizen/vconf/vconf.inc b/recipes-tizen/vconf/vconf.inc index ae686a2..3e8e39b 100644 --- a/recipes-tizen/vconf/vconf.inc +++ b/recipes-tizen/vconf/vconf.inc @@ -38,6 +38,7 @@ RDEPENDS_${PN}-dev += "glib-2.0" DEPENDS = "" #DEPENDS of vconf DEPENDS += "vconf-internal-keys" +DEPENDS += "tizen-platform-config" DEPENDS_append_class-native = " cmake-native" DEPENDS_append_class-target = " cmake-native" DEPENDS += "dlog" @@ -46,7 +47,7 @@ DEPENDS += "glib-2.0" do_prep() { cd ${S} chmod -Rf a+rX,u+w,g-w,o-w ${S} - #setup -q -n vconf-0.2.45 + #setup -q -n vconf-0.2.51 cp ${S}/packaging/vconf.manifest . @@ -81,7 +82,8 @@ do_compile() { -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \ -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \ -DCMAKE_SKIP_RPATH:BOOL=ON \ - -DBUILD_SHARED_LIBS:BOOL=ON . + -DBUILD_SHARED_LIBS:BOOL=ON . \ + -DTZ_SYS_CONFIG=/usr/kdb make -j16 @@ -107,8 +109,8 @@ do_install() { rm -f ${D}${infodir}/dir find ${D} -regex ".*\.la$" | xargs rm -f -- find ${D} -regex ".*\.a$" | xargs rm -f -- - mkdir -p ${D}/opt/var/kdb/db - mkdir -p ${D}/opt/var/kdb/db/.backup + mkdir -p ${D}/usr/kdb/db + mkdir -p ${D}/usr/kdb/db/.backup mkdir -p ${D}/lib/systemd/system/basic.target.wants mkdir -p ${D}${prefix}/lib/tmpfiles.d install -m0644 ${S}/packaging/vconf-setup.service ${D}/lib/systemd/system/ @@ -118,6 +120,22 @@ do_install() { } +pkg_postinst_${PN}() { + #!/bin/sh -e + + /sbin/ldconfig + systemctl daemon-reload + +} + +pkg_postrm_${PN}() { + #!/bin/sh -e + + /sbin/ldconfig + systemctl daemon-reload + +} + PACKAGES += " vconf-keys-dev " vconf-keys-dev_files = "" @@ -129,10 +147,10 @@ vconf_files += "vconf.manifest" vconf_files += "${sysconfdir}/preconf.d/vconf-setup" vconf_files += "${prefix}/bin/vconftool" vconf_files += "${prefix}/bin/vconf-init" -vconf_files += "/opt/var/kdb/kdb_first_boot" +vconf_files += "/usr/kdb/kdb_first_boot" vconf_files += "${prefix}/lib/*.so.*" -vconf_files += "%attr(777,root,root) /opt/var/kdb/db" -vconf_files += "%attr(777,root,root) /opt/var/kdb/db/.backup" +vconf_files += "%attr(777,root,root) /usr/kdb/db" +vconf_files += "%attr(777,root,root) /usr/kdb/db/.backup" vconf_files += "/lib/systemd/system/basic.target.wants/vconf-setup.service" vconf_files += "/lib/systemd/system/vconf-setup.service" vconf_files += "${prefix}/lib/tmpfiles.d/vconf-setup.conf" diff --git a/recipes-tizen/vconf/vconf_git.bb b/recipes-tizen/vconf/vconf_git.bb index 36d6189..3171a53 100644 --- a/recipes-tizen/vconf/vconf_git.bb +++ b/recipes-tizen/vconf/vconf_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/vconf;tag=5cdc2874cdc9b3cdcdb2289330403f192fcdfae0;nobranch=1" +SRC_URI += "git://review.tizen.org/platform/core/appfw/vconf;tag=119de39565de2390bbc18a91e4b9d0c7b6b083a8;nobranch=1" BBCLASSEXTEND += " native " -- 2.7.4