1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-05 01:53:44 +01:00
nagios-plugins/check_dataprotector/trunk/nagios-okplugin-check_dataprotector.spec
2010-09-15 03:50:12 +00:00

49 lines
1.6 KiB
RPMSpec

%define debug_package %{nil}
Summary: Nagios Plugins to monitor HP Dataprotector
Name: nagios-okplugin-check_dataprotector
Version: AUTOVERSION
Release: 1%{?dist}
License: GPLv2+
Group: Applications/System
URL: http://opensource.is/trac/wiki/check_dataprotector
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_dataprotector/releases/nagios-okplugin-check_dataprotector-%{version}.tar.gz
Requires: OB2-DA,OB2-CC
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Packager: Pall Sigurdsson <palli@opensource.is>
%description
Nagios Plugins to monitor HP Dataprotector
%prep
%setup -q
perl -pi -e "s|/usr/lib/|%{_libdir}/|g" nrpe.d/check_dataprotector.cfg
%build
%install
rm -rf %{buildroot}
install -D -p -m 0755 check_dp_backups %{buildroot}%{_libdir}/nagios/plugins/check_dp_backups
install -D -p -m 0755 check_dp_idb %{buildroot}%{_libdir}/nagios/plugins/check_dp_idb
install -D -p -m 0755 check_dp_mountrequest %{buildroot}%{_libdir}/nagios/plugins/check_dp_mountrequest
install -D -p -m 0755 check_dp_pool %{buildroot}%{_libdir}/nagios/plugins/check_dp_pool
install -D -p -m 0755 check_dp_services %{buildroot}%{_libdir}/nagios/plugins/check_dp_services
install -D -p -m 0755 check_dp_tablespace %{buildroot}%{_libdir}/nagios/plugins/check_dp_tablespace
install -D -p -m 0755 nrpe.d/check_dataprotector.cfg %{buildroot}/etc/nrpe.d/check_dataprotector.cfg
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README LICENSE
%{_libdir}/nagios/plugins/*
/etc/nrpe.d/check_dataprotector.cfg
%changelog
* Mon Sep 15 2010 Pall Sigurdsson <palli@opensource.is> 0.1-1
- Initial packaging