Update alarm-manager 76/22876/2
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Thu, 12 Jun 2014 08:59:22 +0000 (10:59 +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.

Change-Id: I4ff525b004efc21e734f20fd6d50458af6edeb74
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
recipes-tizen/alarm-manager/alarm-manager.inc
recipes-tizen/alarm-manager/alarm-manager_git.bb

index e41fa85..f627b6b 100644 (file)
@@ -40,6 +40,7 @@ DEPENDS = ""
 DEPENDS += "aul-1"
 DEPENDS += "dbus"
 DEPENDS += "app-svc"
+DEPENDS += "tizen-platform-config"
 DEPENDS += "security-server"
 DEPENDS += "bundle"
 DEPENDS += "glib-2.0"
@@ -156,10 +157,58 @@ do_install() {
  
  mkdir -p ${D}/${sysconfdir}/dbus-1/system.d
  install -m0644  ${S}/packaging/alarm-service.conf ${D}${sysconfdir}/dbus-1/system.d/
+ mkdir -p ${D}/usr/share/license
+ cp LICENSE ${D}/usr/share/license/alarm-server
+ cp LICENSE ${D}/usr/share/license/libalarm
+ cp LICENSE ${D}/usr/share/license/libalarm-devel
  
  
 }
 
+pkg_postinst_alarm-server() {
+    #!/bin/sh -e
+
+    vconftool set -t int db/system/timechange 0
+    vconftool set -t double db/system/timechange_external 0
+    vconftool set -t int memory/system/timechanged 0 -i -g 5000
+    systemctl daemon-reload
+    if [ $1 == 1 ]; then
+        systemctl restart alarm-server.service
+    fi
+
+}
+
+pkg_postinst_libalarm() {
+    #!/bin/sh -e
+
+    /sbin/ldconfig
+}
+
+pkg_prerm_alarm-server() {
+    #!/bin/sh -e
+
+    if [ $1 == 0 ]; then
+        systemctl stop alarm-server.service
+    fi
+
+}
+
+pkg_postrm_libalarm() {
+    #!/bin/sh -e
+
+    /sbin/ldconfig
+}
+
+pkg_postrm_alarm-server() {
+    #!/bin/sh -e
+
+    systemctl daemon-reload
+    if [ "$1" == 1 ]; then
+        systemctl restart net-config.service
+    fi
+
+}
+
 PACKAGES += " libalarm "
 PACKAGES += " alarm-server "
 PACKAGES += " libalarm-dev "
@@ -169,6 +218,7 @@ libalarm_files += "alarm-manager.manifest"
 libalarm_files += "alarm-lib.manifest"
 libalarm_files += "${prefix}/lib/libalarm.so.0.0.0"
 libalarm_files += "${prefix}/lib/libalarm.so.0"
+libalarm_files += "/usr/share/license/libalarm"
 
 alarm-server_files = ""
 alarm-server_files += "alarm-manager.manifest"
@@ -177,12 +227,14 @@ alarm-server_files += "/lib/systemd/system/multi-user.target.wants/alarm-server.
 alarm-server_files += "/lib/systemd/system/alarm-server.service"
 alarm-server_files += "${sysconfdir}/dbus-1/system.d/alarm-service.conf"
 alarm-server_files += "${sysconfdir}/udev/rules.d/60-alarm-manager-rtc.rules"
+alarm-server_files += "/usr/share/license/alarm-server"
 
 libalarm-dev_files = ""
 libalarm-dev_files += "alarm-manager.manifest"
 libalarm-dev_files += "${prefix}/include/*.h"
 libalarm-dev_files += "${prefix}/lib/pkgconfig/*.pc"
 libalarm-dev_files += "${prefix}/lib/libalarm.so"
+libalarm-dev_files += "/usr/share/license/libalarm-devel"
 
 FILES_libalarm = "${libalarm_files}"
 FILES_alarm-server = "${alarm-server_files}"
index db8a642..7c645e9 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/alarm-manager;tag=46a11032c162562d1cf0838843925d8ff2e013b5;nobranch=1"
+SRC_URI += "git://review.tizen.org/platform/core/appfw/alarm-manager;tag=97a620d14fe759548cdd9dc1e9bfbd7772684e75;nobranch=1"
 
 BBCLASSEXTEND += " native "