New version

The official lm_sensors site has been down for a while now, using
Guenter Roeck's mirror repo.
This commit is contained in:
Ondřej Lysoněk 2018-06-25 14:37:25 +02:00
parent 8d7bdb6348
commit e41bc25363
5 changed files with 16 additions and 64 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ lm_sensors-3.1.2.tar.bz2
/lm_sensors-3.3.4.tar.bz2 /lm_sensors-3.3.4.tar.bz2
/lm_sensors-3.3.5.tar.bz2 /lm_sensors-3.3.5.tar.bz2
/lm_sensors-3.4.0.tar.bz2 /lm_sensors-3.4.0.tar.bz2
/lm-sensors-70f7e0848410b9ca4dde7abff669bbbecbf137e0.tar.gz

View File

@ -1,27 +0,0 @@
From c874e11639b6fd4002b155f7414f54f632465ec1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= <olysonek@redhat.com>
Date: Thu, 3 May 2018 12:41:41 +0200
Subject: [PATCH] Add detection of AMD Ryzen w/ Vega graphics
Kernel support was added in commit
https://github.com/torvalds/linux/commit/877d8948d0aa402fb
---
prog/detect/sensors-detect | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect
index 9b399e74..0d1cbb5d 100755
--- a/prog/detect/sensors-detect
+++ b/prog/detect/sensors-detect
@@ -2773,7 +2773,7 @@ use vars qw(@cpu_ids);
}, {
name => "AMD Family 17h thermal sensors",
driver => "k10temp",
- detect => sub { amd_pci_detect('1463') },
+ detect => sub { amd_pci_detect('1463', '15d0') },
}, {
name => "AMD Family 15h power sensors",
driver => "fam15h_power",
--
2.14.3

View File

@ -1,27 +0,0 @@
From f7d7997cf41bb0e1db0fb300073b434e0ea7dcc3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= <olysonek@redhat.com>
Date: Fri, 20 Apr 2018 16:24:24 +0200
Subject: [PATCH] Detect AMD Family 17h thermal sensors
---
prog/detect/sensors-detect | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect
index 6013aa3..f522b95 100755
--- a/prog/detect/sensors-detect
+++ b/prog/detect/sensors-detect
@@ -2532,6 +2532,10 @@ use vars qw(@cpu_ids);
name => "AMD Family 16h thermal sensors",
driver => "k10temp",
detect => sub { amd_pci_detect('1533', '1583') },
+ }, {
+ name => "AMD Family 17h thermal sensors",
+ driver => "k10temp",
+ detect => sub { amd_pci_detect('1463') },
}, {
name => "AMD Family 15h power sensors",
driver => "fam15h_power",
--
2.14.3

View File

@ -1,13 +1,20 @@
%global commit 70f7e0848410b9ca4dde7abff669bbbecbf137e0
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global year 2018
%global month 05
%global day 22
%global date %{year}%{month}%{day}
Name: lm_sensors Name: lm_sensors
Version: 3.4.0 Version: 3.4.0
Release: 14%{?dist} Release: 15.%{date}git%{shortcommit}%{?dist}
Summary: Hardware monitoring tools Summary: Hardware monitoring tools
Group: Applications/System Group: Applications/System
License: LGPLv2+ and GPLv3+ and GPLv2+ and Verbatim and Public Domain License: LGPLv2+ and GPLv3+ and GPLv2+ and Verbatim and Public Domain
URL: http://www.lm-sensors.org/ URL: http://github.com/groeck/lm-sensors/
Source: http://dl.lm-sensors.org/lm-sensors/releases/%{name}-%{version}.tar.bz2 Source0: http://github.com/groeck/lm-sensors/archive/%{commit}/lm-sensors-%{commit}.tar.gz
Source1: lm_sensors.sysconfig Source1: lm_sensors.sysconfig
# these 2 were taken from PLD-linux, Thanks! # these 2 were taken from PLD-linux, Thanks!
Source2: sensord.sysconfig Source2: sensord.sysconfig
@ -17,9 +24,6 @@ Source5: sensord.service
Source6: sensord-service-wrapper Source6: sensord-service-wrapper
Source7: lm_sensors.service Source7: lm_sensors.service
Patch1: 0001-Detect-AMD-Family-17h-thermal-sensors.patch
Patch2: 0001-Add-detection-of-AMD-Ryzen-w-Vega-graphics.patch
Requires: /usr/sbin/modprobe Requires: /usr/sbin/modprobe
%ifarch %{ix86} x86_64 %ifarch %{ix86} x86_64
Requires: /usr/sbin/dmidecode Requires: /usr/sbin/dmidecode
@ -65,9 +69,7 @@ database, and warns of sensor alarms.
%prep %prep
%setup -q %setup -q -n lm-sensors-%{commit}
%patch1 -p1
%patch2 -p1
mv prog/init/README prog/init/README.initscripts mv prog/init/README prog/init/README.initscripts
chmod -x prog/init/fancontrol.init chmod -x prog/init/fancontrol.init
@ -186,6 +188,9 @@ fi
%changelog %changelog
* Mon Jun 25 2018 Ondřej Lysoněk <olysonek@redhat.com> - 3.4.0-15.20180522git70f7e08
- New version
* Fri May 04 2018 Ondřej Lysoněk <olysonek@redhat.com> - 3.4.0-14 * Fri May 04 2018 Ondřej Lysoněk <olysonek@redhat.com> - 3.4.0-14
- Add detection of AMD Ryzen w/ Vega graphics - Add detection of AMD Ryzen w/ Vega graphics
- Resolves: rhbz#1573399 - Resolves: rhbz#1573399

View File

@ -1 +1 @@
c03675ae9d43d60322110c679416901a lm_sensors-3.4.0.tar.bz2 SHA512 (lm-sensors-70f7e0848410b9ca4dde7abff669bbbecbf137e0.tar.gz) = 90a17af6f70e7588b2214a8beb69e51d96a2fe09be6fc19c0fb1d2e8c4c911cd5dc0487637dc7aa5e45cf92382a11d32344487a682e88bd1918b73986954c69d