1 |
|
# $Id: smeserver-nagios-nsca.spec,v 1.3 2008/04/02 15:03:58 slords Exp $ |
2 |
|
# Authority: mweinber |
3 |
|
# Name: Michael Weinberger |
4 |
|
|
5 |
Summary: Nagios nsca integration |
Summary: Nagios nsca integration |
6 |
%define name smeserver-nagios-nsca |
%define name smeserver-nagios-nsca |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 1.0.1 |
%define version 1.0.1 |
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-nsca >= 2.6 |
Requires: nagios-nsca >= 2.6 |
19 |
|
BuildRequires: e-smith-devtools |
20 |
AutoReq: no |
AutoReq: no |
21 |
|
|
22 |
%changelog |
%changelog |
32 |
|
|
33 |
|
|
34 |
%prep |
%prep |
|
%setup |
|
35 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
36 |
|
|
37 |
%build |
%build |
48 |
%clean |
%clean |
49 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
50 |
|
|
|
%pre |
|
|
|
|
51 |
%post |
%post |
52 |
/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 |
53 |
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |