File openhpi-subagent.spec of Package openhpi-subagent
#
# spec file for package openhpi-subagent (Version 2.3.4)
#
# Copyright (c) 2009 SUSE LINUX Products 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/
#
# norootforbuild
Name: openhpi-subagent
Version: 2.3.4
Release: 192
#
Group: Productivity/Networking/Other
License: BSD-3-Clause and OPL-1.0
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: docbook-toys docbook-utils openhpi-devel tcpd-devel
#
Url: http://www.openhpi.org/
Source: openhpi-subagent-%{version}.tar.bz2
Patch0: openhpi-subagent-2.3.4_init_script.patch
Patch1: openhpi-subagent-2.3.4_doctype.patch
Patch2: openhpi-subagent-2.3.4-no-Werror.patch
Patch3: openhpi-subagent-2.3.4-hpiutils.patch
#
Summary: Hardware Platform Interface SNMP backend
%description
This is an implementation of the Service Availability Forum's Hardware
Platform Interface SNMP sub-agent.
Through this subagent one can includes support for multiple different
types of hardware including: IPMI, IBM Blade Center (via SNMP), Linux
Watchdog devices, and Sysfs based systems.
Authors:
--------
Konrad Rzeszutek <konradr at us dot ibm dot com>
%prep
%setup
%patch0
%patch1
%patch2
%patch3
%build
%configure
%{__make}
%{__make} -C docs subagent-manual/book1.html
%install
%makeinstall
%{__install} -m 0755 -d %{buildroot}%{_sbindir}
# install mib
for mib in SAF-TC-MIB SAI-HPI-SNMP-MIB-B.01.01 ; do
%{__mv} %{buildroot}%{_datadir}/snmp/mibs/$mib.{mib,txt}
done
# install init scripts
%{__install} -D -m 0755 openhpi-subagent.rc %{buildroot}/etc/init.d/openhpi-subagent
%{__ln_s} -f /etc/init.d/openhpi-subagent %{buildroot}%{_sbindir}/rcopenhpi-subagent
%preun
%stop_on_removal %{name}
%postun
%insserv_cleanup
%restart_on_update %{name}
%files
%defattr(-,root,root)
%doc README COPYING ChangeLog TODO
%doc docs/subagent-manual
%dir /etc/snmp
%config /etc/snmp/hpiSubagent.conf
%dir %{_datadir}/snmp/mibs
%{_datadir}/snmp/mibs/SAF-TC-MIB.txt
%{_datadir}/snmp/mibs/SAI-HPI-SNMP-MIB-B.01.01.txt
/etc/init.d/openhpi-subagent
%{_bindir}/hpi*
%{_sbindir}/rcopenhpi-subagent
%clean
%{__rm} -rf %{buildroot}
%changelog