Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
nagios-plugins-zypper
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
[-]
[+]
Added
nagios-plugins-zypper.spec
@@ -0,0 +1,54 @@ +# +# spec file for package nagios-plugins-zypper +# +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# + +# norootforbuild + +Name: nagios-plugins-zypper +Summary: Nagios plugin for checking software updates +Version: 0.1 +Release: 1 +Url: http://en.opensuse.org/nagios-plugins-zypper +License: GPL v2 only +Group: System/Monitoring +Source0: check_zypper.pl +%if 0%{?suse_version} > 1010 +# nagios can execute the script with embedded perl +Recommends: perl +%endif +Requires: zypper +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%define libexecdir %_prefix/lib/nagios/plugins + +%description +This plugin checks for software updates on systems that use +package management systems based on the libzypp command +found in openSUSE + +Authors: +-------- + Lars Vogdt + + +%prep + +%build + +%install +install -D -m755 %{SOURCE0} %buildroot/%libexecdir/check_zypper.pl + +%clean +rm -rf %buildroot + +%files +%defattr(-,root,root) +# avoid build dependecy of nagios - own the dirs +%dir %_prefix/lib/nagios +%dir %libexecdir +%libexecdir/check_zypper.pl + +%changelog