commit f962fdd06bed0670a8ee89d10861728b896249242693e38071e00b2af290c0f3 Author: Hannes Reinecke Date: Tue Nov 3 14:08:18 2015 +0000 Accepting request 342251 from home:favogt Might be useful. OBS-URL: https://build.opensuse.org/request/show/342251 OBS-URL: https://build.opensuse.org/package/show/hardware/rasdaemon?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..a202f08 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + https://git.fedorahosted.org/git/rasdaemon.git + git + rasdaemon + 0.5.6 + refs/tags/v0.5.6 + + + *.tar + xz + + + diff --git a/_service:recompress:tar_scm:rasdaemon-0.5.6.tar.xz b/_service:recompress:tar_scm:rasdaemon-0.5.6.tar.xz new file mode 100644 index 0000000..730d42c --- /dev/null +++ b/_service:recompress:tar_scm:rasdaemon-0.5.6.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d00c2ffcffb63d9d79a541e04477f3c1985a82c98b63e78eda9dd98a390f682 +size 94408 diff --git a/_service:set_version:rasdaemon.spec b/_service:set_version:rasdaemon.spec new file mode 100644 index 0000000..27452e3 --- /dev/null +++ b/_service:set_version:rasdaemon.spec @@ -0,0 +1,92 @@ +# +# spec file for package rasdaemon +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: rasdaemon +Version: 0.5.6 +Release: 0 +Summary: Utility to receive RAS error tracings +License: GPL-2.0 +Group: Development/Hardware +Url: https://git.fedorahosted.org/cgit/rasdaemon.git +Source: %{name}-%{version}.tar.xz +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc +BuildRequires: gettext-devel +BuildRequires: libtool +BuildRequires: make +BuildRequires: sqlite3-devel +BuildRequires: systemd-rpm-macros +Requires: dmidecode +Requires: perl-dbd-sqlite +Requires(post): systemd +Requires(postun): systemd +Requires(preun): systemd +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +rasdaemon is a RAS (Reliability, Availability and Serviceability) logging tool. +It currently records memory errors, using the EDAC tracing events. +EDAC is drivers in the Linux kernel that handle detection of ECC errors +from memory controllers for most chipsets on i386 and x86_64 architectures. +EDAC drivers for other architectures like arm also exists. +This userspace component consists of an init script which makes sure +EDAC drivers and DIMM labels are loaded at system startup, as well as +an utility for reporting current error counts from the EDAC sysfs files. + +%prep +%setup -q + +%build +autoreconf -fvi +%configure --enable-mce --enable-aer --enable-sqlite3 --enable-extlog --enable-abrt-report +make %{?_smp_mflags} + +%install +make DESTDIR=%{buildroot} install %{?_smp_mflags} +install -D -p -m 0644 misc/rasdaemon.service %{buildroot}%{_unitdir}/rasdaemon.service +ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcrasdaemon +install -D -p -m 0644 misc/ras-mc-ctl.service %{buildroot}%{_unitdir}/ras-mc-ctl.service +ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcras-mc-ctl +rm %{buildroot}%{_includedir}/*.h + +%pre +%service_add_pre rasdaemon.service ras-mc-ctl.service + +%post +%service_add_post rasdaemon.service ras-mc-ctl.service + +%preun +%service_del_preun rasdaemon.service ras-mc-ctl.service + +%postun +%service_del_postun rasdaemon.service ras-mc-ctl.service + +%files +%defattr(-,root,root) +%doc AUTHORS ChangeLog COPYING README TODO +%{_sbindir}/rasdaemon +%{_sbindir}/ras-mc-ctl +%{_sbindir}/rcrasdaemon +%{_sbindir}/rcras-mc-ctl +%{_mandir}/*/* +%{_unitdir}/*.service +%dir %{_sysconfdir}/ras +%{_sysconfdir}/ras/dimm_labels.d + +%changelog diff --git a/rasdaemon.changes b/rasdaemon.changes new file mode 100644 index 0000000..fdf9a0c --- /dev/null +++ b/rasdaemon.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Nov 3 09:36:41 UTC 2015 - fvogt@suse.com + +- Initial commit from git + diff --git a/rasdaemon.spec b/rasdaemon.spec new file mode 100644 index 0000000..27452e3 --- /dev/null +++ b/rasdaemon.spec @@ -0,0 +1,92 @@ +# +# spec file for package rasdaemon +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: rasdaemon +Version: 0.5.6 +Release: 0 +Summary: Utility to receive RAS error tracings +License: GPL-2.0 +Group: Development/Hardware +Url: https://git.fedorahosted.org/cgit/rasdaemon.git +Source: %{name}-%{version}.tar.xz +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc +BuildRequires: gettext-devel +BuildRequires: libtool +BuildRequires: make +BuildRequires: sqlite3-devel +BuildRequires: systemd-rpm-macros +Requires: dmidecode +Requires: perl-dbd-sqlite +Requires(post): systemd +Requires(postun): systemd +Requires(preun): systemd +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +rasdaemon is a RAS (Reliability, Availability and Serviceability) logging tool. +It currently records memory errors, using the EDAC tracing events. +EDAC is drivers in the Linux kernel that handle detection of ECC errors +from memory controllers for most chipsets on i386 and x86_64 architectures. +EDAC drivers for other architectures like arm also exists. +This userspace component consists of an init script which makes sure +EDAC drivers and DIMM labels are loaded at system startup, as well as +an utility for reporting current error counts from the EDAC sysfs files. + +%prep +%setup -q + +%build +autoreconf -fvi +%configure --enable-mce --enable-aer --enable-sqlite3 --enable-extlog --enable-abrt-report +make %{?_smp_mflags} + +%install +make DESTDIR=%{buildroot} install %{?_smp_mflags} +install -D -p -m 0644 misc/rasdaemon.service %{buildroot}%{_unitdir}/rasdaemon.service +ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcrasdaemon +install -D -p -m 0644 misc/ras-mc-ctl.service %{buildroot}%{_unitdir}/ras-mc-ctl.service +ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rcras-mc-ctl +rm %{buildroot}%{_includedir}/*.h + +%pre +%service_add_pre rasdaemon.service ras-mc-ctl.service + +%post +%service_add_post rasdaemon.service ras-mc-ctl.service + +%preun +%service_del_preun rasdaemon.service ras-mc-ctl.service + +%postun +%service_del_postun rasdaemon.service ras-mc-ctl.service + +%files +%defattr(-,root,root) +%doc AUTHORS ChangeLog COPYING README TODO +%{_sbindir}/rasdaemon +%{_sbindir}/ras-mc-ctl +%{_sbindir}/rcrasdaemon +%{_sbindir}/rcras-mc-ctl +%{_mandir}/*/* +%{_unitdir}/*.service +%dir %{_sysconfdir}/ras +%{_sysconfdir}/ras/dimm_labels.d + +%changelog