File nagios-plugins-rsync.spec of Package nagios-plugins-rsync

#
# spec file for package nagios-plugins-rsync (Version 1.02)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           nagios-plugins-rsync
Summary:        Nagios plugin for checking rsync servers availability
Version:        1.02
Release:        2
Url:            http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2094.html;d=1
License:        GPL v2 or later
Group:          System/Monitoring
Source0:        check_rsync
%if 0%{?suse_version} > 1010
# nagios can execute the script with embedded perl
Recommends:     perl 
%endif
Requires:       rsync
Requires:       licenses
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define         libexecdir %_prefix/lib/nagios/plugins

%description
Checks rsync servers availability, as well as (optionally) individual
modules availability. It also supports authentication on modules.

Usage: check_rsync -H  [-p ] [-m [,,] [-m [,,]...]]

The only required argument is -H, in which case it will only try to
list modules on the Rsync server.



Authors:
--------
    Thomas Guyot-Sionnest <tguyot@gmail.com>

%prep

%build

%install
mkdir -p %buildroot/%{libexecdir}
sed -e "s|/usr/local/nagios/libexec|%{libexecdir}|g" %{SOURCE0} > %buildroot/%{libexecdir}/check_rsync
chmod +x %buildroot/%{libexecdir}/check_rsync

%clean
rm -rf %buildroot

%files 
%defattr(-,root,root)
# avoid build dependecy of nagios - own the dirs
%dir %_prefix/lib/nagios
%dir %{libexecdir}
%{libexecdir}/check_rsync

%changelog
* Thu Nov 27 2008 lrupp@suse.de
- require licenses package (solves bnc #449756)
* Wed Nov 19 2008 lrupp@suse.de
- update to 1.02:
  + Kill rsync process on ALRM timeouts
  (Avoids leaving stale rsync processes behind)
  + More verbose Rsync errors
  + Commas in the password field should work
* Fri Jul 18 2008 lrupp@suse.de
- initial version 1.01
openSUSE Build Service is sponsored by