meta-tizen: Update ail recipe
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 11 Jun 2014 08:40:20 +0000 (10:40 +0200)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 17:20:26 +0000 (09:20 -0800)
Change-Id: I3dc4e14fc29c745189415fd2b6f5692054fe4738
(From meta-tizen rev: d79921caf47c051a15069d1bc2ad038817e5a9f0)

Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-tizen/recipes-tizen/ail/ail-extraconf.inc
meta-tizen/recipes-tizen/ail/ail.inc
meta-tizen/recipes-tizen/ail/ail_git.bb

index 9f6031a..8e5b745 100644 (file)
@@ -13,7 +13,7 @@ BBCLASSEXTEND = ""
 PROVIDES = ""
 
 #PROVIDES by ail 
-# the PROVIDES rules is ignore "libail = 0.2.73-1"
+# the PROVIDES rules is ignore "libail = 0.2.80-1"
 PROVIDES += "libail"
 RPROVIDES_ail += "libail"
 
@@ -23,12 +23,14 @@ RPROVIDES_ail += "libail"
 
 RDEPENDS = ""
 #RDEPENDS of ail-dev (${PN}-dev)
+RDEPENDS_${PN}-dev += "tizen-platform-config"
 RDEPENDS_${PN}-dev += "libail"
 
 
 DEPENDS = ""
 #DEPENDS of ail 
 DEPENDS += "xdgmime"
+DEPENDS += "tizen-platform-config"
 DEPENDS += "dlog"
 DEPENDS += "sqlite3"
 DEPENDS_append_class-native = " cmake-native"
@@ -63,6 +65,8 @@ do_compile() {
  
  CFLAGS+=" -fpic"
  
    CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
    CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
    FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export FFLAGS ; 
@@ -103,17 +107,70 @@ do_install() {
    find ${D} -regex ".*\.la$" | xargs rm -f -- 
    find ${D} -regex ".*\.a$" | xargs rm -f --
  
- mkdir -p ${D}/opt/dbspace/
- mkdir -p ${D}/opt/share/applications/
+ mkdir -p ${D}/usr/dbspace/
+ mkdir -p ${D}/usr/share/applications/
  
  
 }
 
+pkg_postinst_${PN}() {
+    #!/bin/sh -e
+
+    /sbin/ldconfig
+    vconftool set -t string db/ail/ail_info "0" -f -s system::vconf_inhouse
+    vconftool set -t string db/menuscreen/desktop "0" -f -s system::vconf_inhouse
+    vconftool set -t string db/menu_widget/language "en_US.utf8" -f -s system::vconf_inhouse
+    chsmack -a User /usr/kdb/db/ail
+    chsmack -a User /usr/kdb/db/ail/ail_info
+    chsmack -a User /usr/kdb/db/menuscreen
+    chsmack -a User /usr/kdb/db/menuscreen/desktop
+    chsmack -a User /usr/kdb/db/menu_widget
+    chsmack -a User /usr/kdb/db/menu_widget/language
+    CHDBGID="6010"
+    update_DAC_for_db_file()
+    {
+            if [ ! -f $@ ]; then
+                    touch $@
+            fi
+            chown :$CHDBGID $@ 2>/dev/null
+            if [ $? -ne 0 ]; then
+                    echo "Failed to change the owner of $@"
+            fi
+            chmod 664 $@ 2>/dev/null
+            if [ $? -ne 0 ]; then
+                    echo "Failed to change the perms of $@"
+            fi
+    }
+    ail_initdb
+    mkdir -p /usr/share/applications
+    mkdir -p /usr/share/applications
+    mkdir -p /usr/dbspace
+    update_DAC_for_db_file /usr/dbspace/.app_info.db
+    update_DAC_for_db_file /usr/dbspace/.app_info.db-journal
+    chsmack -a 'User' /usr/dbspace/.app_info.db*
+
+}
+
+pkg_postrm_${PN}() {
+    #!/bin/sh -e
+
+    /sbin/ldconfig
+    if [ $1 == 0 ]; then
+    rm -f /usr/dbspace/.app_info.db*
+    fi
+
+}
+
 
 ail_files = ""
 ail_files += "ail.manifest"
-ail_files += "/opt/share/applications"
+ail_files += "/usr/share/applications"
+ail_files += "${prefix}/bin/ail_initdb"
 ail_files += "${prefix}/bin/ail_initdb"
+ail_files += "${prefix}/bin/ail_fota"
+ail_files += "${prefix}/bin/ail_desktop"
+ail_files += "${prefix}/bin/ail_filter"
+ail_files += "${prefix}/bin/ail_package"
 ail_files += "${prefix}/share/install-info/*"
 ail_files += "${prefix}/lib/libail.so.0"
 ail_files += "${prefix}/lib/libail.so.0.1.0"
index 5a442ee..7727fa0 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/ail;tag=b46685ff506d658b594b3f5b171de6497fab3d90;nobranch=1"
+SRC_URI += "git://review.tizen.org/platform/core/appfw/ail;tag=2bf50fe94b2cdb13fde5f3cb04e788206b28dc59;nobranch=1"
 
 BBCLASSEXTEND += " native "