Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 23rd, 2013  |  syntax: None  |  size: 4.56 KB  |  views: 5  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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] = "73c2fcccdab6049d289c5e0c596192a1"
  15. SRC_URI[sha256sum] = "ecc91ba3d918e96fb7d5eb9acce978af803b130e0b33b08d5ea05b2bfca84955"
  16.  
  17. inherit update-rc.d
  18.  
  19. INITSCRIPT_PACKAGES = "${PN}-fancontrol ${PN}-sensord"
  20. INITSCRIPT_NAME_${PN}-fancontrol = "fancontrol"
  21. INITSCRIPT_NAME_${PN}-sensord = "sensord"
  22. INITSCRIPT_PARAMS_${PN}-fancontrol = "defaults 66"
  23. INITSCRIPT_PARAMS_${PN}-sensord = "defaults 67"
  24.  
  25. S = "${WORKDIR}/lm_sensors-${PV}"
  26.  
  27. EXTRA_OEMAKE = 'LINUX=${STAGING_KERNEL_DIR} EXLDFLAGS="${LDFLAGS}" \
  28.         MACHINE=${TARGET_ARCH} PREFIX=${prefix} MANDIR=${mandir} \
  29.         LIBDIR=${libdir} \
  30.         CC="${CC}" AR="${AR}"'
  31.  
  32. do_compile() {
  33.     oe_runmake user PROG_EXTRA="sensors sensord"
  34. }
  35.  
  36. do_install() {
  37.     oe_runmake user_install DESTDIR=${D}
  38.     install -m 0755 ${S}/prog/sensord/sensord ${D}${bindir}
  39.     install -m 0644 ${S}/prog/sensord/sensord.8 ${D}${mandir}/man8
  40.  
  41.     # Install directory
  42.     install -d ${D}${sysconfdir}/init.d
  43.  
  44.     # Install fancontrol init script
  45.     install -m 0755 ${WORKDIR}/fancontrol.init \
  46.         ${D}${sysconfdir}/init.d/fancontrol
  47.  
  48.     # Install sensord init script
  49.     install -m 0755 ${WORKDIR}/sensord.init ${D}${sysconfdir}/init.d/sensord
  50. }
  51.  
  52. # libsensors packages
  53. PACKAGES =+ "${PN}-libsensors ${PN}-libsensors-dbg ${PN}-libsensors-dev ${PN}-libsensors-staticdev ${PN}-libsensors-doc"
  54.  
  55. # sensors command packages
  56. PACKAGES =+ "${PN}-sensors ${PN}-sensors-dbg ${PN}-sensors-doc"
  57.  
  58. # sensord logging daemon
  59. PACKAGES =+ "${PN}-sensord ${PN}-sensord-dbg ${PN}-sensord-doc ${PN}-sensord-cgi"
  60.  
  61. # fancontrol script
  62. PACKAGES =+ "${PN}-fancontrol ${PN}-fancontrol-doc"
  63.  
  64. # sensors-detect script
  65. PACKAGES =+ "${PN}-sensorsdetect ${PN}-sensorsdetect-doc"
  66.  
  67. # sensors-conf-convert script
  68. PACKAGES =+ "${PN}-sensorsconfconvert"
  69.  
  70. # pwmconfig script
  71. PACKAGES =+ "${PN}-pwmconfig ${PN}-pwmconfig-doc"
  72.  
  73. # isadump and isaset helper program
  74. PACKAGES =+ "${PN}-isatools ${PN}-isatools-dbg ${PN}-isatools-doc"
  75.  
  76. # libsensors files
  77. FILES_${PN}-libsensors = "${libdir}/libsensors.so.* ${sysconfdir}/sensors3.conf ${sysconfdir}/sensors.d"
  78. FILES_${PN}-libsensors-dbg = "${libdir}/.debug ${prefix}/src/debug"
  79. FILES_${PN}-libsensors-dev = "${libdir}/libsensors.so ${includedir}"
  80. FILES_${PN}-libsensors-staticdev = "${libdir}/libsensors.a"
  81. FILES_${PN}-libsensors-doc = "${mandir}/man3"
  82. RRECOMMENDS_${PN}-libsensors = "lmsensors-config-libsensors"
  83.  
  84. # sensors command files
  85. FILES_${PN}-sensors = "${bindir}/sensors"
  86. FILES_${PN}-sensors-dbg = "${bindir}/.debug/sensors"
  87. FILES_${PN}-sensors-doc = "${mandir}/man1 ${mandir}/man5"
  88. RDEPENDS_${PN}-sensors = "${PN}-libsensors"
  89.  
  90. # sensord logging daemon
  91. FILES_${PN}-sensord = "${bindir}/sensord ${sysconfdir}/init.d/sensord"
  92. FILES_${PN}-sensord-dbg = "${bindir}/.debug/sensord"
  93. FILES_${PN}-sensord-doc = "${mandir}/man8/sensord.8"
  94. RDEPENDS_${PN}-sensord = "${PN}-sensors rrdtool"
  95. RRECOMMENDS_${PN}-sensord = "lmsensors-config-sensord"
  96.  
  97. # sensord web cgi support
  98. RDEPENDS_${PN}-sensord-cgi = "${PN}-sensord lighttpd lighttpd-module-cgi"
  99.  
  100. # fancontrol script files
  101. FILES_${PN}-fancontrol = "${sbindir}/fancontrol ${sysconfdir}/init.d/fancontrol"
  102. FILES_${PN}-fancontrol-doc = "${mandir}/man8/fancontrol.8"
  103. RDEPENDS_${PN}-fancontrol = "bash"
  104. RRECOMMENDS_${PN}-fancontrol = "lmsensors-config-fancontrol"
  105.  
  106. # sensors-detect script files
  107. FILES_${PN}-sensorsdetect = "${sbindir}/sensors-detect"
  108. FILES_${PN}-sensorsdetect-doc = "${mandir}/man8/sensors-detect.8"
  109. RDEPENDS_${PN}-sensorsdetect = "${PN}-sensors perl perl-modules"
  110.  
  111. # sensors-conf-convert script files
  112. FILES_${PN}-sensorsconfconvert = "${bindir}/sensors-conf-convert"
  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*"