mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2026-02-06 07:05:17 +01:00
Added RPM spec file to apc checks
This commit is contained in:
1
check_apcext.pl/trunk/README
Normal file
1
check_apcext.pl/trunk/README
Normal file
@@ -0,0 +1 @@
|
||||
check_apcext.pl - APC Extra gear checks (netbotz/pdus)
|
||||
41
check_apcext.pl/trunk/nagios-okplugin-apc.spec
Normal file
41
check_apcext.pl/trunk/nagios-okplugin-apc.spec
Normal file
@@ -0,0 +1,41 @@
|
||||
%define debug_package %{nil}
|
||||
|
||||
Summary: A Nagios plugin to check APC devices
|
||||
Name: nagios-okplugin-apc
|
||||
Version: 0.0.1
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2+
|
||||
Group: Applications/System
|
||||
URL: http://opensource.ok.is/trac/wiki/Nagios-OKPlugin-APC
|
||||
Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_apcext.pl/releases/nagios-okplugin-apc-%{version}.tar.gz
|
||||
Requires: nagios-plugins
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Packager: Tomas Edwardsson <tommi@ok.is>
|
||||
|
||||
|
||||
%description
|
||||
Checks APC devices, both netbotz and UPS
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
#perl -pi -e "s|/usr/lib|%{_libdir}|g" check_sip
|
||||
|
||||
%build
|
||||
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
install -D -p -m 0755 check_apcext.pl %{buildroot}%{_libdir}/nagios/plugins/check_apcext.pl
|
||||
install -D -p -m 0755 check_snmp_apc_ups %{buildroot}%{_libdir}/nagios/plugins/snmp_apc_ups
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README
|
||||
%{_libdir}/nagios/plugins/*
|
||||
|
||||
%changelog
|
||||
* Mon Mar 1 2010 Tomas Edwardsson <tommi@ok.is> 0.1-1
|
||||
- Initial packaging
|
||||
Reference in New Issue
Block a user