diff --git a/hardware/powermanagement/lm_sensors/actions.py b/hardware/powermanagement/lm_sensors/actions.py
index 178cce1b3b..23b3172cba 100644
--- a/hardware/powermanagement/lm_sensors/actions.py
+++ b/hardware/powermanagement/lm_sensors/actions.py
@@ -9,17 +9,9 @@ from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def build():
- autotools.make("CC=%s LIBDIR=/usr/lib EXLDFLAGS= PROG_EXTRA=sensord user" % get.CC())
+ autotools.make("PREFIX=/usr")
def install():
- autotools.rawInstall("PREFIX=/usr MANDIR=/%s PROG_EXTRA=sensord DESTDIR=%s user_install" % (get.manDIR(), get.installDIR()))
-
- # Drop static lib
- pisitools.remove("/usr/lib/libsensors.a")
-
- pisitools.dodir("/etc/sensors.d")
-
- # Install systemd service
- pisitools.insinto("/lib/systemd/system", "prog/init/lm_sensors.service")
+ autotools.rawInstall("PREFIX=/usr BUILD_STATIC_LIB=0 MANDIR=/%s PROG_EXTRA=sensord DESTDIR=%s user_install" % (get.manDIR(), get.installDIR()))
pisitools.dodoc("CHANGES", "CONTRIBUTORS", "README")
diff --git a/hardware/powermanagement/lm_sensors/files/lm_sensors-fancontrol.patch b/hardware/powermanagement/lm_sensors/files/lm_sensors-fancontrol.patch
new file mode 100644
index 0000000000..c42d7b8702
--- /dev/null
+++ b/hardware/powermanagement/lm_sensors/files/lm_sensors-fancontrol.patch
@@ -0,0 +1,29 @@
+--- prog/pwm/fancontrol 2012-11-07 03:26:37.000000000 +0200
++++ prog/pwm/fancontrol 2013-03-22 18:15:00.566696011 +0200
+@@ -297,7 +297,7 @@
+ cd $DIR
+
+ # Check for configuration change
+-if [ "$DIR" != "/" ] && [ -z "$DEVPATH" -o -z "$DEVNAME" ]
++if [[ "$DIR" != "/" && ( -z "$DEVPATH" || -z "$DEVNAME" ) ]]
+ then
+ echo "Configuration is too old, please run pwmconfig again" >&2
+ exit 1
+@@ -337,7 +337,7 @@
+ # It didn't work, try pwmN_enable=1 pwmN=255
+ echo 1 > $ENABLE 2> /dev/null
+ echo $MAX > $1
+- if [ `cat $ENABLE` -eq 1 -a `cat $1` -ge 190 ]
++ if [ `cat $ENABLE` -eq 1 ] && [ `cat $1` -ge 190 ]
+ then
+ # Success
+ return 0
+@@ -469,7 +469,7 @@
+ else
+ # calculate the new value from temperature and settings
+ pwmval="(${tval}-${mint})*(${maxpwm}-${minso})/(${maxt}-${mint})+${minso}"
+- if [ $pwmpval -eq 0 -o $min_fanval -eq 0 ]
++ if [ $pwmpval -eq 0 ] || [ $min_fanval -eq 0 ]
+ then # if fan was stopped start it using a safe value
+ echo $minsa > $pwmo
+ # Sleep while still handling signals
diff --git a/hardware/powermanagement/lm_sensors/files/sensord.conf b/hardware/powermanagement/lm_sensors/files/sensord.conf
new file mode 100644
index 0000000000..133783aa82
--- /dev/null
+++ b/hardware/powermanagement/lm_sensors/files/sensord.conf
@@ -0,0 +1,9 @@
+#
+# /etc/conf.d/sensord
+#
+
+#Specify the interval between scanning for sensor alarms
+INTERVAL=60s
+
+#Specify the interval between logging all sensor readings
+LOG_INTERVAL=30m
diff --git a/hardware/powermanagement/lm_sensors/pspec.xml b/hardware/powermanagement/lm_sensors/pspec.xml
index a2ec81004b..5d492c9ef5 100644
--- a/hardware/powermanagement/lm_sensors/pspec.xml
+++ b/hardware/powermanagement/lm_sensors/pspec.xml
@@ -13,12 +13,12 @@
library
Hardware monitoring tools
lm_sensors provides essential tools for monitoring the temperatures, voltages, and fans of Linux systems with hardware monitoring devices. It also contains scripts for sensor hardware identification and fan speed control.
- http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-3.3.5.tar.bz2
+ http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-3.4.0.tar.bz2
rrdtool-devel
- lm_sensors-3.3.5-upstream_fixes-1.patch
+ lm_sensors-fancontrol.patch
@@ -35,7 +35,6 @@
/usr/lib
/usr/share/man
/usr/share/doc
- /lib/systemd/system
@@ -53,6 +52,13 @@
+
+ 2015-10-02
+ 3.4.0
+ Version bump.
+ Ertuğrul Erata
+ ertugrulerata@gmail.com
+
2014-04-14
3.3.5