diff options
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.bb | 56 |
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 \ | |||
8 | DEPENDS = "sysfsutils virtual/libiconv bison-native flex-native rrdtool" | 8 | DEPENDS = "sysfsutils virtual/libiconv bison-native flex-native rrdtool" |
9 | 9 | ||
10 | SRC_URI = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${PV}.tar.bz2 \ | 10 | SRC_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 | ||
19 | SRC_URI[md5sum] = "f357ba00b080ab102a170f7bf8bb2578" | 15 | SRC_URI[md5sum] = "f357ba00b080ab102a170f7bf8bb2578" |
20 | SRC_URI[sha256sum] = "f13dd885406841a7352ccfb8b9ccb23c4c057abe3de4258da5444c149a9e3ae1" | 16 | SRC_URI[sha256sum] = "f13dd885406841a7352ccfb8b9ccb23c4c057abe3de4258da5444c149a9e3ae1" |
21 | 17 | ||
18 | PR = "r1" | ||
19 | |||
22 | inherit update-rc.d | 20 | inherit update-rc.d |
23 | 21 | ||
24 | INITSCRIPT_PACKAGES = "${PN}-fancontrol ${PN}-sensord" | 22 | INITSCRIPT_PACKAGES = "${PN}-fancontrol ${PN}-sensord" |
25 | INITSCRIPT_NAME_${PN}-fancontrol = "fancontrol.sh" | 23 | INITSCRIPT_NAME_${PN}-fancontrol = "fancontrol" |
26 | INITSCRIPT_NAME_${PN}-sensord = "sensord.sh" | 24 | INITSCRIPT_NAME_${PN}-sensord = "sensord" |
27 | INITSCRIPT_PARAMS_${PN}-fancontrol = "defaults 66" | 25 | INITSCRIPT_PARAMS_${PN}-fancontrol = "defaults 66" |
28 | INITSCRIPT_PARAMS_${PN}-sensord = "defaults 67" | 26 | INITSCRIPT_PARAMS_${PN}-sensord = "defaults 67" |
29 | 27 | ||
30 | S = "${WORKDIR}/lm_sensors-${PV}" | 28 | S = "${WORKDIR}/lm_sensors-${PV}" |
31 | 29 | ||
32 | EXTRA_OEMAKE = 'LINUX=${STAGING_KERNEL_DIR} EXLDFLAGS="${LDFLAGS}" \ | 30 | EXTRA_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 | ||
35 | do_compile() { | 34 | do_compile() { |
36 | oe_runmake user PROG_EXTRA="sensors sensord" | 35 | oe_runmake user PROG_EXTRA="sensors sensord" |
@@ -39,37 +38,17 @@ do_compile() { | |||
39 | do_install() { | 38 | do_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" | |||
97 | PACKAGES =+ "${PN}-isatools ${PN}-isatools-dbg ${PN}-isatools-doc" | 76 | PACKAGES =+ "${PN}-isatools ${PN}-isatools-dbg ${PN}-isatools-doc" |
98 | 77 | ||
99 | # libsensors files | 78 | # libsensors files |
100 | FILES_${PN}-libsensors = "${libdir}/libsensors.so.* ${sysconfdir}/sensors3.conf ${sysconfdir}/sensors.d/sensors.conf" | 79 | FILES_${PN}-libsensors = "${libdir}/libsensors.so.* ${sysconfdir}/sensors3.conf ${sysconfdir}/sensors.d" |
101 | FILES_${PN}-libsensors-dbg = "${libdir}/.debug ${prefix}/src/debug" | 80 | FILES_${PN}-libsensors-dbg = "${libdir}/.debug ${prefix}/src/debug" |
102 | FILES_${PN}-libsensors-dev = "${libdir}/libsensors.so ${includedir}" | 81 | FILES_${PN}-libsensors-dev = "${libdir}/libsensors.so ${includedir}" |
103 | FILES_${PN}-libsensors-staticdev = "${libdir}/libsensors.a" | 82 | FILES_${PN}-libsensors-staticdev = "${libdir}/libsensors.a" |
104 | FILES_${PN}-libsensors-doc = "${mandir}/man3" | 83 | FILES_${PN}-libsensors-doc = "${mandir}/man3" |
84 | RRECOMMENDS_${PN}-libsensors = "lmsensors-config-libsensors" | ||
105 | 85 | ||
106 | # sensors command files | 86 | # sensors command files |
107 | FILES_${PN}-sensors = "${bindir}/sensors" | 87 | FILES_${PN}-sensors = "${bindir}/sensors" |
@@ -110,15 +90,17 @@ FILES_${PN}-sensors-doc = "${mandir}/man1 ${mandir}/man5" | |||
110 | RDEPENDS_${PN}-sensors = "${PN}-libsensors" | 90 | RDEPENDS_${PN}-sensors = "${PN}-libsensors" |
111 | 91 | ||
112 | # sensord logging daemon | 92 | # sensord logging daemon |
113 | FILES_${PN}-sensord = "${bindir}/sensord ${sysconfdir}/sensord.conf ${sysconfdir}/init.d/sensord.sh /www/*" | 93 | FILES_${PN}-sensord = "${bindir}/sensord ${sysconfdir}/init.d/sensord" |
114 | FILES_${PN}-sensord-dbg = "${bindir}/.debug/sensord" | 94 | FILES_${PN}-sensord-dbg = "${bindir}/.debug/sensord" |
115 | FILES_${PN}-sensord-doc = "${mandir}/man8/sensord.8" | 95 | FILES_${PN}-sensord-doc = "${mandir}/man8/sensord.8" |
116 | RDEPENDS_${PN}-sensord = "${PN}-sensors rrdtool lighttpd lighttpd-module-cgi" | 96 | RDEPENDS_${PN}-sensord = "${PN}-sensors rrdtool lighttpd lighttpd-module-cgi" |
97 | RRECOMMENDS_${PN}-sensord = "lmsensors-config-sensord" | ||
117 | 98 | ||
118 | # fancontrol script files | 99 | # fancontrol script files |
119 | FILES_${PN}-fancontrol = "${sbindir}/fancontrol ${sysconfdir}/fancontrol ${sysconfdir}/init.d/fancontrol.sh" | 100 | FILES_${PN}-fancontrol = "${sbindir}/fancontrol ${sysconfdir}/init.d/fancontrol" |
120 | FILES_${PN}-fancontrol-doc = "${mandir}/man8/fancontrol.8" | 101 | FILES_${PN}-fancontrol-doc = "${mandir}/man8/fancontrol.8" |
121 | RDEPENDS_${PN}-fancontrol = "bash" | 102 | RDEPENDS_${PN}-fancontrol = "bash" |
103 | RRECOMMENDS_${PN}-fancontrol = "lmsensors-config-fancontrol" | ||
122 | 104 | ||
123 | # sensors-detect script files | 105 | # sensors-detect script files |
124 | FILES_${PN}-sensorsdetect = "${sbindir}/sensors-detect" | 106 | FILES_${PN}-sensorsdetect = "${sbindir}/sensors-detect" |