Date: Monday, October 10, 2016 @ 16:39:18
  Author: lcarlier
Revision: 191883

archrelease: copy trunk to multilib-x86_64

Added:
  lib32-lm_sensors/repos/multilib-x86_64/
  lib32-lm_sensors/repos/multilib-x86_64/PKGBUILD
    (from rev 191882, lib32-lm_sensors/trunk/PKGBUILD)
  lib32-lm_sensors/repos/multilib-x86_64/lm_sensors-fancontrol.patch
    (from rev 191882, lib32-lm_sensors/trunk/lm_sensors-fancontrol.patch)

-----------------------------+
 PKGBUILD                    |   44 ++++++++++++++++++++++++++++++++++++++++++
 lm_sensors-fancontrol.patch |   29 +++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

Copied: lib32-lm_sensors/repos/multilib-x86_64/PKGBUILD (from rev 191882, 
lib32-lm_sensors/trunk/PKGBUILD)
===================================================================
--- multilib-x86_64/PKGBUILD                            (rev 0)
+++ multilib-x86_64/PKGBUILD    2016-10-10 16:39:18 UTC (rev 191883)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Laurent Carlier <lordhea...@gmail.com>
+# Contributor: Eric BĂ©langer <e...@archlinux.org>
+# Contributor: Lubosz Sarnecki <lubo...@gmail.com>
+
+pkgname=lib32-lm_sensors
+pkgver=3.4.0
+_ver=${pkgver//\./-}
+pkgrel=1
+pkgdesc="Collection of user space tools for general SMBus access and hardware 
monitoring (32-bit)"
+arch=('x86_64')
+url="http://www.lm-sensors.org/";
+license=('GPL' 'LGPL')
+depends=('lm_sensors' 'lib32-glibc')
+source=(lm_sensors-${pkgver}::https://github.com/groeck/lm-sensors/archive/V${pkgver//\./-}.tar.gz
+       lm_sensors-fancontrol.patch)
+sha1sums=('4a9026e4db894c98ee7cea0bec1188108e415f71'
+          'b0bc977348610d6a008d75a43f65800251c4c9f7')
+
+prepare() {
+  cd lm-sensors-${_ver}
+
+  sed -i 's|/etc/sysconfig|/etc/conf.d|' 
prog/{detect/sensors-detect,init/{sensord,lm_sensors}.service}
+  sed -i 's/EnvironmentFile=/EnvironmentFile=-/' prog/init/lm_sensors.service
+  sed -i 's/CC := gcc/CC := gcc -m32/' Makefile
+
+  patch -p0 -i "${srcdir}/lm_sensors-fancontrol.patch"
+}
+
+build() {
+  cd lm-sensors-${_ver}
+
+  make PREFIX=/usr
+}
+
+package() {
+  cd lm-sensors-${_ver}
+  
+  make PREFIX=/usr LIBDIR=/usr/lib32 DESTDIR="${pkgdir}" install 
+  
+  rm -r ${pkgdir}/etc/
+  rm -r ${pkgdir}/usr/{bin,sbin,include,man}
+}
+

Copied: lib32-lm_sensors/repos/multilib-x86_64/lm_sensors-fancontrol.patch 
(from rev 191882, lib32-lm_sensors/trunk/lm_sensors-fancontrol.patch)
===================================================================
--- multilib-x86_64/lm_sensors-fancontrol.patch                         (rev 0)
+++ multilib-x86_64/lm_sensors-fancontrol.patch 2016-10-10 16:39:18 UTC (rev 
191883)
@@ -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

Reply via email to