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:
parent
8d7bdb6348
commit
e41bc25363
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ lm_sensors-3.1.2.tar.bz2
|
||||
/lm_sensors-3.3.4.tar.bz2
|
||||
/lm_sensors-3.3.5.tar.bz2
|
||||
/lm_sensors-3.4.0.tar.bz2
|
||||
/lm-sensors-70f7e0848410b9ca4dde7abff669bbbecbf137e0.tar.gz
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
Version: 3.4.0
|
||||
Release: 14%{?dist}
|
||||
Release: 15.%{date}git%{shortcommit}%{?dist}
|
||||
Summary: Hardware monitoring tools
|
||||
Group: Applications/System
|
||||
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
|
||||
# these 2 were taken from PLD-linux, Thanks!
|
||||
Source2: sensord.sysconfig
|
||||
@ -17,9 +24,6 @@ Source5: sensord.service
|
||||
Source6: sensord-service-wrapper
|
||||
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
|
||||
%ifarch %{ix86} x86_64
|
||||
Requires: /usr/sbin/dmidecode
|
||||
@ -65,9 +69,7 @@ database, and warns of sensor alarms.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%setup -q -n lm-sensors-%{commit}
|
||||
|
||||
mv prog/init/README prog/init/README.initscripts
|
||||
chmod -x prog/init/fancontrol.init
|
||||
@ -186,6 +188,9 @@ fi
|
||||
|
||||
|
||||
%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
|
||||
- Add detection of AMD Ryzen w/ Vega graphics
|
||||
- Resolves: rhbz#1573399
|
||||
|
Loading…
Reference in New Issue
Block a user