Changes of Revision 3
[-] | Added | nagios-plugins-rsync.spec |
x 1
2 +# 3 +# spec file for package nagios-plugins-rsync 4 +# 5 +# This file and all modifications and additions to the pristine 6 +# package are under the same license as the package itself. 7 +# 8 + 9 +# norootforbuild 10 + 11 +Name: nagios-plugins-rsync 12 +Summary: Nagios plugin for checking rsync servers availability 13 +Version: 1.01 14 +Release: 1 15 +Url: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2094.html;d=1 16 +License: GPL v2 or any later 17 +Group: System/Monitoring 18 +Source0: check_rsync 19 +%if 0%{?suse_version} > 1010 20 +# nagios can execute the script with embedded perl 21 +Recommends: perl 22 +%endif 23 +Requires: rsync 24 +BuildArch: noarch 25 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 26 +%define libexecdir %_prefix/lib/nagios/plugins 27 + 28 +%description 29 +Checks rsync servers availability, as well as (optionally) individual modules 30 +availability. It also supports authentication on modules. 31 + 32 +Usage: check_rsync -H [-p ] [-m [,,] [-m [,,]...]] 33 + 34 +The only required argument is -H, in which case it will only try to list 35 +modules on the Rsync server. 36 + 37 +Authors: 38 +-------- 39 + Thomas Guyot-Sionnest <tguyot@gmail.com> 40 + 41 + 42 +%prep 43 + 44 +%build 45 + 46 +%install 47 +mkdir -p %buildroot/%{libexecdir} 48 +sed -e "s|/usr/local/nagios/libexec|%{libexecdir}|g" %{SOURCE0} > %buildroot/%{libexecdir}/check_rsync 49 +chmod +x %buildroot/%{libexecdir}/check_rsync 50 + 51 +%clean 52 +rm -rf %buildroot 53 + 54 +%files 55 +%defattr(-,root,root) 56 +# avoid build dependecy of nagios - own the dirs 57 +%dir %_prefix/lib/nagios 58 +%dir %{libexecdir} 59 +%{libexecdir}/check_rsync 60 + 61 +%changelog 62 |