2013-06-04 11:50:13 +02:00
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
Summary: A Nagios plugin to check HP Hardware Status
|
|
|
|
Name: nagios-okplugin-check_hpasm
|
2014-05-15 13:13:53 +02:00
|
|
|
Version: 4.1.3
|
2013-06-04 11:50:13 +02:00
|
|
|
Release: 1%{?dist}
|
|
|
|
License: GPLv2+
|
|
|
|
Group: Applications/System
|
|
|
|
URL: http://opensource.is/trac/wiki/check_hpasm
|
|
|
|
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_hpasm/releases/nagios-okplugin-check_hpasm-%{version}.tar.gz
|
|
|
|
Requires: nagios-okconfig-nrpe
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
Packager: Pall Sigurdsson <palli@opensource.is>
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
A Nagios plugin to check HP Hardware Status
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl -pi -e "s|/usr/lib|%{_libdir}|g" sudoers.d/check_hpasm
|
|
|
|
perl -pi -e "s|/usr/lib|%{_libdir}|g" nrpe.d/check_hpasm.cfg
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
install -D -p -m 0755 check_hpasm %{buildroot}%{_libdir}/nagios/plugins/check_hpasm
|
|
|
|
install -D -p -m 0440 sudoers.d/check_hpasm %{buildroot}/etc/sudoers.d/check_hpasm
|
|
|
|
install -D -p -m 0644 nrpe.d/check_hpasm.cfg %{buildroot}/etc/nrpe.d/check_hpasm.cfg
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
#%doc README LICENSE
|
|
|
|
#%{_libdir}/nagios/plugins/*
|
|
|
|
%{_libdir}/nagios/plugins/check_hpasm
|
|
|
|
/etc/sudoers.d/check_hpasm
|
|
|
|
/etc/nrpe.d/check_hpasm.cfg
|
|
|
|
|
|
|
|
%changelog
|
2014-05-15 13:13:53 +02:00
|
|
|
* Thu May 15 2014 Tomas Edwardsson <tommi@tommi.org> 4.1.3-1
|
|
|
|
- new package built with tito
|
|
|
|
|
2013-06-04 11:50:13 +02:00
|
|
|
* Tue Jun 4 2013 Pall Sigurdsson <palli@opensource.is> 4.1.2-1
|
|
|
|
- Initial packaging
|