[arch-commits] Commit in lm_sensors/repos/extra-x86_64 (10 files)

Laurent Carlier lcarlier at archlinux.org
Thu Feb 18 07:47:10 UTC 2021


    Date: Thursday, February 18, 2021 @ 07:47:09
  Author: lcarlier
Revision: 408491

archrelease: copy trunk to extra-x86_64

Added:
  lm_sensors/repos/extra-x86_64/PKGBUILD
    (from rev 408490, lm_sensors/trunk/PKGBUILD)
  lm_sensors/repos/extra-x86_64/healthd
    (from rev 408490, lm_sensors/trunk/healthd)
  lm_sensors/repos/extra-x86_64/healthd.conf
    (from rev 408490, lm_sensors/trunk/healthd.conf)
  lm_sensors/repos/extra-x86_64/healthd.service
    (from rev 408490, lm_sensors/trunk/healthd.service)
  lm_sensors/repos/extra-x86_64/sensord.conf
    (from rev 408490, lm_sensors/trunk/sensord.conf)
Deleted:
  lm_sensors/repos/extra-x86_64/PKGBUILD
  lm_sensors/repos/extra-x86_64/healthd
  lm_sensors/repos/extra-x86_64/healthd.conf
  lm_sensors/repos/extra-x86_64/healthd.service
  lm_sensors/repos/extra-x86_64/sensord.conf

-----------------+
 PKGBUILD        |  105 +++++++++++++++++++++++++++++------------------------
 healthd         |  106 +++++++++++++++++++++++++++---------------------------
 healthd.conf    |   34 ++++++++---------
 healthd.service |   18 ++++-----
 sensord.conf    |   18 ++++-----
 5 files changed, 145 insertions(+), 136 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-18 07:47:03 UTC (rev 408490)
+++ PKGBUILD	2021-02-18 07:47:09 UTC (rev 408491)
@@ -1,48 +0,0 @@
-# Maintainer: Laurent Carlier <lordheavym at gmail.com>
-# Contributor: Eric Bélanger
-
-pkgname=lm_sensors
-pkgver=3.6.0
-_pkgver=${pkgver//./-}
-pkgrel=2
-pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring"
-arch=('x86_64')
-url="https://hwmon.wiki.kernel.org/lm_sensors"
-license=('GPL' 'LGPL')
-depends=('perl')
-makedepends=('rrdtool' 'git')
-optdepends=('rrdtool: for logging with sensord')
-backup=('etc/sensors3.conf' 'etc/healthd.conf' 'etc/conf.d/sensord')
-source=(https://github.com/lm-sensors/lm-sensors/archive/V${_pkgver}.tar.gz
-	healthd healthd.conf healthd.service sensord.conf)
-sha256sums=('0591f9fa0339f0d15e75326d0365871c2d4e2ed8aa1ff759b3a55d3734b7d197'
-            '0ac9afb2a9155dd74ab393756ed552cd542dde1081149beb2ab4ec7ff55b8f4a'
-            '5d17a366b175cf9cb4bb0115c030d4b8d91231546f713784a74935b6e533da9f'
-            '2638cd363e60f8d36bcac468f414a6ba29a1b5599f40fc651ca953858c8429d7'
-            '23bebef4c250f8c0aaba2c75fd3d2c8ee9473cc91a342161a9f5b3a34ddfa9e5')
-validpgpkeys=('7CA69F4460F1BDC41FD2C858A5526B9BB3CD4E6A')
-
-prepare() {
-  cd "${srcdir}/lm-sensors-${_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
-}
-
-build() {
-  cd "${srcdir}/lm-sensors-${_pkgver}"
-  make PREFIX=/usr
-}
-
-package() {
-  cd "${srcdir}/lm-sensors-${_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-x86_64/PKGBUILD (from rev 408490, lm_sensors/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-02-18 07:47:09 UTC (rev 408491)
@@ -0,0 +1,57 @@
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+# Contributor: Eric Bélanger
+
+pkgname=lm_sensors
+pkgver=3.6.0.r5313.g31d1f125
+_commit=31d1f125d8076f1c8c8f3224b31d240e6e6a1763
+#_pkgver=${pkgver//./-}
+pkgrel=1
+pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring"
+arch=('x86_64')
+url="https://hwmon.wiki.kernel.org/lm_sensors"
+license=('GPL' 'LGPL')
+optdepends=('rrdtool: for logging with sensord'
+            'perl: for sensor detection and configuration convert')
+makedepends=('rrdtool' 'perl' 'git')
+provides=('libsensors.so')
+backup=('etc/sensors3.conf' 'etc/healthd.conf' 'etc/conf.d/sensord')
+#source=(https://github.com/lm-sensors/lm-sensors/archive/V${_pkgver}.tar.gz
+source=("git+https://github.com/groeck/lm-sensors.git#commit=${_commit}"
+	healthd healthd.conf healthd.service sensord.conf)
+sha256sums=('SKIP'
+            '0ac9afb2a9155dd74ab393756ed552cd542dde1081149beb2ab4ec7ff55b8f4a'
+            '5d17a366b175cf9cb4bb0115c030d4b8d91231546f713784a74935b6e533da9f'
+            '2638cd363e60f8d36bcac468f414a6ba29a1b5599f40fc651ca953858c8429d7'
+            '23bebef4c250f8c0aaba2c75fd3d2c8ee9473cc91a342161a9f5b3a34ddfa9e5')
+validpgpkeys=('7CA69F4460F1BDC41FD2C858A5526B9BB3CD4E6A')
+
+pkgver() {
+  cd "${srcdir}"/lm-sensors*
+
+  echo 3.6.0.r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)
+}
+
+prepare() {
+  cd "${srcdir}"/lm-sensors*
+  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
+}
+
+build() {
+  cd "${srcdir}"/lm-sensors*
+  make PREFIX=/usr
+}
+
+package() {
+  cd "${srcdir}"/lm-sensors*
+  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	2021-02-18 07:47:03 UTC (rev 408490)
+++ healthd	2021-02-18 07:47:09 UTC (rev 408491)
@@ -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-x86_64/healthd (from rev 408490, lm_sensors/trunk/healthd)
===================================================================
--- healthd	                        (rev 0)
+++ healthd	2021-02-18 07:47:09 UTC (rev 408491)
@@ -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	2021-02-18 07:47:03 UTC (rev 408490)
+++ healthd.conf	2021-02-18 07:47:09 UTC (rev 408491)
@@ -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-x86_64/healthd.conf (from rev 408490, lm_sensors/trunk/healthd.conf)
===================================================================
--- healthd.conf	                        (rev 0)
+++ healthd.conf	2021-02-18 07:47:09 UTC (rev 408491)
@@ -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	2021-02-18 07:47:03 UTC (rev 408490)
+++ healthd.service	2021-02-18 07:47:09 UTC (rev 408491)
@@ -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-x86_64/healthd.service (from rev 408490, lm_sensors/trunk/healthd.service)
===================================================================
--- healthd.service	                        (rev 0)
+++ healthd.service	2021-02-18 07:47:09 UTC (rev 408491)
@@ -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: sensord.conf
===================================================================
--- sensord.conf	2021-02-18 07:47:03 UTC (rev 408490)
+++ sensord.conf	2021-02-18 07:47:09 UTC (rev 408491)
@@ -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-x86_64/sensord.conf (from rev 408490, lm_sensors/trunk/sensord.conf)
===================================================================
--- sensord.conf	                        (rev 0)
+++ sensord.conf	2021-02-18 07:47:09 UTC (rev 408491)
@@ -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