4 |
%define version 1.0.3 |
%define version 1.0.3 |
5 |
%define release 0 |
%define release 0 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release} |
Release: %{release}%{?dist} |
8 |
License: GPL |
License: GPL |
9 |
Group: Applications/System |
Group: Applications/System |
10 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
|
Packager: Michael Weinberger <mweinber@neddix.de> |
|
11 |
BuildRoot: /var/tmp/%{name}-buildroot/ |
BuildRoot: /var/tmp/%{name}-buildroot/ |
12 |
BuildArch: noarch |
BuildArch: noarch |
13 |
Requires: smeserver-release >= 7.1.3 |
Requires: smeserver-release >= 7.1.3 |
14 |
Requires: nagios-nrpe >= 2.5.2 |
Requires: nagios-nrpe >= 2.5.2 |
15 |
Requires: nagios-plugins-nrpe >= 2.5.2 |
Requires: nagios-plugins-nrpe >= 2.5.2 |
16 |
Requires: nagios-plugins |
Requires: nagios-plugins |
17 |
|
BuildRequires: e-smith-devtools |
18 |
|
|
19 |
AutoReq: no |
AutoReq: no |
20 |
|
|
45 |
|
|
46 |
|
|
47 |
%prep |
%prep |
|
%setup |
|
48 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
49 |
|
|
50 |
%build |
%build |
61 |
%clean |
%clean |
62 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
63 |
|
|
|
%pre |
|
|
|
|
64 |
%post |
%post |
65 |
/sbin/e-smith/config printtype nrpe > /dev/null || /sbin/e-smith/config set nrpe service |
/sbin/e-smith/config printtype nrpe > /dev/null || /sbin/e-smith/config set nrpe service |
66 |
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |