diff options
author | Koen Kooi <koen@openembedded.org> | 2009-01-20 11:34:57 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-01-20 11:34:57 +0100 |
commit | c4e731c9bd99a955ead5fdf4d96482dd50bd8d15 (patch) | |
tree | cc059bc7d73f38d29abb1ff41969ec049a66f07f /packages | |
parent | 1e7245311c5e4b08e5fe5bee13fc10c8bda7ead9 (diff) |
lmsensors: fix packaging, add 2.10.8, add staging function
Diffstat (limited to 'packages')
-rw-r--r-- | packages/lm_sensors/lmsensors-apps_2.10.1.bb | 9 | ||||
-rw-r--r-- | packages/lm_sensors/lmsensors-apps_2.10.8.bb | 50 |
2 files changed, 54 insertions, 5 deletions
diff --git a/packages/lm_sensors/lmsensors-apps_2.10.1.bb b/packages/lm_sensors/lmsensors-apps_2.10.1.bb index 9d5a8af9fb..c6272555f5 100644 --- a/packages/lm_sensors/lmsensors-apps_2.10.1.bb +++ b/packages/lm_sensors/lmsensors-apps_2.10.1.bb @@ -30,14 +30,13 @@ do_install() { rm -rf ${D}${mandir}/* mv ${D}/usr/man/* ${D}${mandir} - # remove perl or bash scripts - rm ${D}${bindir}/*.pl ${D}${bindir}/ddcmon - rm ${D}${sbindir}/fancontrol* ${D}${sbindir}/pwmconfig ${D}${sbindir}/sensors-detect - rm ${D}${mandir}/man8/fancontrol.8 ${D}${mandir}/man8/pwmconfig.8 ${D}${mandir}/man8/sensors-detect.8 -} PACKAGES =+ "libsensors libsensors-dev libsensors-dbg libsensors-doc" PACKAGES =+ "lmsensors-sensors lmsensors-sensors-dbg lmsensors-sensors-doc" +PACKAGES =+ "lmsensors-scripts" + +FILES_lmsensors-scripts = "${bindir}/*.pl ${bindir}/ddcmon ${sbindir}/fancontrol* ${sbindir}/pwmconfig ${sbindir}/sensors-detect" +RDEPENDS_lmsensors-scripts += "lmsensors-sensors perl bash" FILES_lmsensors-sensors = "${bindir}/sensors ${sysconfdir}" FILES_lmsensors-sensors-dbg += "${bindir}/.debug/sensors" diff --git a/packages/lm_sensors/lmsensors-apps_2.10.8.bb b/packages/lm_sensors/lmsensors-apps_2.10.8.bb new file mode 100644 index 0000000000..8947ffb5b3 --- /dev/null +++ b/packages/lm_sensors/lmsensors-apps_2.10.8.bb @@ -0,0 +1,50 @@ +DESCRIPTION = "Hardware health monitoring applications" +HOMEPAGE = "http://www.lm-sensors.org/" +DEPENDS = "sysfsutils virtual/libiconv" +LICENSE = "GPL" + +SRC_URI = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${PV}.tar.gz \ + file://prefix-fix.patch;patch=1 \ + file://add-sysfs-ldflags.patch;patch=1" + +SRC_URI_append_uclibc = "file://iconv.patch;patch=1" + +S = "${WORKDIR}/lm_sensors-${PV}" + +do_compile() { + oe_runmake user LINUX=${STAGING_KERNEL_DIR} EXLDFLAGS="${LDFLAGS}" PROG_EXTRA=sensors MACHINE=${TARGET_ARCH} +} + +do_install() { + oe_runmake user_install DESTDIR=${D} + + install -d ${D}/.usr + mv ${D}/* ${D}/.usr + mv ${D}/.usr ${D}/usr + + install -d ${D}${sysconfdir} + mv ${D}/usr/etc/sensors.conf ${D}${sysconfdir} + # move manuals into proper place + install -d ${D}${mandir} + rm -rf ${D}${mandir}/* + mv ${D}/usr/man/* ${D}${mandir} +} + +do_stage() { + oe_runmake user_install DESTDIR=${STAGING_DIR_TARGET}/${layout_prefix} +} + +PACKAGES =+ "libsensors libsensors-dev libsensors-dbg libsensors-doc" +PACKAGES =+ "lmsensors-sensors lmsensors-sensors-dbg lmsensors-sensors-doc" +PACKAGES =+ "lmsensors-scripts" + +FILES_lmsensors-scripts = "${bindir}/*.pl ${bindir}/ddcmon ${sbindir}/fancontrol* ${sbindir}/pwmconfig ${sbindir}/sensors-detect" +RDEPENDS_lmsensors-scripts += "lmsensors-sensors perl bash" + +FILES_lmsensors-sensors = "${bindir}/sensors ${sysconfdir}" +FILES_lmsensors-sensors-dbg += "${bindir}/.debug/sensors" +FILES_lmsensors-sensors-doc = "${mandir}/man1 ${mandir}/man5" +FILES_libsensors = "${libdir}/libsensors.so.*" +FILES_libsensors-dbg += "${libdir}/.debug" +FILES_libsensors-dev = "${libdir}/libsensors.so ${libdir}/libsensors.a ${includedir}" +FILES_libsensors-doc = "${mandir}/man3" |