4 |
%define version 1.0.1 |
%define version 1.0.1 |
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-nsca >= 2.6 |
Requires: nagios-nsca >= 2.6 |
15 |
|
BuildRequires: e-smith-devtools |
16 |
AutoReq: no |
AutoReq: no |
17 |
|
|
18 |
%changelog |
%changelog |
28 |
|
|
29 |
|
|
30 |
%prep |
%prep |
|
%setup |
|
31 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
32 |
|
|
33 |
%build |
%build |
44 |
%clean |
%clean |
45 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
46 |
|
|
|
%pre |
|
|
|
|
47 |
%post |
%post |
48 |
/sbin/e-smith/config printtype nsca > /dev/null || /sbin/e-smith/config set nsca service |
/sbin/e-smith/config printtype nsca > /dev/null || /sbin/e-smith/config set nsca service |
49 |
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |