This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 23rd, 2013  |  syntax: None  |  size: 1.65 KB  |  views: 36  |  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 configuration files"
  2. DESCRIPTION = "Hardware health monitoring configuration files"
  3. HOMEPAGE = "http://www.lm-sensors.org/"
  4. LICENSE = "MIT-X"
  5. LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
  6.  
  7. PACKAGE_ARCH = "${MACHINE_ARCH}"
  8.  
  9. SRC_URI = "file://fancontrol \
  10.            file://sensord.cgi \
  11.            file://sensord.conf \
  12.            file://sensors.conf \
  13. "
  14.  
  15. do_install() {
  16.     # Install fancontrol configuration file
  17.     install -d ${D}${sysconfdir}
  18.     install -m 0644 ${WORKDIR}/fancontrol ${D}${sysconfdir}
  19.  
  20.     # Install libsensors configuration file
  21.     install -d ${D}${sysconfdir}/sensors.d
  22.     install -m 0644 ${WORKDIR}/sensors.conf ${D}${sysconfdir}/sensors.d
  23.  
  24.     # Install sensord configuration file
  25.     install -m 0644 ${WORKDIR}/sensord.conf ${D}${sysconfdir}
  26.  
  27.     # Install sensord.cgi script and create world-writable
  28.     # web-accessible sensord directory
  29.     install -d ${D}/www/pages/cgi-bin
  30.     install -m 0755 ${WORKDIR}/sensord.cgi ${D}/www/pages/cgi-bin
  31.     install -d -m a=rwxs ${D}/www/pages/sensord
  32. }
  33.  
  34. # libsensors configuration
  35. PACKAGES =+ "${PN}-libsensors"
  36.  
  37. # sensord logging daemon configuration
  38. PACKAGES =+ "${PN}-sensord"
  39.  
  40. # fancontrol script configuration
  41. PACKAGES =+ "${PN}-fancontrol"
  42.  
  43. # libsensors configuration file
  44. FILES_${PN}-libsensors = "${sysconfdir}/sensors.d/sensors.conf"
  45.  
  46. # sensord-cgi web files
  47. FILES_${PN}-sensord-cgi = "/www/*"
  48.  
  49. # sensord logging daemon configuration files
  50. FILES_${PN}-sensord = "${sysconfdir}/sensord.conf"
  51.  
  52. # fancontrol script configuration file
  53. FILES_${PN}-fancontrol = "${sysconfdir}/fancontrol"
clone this paste RAW Paste Data