File nagios-xen.spec of Package nagios-xen

#
# spec file for package nagios-xen (Version 1.0)
#
# Copyright (c) 2009 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/
#



Name:           nagios-xen
BuildRequires:  nagios
Summary:        A Xen Virtual Machine Monitor Plugin for Nagios
Version:        1.0
Release:        46
License:        GPL v2 or later
Group:          System/Monitoring
AutoReqProv:    on
Source0:        nagios-xen-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define	libexecdir %{_prefix}/lib/nagios/plugins

%description
This plugin helps to monitor XEN machines.



Authors:
--------
    Axel Schmidt <axel.schmidt@novell.com>

%package  host
License:        GPL v2 or later
Summary:        A Xen Virtual Machine Monitor Plugin for Nagios
Group:          System/Monitoring

%description host
This plugin helps to monitor XEN machines.



Authors:
--------
    Axel Schmidt <axel.schmidt@novell.com>

%prep
%setup -q

%build

%install
install -d $RPM_BUILD_ROOT/etc/nagios
install -d $RPM_BUILD_ROOT/usr/lib/nagios/plugins
cp xen_vm_service.cfg $RPM_BUILD_ROOT/etc/nagios/xen_vm_service.cfg.example
cp xen_vm_checkcommands.cfg $RPM_BUILD_ROOT/etc/nagios/xen_vm_checkcommands.cfg
cp check_xenvm $RPM_BUILD_ROOT/%{libexecdir}/check_xenvm

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/etc/nagios/xen_vm_service.cfg.example

%files host
%defattr(0755,root,root)
%{libexecdir}/check_xenvm
%defattr(-,root,root)
/etc/nagios/xen_vm_checkcommands.cfg

%changelog
* Wed Jun 04 2008 ihno@suse.de
- changing ownership of files
* Tue Jun 03 2008 ihno@suse.de
- initial Version