1 |
|
# $Id: smeserver-nagios-backup.spec,v 1.6 2010/12/06 20:48:20 slords Exp $ |
2 |
|
# Authority: mweinber |
3 |
|
# Name: Michael Weinberger |
4 |
|
|
5 |
Summary: Nagios backup integration |
Summary: Nagios backup integration |
6 |
%define name smeserver-nagios-backup |
%define name smeserver-nagios-backup |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 1.0.3 |
%define version 2.0.0 |
9 |
%define release 0 |
%define release 1 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
20 |
AutoReq: no |
AutoReq: no |
21 |
|
|
22 |
%changelog |
%changelog |
23 |
|
* Mon Nov 17 2008 Michael Weinberger <mweinber@neddix.de> 2.0.0-1.sme |
24 |
|
removed scripts from specfile |
25 |
|
add PNP rrd files (/var/lib/nagios/) to backup |
26 |
|
|
27 |
* Mon Dec 03 2007 Michael Weinberger <mweinber@neddix.de> |
* Mon Dec 03 2007 Michael Weinberger <mweinber@neddix.de> |
28 |
Version 1.0.3 |
Version 1.0.3 |
29 |
included rrd database of nagios grapher |
included rrd database of nagios grapher |
42 |
(cfg_file and cfg_dir settings) |
(cfg_file and cfg_dir settings) |
43 |
|
|
44 |
%prep |
%prep |
45 |
%setup -q -n %{name}-%{version} |
%setup |
46 |
|
|
47 |
%build |
%build |
48 |
mkdir -p root/home/e-smith/db/nagios |
mkdir -p root/home/e-smith/db/nagios |
58 |
%clean |
%clean |
59 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
60 |
|
|
|
%post |
|
|
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
|
|
echo -n |
|
|
fi |
|
|
|
|
|
%preun |
|
|
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
|
|
echo -n |
|
|
fi |
|
|
|
|
|
|
|
|
%postun |
|
|
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
|
|
if [ $1 = 0 ] ; then # uninstall |
|
|
echo -n |
|
|
fi |
|
|
fi |
|
|
|
|
61 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
62 |
%defattr(-,root,root) |
%defattr(-,root,root) |