[meta-freescale] [meta-fsl-ppc][PATCH 12/20] web-sysmon: update to revision 8d0c6ec

ting.liu at freescale.com ting.liu at freescale.com
Mon Jan 5 02:32:30 PST 2015


From: Zhenhua Luo <zhenhua.luo at freescale.com>

This includes following fixes:

8d0c6ec Using Makefile to install the package
7d7a893 Add PM demo scripts support
472c2b1 Add startup script for web-sysmon package
ca33057 Add T4240QDS support
8508c8f Automatically scan hwmon system
522f8e2 Update the clean target of Makefile
24d3e4c Unify the template of temp/curr/in/power cgi script
cd66d0f Update the clean target of Makefile
c5dd6e8 Update description of sens_create_rrd

Update recipe to match the code changes:
1. use 'oe_runmake install'
2. install web-sysmon.sh as init script

Signed-off-by: Zhenhua Luo <zhenhua.luo at freescale.com>
---
 recipes-extended/web-sysmon/web-sysmon_git.bb | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/recipes-extended/web-sysmon/web-sysmon_git.bb b/recipes-extended/web-sysmon/web-sysmon_git.bb
index 506c0e1..84f60d5 100644
--- a/recipes-extended/web-sysmon/web-sysmon_git.bb
+++ b/recipes-extended/web-sysmon/web-sysmon_git.bb
@@ -4,18 +4,20 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
 
 SRC_URI = "git://git.freescale.com/ppc/sdk/web-sysmon-dev.git;nobranch=1"
-SRCREV = "d8fafc6f223054a4129d5623e89d3dcf42ac8147"
+SRCREV = "8d0c6eca1113832fabe917fd0cb25abe2d4d7157"
 
-S = "${WORKDIR}/git"
+inherit update-rc.d
 
-FILES_${PN} += "/"
+S = "${WORKDIR}/git"
 
 RDEPENDS_${PN} = "lighttpd"
 
-do_install() {
-	install -d ${D}/etc
-	install -m 644 ${S}/lighttpd.conf ${D}/etc
-	install -d ${D}/usr/local/bin
-	install -m 755 ${S}/rrd/sens_update_rrd ${D}/usr/local/bin
-	cp -r ${S}/rrd ${D}/usr
+EXTRA_OEMAKE += "D=${D}"
+do_install () {
+        oe_runmake install
 }
+
+FILES_${PN} += "/"
+
+INITSCRIPT_NAME = "web-sysmon.sh"
+INITSCRIPT_PARAMS = "defaults 99 20"
-- 
1.9.1



More information about the meta-freescale mailing list