1 |
# $Id$ |
# $Id: smeserver-nagios-nrpe.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 nrpe integration |
Summary: Nagios nrpe integration |
6 |
%define name smeserver-nagios-nrpe |
%define name smeserver-nagios-nrpe |
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 |
14 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
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.3 |
18 |
Requires: nagios-nrpe >= 2.5.2 |
Requires: nagios-nrpe >= 2.5.2 |
19 |
Requires: nagios-plugins-nrpe >= 2.5.2 |
Requires: nagios-plugins-nrpe >= 2.5.2 |
20 |
Requires: nagios-plugins |
Requires: nagios-plugins |
23 |
AutoReq: no |
AutoReq: no |
24 |
|
|
25 |
%changelog |
%changelog |
26 |
|
* Mon Nov 17 2008 Michael Weinberger <mweinber@neddix.de> 2.0.0-1 |
27 |
|
removed scripts from specfile |
28 |
|
|
29 |
* Mon Dec 03 2007 Michael Weinberger <mweinber@neddix.de> |
* Mon Dec 03 2007 Michael Weinberger <mweinber@neddix.de> |
30 |
Version 1.0.3 |
Version 1.0.3 |
31 |
modified templateexpand in events (/etc/sudoer perms bug) |
modified templateexpand in events (/etc/sudoer perms bug) |
52 |
|
|
53 |
|
|
54 |
%prep |
%prep |
55 |
%setup -q -n %{name}-%{version} |
%setup |
56 |
|
|
57 |
%build |
%build |
58 |
|
|
68 |
%clean |
%clean |
69 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
70 |
|
|
|
%post |
|
|
/sbin/e-smith/config printtype nrpe > /dev/null || /sbin/e-smith/config set nrpe service |
|
|
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
|
|
/sbin/e-smith/expand-template /etc/hosts.allow |
|
|
/sbin/e-smith/expand-template /etc/sudoers |
|
|
/sbin/e-smith/service nrpe restart |
|
|
fi |
|
|
|
|
|
%preun |
|
|
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
|
|
if [ $1 = 0 ] ; then # uninstall |
|
|
/sbin/e-smith/service nrpe stop |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
%postun |
|
|
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
|
|
if [ $1 = 0 ] ; then # uninstall |
|
|
/sbin/e-smith/expand-template /etc/hosts.allow |
|
|
echo -n |
|
|
fi |
|
|
fi |
|
|
|
|
71 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
72 |
%defattr(-,root,root) |
%defattr(-,root,root) |