diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
commit | 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch) | |
tree | a21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-oe/recipes-support/lm_sensors/lmsensors_3.3.5.bb | |
download | meta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-support/lm_sensors/lmsensors_3.3.5.bb')
-rw-r--r-- | meta-oe/recipes-support/lm_sensors/lmsensors_3.3.5.bb | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/lm_sensors/lmsensors_3.3.5.bb b/meta-oe/recipes-support/lm_sensors/lmsensors_3.3.5.bb new file mode 100644 index 000000000..c2aefba27 --- /dev/null +++ b/meta-oe/recipes-support/lm_sensors/lmsensors_3.3.5.bb | |||
@@ -0,0 +1,123 @@ | |||
1 | SUMMARY = "lm_sensors" | ||
2 | DESCRIPTION = "Hardware health monitoring applications" | ||
3 | HOMEPAGE = "http://www.lm-sensors.org/" | ||
4 | LICENSE = "GPLv2+ & LGPLv2.1+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ | ||
6 | file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c" | ||
7 | |||
8 | DEPENDS = "sysfsutils virtual/libiconv bison-native flex-native rrdtool" | ||
9 | |||
10 | SRC_URI = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${PV}.tar.bz2 \ | ||
11 | file://fancontrol.init \ | ||
12 | file://sensord.init \ | ||
13 | " | ||
14 | SRC_URI[md5sum] = "da506dedceb41822e64865f6ba34828a" | ||
15 | SRC_URI[sha256sum] = "5dae6a665e1150159a93743c4ff1943a7efe02cd9d3bb12c4805e7d7adcf4fcf" | ||
16 | |||
17 | inherit update-rc.d | ||
18 | |||
19 | RDEPENDS_${PN}-dev = "" | ||
20 | |||
21 | INITSCRIPT_PACKAGES = "${PN}-fancontrol ${PN}-sensord" | ||
22 | INITSCRIPT_NAME_${PN}-fancontrol = "fancontrol" | ||
23 | INITSCRIPT_NAME_${PN}-sensord = "sensord" | ||
24 | INITSCRIPT_PARAMS_${PN}-fancontrol = "defaults 66" | ||
25 | INITSCRIPT_PARAMS_${PN}-sensord = "defaults 67" | ||
26 | |||
27 | S = "${WORKDIR}/lm_sensors-${PV}" | ||
28 | |||
29 | EXTRA_OEMAKE = 'LINUX=${STAGING_KERNEL_DIR} EXLDFLAGS="${LDFLAGS}" \ | ||
30 | MACHINE=${TARGET_ARCH} PREFIX=${prefix} MANDIR=${mandir} \ | ||
31 | LIBDIR=${libdir} \ | ||
32 | CC="${CC}" AR="${AR}"' | ||
33 | |||
34 | do_compile() { | ||
35 | oe_runmake user PROG_EXTRA="sensors sensord" | ||
36 | } | ||
37 | |||
38 | do_install() { | ||
39 | oe_runmake user_install DESTDIR=${D} | ||
40 | install -m 0755 ${S}/prog/sensord/sensord ${D}${bindir} | ||
41 | install -m 0644 ${S}/prog/sensord/sensord.8 ${D}${mandir}/man8 | ||
42 | |||
43 | # Install directory | ||
44 | install -d ${D}${sysconfdir}/init.d | ||
45 | |||
46 | # Install fancontrol init script | ||
47 | install -m 0755 ${WORKDIR}/fancontrol.init \ | ||
48 | ${D}${sysconfdir}/init.d/fancontrol | ||
49 | |||
50 | # Install sensord init script | ||
51 | install -m 0755 ${WORKDIR}/sensord.init ${D}${sysconfdir}/init.d/sensord | ||
52 | } | ||
53 | |||
54 | # libsensors packages | ||
55 | PACKAGES =+ "${PN}-libsensors ${PN}-libsensors-dbg ${PN}-libsensors-dev ${PN}-libsensors-staticdev ${PN}-libsensors-doc" | ||
56 | |||
57 | # sensors command packages | ||
58 | PACKAGES =+ "${PN}-sensors ${PN}-sensors-dbg ${PN}-sensors-doc" | ||
59 | |||
60 | # sensord logging daemon | ||
61 | PACKAGES =+ "${PN}-sensord ${PN}-sensord-dbg ${PN}-sensord-doc" | ||
62 | |||
63 | # fancontrol script | ||
64 | PACKAGES =+ "${PN}-fancontrol ${PN}-fancontrol-doc" | ||
65 | |||
66 | # sensors-detect script | ||
67 | PACKAGES =+ "${PN}-sensorsdetect ${PN}-sensorsdetect-doc" | ||
68 | |||
69 | # sensors-conf-convert script | ||
70 | PACKAGES =+ "${PN}-sensorsconfconvert ${PN}-sensorsconfconvert-doc" | ||
71 | |||
72 | # pwmconfig script | ||
73 | PACKAGES =+ "${PN}-pwmconfig ${PN}-pwmconfig-doc" | ||
74 | |||
75 | # isadump and isaset helper program | ||
76 | PACKAGES =+ "${PN}-isatools ${PN}-isatools-dbg ${PN}-isatools-doc" | ||
77 | |||
78 | # libsensors files | ||
79 | FILES_${PN}-libsensors = "${libdir}/libsensors.so.* ${sysconfdir}/sensors3.conf ${sysconfdir}/sensors.d" | ||
80 | FILES_${PN}-libsensors-dbg = "${libdir}/.debug ${prefix}/src/debug" | ||
81 | FILES_${PN}-libsensors-dev = "${libdir}/libsensors.so ${includedir}" | ||
82 | FILES_${PN}-libsensors-staticdev = "${libdir}/libsensors.a" | ||
83 | FILES_${PN}-libsensors-doc = "${mandir}/man3" | ||
84 | RRECOMMENDS_${PN}-libsensors = "lmsensors-config-libsensors" | ||
85 | |||
86 | # sensors command files | ||
87 | FILES_${PN}-sensors = "${bindir}/sensors" | ||
88 | FILES_${PN}-sensors-dbg = "${bindir}/.debug/sensors" | ||
89 | FILES_${PN}-sensors-doc = "${mandir}/man1 ${mandir}/man5" | ||
90 | RDEPENDS_${PN}-sensors = "${PN}-libsensors" | ||
91 | |||
92 | # sensord logging daemon | ||
93 | FILES_${PN}-sensord = "${bindir}/sensord ${sysconfdir}/init.d/sensord" | ||
94 | FILES_${PN}-sensord-dbg = "${bindir}/.debug/sensord" | ||
95 | FILES_${PN}-sensord-doc = "${mandir}/man8/sensord.8" | ||
96 | RDEPENDS_${PN}-sensord = "${PN}-sensors rrdtool" | ||
97 | RRECOMMENDS_${PN}-sensord = "lmsensors-config-sensord" | ||
98 | |||
99 | # fancontrol script files | ||
100 | FILES_${PN}-fancontrol = "${sbindir}/fancontrol ${sysconfdir}/init.d/fancontrol" | ||
101 | FILES_${PN}-fancontrol-doc = "${mandir}/man8/fancontrol.8" | ||
102 | RDEPENDS_${PN}-fancontrol = "bash" | ||
103 | RRECOMMENDS_${PN}-fancontrol = "lmsensors-config-fancontrol" | ||
104 | |||
105 | # sensors-detect script files | ||
106 | FILES_${PN}-sensorsdetect = "${sbindir}/sensors-detect" | ||
107 | FILES_${PN}-sensorsdetect-doc = "${mandir}/man8/sensors-detect.8" | ||
108 | RDEPENDS_${PN}-sensorsdetect = "${PN}-sensors perl perl-modules" | ||
109 | |||
110 | # sensors-conf-convert script files | ||
111 | FILES_${PN}-sensorsconfconvert = "${bindir}/sensors-conf-convert" | ||
112 | FILES_${PN}-sensorsconfconvert-doc = "${mandir}/man8/sensors-conf-convert.8" | ||
113 | RDEPENDS_${PN}-sensorsconfconvert = "${PN}-sensors perl perl-modules" | ||
114 | |||
115 | # pwmconfig script files | ||
116 | FILES_${PN}-pwmconfig = "${sbindir}/pwmconfig" | ||
117 | FILES_${PN}-pwmconfig-doc = "${mandir}/man8/pwmconfig.8" | ||
118 | RDEPENDS_${PN}-pwmconfig = "${PN}-fancontrol" | ||
119 | |||
120 | # isadump and isaset helper program files | ||
121 | FILES_${PN}-isatools = "${sbindir}/isa*" | ||
122 | FILES_${PN}-isatools-dbg = "${sbindir}/.debug/isa*" | ||
123 | FILES_${PN}-isatools-doc = "${mandir}/man8/isa*" | ||