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
This commit is contained in:
Hannes Reinecke 2015-11-03 14:08:18 +00:00 committed by Git OBS Bridge
commit f962fdd06b
7 changed files with 230 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm">
<param name="url">https://git.fedorahosted.org/git/rasdaemon.git</param>
<param name="scm">git</param>
<param name="filename">rasdaemon</param>
<param name="version">0.5.6</param>
<param name="revision">refs/tags/v0.5.6</param>
</service>
<service name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" />
</services>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d00c2ffcffb63d9d79a541e04477f3c1985a82c98b63e78eda9dd98a390f682
size 94408

View File

@ -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

5
rasdaemon.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Tue Nov 3 09:36:41 UTC 2015 - fvogt@suse.com
- Initial commit from git

92
rasdaemon.spec Normal file
View File

@ -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