summaryrefslogtreecommitdiff
path: root/extra/lm_sensors
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-24 03:49:02 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-24 03:49:02 +0000
commit58a72e3d6c07ca57231ada1576ba86af346197d4 (patch)
tree1e2ab396a5c53f24fedef939833ca53fd8566847 /extra/lm_sensors
parent1a04b89cbb8e27e4622005c896745498af51ef45 (diff)
Fri Jan 24 03:41:27 UTC 2014
Diffstat (limited to 'extra/lm_sensors')
-rw-r--r--extra/lm_sensors/PKGBUILD33
-rw-r--r--extra/lm_sensors/fancontrol.service9
-rw-r--r--extra/lm_sensors/healthd.conf2
-rw-r--r--extra/lm_sensors/linux_3.0.patch11
-rw-r--r--extra/lm_sensors/sensord.conf9
-rw-r--r--extra/lm_sensors/sensord.service9
6 files changed, 25 insertions, 48 deletions
diff --git a/extra/lm_sensors/PKGBUILD b/extra/lm_sensors/PKGBUILD
index eb29c5d5f..fe8795f58 100644
--- a/extra/lm_sensors/PKGBUILD
+++ b/extra/lm_sensors/PKGBUILD
@@ -1,8 +1,8 @@
-# $Id: PKGBUILD 186563 2013-05-29 04:09:51Z eric $
+# $Id: PKGBUILD 204568 2014-01-22 23:53:58Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>
pkgname=lm_sensors
-pkgver=3.3.4
+pkgver=3.3.5
pkgrel=1
pkgdesc="Collection of user space tools for general SMBus access and hardware monitoring"
arch=('i686' 'x86_64')
@@ -11,27 +11,22 @@ license=('GPL' 'LGPL')
depends=('perl' 'sysfsutils')
makedepends=('rrdtool')
optdepends=('rrdtool: for logging with sensord')
-backup=('etc/sensors3.conf' 'etc/healthd.conf')
-options=('!emptydirs')
-source=(http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${pkgver}.tar.bz2{,.sig} \
- healthd healthd.conf fancontrol.service sensord.service healthd.service \
- linux_3.0.patch lm_sensors-fancontrol.patch)
-sha1sums=('4e62538ca99973ff505f2eeb5b841bb402e996d8'
+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'
- '6c4e8a2d89dd2fd3ca2f0f4f3b1230111e01b0fc'
- '73cd658f4a418197dc75f65d6d309701c72cfd81'
- 'cea1ff07374a784cc4be1d28dc6c80641fcae99d'
+ '1edd4d72ade22adfc128fb8d670e85c633fd1d18'
'd72ec328e9303acef86342483b6f8537de6117d9'
- '5662828085cdd981f0dc7cf8f79d3d6e2b72f50c'
+ 'f4b5f21fdb3b2a55aa353afa1603f953b207b73b'
'b0bc977348610d6a008d75a43f65800251c4c9f7')
prepare() {
cd ${pkgname}-${pkgver}
- sed -i 's|/etc/sysconfig|/etc/conf.d|' prog/{detect/sensors-detect,init/lm_sensors.service}
- sed -i 's@\(/bin/systemctl\|/lib/systemd/system\)@/usr\1@g' prog/detect/sensors-detect
+ 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}/linux_3.0.patch"
patch -p0 -i "${srcdir}/lm_sensors-fancontrol.patch"
}
@@ -44,10 +39,12 @@ 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 -m644 prog/init/lm_sensors.service "${pkgdir}/usr/lib/systemd/system/lm_sensors.service"
+
install -D -m755 "${srcdir}/healthd" "${pkgdir}/usr/bin/healthd"
+
install -D -m644 "${srcdir}/healthd.conf" "${pkgdir}/etc/healthd.conf"
- install -D -m644 "${srcdir}/fancontrol.service" "${pkgdir}/usr/lib/systemd/system/fancontrol.service"
- install -D -m644 "${srcdir}/sensord.service" "${pkgdir}/usr/lib/systemd/system/sensord.service"
+ 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/"
}
diff --git a/extra/lm_sensors/fancontrol.service b/extra/lm_sensors/fancontrol.service
deleted file mode 100644
index 813dbd60d..000000000
--- a/extra/lm_sensors/fancontrol.service
+++ /dev/null
@@ -1,9 +0,0 @@
-[Unit]
-Description=Fan control daemon
-
-[Service]
-PIDFile=/var/run/fancontrol.pid
-ExecStart=/usr/bin/fancontrol
-
-[Install]
-WantedBy=multi-user.target
diff --git a/extra/lm_sensors/healthd.conf b/extra/lm_sensors/healthd.conf
index a8b2c3fa3..8df3e399d 100644
--- a/extra/lm_sensors/healthd.conf
+++ b/extra/lm_sensors/healthd.conf
@@ -1,5 +1,5 @@
#
-# /etc/conf.d/healthd
+# /etc/healthd.conf
#
# reset any pending alarms on startup
diff --git a/extra/lm_sensors/linux_3.0.patch b/extra/lm_sensors/linux_3.0.patch
deleted file mode 100644
index da02a3d49..000000000
--- a/extra/lm_sensors/linux_3.0.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- prog/detect/sensors-detect 2011-08-02 10:23:46.000000000 +0200
-+++ prog/detect/sensors-detect 2011-08-02 10:24:04.000000000 +0200
-@@ -2472,7 +2472,7 @@
-
- sub initialize_kernel_version
- {
-- `uname -r` =~ /(\d+)\.(\d+)\.(\d+)(.*)/;
-+ `uname -r` =~ /(\d+)\.(\d+)(.*)/;
- @kernel_version = ($1, $2, $3, $4);
- chomp($kernel_arch = `uname -m`);
-
diff --git a/extra/lm_sensors/sensord.conf b/extra/lm_sensors/sensord.conf
new file mode 100644
index 000000000..133783aa8
--- /dev/null
+++ b/extra/lm_sensors/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/extra/lm_sensors/sensord.service b/extra/lm_sensors/sensord.service
deleted file mode 100644
index 1d62ab9e8..000000000
--- a/extra/lm_sensors/sensord.service
+++ /dev/null
@@ -1,9 +0,0 @@
-[Unit]
-Description=Sensor information logging daemon
-
-[Service]
-PIDFile=/var/run/sensord.pid
-ExecStart=/usr/bin/sensord
-
-[Install]
-WantedBy=multi-user.target