From 596a932aaee64af4f32f56e719eece8305b0a72a Mon Sep 17 00:00:00 2001 From: =?utf8?q?K=C3=A9vin=20THIERRY?= Date: Thu, 12 Jun 2014 11:16:28 +0200 Subject: [PATCH] Update notification 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 recet spec file. * New revision. Change-Id: I1029c5cd889d049266f8150f5cb62e055cc0b8e1 Signed-off-by: Kévin THIERRY --- recipes-tizen/notification/notification.inc | 44 ++++++++++++++++++++++++-- recipes-tizen/notification/notification_git.bb | 2 +- 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/recipes-tizen/notification/notification.inc b/recipes-tizen/notification/notification.inc index 61afbb2..af2588c 100644 --- a/recipes-tizen/notification/notification.inc +++ b/recipes-tizen/notification/notification.inc @@ -12,6 +12,9 @@ inherit autotools-brokensep BBCLASSEXTEND = "" PROVIDES = "" +#PROVIDES by notification-service-dev + + #PROVIDES by notification @@ -19,9 +22,13 @@ PROVIDES = "" RDEPENDS = "" +#RDEPENDS of notification-service-dev (${PN}-service-dev) +RDEPENDS_${PN}-service-dev += "notification" + #RDEPENDS of notification (${PN}) RDEPENDS_${PN} += "sqlite3" RDEPENDS_${PN} += "eglibc" +RDEPENDS_${PN} += "libtzplatform-config" #RDEPENDS of notification-dev (${PN}-dev) RDEPENDS_${PN}-dev += "notification" @@ -34,13 +41,16 @@ DEPENDS_append_class-native = " cmake-native" DEPENDS_append_class-target = " cmake-native" DEPENDS += "eina" DEPENDS += "dbus" +DEPENDS += "app-svc" +DEPENDS += "tizen-platform-config" DEPENDS += "bundle" +DEPENDS += "com-core" DEPENDS += "ail" DEPENDS += "dlog" DEPENDS += "ecore" DEPENDS += "sqlite3" DEPENDS += "heynoti" -DEPENDS += "com-core" +DEPENDS += "vconf" DEPENDS += "libslp-db-util" do_prep() { @@ -97,6 +107,7 @@ do_install() { rm -rf ${D} mkdir -p ${D} + rm -rf ${D} oe_runmake \ DESTDIR=${D} \ @@ -113,19 +124,48 @@ do_install() { } +pkg_postinst_${PN}() { + #!/bin/sh -e + + /sbin/ldconfig + ${prefix}/share/notification/notification_DB_init.sh + +} + +pkg_postrm_${PN}() { + #!/bin/sh -e + + /sbin/ldconfig +} + +PACKAGES += " notification-service-dev " + +notification-service-dev_files = "" +notification-service-dev_files += "${prefix}/include/notification/service/notification_ipc.h" +notification-service-dev_files += "${prefix}/include/notification/service/notification_noti.h" +notification-service-dev_files += "${prefix}/include/notification/service/notification_setting_service.h" +notification-service-dev_files += "${prefix}/lib/pkgconfig/notification-service.pc" notification_files = "" notification_files += "notification.manifest" notification_files += "${prefix}/lib/libnotification.so*" +notification_files += "${prefix}/share/notification/notification_DB_init.sh" notification_files += "/usr/share/license/notification" notification-dev_files = "" -notification-dev_files += "${prefix}/include/notification/*.h" +notification-dev_files += "${prefix}/include/notification/notification.h" +notification-dev_files += "${prefix}/include/notification/notification_error.h" +notification-dev_files += "${prefix}/include/notification/notification_type.h" +notification-dev_files += "${prefix}/include/notification/notification_list.h" +notification-dev_files += "${prefix}/include/notification/notification_status.h" +notification-dev_files += "${prefix}/include/notification/notification_setting.h" notification-dev_files += "${prefix}/lib/pkgconfig/notification.pc" +FILES_${PN}-service-dev = "${notification-service-dev_files}" FILES_${PN} = "${notification_files}" FILES_${PN}-dev = "${notification-dev_files}" +PKG_notification-service-dev= "notification-service-dev" PKG_notification= "notification" PKG_notification-dev= "notification-dev" diff --git a/recipes-tizen/notification/notification_git.bb b/recipes-tizen/notification/notification_git.bb index 9cf697d..8c59d54 100644 --- a/recipes-tizen/notification/notification_git.bb +++ b/recipes-tizen/notification/notification_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/api/notification;tag=abe7e659630557632e15ab7560855b535c4e8c5b;nobranch=1" +SRC_URI += "git://review.tizen.org/platform/core/api/notification;tag=38111fc05f2895d4bdaa7f2bcc5e495564cb0095;nobranch=1" BBCLASSEXTEND += " native " -- 2.7.4