From 0167ffb8a691c679733753a52c575bd13eee189b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=B3mas=20Edwardsson?= Date: Fri, 26 Nov 2010 00:13:49 +0000 Subject: [PATCH] specfile added to check_uptime --- .../trunk/nagios-okplugin-check_uptime.spec | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 check_uptime/trunk/nagios-okplugin-check_uptime.spec diff --git a/check_uptime/trunk/nagios-okplugin-check_uptime.spec b/check_uptime/trunk/nagios-okplugin-check_uptime.spec new file mode 100644 index 0000000..1123392 --- /dev/null +++ b/check_uptime/trunk/nagios-okplugin-check_uptime.spec @@ -0,0 +1,45 @@ +%define debug_package %{nil} + +Summary: A Nagios plugin to check uptime of a remote host via NRPE +Name: nagios-okplugin-check_uptime +Version: AUTOVERSION +Release: 1%{?dist} +License: GPLv2+ +Group: Applications/System +URL: http://opensource.is/trac/wiki/check_uptime +Source0: http://opensource.ok.is/trac/browser/nagios-plugins/check_uptime/releases/nagios-okplugin-check_uptime-%{version}.tar.gz +Requires: nagios-nrpe +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Packager: Pall Sigurdsson + + + +%description +A Nagios plugin to check uptime of a remote host via NRPE + + +%prep +%setup -q +perl -pi -e "s|/usr/lib/|%{_libdir}/|g" nrpe.d/check_uptime.cfg +perl -pi -e "s|/usr/lib64/|%{_libdir}/|g" nrpe.d/check_uptime.cfg + +%build + + +%install +rm -rf %{buildroot} +install -D -p -m 0755 check_uptime.sh %{buildroot}%{_libdir}/nagios/plugins/check_uptime.sh +install -D -p -m 0755 nrpe.d/check_uptime.cfg %{buildroot}/etc/nrpe.d/check_uptime.cfg + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +#%doc README LICENSE +%{_libdir}/nagios/plugins/* +/etc/nrpe.d/check_uptime.cfg + +%changelog +* Thu Nov 25 2010 Pall Sigurdsson 0.1-1 +- Initial packaging