summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-support/lm_sensors/lmsensors/fancontrol.init (renamed from meta-oe/recipes-support/lm_sensors/files/fancontrol.sh)0
-rw-r--r--meta-oe/recipes-support/lm_sensors/lmsensors/sensord.init (renamed from meta-oe/recipes-support/lm_sensors/files/sensord.sh)0
-rw-r--r--meta-oe/recipes-support/lm_sensors/lmsensors_3.3.2.bb56
3 files changed, 19 insertions, 37 deletions
diff --git a/meta-oe/recipes-support/lm_sensors/files/fancontrol.sh b/meta-oe/recipes-support/lm_sensors/lmsensors/fancontrol.init
index f179310dd..f179310dd 100644
--- a/meta-oe/recipes-support/lm_sensors/files/fancontrol.sh
+++ b/meta-oe/recipes-support/lm_sensors/lmsensors/fancontrol.init
diff --git a/meta-oe/recipes-support/lm_sensors/files/sensord.sh b/meta-oe/recipes-support/lm_sensors/lmsensors/sensord.init
index 5a09cd3cf..5a09cd3cf 100644
--- a/meta-oe/recipes-support/lm_sensors/files/sensord.sh
+++ b/meta-oe/recipes-support/lm_sensors/lmsensors/sensord.init
diff --git a/meta-oe/recipes-support/lm_sensors/lmsensors_3.3.2.bb b/meta-oe/recipes-support/lm_sensors/lmsensors_3.3.2.bb
index 5c6c91dd7..1a1ef2dfd 100644
--- a/meta-oe/recipes-support/lm_sensors/lmsensors_3.3.2.bb
+++ b/meta-oe/recipes-support/lm_sensors/lmsensors_3.3.2.bb
@@ -8,29 +8,28 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
8DEPENDS = "sysfsutils virtual/libiconv bison-native flex-native rrdtool" 8DEPENDS = "sysfsutils virtual/libiconv bison-native flex-native rrdtool"
9 9
10SRC_URI = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${PV}.tar.bz2 \ 10SRC_URI = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${PV}.tar.bz2 \
11 file://fancontrol \ 11 file://fancontrol.init \
12 file://fancontrol.sh \ 12 file://sensord.init \
13 file://sensors.conf \
14 file://sensord.conf \
15 file://sensord.sh \
16 file://sensord.cgi \
17" 13"
18 14
19SRC_URI[md5sum] = "f357ba00b080ab102a170f7bf8bb2578" 15SRC_URI[md5sum] = "f357ba00b080ab102a170f7bf8bb2578"
20SRC_URI[sha256sum] = "f13dd885406841a7352ccfb8b9ccb23c4c057abe3de4258da5444c149a9e3ae1" 16SRC_URI[sha256sum] = "f13dd885406841a7352ccfb8b9ccb23c4c057abe3de4258da5444c149a9e3ae1"
21 17
18PR = "r1"
19
22inherit update-rc.d 20inherit update-rc.d
23 21
24INITSCRIPT_PACKAGES = "${PN}-fancontrol ${PN}-sensord" 22INITSCRIPT_PACKAGES = "${PN}-fancontrol ${PN}-sensord"
25INITSCRIPT_NAME_${PN}-fancontrol = "fancontrol.sh" 23INITSCRIPT_NAME_${PN}-fancontrol = "fancontrol"
26INITSCRIPT_NAME_${PN}-sensord = "sensord.sh" 24INITSCRIPT_NAME_${PN}-sensord = "sensord"
27INITSCRIPT_PARAMS_${PN}-fancontrol = "defaults 66" 25INITSCRIPT_PARAMS_${PN}-fancontrol = "defaults 66"
28INITSCRIPT_PARAMS_${PN}-sensord = "defaults 67" 26INITSCRIPT_PARAMS_${PN}-sensord = "defaults 67"
29 27
30S = "${WORKDIR}/lm_sensors-${PV}" 28S = "${WORKDIR}/lm_sensors-${PV}"
31 29
32EXTRA_OEMAKE = 'LINUX=${STAGING_KERNEL_DIR} EXLDFLAGS="${LDFLAGS}" \ 30EXTRA_OEMAKE = 'LINUX=${STAGING_KERNEL_DIR} EXLDFLAGS="${LDFLAGS}" \
33 MACHINE=${TARGET_ARCH} PREFIX=${prefix} CC="${CC}" AR="${AR}"' 31 MACHINE=${TARGET_ARCH} PREFIX=${prefix} MANDIR=${mandir} \
32 CC="${CC}" AR="${AR}"'
34 33
35do_compile() { 34do_compile() {
36 oe_runmake user PROG_EXTRA="sensors sensord" 35 oe_runmake user PROG_EXTRA="sensors sensord"
@@ -39,37 +38,17 @@ do_compile() {
39do_install() { 38do_install() {
40 oe_runmake user_install DESTDIR=${D} 39 oe_runmake user_install DESTDIR=${D}
41 install -m 0755 ${S}/prog/sensord/sensord ${D}${bindir} 40 install -m 0755 ${S}/prog/sensord/sensord ${D}${bindir}
42 install -m 0644 ${S}/prog/sensord/sensord.8 ${D}/usr/man/man8 41 install -m 0644 ${S}/prog/sensord/sensord.8 ${D}${mandir}/man8
43
44 # move manuals into proper place
45 install -d ${D}${mandir}
46 rm -rf ${D}${mandir}/*
47 mv ${D}/usr/man/* ${D}${mandir}
48 rmdir ${D}/usr/man
49 42
50 # Install directories 43 # Install directory
51 install -d ${D}${sysconfdir}
52 install -d ${D}${sysconfdir}/init.d 44 install -d ${D}${sysconfdir}/init.d
53 install -d ${D}${sysconfdir}/sensors.d
54
55 # Install sensors.conf
56 install -m 0644 ${WORKDIR}/sensors.conf ${D}${sysconfdir}/sensors.d
57
58 # Install fancontrol config file
59 install -m 0644 ${WORKDIR}/fancontrol ${D}${sysconfdir}
60 45
61 # Install fancontrol init script 46 # Install fancontrol init script
62 install -m 0755 ${WORKDIR}/fancontrol.sh ${D}${sysconfdir}/init.d 47 install -m 0755 ${WORKDIR}/fancontrol.init \
48 ${D}${sysconfdir}/init.d/fancontrol
63 49
64 # Install sensord init script 50 # Install sensord init script
65 install -m 0755 ${WORKDIR}/sensord.sh ${D}${sysconfdir}/init.d 51 install -m 0755 ${WORKDIR}/sensord.init ${D}${sysconfdir}/init.d/sensord
66 install -m 0644 ${WORKDIR}/sensord.conf ${D}${sysconfdir}
67
68 # Install sensord.cgi script and create world-writable
69 # web-accessible sensord directory.
70 install -d ${D}/www/pages/cgi-bin
71 install -m 0755 ${WORKDIR}/sensord.cgi ${D}/www/pages/cgi-bin
72 install -d -m a=rwxs ${D}/www/pages/sensord
73} 52}
74 53
75# libsensors packages 54# libsensors packages
@@ -97,11 +76,12 @@ PACKAGES =+ "${PN}-pwmconfig ${PN}-pwmconfig-doc"
97PACKAGES =+ "${PN}-isatools ${PN}-isatools-dbg ${PN}-isatools-doc" 76PACKAGES =+ "${PN}-isatools ${PN}-isatools-dbg ${PN}-isatools-doc"
98 77
99# libsensors files 78# libsensors files
100FILES_${PN}-libsensors = "${libdir}/libsensors.so.* ${sysconfdir}/sensors3.conf ${sysconfdir}/sensors.d/sensors.conf" 79FILES_${PN}-libsensors = "${libdir}/libsensors.so.* ${sysconfdir}/sensors3.conf ${sysconfdir}/sensors.d"
101FILES_${PN}-libsensors-dbg = "${libdir}/.debug ${prefix}/src/debug" 80FILES_${PN}-libsensors-dbg = "${libdir}/.debug ${prefix}/src/debug"
102FILES_${PN}-libsensors-dev = "${libdir}/libsensors.so ${includedir}" 81FILES_${PN}-libsensors-dev = "${libdir}/libsensors.so ${includedir}"
103FILES_${PN}-libsensors-staticdev = "${libdir}/libsensors.a" 82FILES_${PN}-libsensors-staticdev = "${libdir}/libsensors.a"
104FILES_${PN}-libsensors-doc = "${mandir}/man3" 83FILES_${PN}-libsensors-doc = "${mandir}/man3"
84RRECOMMENDS_${PN}-libsensors = "lmsensors-config-libsensors"
105 85
106# sensors command files 86# sensors command files
107FILES_${PN}-sensors = "${bindir}/sensors" 87FILES_${PN}-sensors = "${bindir}/sensors"
@@ -110,15 +90,17 @@ FILES_${PN}-sensors-doc = "${mandir}/man1 ${mandir}/man5"
110RDEPENDS_${PN}-sensors = "${PN}-libsensors" 90RDEPENDS_${PN}-sensors = "${PN}-libsensors"
111 91
112# sensord logging daemon 92# sensord logging daemon
113FILES_${PN}-sensord = "${bindir}/sensord ${sysconfdir}/sensord.conf ${sysconfdir}/init.d/sensord.sh /www/*" 93FILES_${PN}-sensord = "${bindir}/sensord ${sysconfdir}/init.d/sensord"
114FILES_${PN}-sensord-dbg = "${bindir}/.debug/sensord" 94FILES_${PN}-sensord-dbg = "${bindir}/.debug/sensord"
115FILES_${PN}-sensord-doc = "${mandir}/man8/sensord.8" 95FILES_${PN}-sensord-doc = "${mandir}/man8/sensord.8"
116RDEPENDS_${PN}-sensord = "${PN}-sensors rrdtool lighttpd lighttpd-module-cgi" 96RDEPENDS_${PN}-sensord = "${PN}-sensors rrdtool lighttpd lighttpd-module-cgi"
97RRECOMMENDS_${PN}-sensord = "lmsensors-config-sensord"
117 98
118# fancontrol script files 99# fancontrol script files
119FILES_${PN}-fancontrol = "${sbindir}/fancontrol ${sysconfdir}/fancontrol ${sysconfdir}/init.d/fancontrol.sh" 100FILES_${PN}-fancontrol = "${sbindir}/fancontrol ${sysconfdir}/init.d/fancontrol"
120FILES_${PN}-fancontrol-doc = "${mandir}/man8/fancontrol.8" 101FILES_${PN}-fancontrol-doc = "${mandir}/man8/fancontrol.8"
121RDEPENDS_${PN}-fancontrol = "bash" 102RDEPENDS_${PN}-fancontrol = "bash"
103RRECOMMENDS_${PN}-fancontrol = "lmsensors-config-fancontrol"
122 104
123# sensors-detect script files 105# sensors-detect script files
124FILES_${PN}-sensorsdetect = "${sbindir}/sensors-detect" 106FILES_${PN}-sensorsdetect = "${sbindir}/sensors-detect"