From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vb0-f47.google.com ([209.85.212.47]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1TPEVL-0007JI-3A for openembedded-devel@lists.openembedded.org; Fri, 19 Oct 2012 17:28:55 +0200 Received: by mail-vb0-f47.google.com with SMTP id ez10so556543vbb.6 for ; Fri, 19 Oct 2012 08:15:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references; bh=ASrTZwwaZEsZ6Tu5CD9J6PPyyZRfzmz8bU/jvCIIs6s=; b=flc2LTr8sxOFxUbZ/LoWwc63o5AR3wfmoIRNclzapyi51N8Nq1lux/9NMRn2KhGiKe TkAR6VOBGGN+r4CxiTbeWz9eU8lFxXa2nyuc/QE70hcJtyYuLM6BIii465EvrUuTAT2+ Tl599BD3mA8b14JeBmz9+cZQLdJwoTbfOnI/pxszIFvmFicB1CE3HADyRme2XDLJgP1M D9sTn2mVD3kFcliEZsAvdylPX/4RK828C8x2vRR7zbK2ZAxtvxWbBCMGdnRcNWB1fDuo UhvQjI0NeFFIZrqotKVnq2gv3n+ln9+Y/qv1ZcxmWGA2sjLcfXJOToi4N+wtaFwAQaFe rYvQ== Received: by 10.58.32.233 with SMTP id m9mr2131368vei.23.1350659733516; Fri, 19 Oct 2012 08:15:33 -0700 (PDT) Received: from ferlandm@sonatest.com (modemcable066.15-37-24.static.videotron.ca. [24.37.15.66]) by mx.google.com with ESMTPS id v9sm1652299ves.8.2012.10.19.08.15.31 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Oct 2012 08:15:32 -0700 (PDT) Sender: Marc Ferland Received: by ferlandm@sonatest.com (sSMTP sendmail emulation); Fri, 19 Oct 2012 11:15:38 -0400 From: Marc Ferland To: openembedded-devel@lists.openembedded.org Date: Fri, 19 Oct 2012 11:15:34 -0400 Message-Id: <1350659734-10362-2-git-send-email-ferlandm@sonatest.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1350659734-10362-1-git-send-email-ferlandm@sonatest.com> References: <1350659734-10362-1-git-send-email-ferlandm@sonatest.com> Subject: [meta-oe][PATCH] lmsensors: Initial commit X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2012 15:28:55 -0000 The lmsensors project provides hardware health monitoring tools in the form of kernel drivers, a user-space library and some helper programs. This recipe provides all the different user-space tools offered by lmsensors in separete packages. Startup scripts and default configuration files are also made available through this commit. The packages consist of (description text from lmsensors documentation): * lmsensors-libsensors: The user-space sensors support library code. * lmsensors-sensors: A console tool to report sensor readings and set new sensor limits. * lmsensors-sensord: A daemon to watch sensor values and log problems. It includes RRD support. * lmsensors-fancontrol: Controls fanspeeds responding to changes on temperature sensors. Configuration through pwmconfig. * lmsensors-sensorsdetect: This program tries to detect the available SMBus adapters and the chips connected to them, as well as Super-I/O and misc chips. * lmsensors-sensorsconfconvert: Convert configuration files from lmsensorsv2 to lmsensorsv3. * lmsensors-pwmconfig: tests the pwm (pulse width modulation) outputs of sensors for their effect on the fans and helps to setup the configfile for fancontrol. * lmsensors-isatools: This program sets/gets the registers of ISA or Super-I/O chips. Signed-off-by: Marc Ferland --- .../recipes-support/lm_sensors/files/fancontrol | 2 + .../recipes-support/lm_sensors/files/fancontrol.sh | 48 +++++++ .../recipes-support/lm_sensors/files/sensord.cgi | 10 ++ .../recipes-support/lm_sensors/files/sensord.conf | 16 +++ .../recipes-support/lm_sensors/files/sensord.sh | 49 +++++++ .../recipes-support/lm_sensors/files/sensors.conf | 2 + .../recipes-support/lm_sensors/lmsensors_3.3.2.bb | 140 ++++++++++++++++++++ 7 files changed, 267 insertions(+), 0 deletions(-) create mode 100644 meta-oe/recipes-support/lm_sensors/files/fancontrol create mode 100644 meta-oe/recipes-support/lm_sensors/files/fancontrol.sh create mode 100644 meta-oe/recipes-support/lm_sensors/files/sensord.cgi create mode 100644 meta-oe/recipes-support/lm_sensors/files/sensord.conf create mode 100644 meta-oe/recipes-support/lm_sensors/files/sensord.sh create mode 100644 meta-oe/recipes-support/lm_sensors/files/sensors.conf create mode 100644 meta-oe/recipes-support/lm_sensors/lmsensors_3.3.2.bb diff --git a/meta-oe/recipes-support/lm_sensors/files/fancontrol b/meta-oe/recipes-support/lm_sensors/files/fancontrol new file mode 100644 index 0000000..1f03a2b --- /dev/null +++ b/meta-oe/recipes-support/lm_sensors/files/fancontrol @@ -0,0 +1,2 @@ +# fancontrol configuration file. +# Place your device specific configuration in this file. diff --git a/meta-oe/recipes-support/lm_sensors/files/fancontrol.sh b/meta-oe/recipes-support/lm_sensors/files/fancontrol.sh new file mode 100644 index 0000000..f179310 --- /dev/null +++ b/meta-oe/recipes-support/lm_sensors/files/fancontrol.sh @@ -0,0 +1,48 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: fancontrol +# Required-Start: $local_fs +# Should-Start: +# Required-Stop: $local_fs +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: fancontrol initscript +# Description: Starts and controls the fancontrol daemon +### END INIT INFO + +PATH=/sbin:/usr/sbin:/bin:/usr/bin + +DESC="fan control daemon" +NAME="fancontrol" +FANCONTROL=`which $NAME` + +. /etc/init.d/functions || exit 1 + +# Exit if the package is not installed +[ -x "$FANCONTROL" ] || exit 0 + +case "$1" in + start) + echo -n "Starting $DESC: $NAME... " + /sbin/start-stop-daemon -S -x $FANCONTROL -b -- $FANCONTROL_ARGS + echo "done." + ;; + stop) + echo -n "Stopping $DESC: $NAME... " + /sbin/start-stop-daemon -K -x $FANCONTROL + echo "done." + ;; + restart) + echo "Restarting $DESC: $NAME... " + $0 stop + $0 start + echo "done." + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 + ;; +esac + +exit 0 diff --git a/meta-oe/recipes-support/lm_sensors/files/sensord.cgi b/meta-oe/recipes-support/lm_sensors/files/sensord.cgi new file mode 100644 index 0000000..b1aad05 --- /dev/null +++ b/meta-oe/recipes-support/lm_sensors/files/sensord.cgi @@ -0,0 +1,10 @@ +#!/usr/bin/rrdcgi + + + +sensord + + +Generate a valid sensord.cgi script and install it in your BSP. + + diff --git a/meta-oe/recipes-support/lm_sensors/files/sensord.conf b/meta-oe/recipes-support/lm_sensors/files/sensord.conf new file mode 100644 index 0000000..6b48cf6 --- /dev/null +++ b/meta-oe/recipes-support/lm_sensors/files/sensord.conf @@ -0,0 +1,16 @@ +# Default sensord configuration file +# Syntax: sensord {options} {chips} +# -i, --interval