1 |
|
# $Id$ |
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 1.0.3 |
9 |
%define release 0 |
%define release 0 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release} |
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 |
|
Packager: Michael Weinberger <mweinber@neddix.de> |
|
15 |
BuildRoot: /var/tmp/%{name}-buildroot/ |
BuildRoot: /var/tmp/%{name}-buildroot/ |
16 |
BuildArch: noarch |
BuildArch: noarch |
17 |
Requires: smeserver-release >= 7.1.3 |
Requires: smeserver-release >= 7.1.3 |
18 |
Requires: nagios >= 2.9 |
Requires: nagios >= 2.9 |
19 |
|
BuildRequires: e-smith-devtools |
20 |
AutoReq: no |
AutoReq: no |
21 |
|
|
22 |
%changelog |
%changelog |
38 |
(cfg_file and cfg_dir settings) |
(cfg_file and cfg_dir settings) |
39 |
|
|
40 |
%prep |
%prep |
|
%setup |
|
41 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
42 |
|
|
43 |
%build |
%build |
54 |
%clean |
%clean |
55 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
56 |
|
|
|
%pre |
|
|
|
|
57 |
%post |
%post |
58 |
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
59 |
echo -n |
echo -n |