1 |
# $Id: smeserver-nagios-backup.spec,v 1.3 2008/04/02 15:03:58 slords Exp $ |
# $Id: smeserver-nagios-backup.spec,v 1.5 2008/11/25 16:20:26 slords Exp $ |
2 |
# Authority: mweinber |
# Authority: mweinber |
3 |
# Name: Michael Weinberger |
# 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 |
13 |
Group: Applications/System |
Group: Applications/System |
14 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
15 |
|
Packager: Michael Weinberger <mweinber@neddix.de> |
16 |
BuildRoot: /var/tmp/%{name}-buildroot/ |
BuildRoot: /var/tmp/%{name}-buildroot/ |
17 |
BuildArch: noarch |
BuildArch: noarch |
18 |
Requires: smeserver-release >= 7.1.3 |
Requires: smeserver-release >= 7.1.3 |
21 |
AutoReq: no |
AutoReq: no |
22 |
|
|
23 |
%changelog |
%changelog |
24 |
|
* Mon Nov 17 2008 Michael Weinberger <mweinber@neddix.de> 2.0.0-1.sme |
25 |
|
removed scripts from specfile |
26 |
|
add PNP rrd files (/var/lib/nagios/) to backup |
27 |
|
|
28 |
* Mon Dec 03 2007 Michael Weinberger <mweinber@neddix.de> |
* Mon Dec 03 2007 Michael Weinberger <mweinber@neddix.de> |
29 |
Version 1.0.3 |
Version 1.0.3 |
30 |
included rrd database of nagios grapher |
included rrd database of nagios grapher |
43 |
(cfg_file and cfg_dir settings) |
(cfg_file and cfg_dir settings) |
44 |
|
|
45 |
%prep |
%prep |
46 |
%setup -q -n %{name}-%{version} |
%setup |
47 |
|
|
48 |
%build |
%build |
49 |
mkdir -p root/home/e-smith/db/nagios |
mkdir -p root/home/e-smith/db/nagios |
59 |
%clean |
%clean |
60 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
61 |
|
|
|
%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 |
|
|
|
|
62 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
63 |
%defattr(-,root,root) |
%defattr(-,root,root) |