diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0f7af11 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/lm-sensors-f9185e5c060ff22d2c8d4f6a19d317a529171c72.tar.gz diff --git a/.lm_sensors.metadata b/.lm_sensors.metadata new file mode 100644 index 0000000..f653d5c --- /dev/null +++ b/.lm_sensors.metadata @@ -0,0 +1 @@ +dd5bf20d5c25bd66848a74dac5ee1968a2cf3bb0 SOURCES/lm-sensors-f9185e5c060ff22d2c8d4f6a19d317a529171c72.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/0001-Add-detection-of-AMD-Ryzen-w-Vega-graphics.patch b/SOURCES/0001-Add-detection-of-AMD-Ryzen-w-Vega-graphics.patch new file mode 100644 index 0000000..ae3d0e3 --- /dev/null +++ b/SOURCES/0001-Add-detection-of-AMD-Ryzen-w-Vega-graphics.patch @@ -0,0 +1,27 @@ +From c874e11639b6fd4002b155f7414f54f632465ec1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= +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 + diff --git a/SOURCES/0001-Detect-AMD-Family-17h-thermal-sensors.patch b/SOURCES/0001-Detect-AMD-Family-17h-thermal-sensors.patch new file mode 100644 index 0000000..aa1cf4a --- /dev/null +++ b/SOURCES/0001-Detect-AMD-Family-17h-thermal-sensors.patch @@ -0,0 +1,27 @@ +From f7d7997cf41bb0e1db0fb300073b434e0ea7dcc3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= +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 + diff --git a/SOURCES/0001-Fix-a-use-after-free.patch b/SOURCES/0001-Fix-a-use-after-free.patch new file mode 100644 index 0000000..aaf80b8 --- /dev/null +++ b/SOURCES/0001-Fix-a-use-after-free.patch @@ -0,0 +1,38 @@ +From 3b548b74aeaefb41ac9eca1f2e82ae693b469345 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= +Date: Thu, 3 May 2018 17:28:52 +0200 +Subject: [PATCH] Fix a use after free() +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The issue was reported by Coverity Scan. + +Signed-off-by: Ondřej Lysoněk +--- + prog/sensors/chips.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/prog/sensors/chips.c b/prog/sensors/chips.c +index 668f508f..01c08fa8 100644 +--- a/prog/sensors/chips.c ++++ b/prog/sensors/chips.c +@@ -48,7 +48,6 @@ void print_chip_raw(const sensors_chip_name *name) + continue; + } + printf("%s:\n", label); +- free(label); + + b = 0; + while ((sub = sensors_get_all_subfeatures(name, feature, &b))) { +@@ -64,6 +63,7 @@ void print_chip_raw(const sensors_chip_name *name) + } else + printf("(%s)\n", label); + } ++ free(label); + } + } + +-- +2.14.3 + diff --git a/SOURCES/0001-Remove-superfluous-call-to-get_input_value.patch b/SOURCES/0001-Remove-superfluous-call-to-get_input_value.patch new file mode 100644 index 0000000..6c85330 --- /dev/null +++ b/SOURCES/0001-Remove-superfluous-call-to-get_input_value.patch @@ -0,0 +1,31 @@ +From 40aa494c026c67f089a4a84c600114473e9d7787 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= +Date: Mon, 7 May 2018 13:37:26 +0200 +Subject: [PATCH] Remove superfluous call to get_input_value() +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +It is already called in the line above. +Discovered thanks to a Coverity Scan warning. + +Signed-off-by: Ondřej Lysoněk +--- + prog/sensors/chips.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/prog/sensors/chips.c b/prog/sensors/chips.c +index 01c08fa8..99df8264 100644 +--- a/prog/sensors/chips.c ++++ b/prog/sensors/chips.c +@@ -364,7 +364,6 @@ static void print_chip_temp(const sensors_chip_name *name, + sf = sensors_get_subfeature(name, feature, + SENSORS_SUBFEATURE_TEMP_INPUT); + if (sf && get_input_value(name, sf, &val) == 0) { +- get_input_value(name, sf, &val); + if (fahrenheit) + val = deg_ctof(val); + printf("%+6.1f%s ", val, degstr); +-- +2.14.3 + diff --git a/SOURCES/lm_sensors-3.3.4-lm_sensors-service-modprobe-warnings.patch b/SOURCES/lm_sensors-3.3.4-lm_sensors-service-modprobe-warnings.patch new file mode 100644 index 0000000..17e633b --- /dev/null +++ b/SOURCES/lm_sensors-3.3.4-lm_sensors-service-modprobe-warnings.patch @@ -0,0 +1,28 @@ +From 198101f07f8f70a471596b16788af69c43c41ddc Mon Sep 17 00:00:00 2001 +From: Martin Sehnoutka +Date: Wed, 1 Jun 2016 12:54:13 +0200 +Subject: [PATCH] lm_sensors-3.3.4-lm_sensors-service-modprobe-warnings + +--- + prog/init/lm_sensors.service | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/prog/init/lm_sensors.service b/prog/init/lm_sensors.service +index 7d3bf80..fb56a91 100644 +--- a/prog/init/lm_sensors.service ++++ b/prog/init/lm_sensors.service +@@ -5,9 +5,9 @@ Description=Initialize hardware monitoring sensors + EnvironmentFile=/etc/sysconfig/lm_sensors + Type=oneshot + RemainAfterExit=yes +-ExecStart=-/sbin/modprobe -qab $BUS_MODULES $HWMON_MODULES ++ExecStart=-/usr/libexec/lm_sensors/modprobe $BUS_MODULES $HWMON_MODULES + ExecStart=/usr/bin/sensors -s +-ExecStop=-/sbin/modprobe -qabr $BUS_MODULES $HWMON_MODULES ++ExecStop=-/usr/libexec/lm_sensors/modprobe-r $BUS_MODULES $HWMON_MODULES + + [Install] + WantedBy=multi-user.target +-- +2.7.4 + diff --git a/SOURCES/lm_sensors-3.4.0-alternative-architectures-warning.patch b/SOURCES/lm_sensors-3.4.0-alternative-architectures-warning.patch new file mode 100644 index 0000000..7756fec --- /dev/null +++ b/SOURCES/lm_sensors-3.4.0-alternative-architectures-warning.patch @@ -0,0 +1,21 @@ +diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect +index 005bbd0..737be98 100755 +--- a/prog/detect/sensors-detect ++++ b/prog/detect/sensors-detect +@@ -2877,7 +2877,15 @@ sub initialize_cpu_list + sub print_cpu_info + { + my $cpu = $cpu[0]; +- print "# Processor: $cpu->{'model name'} ($cpu->{'cpu family'}/$cpu->{model}/$cpu->{stepping})\n"; ++ if (!exists $cpu->{'model name'} || !exists $cpu->{'cpu family'} || !exists $cpu->{'model'}){ ++ print "**********\n"; ++ print "Your processor's architecture is not yet supported. Beware that sensors-detect might not work properly!\n"; ++ print "**********\n"; ++ } ++ else{ ++ print "# Processor: $cpu->{'model name'} ($cpu->{'cpu family'}/$cpu->{model}/$cpu->{stepping})\n"; ++ } ++ + } + + # @i2c_adapters is a list of references to hashes, one hash per I2C/SMBus diff --git a/SOURCES/lm_sensors-3.4.0-fix-systemd-paths.patch b/SOURCES/lm_sensors-3.4.0-fix-systemd-paths.patch new file mode 100644 index 0000000..94aeeb6 --- /dev/null +++ b/SOURCES/lm_sensors-3.4.0-fix-systemd-paths.patch @@ -0,0 +1,119 @@ +From b26a85f06c231e488f99e698861932077aab7be5 Mon Sep 17 00:00:00 2001 +From: Jean Delvare +Date: Mon, 6 Jul 2015 11:51:24 +0000 +Subject: [PATCH 1/6] sensors-detect: Fix systemd paths + +--- + CHANGES | 3 +++ + prog/detect/sensors-detect | 53 ++++++++++++++++++++++++++++------------------ + 2 files changed, 35 insertions(+), 21 deletions(-) + +diff --git a/CHANGES b/CHANGES +index a33bc42..9a761f5 100644 +--- a/CHANGES ++++ b/CHANGES +@@ -1,6 +1,9 @@ + lm-sensors CHANGES file + ----------------------- + ++SVN HEAD ++ sensors-detect: Fix systemd paths ++ + 3.4.0 (2015-06-25) + documentation: Update the note about libsensors license + sensors.conf.5: Enhance the hysteresis documentation +diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect +index fb6658c..6c0c566 100755 +--- a/prog/detect/sensors-detect ++++ b/prog/detect/sensors-detect +@@ -2728,7 +2728,7 @@ sub isa_read_i5d6 + # AUTODETECTION # + ################# + +-use vars qw($dev_i2c $sysfs_root); ++use vars qw($dev_i2c $sysfs_root $systemd_systemctl $systemd_system_dir); + + sub initialize_conf + { +@@ -2789,6 +2789,19 @@ sub initialize_conf + exit -1; + } + } ++ ++ # Detect systemd presence and paths ++ if (-x "/usr/bin/systemctl") { ++ $systemd_systemctl = "/usr/bin/systemctl"; ++ } elsif (-x "/bin/systemctl") { ++ $systemd_systemctl = "/bin/systemctl"; ++ } ++ ++ if (-d "/usr/lib/systemd/system") { ++ $systemd_system_dir = "/usr/lib/systemd/system"; ++ } elsif (-d "/lib/systemd/system") { ++ $systemd_system_dir = "/lib/systemd/system"; ++ } + } + + # [0] -> VERSION +@@ -7090,19 +7103,16 @@ EOT + print SYSCONFIG "HWMON_MODULES=\"", join(" ", @{$hwmon_modules}), "\"\n"; + close(SYSCONFIG); + +- if (-x "/bin/systemctl" && -d "/lib/systemd/system" && +- ! -f "/lib/systemd/system/lm_sensors.service") { +- print "Copy prog/init/lm_sensors.service to /lib/systemd/system\n". +- "and run 'systemctl enable lm_sensors.service'\n". +- "for initialization at boot time.\n"; +- return; +- } +- +- if (-x "/bin/systemctl" && +- -f "/lib/systemd/system/lm_sensors.service") { +- system("/bin/systemctl", "enable", "lm_sensors.service"); +- system("/bin/systemctl", "start", "lm_sensors.service"); +- # All done, don't check for /etc/init.d/lm_sensors ++ if ($systemd_systemctl && $systemd_system_dir) { ++ if (-f "$systemd_system_dir/lm_sensors.service") { ++ system($systemd_systemctl, "enable", "lm_sensors.service"); ++ system($systemd_systemctl, "start", "lm_sensors.service"); ++ # All done, don't check for /etc/init.d/lm_sensors ++ } else { ++ print "Copy prog/init/lm_sensors.service to $systemd_system_dir\n". ++ "and run 'systemctl enable lm_sensors.service'\n". ++ "for initialization at boot time.\n"; ++ } + return; + } + +@@ -7170,13 +7180,6 @@ sub main + exit -1; + } + +- if (-x "/bin/systemctl" && -f "/lib/systemd/system/lm_sensors.service") { +- system("/bin/systemctl", "stop", "lm_sensors.service"); +- } elsif (-x "/sbin/service" && -f "/etc/init.d/lm_sensors" && +- -f "/var/lock/subsys/lm_sensors") { +- system("/sbin/service", "lm_sensors", "stop"); +- } +- + initialize_kernel_version(); + initialize_conf(); + initialize_pci(); +@@ -7187,6 +7190,14 @@ sub main + initialize_modules_supported(); + initialize_cpu_list(); + ++ if ($systemd_systemctl && $systemd_system_dir && ++ -f "$systemd_system_dir/lm_sensors.service") { ++ system("$systemd_systemctl", "stop", "lm_sensors.service"); ++ } elsif (-x "/sbin/service" && -f "/etc/init.d/lm_sensors" && ++ -f "/var/lock/subsys/lm_sensors") { ++ system("/sbin/service", "lm_sensors", "stop"); ++ } ++ + print "# sensors-detect revision $revision\n"; + initialize_dmi_data(); + print_dmi_summary(); +-- +2.7.4 + diff --git a/SOURCES/lm_sensors-modprobe b/SOURCES/lm_sensors-modprobe new file mode 100755 index 0000000..4d7e753 --- /dev/null +++ b/SOURCES/lm_sensors-modprobe @@ -0,0 +1,8 @@ +#!/bin/sh +if [ $# -ne 0 ]; then + /sbin/modprobe -ab $@ +else + echo "No sensors with loadable kernel modules configured." + echo "Please, run 'sensors-detect' as root in order to search for available sensors." + exit 1 +fi diff --git a/SOURCES/lm_sensors-modprobe-r b/SOURCES/lm_sensors-modprobe-r new file mode 100755 index 0000000..46027cf --- /dev/null +++ b/SOURCES/lm_sensors-modprobe-r @@ -0,0 +1,8 @@ +#!/bin/sh +if [ $# -ne 0 ]; then + /sbin/modprobe -abr $@ +else + echo "No sensors with loadable kernel modules configured." + echo "Please, run 'sensors-detect' as root in order to search for available sensors." + exit 1 +fi diff --git a/SOURCES/lm_sensors.sysconfig b/SOURCES/lm_sensors.sysconfig new file mode 100644 index 0000000..c1b5809 --- /dev/null +++ b/SOURCES/lm_sensors.sysconfig @@ -0,0 +1,2 @@ +# /etc/sysconfig/sensors - Defines modules loaded by /etc/rc.d/init.d/lm_sensors +# Run sensors-detect to generate this config file diff --git a/SOURCES/sensord.sysconfig b/SOURCES/sensord.sysconfig new file mode 100644 index 0000000..2d251c9 --- /dev/null +++ b/SOURCES/sensord.sysconfig @@ -0,0 +1,16 @@ +# configuration for harware sensors monitoring daemon +# in intevrals use suffix "m" for minutes, "s" for seconds, "h" for hours +# 0 means turning facility off + +# interval between scanning alarms +INTERVAL=1m + +# interval between logging +LOG_INTERVAL=20m + +# interval between RRD logging +# RRD_INTERVAL=1m + +# RRD db location +# RRD_LOGFILE=/var/log/sensors.rrd + diff --git a/SPECS/lm_sensors.spec b/SPECS/lm_sensors.spec new file mode 100644 index 0000000..9f62095 --- /dev/null +++ b/SPECS/lm_sensors.spec @@ -0,0 +1,632 @@ +%global commit f9185e5c060ff22d2c8d4f6a19d317a529171c72 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global year 2016 +%global month 06 +%global day 01 +%global date %{year}%{month}%{day} + +Name: lm_sensors +Version: 3.4.0 +Release: 6.%{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/ + +# Official website seems to be dead. Using github temporarily. +#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 +Source3: lm_sensors-modprobe +Source4: lm_sensors-modprobe-r + +Patch0: lm_sensors-3.3.4-lm_sensors-service-modprobe-warnings.patch +Patch1: lm_sensors-3.4.0-fix-systemd-paths.patch +Patch2: lm_sensors-3.4.0-alternative-architectures-warning.patch +# Upstream patch: +Patch3: 0001-Detect-AMD-Family-17h-thermal-sensors.patch +# Upstream patch: +Patch4: 0001-Add-detection-of-AMD-Ryzen-w-Vega-graphics.patch +# Upstream patch: +Patch5: 0001-Fix-a-use-after-free.patch +# Upstream patch: +Patch6: 0001-Remove-superfluous-call-to-get_input_value.patch + +%ifarch %{ix86} x86_64 +Requires: /usr/sbin/dmidecode +%endif +Requires: %{name}-libs = %{version}-%{release} +Requires(post): systemd-units +BuildRequires: kernel-headers >= 2.2.16, bison, libsysfs-devel, flex, gawk +BuildRequires: rrdtool-devel + +%description +The lm_sensors package includes a collection of modules for general SMBus +access and hardware monitoring. + + +%package libs +Summary: Lm_sensors core libraries +Group: System Environment/Libraries + +%description libs +Core libraries for lm_sensors applications + + +%package devel +Summary: Development files for programs which will use lm_sensors +Group: Development/System +Requires: %{name}-libs = %{version}-%{release} + +%description devel +The lm_sensors-devel package includes a header files and libraries for use +when building applications that make use of sensor data. + + +%package sensord +Summary: Daemon that periodically logs sensor readings +Group: System Environment/Daemons +Requires: %{name} = %{version}-%{release} + +%description sensord +Daemon that periodically logs sensor readings to syslog or a round-robin +database, and warns of sensor alarms. + + +%prep +%setup -q -n lm-sensors-%{commit} + +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 + +mv prog/init/README prog/init/README.initscripts +chmod -x prog/init/fancontrol.init + +# Exchange revision string in sensors-detect with version, release and date +RELEASE=$(echo %{release} | sed "s/\..*$//" ) +sed -i "s/\$Revision\$ (\$Date\$)/%{version}-$RELEASE (%{year}-%{month}-%{day})/" \ + prog/detect/sensors-detect +# Remove string formatting, because new string is already formatted +sed -i 's/^\$revision =~ .*$//' prog/detect/sensors-detect + +%build +export CFLAGS="%{optflags} -fPIC" +make PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} \ + EXLDFLAGS="-pie -Wl,-z,relro,-z,now" PROG_EXTRA=sensord user + + +%install +make PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} PROG_EXTRA=sensord \ + DESTDIR=$RPM_BUILD_ROOT user_install +rm $RPM_BUILD_ROOT%{_libdir}/libsensors.a + +ln -s sensors.conf.5.gz $RPM_BUILD_ROOT%{_mandir}/man5/sensors3.conf.5.gz + +mkdir -p $RPM_BUILD_ROOT%{_initrddir} +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sensors.d +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig +install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/lm_sensors +install -pm 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/sensord + +# service files +mkdir -p $RPM_BUILD_ROOT%{_unitdir} +install -pm 644 prog/init/sensord.service $RPM_BUILD_ROOT%{_unitdir} +install -pm 644 prog/init/lm_sensors.service $RPM_BUILD_ROOT%{_unitdir} +install -pm 644 prog/init/fancontrol.service $RPM_BUILD_ROOT%{_unitdir} + +# customized modprobe calls +mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/%{name} +install -pm 755 %{SOURCE3} $RPM_BUILD_ROOT%{_libexecdir}/%{name}/modprobe +install -pm 755 %{SOURCE4} $RPM_BUILD_ROOT%{_libexecdir}/%{name}/modprobe-r + + +# Note non standard systemd scriptlets, since reload / stop makes no sense +# for lm_sensors +%triggerun -- lm_sensors < 3.3.0-2 +if [ -L /etc/rc3.d/S26lm_sensors ]; then + /bin/systemctl enable lm_sensors.service >/dev/null 2>&1 || : +fi +/sbin/chkconfig --del lm_sensors + +# ===== main ===== + +%post +%systemd_post lm_sensors.service + +%preun +%systemd_preun lm_sensors.service + +%postun +%systemd_postun_with_restart lm_sensors.service + +# ==== sensord === + +%post sensord +%systemd_post sensord.service + +%preun sensord +%systemd_preun sensord.service + +%postun sensord +%systemd_postun_with_restart sensord.service + +# ===== libs ===== + +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig + + +%files +%doc CHANGES CONTRIBUTORS COPYING doc README* +%doc prog/init/fancontrol.init prog/init/README.initscripts +%config(noreplace) %{_sysconfdir}/sensors3.conf +%{_bindir}/* +%{_mandir}/man1/* +%{_mandir}/man5/* +%{_mandir}/man8/* +%{_sbindir}/* +%{_unitdir}/lm_sensors.service +%{_unitdir}/fancontrol.service +%{_libexecdir}/%{name}/modprobe* +%config(noreplace) %{_sysconfdir}/sysconfig/lm_sensors +%exclude %{_sbindir}/sensord +%exclude %{_mandir}/man8/sensord.8.gz + +%files libs +%{_libdir}/*.so.* + +%files devel +%{_includedir}/sensors +%{_libdir}/lib*.so +%{_mandir}/man3/* + +%files sensord +%doc prog/sensord/README +%{_sbindir}/sensord +%{_mandir}/man8/sensord.8.gz +%config(noreplace) %{_sysconfdir}/sysconfig/sensord +%{_unitdir}/sensord.service + + +%changelog +* Mon Apr 23 2018 Ondřej Lysoněk - 3.4.0-6.20160601gitf9185e5 +- Fix License field capitalization +- Resolves: rhbz#1577175 +- Add detection of AMD Ryzen w/ Vega graphics +- Resolves: rhbz#1569542 +- Fix issues found by Coverity Scan +- Resolves: rhbz#1578007 + +* Fri Apr 20 2018 Ondřej Lysoněk - 3.4.0-5.20160601gitf9185e5 +- Detect AMD Family 17h thermal sensors +- Resolves: rhbz#1569542 + +* Tue Aug 23 2016 Martin Sehnoutka - 3.4.0-4.20160601gitf9185e5 +- Print warning message when running on an alternative architecture. +- Resolves: #1362664 + +* Mon Aug 22 2016 Martin Sehnoutka - 3.4.0-3.20160601gitf9185e5 +- Replace Revision string with release and date. Resolves: #1362658 + +* Wed Jun 15 2016 Martin Sehnoutka - 3.4.0-2.20160601gitf9185e5 +- Add explicit package version requirement. + +* Wed Jun 01 2016 Martin Sehnoutka - 3.4.0-0.20160601gitf9185e5.1 +- New upstream release +- Drop patches that are already present in upstream +- Apply upstream fix for systemd paths +- Resolves: #1297795 + +* Wed Oct 01 2014 Jaromir Capik - 3.3.4-11 +- Hardening the build (#1092536) +- Resolves: rhbz#1092536 + +* Fri Jan 24 2014 Daniel Mach - 3.3.4-10 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 3.3.4-9 +- Mass rebuild 2013-12-27 + +* Mon Sep 09 2013 Jaromir Capik - 3.3.4-8 +- Fixing use of uninitialized 'vendor_id' value on ppc (#996590) +- Fixing bogus date in the changelog + +* Wed Aug 07 2013 Jaromir Capik - 3.3.4-7 +- Fixing the license tag + +* Sat Aug 03 2013 Petr Pisar - 3.3.4-6 +- Perl 5.18 rebuild + +* Thu Aug 01 2013 Jaromir Capik - 3.3.4-5 +- RH man page scan (#948520) + +* Tue Jul 30 2013 Jaromir Capik - 3.3.4-4 +- Avoiding modprobe errors when no sensors configured (#834215) +- Introducing fancontrol service file (#988922) +- Replacing hardcoded systemd unit path with _unitdir macro + +* Thu Jul 25 2013 Jaromir Capik - 3.3.4-3 +- Avoiding warnings when piping /dev/null to sensors-detect (#843507) + +* Wed Jul 17 2013 Petr Pisar - 3.3.4-2 +- Perl 5.18 rebuild + +* Wed May 29 2013 Jaromir Capik - 3.3.4-1 +- Update to 3.3.4 + +* Thu Feb 14 2013 Fedora Release Engineering - 3.3.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jan 17 2013 Jaromir Capik - 3.3.3-2 +- Fixing sensors-detect to avoid failures when the /dev/port is missing (#843521) + +* Thu Dec 06 2012 Jaromir Capik - 3.3.3-1 +- Update to 3.3.3 + +* Wed Sep 26 2012 Jaromir Capik - 3.3.2-5 +- #856120 - sensors - Inconsistency between man page and help + +* Mon Aug 27 2012 Jaromir Capik - 3.3.2-4 +- Migration to new systemd scriptlet macros + +* Thu Jul 19 2012 Fedora Release Engineering - 3.3.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Apr 02 2012 Nikola Pajkovsky - 3.3.2-2 +- rhbz#806364 - sensors-detect fails with "/sys/bus/pci/devices: No such file or directory at /usr/sbin/sensors-detect line 2895" + PCI bus is always required even if it might be missing on + some platforms. So don't choke is it is missing. Patch from + Jaromir Capik + +* Thu Mar 15 2012 Nikola Pajkovsky - 3.3.2-1 +- upstream lm-sensors-3.3.2 + +* Mon Feb 13 2012 Nikola Pajkovsky - 3.3.1-3 +- 789761 - Provide native systemd service + +* Fri Jan 13 2012 Fedora Release Engineering - 3.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Jul 22 2011 Nikola Pajkovsky - 3.3.1-1 +- new upstream release 3.3.1 + +* Sun Apr 24 2011 Hans de Goede - 3.3.0-2 +- Fix sensors-detect with the udevdb now living under /run (#697565) +- Provide a native systemd service file (#692159) +- Drop systemv initscript +- Drop configuration conversion scripts, the last Fedora with lm_sensors-2.x + was Fedora 8 ! + +* Tue Mar 29 2011 Nikola Pajkovsky - 3.3.0 +- new upstream release 3.3.0 +- Resolved: 691548 - include empty /etc/sensors.d into the package + +* Tue Feb 08 2011 Fedora Release Engineering - 3.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Oct 11 2010 Nikola Pajkovsky - 3.2.0 +- new upstream release 3.2.0 +- change lincese to LGPLv2.1 + +* Fri Sep 03 2010 Nikola Pajkovsky - 3.1.2.svn5857 +- update lm_sensors from svn +- drop patch lm_sensors-3.1.2-lm85.patch(already in svn) + +* Wed Mar 31 2010 Nikola Pajkovsky - 3.1.2-2 +- patch lm_sensors-3.1.2-lm85.patch add into sensors-detect driver lm85 +- Resolved: 578527 - sensors-detect fails to detect + +* Wed Feb 3 2010 Nikola Pajkovsky - 3.1.2-1 +- new upstream release +- drop sensors-detect, beacuse it was taken form svn(531126) + +* Thu Dec 17 2009 Nikola Pajkovsky - 3.1.1-7 +- Resovles: #226101 - Merge Review: lm_sensors + +* Tue Nov 10 2009 Dennis Gilmore - 3.1.1-6 +- remove Excludearch s390 s390x + +* Tue Nov 10 2009 Nikola Pajkovsky - 3.1.1-5 +- Resolved: 531126 - sensors-detect gives perl uninitialized var warnings + +* Wed Sep 30 2009 Hans de Goede 3.1.1-4 +- Create a sensor3.conf.5 symlink to the sensors.conf.5 manpage (#526178) + +* Sat Jul 25 2009 Fedora Release Engineering - 3.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Fri Jul 10 2009 Adam Jackson 3.1.1-2 +- Add -libs subpackage so perl doesn't get dragged in just for linking + against libsensors. + +* Tue Jul 7 2009 Nikola Pajokvsky 3.1.1-1 +- New release 3.1.1 + +* Sun Mar 8 2009 Hans de Goede 3.1.0-1 +- New upstream release 3.1.0 + +* Wed Feb 25 2009 Fedora Release Engineering - 3.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Jan 1 2009 Hans de Goede 3.0.3-1 +- New upstream release 3.0.3 +- Add a patch to support drivers with an ACPI "bus" (new Asus atk0110 drv) + +* Tue Jul 1 2008 Hans de Goede 3.0.2-1 +- New upstream release 3.0.2 +- This release contains various important fixes to sensors-detect, which made + it unsafe to run sensors-detect on certain systems +- Drop all patches (all upstreamed) + +* Sat Jun 14 2008 Hans de Goede 3.0.1-6 +- Rebuild for new rrdtool + +* Sun Mar 16 2008 Hans de Goede 3.0.1-5 +- Make libsensors work with hwmon class entries without a device link + such as the acpi thermal_zone driver (bz 437637) + +* Wed Mar 12 2008 Hans de Goede 3.0.1-4 +- One (last) minor cosmetical fix to the initscript + +* Tue Feb 26 2008 Hans de Goede 3.0.1-3 +- Some improvements to the lsb-retcodes and service-default-off patches + from a review by upstream + +* Tue Feb 19 2008 Fedora Release Engineering - 3.0.1-2 +- Autorebuild for GCC 4.3 + +* Mon Feb 11 2008 Hans de Goede 3.0.1-1 +- New upstream release 3.0.1 +- Drop several patches which are included in the new upstream release +- Add a patch to make the initscript returncodes LSB compliant (bug 431884) + +* Tue Dec 18 2007 Hans de Goede 3.0.0-3 +- Fix sensors.conf errors with certain chips (patch send in by upstream) + +* Thu Dec 13 2007 Hans de Goede 3.0.0-2 +- Fix sensord rdd mode (patch send in by upstream) + +* Sat Nov 24 2007 Hans de Goede 3.0.0-1 +- New upstream release 3.0.0 (final) + +* Sat Nov 10 2007 Hans de Goede - 3.0.0-0.1.rc3 +- New upstream release 3.0.0-rc3 +- Remove eeprommer sub-package as eeprommer (and the other i2c-tools) + have moved to the new i2c-tools package + +* Wed Aug 22 2007 Hans de Goede - 2.10.4-2 +- Update License tag for new Licensing Guidelines compliance +- Disable service by default (no use without any sensors being configured), + enable it automatically on a successfull sensors-detect run (bz 253750) + +* Thu Jul 19 2007 Hans de Goede - 2.10.4-1 +- New upstream release 2.10.4 +- Drop upstreamed patches 4, 5, 7 and 8 +- Drop no longer need patch 3 +- Move libsensors.3 manpage to -devel sub-package +- Move sensord.8 manpage to -sensord sub-package +- Switch from ExclusiveArch: alph ix86 x86_64, to ExcludeArch: s390 s390x, + so that we get build on ppc, arm, etc. too. (bz 181037 amongst others) + +* Mon Jul 9 2007 Hans de Goede - 2.10.3-3 +- Remove no longer needed patches 1, 2 & 6 +- Various specfile cleanups to match the Fedora packaging guidelines + this fixes bz 238787 amongst other things +- Use lm_sensors provided initscript instead of our own private one, this + stops the sometimes unnecessary loading of i2c-dev +- No longer ship a static version of the library in -devel +- Compile sensord and eepromer extra programs and put each in its own + subpackage (bz 236904) + +* Tue Apr 17 2007 Phil Knirsch - 2.10.3-2 +- Fixed one more problem with sensors-detect (#215984) + +* Tue Apr 17 2007 Phil Knirsch - 2.10.3-1 +- Update to lm_sensors-2.10.3 + +* Thu Mar 15 2007 Phil Knirsch - 2.10.2-2 +- Only require dmidecode on supported archs (#232264) + +* Tue Feb 06 2007 Florian La Roche - 2.10.2-1 +- Update to lm_sensors-2.10.2 + +* Thu Nov 23 2006 Phil Knirsch - 2.10.1-1.fc7 +- Update to lm_sensors-2.10.1 +- Tiny specfile updates + +* Wed Jul 12 2006 Jesse Keating - 2.10.0-3.1 +- rebuild + +* Sun Jul 09 2006 Warren Togami 2.10.0-3 +- change buildreq from sysfsutils-devel to libsysfs-devel (#198055) + +* Mon Jun 05 2006 Jesse Keating 2.10.0-2 +- Fix BuildRequires, added flex. (#193511) Changed to Requires(post) and + (postun) + +* Fri May 12 2006 Phil Knirsch 2.10.0-1 +- Update to lm_sensors-2.10.0 +- Added missing buildprereq on sysfsutils-devel (#189196) +- Added missing prereq on chkconfig (#182838) +- Some fiddling to make it build on latest kernels + +* Wed Feb 15 2006 Phil Knirsch 2.9.2-2 +- Added missing dependency to chkconfig + +* Fri Feb 10 2006 Phil Knirsch 2.9.2-1 +- Update to lm_sensors-2.9.2 +- Fixed wrong subsys locking (#176965) +- Removed lm_sensors pwmconfig, has been fixed upstream now + +* Tue Feb 07 2006 Jesse Keating - 2.9.1-6.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Mon Jan 16 2006 Peter Jones 2.9.1-6 +- fix initscript subsys locking + +* Fri Dec 16 2005 Jesse Keating 2.9.1-5.1 +- rebuilt for new gcj + +* Tue Nov 08 2005 Phil Knirsch 2.9.1-5 +- Fixed lm_sensors pwmconfig patch. + +* Thu Sep 01 2005 Phil Knirsch 2.9.1-4 +- Fixed CAN-2005-2672 lm_sensors pwmconfig insecure temporary file usage + (#166673) +- Fixed missing optflags during build (#166910) + +* Mon May 23 2005 Phil Knirsch 2.9.1-3 +- Update to lm_sensors-2.9.1 +- Fixed wrong/missing location variables for make user +- Fixed missing check for /etc/modprobe.conf in sensors-detect (#139245) + +* Wed Mar 02 2005 Phil Knirsch 2.8.8-5 +- bump release and rebuild with gcc 4 + +* Tue Jan 11 2005 Dave Jones 2.8.8-4 +- Add dependancy on dmidecode rather than the obsolete kernel-utils. +- Don't delete dmidecode from the buildroot. + +* Thu Dec 23 2004 Phil Knirsch 2.8.8-2 +- Fixed typo in initscript (#139030) + +* Tue Dec 21 2004 Phil Knirsch 2.8.8-1 +- Added Buildprereq for bison (#138888) +- Update to lm_sensors-2.8.8 + +* Thu Oct 14 2004 Harald Hoyer 2.8.7-2 +- added initial /etc/sysconfig/lm_sensors +- added initscript +- MAKEDEV the initial i2c devices in initscript and sensors-detect + +* Tue Jul 06 2004 Phil Knirsch 2.8.7-1 +- Update to latest upstream version. + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Tue Apr 13 2004 Phil Knirsch 2.8.6-1 +- Update to latest upstream version. +- Enabled build for x86_64. + +* Mon Mar 08 2004 Phil Knirsch 2.8.3-5 +- Fixed initscript to work with 2.6 kernel and made it more quiet (#112286). +- Changed proposed location of sensors (#116496). +- Fixed rpath issue. + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Thu Feb 05 2004 Phil Knirsch 2.8.3-3 +- Modified sensors.conf to a noreplace config file. + +* Wed Feb 04 2004 Phil Knirsch 2.8.3-2 +- Fixed newly included initscript (#114608). + +* Thu Jan 29 2004 Phil Knirsch 2.8.3-1 +- Updated to latest upstream version 2.8.3 + +* Thu Jan 08 2004 Phil Knirsch 2.8.2-1 +- Update to latest upstream version 2.8.2 +- Fixed wrong & usage in if expression. +- Included several new perl tools. + +* Fri Oct 24 2003 Phil Knirsch 2.8.1-1 +- Update to latest upstream version 2.8.1 + +* Wed Jul 23 2003 Phil Knirsch 2.8.0-1 +- Update to latest upstream version 2.8.0 + +* Fri Jun 27 2003 Phil Knirsch 2.6.5-6.1 +- rebuilt + +* Fri Jun 27 2003 Phil Knirsch 2.6.5-6 +- Included prog/init scripts and README (#90606). +- Require kernel-utils for dmidecode (#88367, #65057). + +* Wed Jan 22 2003 Tim Powers 2.6.5-5 +- rebuilt + +* Wed Dec 04 2002 Phil Knirsch 2.6.5-4 +- Bump release and try to rebuild. + +* Tue Dec 3 2002 Tim Powers 2.6.5-3 +- don't include dmidecode, conflicts with kernel-utils + +* Fri Nov 29 2002 Phil Knirsch 2.6.5-2 +- Added patch to fix utf8 problem with sensors-detect. +- Fixed Copyright: to License: in specfile + +* Fri Nov 29 2002 Phil Knirsch 2.6.5-1 +- Updated userlevel to 2.6.5. +- Include all the /usr/sbin/ apps (like dmidecode). + +* Fri Oct 04 2002 Phil Knirsch 2.6.3-3 +- Removed Serverworks patch as it is already in sensors-detect. + +* Fri Jun 21 2002 Tim Powers 2.6.3-2 +- automated rebuild + +* Tue Jun 18 2002 Phil Knirsch 2.6.3-1 +- Updated of userland package to 2.6.3 +- Fixed file packaging bug (#66126). + +* Thu May 23 2002 Tim Powers 2.6.2-2 +- automated rebuild + +* Mon Jan 28 2002 Phil Knirsch 2.6.2-1 +- Update to version 2.6.2 + +* Wed Aug 22 2001 Philipp Knirsch 2.5.5-6 +- Added the SMBus CSB5 detection (#50468) + +* Mon Jul 9 2001 Philipp Knirsch +- Fixed duplicate Summary: entry for devel package (#47714) + +* Sun Jun 24 2001 Elliot Lee +- Bump release + rebuild. + +* Thu Feb 15 2001 Philipp Knirsch +- Removed the i2c block patch as our newest kernel doesn't need it anymore. + +* Mon Feb 5 2001 Matt Wilson +- added patch to not include sys/perm.h, as it's gone now. +- added alpha to ExclusiveArch +- use make "LINUX_HEADERS=/usr/include" to get kernel headers + +* Tue Jan 16 2001 Philipp Knirsch +- Updated to 2.5.5 which includes the Serverworks drivers. Kernel modules are + not included though es they have to go into the kernel package +- Had to remove all references to I2C_SMBUS_I2C_BLOCK_DATA from + kernel/busses/i2c-i801.c and prog/dump/i2cdump.c as this is not defined in + our current kernel package + +* Tue Dec 19 2000 Philipp Knirsch +- update to 2.5.4 +- updated URL and Source entries to point to new home of lm-sensors +- rebuild + +* Wed Aug 16 2000 Nalin Dahyabhai +- fix summary + +* Fri Jul 28 2000 Harald Hoyer +- added static library to devel package + +* Thu Jul 20 2000 Nalin Dahyabhai +- update to 2.5.2 +- build against a kernel that actually has new i2c code in it + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Mon Jun 12 2000 Nalin Dahyabhai +- initial package without kernel support