From ddbb0c0660e827a88bc3ce146462b2539fb39c72 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:01:26 +0100 Subject: [PATCH] package created using the webbuild interface [release 114-1mamba;Mon Apr 20 2015] --- README.md | 3 +++ mcelog.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 mcelog.spec diff --git a/README.md b/README.md index 2c21756..ce0a375 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # mcelog +mcelog is the user space backend for logging machine check errors reported by the hardware to the kernel. The kernel does the immediate actions (like killing processes etc.) and mcelog decodes the errors and manages various other advanced error responses like offlining memory, CPUs or triggering events. In addition mcelog also handles corrected errors, by logging and accounting them. +It primarily handles machine checks and thermal events, which are reported for errors detected by the CPU. + diff --git a/mcelog.spec b/mcelog.spec new file mode 100644 index 0000000..76abaeb --- /dev/null +++ b/mcelog.spec @@ -0,0 +1,74 @@ +Name: mcelog +Version: 114 +Release: 1mamba +Summary: User space backend for logging machine check errors reported by the hardware to the kernel +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.mcelog.org/ +## GITSOURCE git://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git v114 +Source: git://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git/v%{version}/mcelog-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +%systemd_requires +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +mcelog is the user space backend for logging machine check errors reported by the hardware to the kernel. The kernel does the immediate actions (like killing processes etc.) and mcelog decodes the errors and manages various other advanced error responses like offlining memory, CPUs or triggering events. In addition mcelog also handles corrected errors, by logging and accounting them. +It primarily handles machine checks and thermal events, which are reported for errors detected by the CPU. + +%debug_package + +%prep +%setup -q + +%build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d -m0755 %{buildroot}%{_mandir}/man5 +%makeinstall + +install -D -m0644 mcelog.service %{buildroot}%{_unitdir}/mcelog.service + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +%systemd_post mcelog +systemctl -q daemon-reload +: + +%preun +%systemd_preun mcelog +: + +%postun +%systemd_postun mcelog +: + +%files +%defattr(-,root,root) +%dir %{_sysconfdir}/mcelog +%config(noreplace) %{_sysconfdir}/mcelog/mcelog.conf +%config %{_sysconfdir}/mcelog/bus-error-trigger +%config %{_sysconfdir}/mcelog/cache-error-trigger +%config %{_sysconfdir}/mcelog/dimm-error-trigger +%config %{_sysconfdir}/mcelog/iomca-error-trigger +%config %{_sysconfdir}/mcelog/page-error-trigger +%config %{_sysconfdir}/mcelog/socket-memory-error-trigger +%config %{_sysconfdir}/mcelog/unknown-error-trigger +%{_sbindir}/mcelog +%{_unitdir}/mcelog.service +%{_mandir}/man5/mcelog.conf.5* +%{_mandir}/man5/mcelog.triggers.5* +%{_mandir}/man8/mcelog.8* +#%doc CHANGES README README.releases TODO + +%changelog +* Mon Apr 20 2015 Silvan Calarco 114-1mamba +- package created using the webbuild interface