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

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

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.

    Konrad Rzeszutek <konradr at us dot ibm dot com>


%{__make} -C docs subagent-manual/book1.html

%{__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}
# 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

%stop_on_removal %{name}

%restart_on_update %{name}

%doc docs/subagent-manual
%dir /etc/snmp
%config /etc/snmp/hpiSubagent.conf
%dir %{_datadir}/snmp/mibs

%{__rm} -rf %{buildroot}

openSUSE Build Service is sponsored by