[arch-commits] Commit in lm_sensors/repos/extra-i686 (12 files)

Eric Bélanger eric at archlinux.org
Thu Jan 1 02:29:45 UTC 2015


    Date: Thursday, January 1, 2015 @ 03:29:44
  Author: eric
Revision: 228303

archrelease: copy trunk to extra-i686

Added:
  lm_sensors/repos/extra-i686/PKGBUILD
    (from rev 228302, lm_sensors/trunk/PKGBUILD)
  lm_sensors/repos/extra-i686/healthd
    (from rev 228302, lm_sensors/trunk/healthd)
  lm_sensors/repos/extra-i686/healthd.conf
    (from rev 228302, lm_sensors/trunk/healthd.conf)
  lm_sensors/repos/extra-i686/healthd.service
    (from rev 228302, lm_sensors/trunk/healthd.service)
  lm_sensors/repos/extra-i686/lm_sensors-fancontrol.patch
    (from rev 228302, lm_sensors/trunk/lm_sensors-fancontrol.patch)
  lm_sensors/repos/extra-i686/sensord.conf
    (from rev 228302, lm_sensors/trunk/sensord.conf)
Deleted:
  lm_sensors/repos/extra-i686/PKGBUILD
  lm_sensors/repos/extra-i686/healthd
  lm_sensors/repos/extra-i686/healthd.conf
  lm_sensors/repos/extra-i686/healthd.service
  lm_sensors/repos/extra-i686/lm_sensors-fancontrol.patch
  lm_sensors/repos/extra-i686/sensord.conf

-----------------------------+
 PKGBUILD                    |  101 ++++++++++++++++++++--------------------
 healthd                     |  106 +++++++++++++++++++++---------------------
 healthd.conf                |   34 ++++++-------
 healthd.service             |   18 +++----
 lm_sensors-fancontrol.patch |   58 +++++++++++-----------
 sensord.conf                |   18 +++----
 6 files changed, 168 insertions(+), 167 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2015-01-01 02:27:24 UTC (rev 228302)
+++ PKGBUILD	2015-01-01 02:29:44 UTC (rev 228303)
@@ -1,50 +0,0 @@
-# $Id$
-# Maintainer: Eric Bélanger <eric at archlinux.org>
-
-pkgname=lm_sensors
-pkgver=3.3.5
-pkgrel=1
-pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring"
-arch=('i686' 'x86_64')
-url="http://www.lm-sensors.org/"
-license=('GPL' 'LGPL')
-depends=('perl' 'sysfsutils')
-makedepends=('rrdtool')
-optdepends=('rrdtool: for logging with sensord')
-backup=('etc/sensors3.conf' 'etc/healthd.conf' 'etc/conf.d/sensord')
-source=(http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${pkgver}.tar.bz2{,.sig}
-	healthd healthd.conf healthd.service sensord.conf
-        lm_sensors-fancontrol.patch)
-sha1sums=('179989a52bae8f01ba8ed77e8a15af6ec653d89e'
-          'SKIP'
-          '1c91ae403d3cd02b6177ad1f1b2f2c3a7a3257f5'
-          '1edd4d72ade22adfc128fb8d670e85c633fd1d18'
-          'd72ec328e9303acef86342483b6f8537de6117d9'
-          'f4b5f21fdb3b2a55aa353afa1603f953b207b73b'
-          'b0bc977348610d6a008d75a43f65800251c4c9f7')
-
-prepare() {
-  cd ${pkgname}-${pkgver}
-  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
-  patch -p0 -i "${srcdir}/lm_sensors-fancontrol.patch"
-}
-
-build() {
-  cd ${pkgname}-${pkgver}
-  make PREFIX=/usr
-}
-
-package() {
-  cd ${pkgname}-${pkgver}
-  make PROG_EXTRA=sensord BUILD_STATIC_LIB=0 \
-    PREFIX=/usr SBINDIR=/usr/bin MANDIR=/usr/share/man DESTDIR="${pkgdir}" install
-
-  install -D -m755 "${srcdir}/healthd" "${pkgdir}/usr/bin/healthd"
-
-  install -D -m644 "${srcdir}/healthd.conf" "${pkgdir}/etc/healthd.conf"
-  install -D -m644 "${srcdir}/sensord.conf" "${pkgdir}/etc/conf.d/sensord"
- 
-  install -D -m644 "${srcdir}/healthd.service" "${pkgdir}/usr/lib/systemd/system/healthd.service"
-  install -D -m644 prog/init/*.service "${pkgdir}/usr/lib/systemd/system/"
-}

Copied: lm_sensors/repos/extra-i686/PKGBUILD (from rev 228302, lm_sensors/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2015-01-01 02:29:44 UTC (rev 228303)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=lm_sensors
+pkgver=3.3.5
+pkgrel=1
+pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring"
+arch=('i686' 'x86_64')
+url="http://www.lm-sensors.org/"
+license=('GPL' 'LGPL')
+depends=('perl' 'sysfsutils')
+makedepends=('rrdtool')
+optdepends=('rrdtool: for logging with sensord')
+backup=('etc/sensors3.conf' 'etc/healthd.conf' 'etc/conf.d/sensord')
+source=(http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${pkgver}.tar.bz2{,.sig}
+	healthd healthd.conf healthd.service sensord.conf
+        lm_sensors-fancontrol.patch)
+sha1sums=('179989a52bae8f01ba8ed77e8a15af6ec653d89e'
+          'SKIP'
+          '1c91ae403d3cd02b6177ad1f1b2f2c3a7a3257f5'
+          '1edd4d72ade22adfc128fb8d670e85c633fd1d18'
+          'd72ec328e9303acef86342483b6f8537de6117d9'
+          'f4b5f21fdb3b2a55aa353afa1603f953b207b73b'
+          'b0bc977348610d6a008d75a43f65800251c4c9f7')
+validpgpkeys=('90DFD6523C57373D81F63D19865688D038F02FC8')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  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
+  patch -p0 -i "${srcdir}/lm_sensors-fancontrol.patch"
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  make PREFIX=/usr
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make PROG_EXTRA=sensord BUILD_STATIC_LIB=0 \
+    PREFIX=/usr SBINDIR=/usr/bin MANDIR=/usr/share/man DESTDIR="${pkgdir}" install
+
+  install -D -m755 "${srcdir}/healthd" "${pkgdir}/usr/bin/healthd"
+
+  install -D -m644 "${srcdir}/healthd.conf" "${pkgdir}/etc/healthd.conf"
+  install -D -m644 "${srcdir}/sensord.conf" "${pkgdir}/etc/conf.d/sensord"
+ 
+  install -D -m644 "${srcdir}/healthd.service" "${pkgdir}/usr/lib/systemd/system/healthd.service"
+  install -D -m644 prog/init/*.service "${pkgdir}/usr/lib/systemd/system/"
+}

Deleted: healthd
===================================================================
--- healthd	2015-01-01 02:27:24 UTC (rev 228302)
+++ healthd	2015-01-01 02:29:44 UTC (rev 228303)
@@ -1,53 +0,0 @@
-#!/bin/bash
-
-#
-# /usr/bin/healthd
-#
-
-. /etc/healthd.conf
-
-cmd="${ALARM_CMD}"
-addr="${ADMIN_EMAIL}"
-slp="${ALARM_SLEEP}"
-sensors="/usr/bin/sensors"
-
-
-while [ $# -gt 0 ] ; do
-	case "${1}" in
-		-c ) cmd="${2}" ; shift 2 ;;
-		-m ) addr="${2}" ; shift 2 ;;
-		-s ) slp="${2}" ; shift 2 ;;
-		*  ) shift 1 ;;
-	esac
-done
-
-case "${ALARM_RESET}" in
-	yes) /usr/bin/sensors > /dev/null
-	;;
-        no) true
-	;;
-esac
-
-[ -n "${cmd}" ] && [ -n "$( which -- "${cmd%% *}" )" ] || \
-	[ -n "${addr}" ] || exit 1
-
-[ "${slp}" -ge 2 ] || slp=600
-
-while true ; do
-	sleep 15
-	message="$( $sensors )"
-	case "$message" in
-		''      ) message='Could not get any sensor values !' ;;
-		*ALARM* ) : ;;
-		*       ) message='' ;;
-	esac
-	if [ -n "$message" ]; then
-		if [ -n "${addr}" ]; then
-			echo "$message" | mail -s \
-				"Sensors ALARM detected at host: $( hostname )" \
-				"${addr}"
-		fi
-		[ -z "${cmd}" ] || ${cmd} &
-		sleep ${slp}
-	fi
-done &

Copied: lm_sensors/repos/extra-i686/healthd (from rev 228302, lm_sensors/trunk/healthd)
===================================================================
--- healthd	                        (rev 0)
+++ healthd	2015-01-01 02:29:44 UTC (rev 228303)
@@ -0,0 +1,53 @@
+#!/bin/bash
+
+#
+# /usr/bin/healthd
+#
+
+. /etc/healthd.conf
+
+cmd="${ALARM_CMD}"
+addr="${ADMIN_EMAIL}"
+slp="${ALARM_SLEEP}"
+sensors="/usr/bin/sensors"
+
+
+while [ $# -gt 0 ] ; do
+	case "${1}" in
+		-c ) cmd="${2}" ; shift 2 ;;
+		-m ) addr="${2}" ; shift 2 ;;
+		-s ) slp="${2}" ; shift 2 ;;
+		*  ) shift 1 ;;
+	esac
+done
+
+case "${ALARM_RESET}" in
+	yes) /usr/bin/sensors > /dev/null
+	;;
+        no) true
+	;;
+esac
+
+[ -n "${cmd}" ] && [ -n "$( which -- "${cmd%% *}" )" ] || \
+	[ -n "${addr}" ] || exit 1
+
+[ "${slp}" -ge 2 ] || slp=600
+
+while true ; do
+	sleep 15
+	message="$( $sensors )"
+	case "$message" in
+		''      ) message='Could not get any sensor values !' ;;
+		*ALARM* ) : ;;
+		*       ) message='' ;;
+	esac
+	if [ -n "$message" ]; then
+		if [ -n "${addr}" ]; then
+			echo "$message" | mail -s \
+				"Sensors ALARM detected at host: $( hostname )" \
+				"${addr}"
+		fi
+		[ -z "${cmd}" ] || ${cmd} &
+		sleep ${slp}
+	fi
+done &

Deleted: healthd.conf
===================================================================
--- healthd.conf	2015-01-01 02:27:24 UTC (rev 228302)
+++ healthd.conf	2015-01-01 02:29:44 UTC (rev 228303)
@@ -1,17 +0,0 @@
-#
-# /etc/healthd.conf
-#
-
-# reset any pending alarms on startup
-ALARM_RESET="yes"
-
-# where to sent mails on alarm
-ADMIN_EMAIL="root"
-
-# Seconds to sleep when alarm detected before checking again
-# If you want to fill up your mail inbox set this to 2. ;-)
-ALARM_SLEEP=600
-
-# command to run in background on each alarm
-# N.B.: If you choose to use the beep command, you'll need to install it: pacman -S beep
-ALARM_CMD="beep -f 800 -l 500 -d 500 -r 600"

Copied: lm_sensors/repos/extra-i686/healthd.conf (from rev 228302, lm_sensors/trunk/healthd.conf)
===================================================================
--- healthd.conf	                        (rev 0)
+++ healthd.conf	2015-01-01 02:29:44 UTC (rev 228303)
@@ -0,0 +1,17 @@
+#
+# /etc/healthd.conf
+#
+
+# reset any pending alarms on startup
+ALARM_RESET="yes"
+
+# where to sent mails on alarm
+ADMIN_EMAIL="root"
+
+# Seconds to sleep when alarm detected before checking again
+# If you want to fill up your mail inbox set this to 2. ;-)
+ALARM_SLEEP=600
+
+# command to run in background on each alarm
+# N.B.: If you choose to use the beep command, you'll need to install it: pacman -S beep
+ALARM_CMD="beep -f 800 -l 500 -d 500 -r 600"

Deleted: healthd.service
===================================================================
--- healthd.service	2015-01-01 02:27:24 UTC (rev 228302)
+++ healthd.service	2015-01-01 02:29:44 UTC (rev 228303)
@@ -1,9 +0,0 @@
-[Unit]
-Description=A daemon which can be used to alert you in the event of a hardware health monitoring alarm
-
-[Service]
-Type=forking
-ExecStart=/usr/bin/healthd
-
-[Install]
-WantedBy=multi-user.target

Copied: lm_sensors/repos/extra-i686/healthd.service (from rev 228302, lm_sensors/trunk/healthd.service)
===================================================================
--- healthd.service	                        (rev 0)
+++ healthd.service	2015-01-01 02:29:44 UTC (rev 228303)
@@ -0,0 +1,9 @@
+[Unit]
+Description=A daemon which can be used to alert you in the event of a hardware health monitoring alarm
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/healthd
+
+[Install]
+WantedBy=multi-user.target

Deleted: lm_sensors-fancontrol.patch
===================================================================
--- lm_sensors-fancontrol.patch	2015-01-01 02:27:24 UTC (rev 228302)
+++ lm_sensors-fancontrol.patch	2015-01-01 02:29:44 UTC (rev 228303)
@@ -1,29 +0,0 @@
---- 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

Copied: lm_sensors/repos/extra-i686/lm_sensors-fancontrol.patch (from rev 228302, lm_sensors/trunk/lm_sensors-fancontrol.patch)
===================================================================
--- lm_sensors-fancontrol.patch	                        (rev 0)
+++ lm_sensors-fancontrol.patch	2015-01-01 02:29:44 UTC (rev 228303)
@@ -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

Deleted: sensord.conf
===================================================================
--- sensord.conf	2015-01-01 02:27:24 UTC (rev 228302)
+++ sensord.conf	2015-01-01 02:29:44 UTC (rev 228303)
@@ -1,9 +0,0 @@
-#
-# /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

Copied: lm_sensors/repos/extra-i686/sensord.conf (from rev 228302, lm_sensors/trunk/sensord.conf)
===================================================================
--- sensord.conf	                        (rev 0)
+++ sensord.conf	2015-01-01 02:29:44 UTC (rev 228303)
@@ -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



More information about the arch-commits mailing list