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

#
# spec file for package monitoring-plugins-cs121
#
# 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-cs121
Version:        20100826
Release:        1
License:        GPL-2.0+
Summary:        Test Effekta UPS via SNMP v2c
Url:            https://www.monitoringexchange.org/inventory/Check-Plugins/Hardware/Devices/UPS/check_cs121
Group:          System/Monitoring
Source0:        check_cs121.pl
BuildRequires:  nagios-rpm-macros
Provides:       nagios-plugins-cs121 = %{version}-%{release}
Obsoletes:      nagios-plugins-cs121 < %{version}-%{release}
Requires:       net-snmp
# nagios can execute the script with embedded perl
Recommends:     perl
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Check to retrieve information from the SNMP adapter plugged into a UPS.
Currently checking Input Voltages, Phase Loads and UPS temparature. Run
check_cs121 on command line to see usage options.

%prep

%build

%install
install -D -m755 %{SOURCE0} %{buildroot}%{nagios_plugindir}/check_cs121

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
# avoid build dependecy of nagios - own the dirs
%dir %{nagios_libdir}
%dir %{nagios_plugindir}
%{nagios_plugindir}/check_cs121

%changelog
openSUSE Build Service is sponsored by