diff mbox

lmsensors: New package, version 3.3.3

Message ID 1363683798-7224-1-git-send-email-jabk@prevas.dk
State Accepted
Delegated to: Esben Haabendal
Headers show

Commit Message

Jacob Kjaergaard March 19, 2013, 9:03 a.m. UTC
From: Jacob Kjaergaard <jacob.kjaergaard@prevas.dk>

---
 .../lmsensors-3.3.3/makefile_machine_fix.patch     |   13 +++++++
 recipes/lmsensors/lmsensors.inc                    |   41 ++++++++++++++++++++
 recipes/lmsensors/lmsensors_3.3.3.oe               |    5 +++
 recipes/lmsensors/lmsensors_3.3.3.oe.sig           |    1 +
 4 files changed, 60 insertions(+)
 create mode 100644 recipes/lmsensors/lmsensors-3.3.3/makefile_machine_fix.patch
 create mode 100644 recipes/lmsensors/lmsensors.inc
 create mode 100644 recipes/lmsensors/lmsensors_3.3.3.oe
 create mode 100644 recipes/lmsensors/lmsensors_3.3.3.oe.sig

Comments

Esben Haabendal May 6, 2013, 1:03 p.m. UTC | #1
Merged to master, thanks.

/Esben
diff mbox

Patch

diff --git a/recipes/lmsensors/lmsensors-3.3.3/makefile_machine_fix.patch b/recipes/lmsensors/lmsensors-3.3.3/makefile_machine_fix.patch
new file mode 100644
index 0000000..2842b1d
--- /dev/null
+++ b/recipes/lmsensors/lmsensors-3.3.3/makefile_machine_fix.patch
@@ -0,0 +1,13 @@ 
+--- b/Makefile	2013-03-18 14:19:22.297921165 +0100
++++ a/Makefile	2013-03-18 14:26:05.053909264 +0100
+@@ -77,7 +77,7 @@
+ # manual pages will be installed.
+ MANDIR := $(PREFIX)/man
+ 
+-MACHINE := $(shell uname -m)
++MACHINE := $(TARGET_CPU)
+ 
+ # Extra non-default programs to build; e.g., sensord
+ #PROG_EXTRA := sensord
+
+Diff finished.  Mon Mar 18 14:26:32 2013
diff --git a/recipes/lmsensors/lmsensors.inc b/recipes/lmsensors/lmsensors.inc
new file mode 100644
index 0000000..8bb537b
--- /dev/null
+++ b/recipes/lmsensors/lmsensors.inc
@@ -0,0 +1,41 @@ 
+DESCRIPTION = "LM sensors: Monitoring tool"
+LICENCE = "LGPL"
+HOMEPAGE = "http://www.lm-sensors.org/"
+
+inherit make c
+
+DEPENDS = "kernel-dev native:flex native:bison libm"
+
+RDEPENDS_${PN} = "libm"
+
+SRC_URI = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${PV}.tar.bz2"
+S = "${SRCDIR}/lm_sensors-${PV}"
+
+do_compile[prefuncs] += "do_compile_remove_prefix"
+do_compile_remove_prefix () {
+	sed -i -e 's/\(PREFIX :=\).*/\1\${prefix}/' Makefile
+	sed -i -e 's/\(CC :=\).*/\1\"${CC}"/' Makefile
+}
+
+do_compile() {
+	export PREFIX=${prefix}
+        oe_runmake \
+		LINUX=${HOST_SYSROOT}${kernelsrcdir} \
+		TARGET_ARCH=${TARGET_ARCH} \
+		user PROG_EXTRA=sensors
+}
+
+do_install() {
+        oe_runmake user_install DESTDIR=${D}
+
+        install -d ${D}${mandir}
+        rm -rf ${D}${mandir}/*
+        mv ${D}/usr/man/ ${D}${mandir}
+}
+
+PACKAGES = "${PN}-dbg ${PN}-doc ${PN} ${PN}-dev ${PN}-locale"
+inherit auto-package-utils
+AUTO_PACKAGE_UTILS = "fancontrol isadump isaset pwmconfig sensors-detect sensors sensors-conf-convert"
+RDEPENDS_${PN} += "${PN}-sensors"
+
+FILES_${PN} += "${libdir}/libsensors.so"
diff --git a/recipes/lmsensors/lmsensors_3.3.3.oe b/recipes/lmsensors/lmsensors_3.3.3.oe
new file mode 100644
index 0000000..305f80d
--- /dev/null
+++ b/recipes/lmsensors/lmsensors_3.3.3.oe
@@ -0,0 +1,5 @@ 
+require lmsensors.inc
+
+SRC_URI += "file://makefile_machine_fix.patch"
+
+export TARGET_CPU
\ No newline at end of file
diff --git a/recipes/lmsensors/lmsensors_3.3.3.oe.sig b/recipes/lmsensors/lmsensors_3.3.3.oe.sig
new file mode 100644
index 0000000..c8a93fd
--- /dev/null
+++ b/recipes/lmsensors/lmsensors_3.3.3.oe.sig
@@ -0,0 +1 @@ 
+b55c06f425993e42f13553f204066c446da36fd3  lm_sensors-3.3.3.tar.bz2