File monitoring-plugins-gwfl.spec of Package monitoring-plugins-gwfl

#
# spec file for package monitoring-plugins-gwfl
#
# Copyright (c) 2014 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/
#


Name:           monitoring-plugins-gwfl
Version:        2.1
Release:        0
Summary:        SNMP checks to monitor a lot of HP ProLiant systems
License:        GPL-2.0
Group:          System/Monitoring
Source:         gwfl-nagios-plugins-%{version}.tar.bz2
BuildRequires:  gcc-c++
BuildRequires:  nagios-rpm-macros
BuildRequires:  net-snmp-devel
BuildRequires:  tcpd-devel
Provides:       nagios-plugins-gwfl = %{version}-%{release}
Obsoletes:      nagios-plugins-gwfl < %{version}-%{release}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1020
BuildRequires:  libcurl-devel
%else
BuildRequires:  curl-devel
%endif

%description
The GWFL Nagios Plugins introduced more advanced monitoring, with
better data consolidation, meaning less performance and administration
overhead. Also, the structure of the plugins meant anyone with a
little C knowledge could easily write more plugins using the SNMPGET
function included in the GWFL plugins, and using a similar coding
format to the plugins provided.

SNMP GETNEXT functionality is included, so that number of
CPUs/PSUs/Drives need not be specified, the plugins will determine
this themselves.

%prep
%setup -q -n gwfl-nagios-plugins-%{version}

%build
make %{?_smp_mflags}
make apache %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot}/%{nagios_plugindir}/
pushd apache
make install DESTDIR=%{buildroot}/%{nagios_plugindir}/
popd


%files
%defattr(-,root,root)
%doc ChangeLog README LICENSE
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/*

%changelog