File monitoring-appliance.spec of Package monitoring-appliance

Summary:          Monitoring Appliance Setup
Name:             monitoring-appliance
Group:            System/Management
Url:              http://www.umb.ch
Version:          0.2.3
Release:          1    
License:          All Rights Reserved
Source0:          setup-monitoring.init
Source1:          setup-monitoring.cfg
BuildArch:        noarch
BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}
BuildRequires:    bash
Requires:         bash

%description
The Monitoring Appliance Setup Package

%prep
#noop

%build
#noop

%install
rm -rf %{buildroot}
install -Dp -m 0755 %{SOURCE0} %{buildroot}%{_initrddir}/setup-monitoring
install -Dp -m 0644 %{SOURCE1} %{buildroot}/var/adm/fillup-templates/sysconfig_filename.setup-monitoring

%post
%fillup_and_insserv -y -n setup-monitoring setup-monitoring

%preun
%stop_on_removal

%postun
%restart_on_update
%insserv_cleanup setup-monitoring

%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}

%files
%attr(0755, root, root) %{_initrddir}/setup-monitoring
%attr(0644, root, root) %config /var/adm/fillup-templates/sysconfig_filename.setup-monitoring

%changelog
* Mon Sep 16 2013 M.Reichmuth - 0.2.3
- Initial packaging 
openSUSE Build Service is sponsored by