1 |
|
# $Id: smeserver-nagios-nsca.spec,v 1.5 2008/11/25 16:20:27 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 2.0.0 |
9 |
%define release 0 |
%define release 1 |
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 |
23 |
|
* Mon Nov 17 2008 Michael Weinberger <mweinber@neddix.de> 2.0.0-1.sme |
24 |
|
removed script from specfile |
25 |
|
|
26 |
* Thu Oct 1 2007 Michael Weinberger <mweinber@neddix.de> |
* Thu Oct 1 2007 Michael Weinberger <mweinber@neddix.de> |
27 |
- Initial release |
- Initial release |
28 |
|
|
36 |
|
|
37 |
%prep |
%prep |
38 |
%setup |
%setup |
|
%setup -q -n %{name}-%{version} |
|
39 |
|
|
40 |
%build |
%build |
41 |
|
|
51 |
%clean |
%clean |
52 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
53 |
|
|
|
%pre |
|
|
|
|
|
%post |
|
|
/sbin/e-smith/config printtype nsca > /dev/null || /sbin/e-smith/config set nsca service |
|
|
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
|
|
/sbin/e-smith/expand-template /etc/hosts.allow |
|
|
/sbin/e-smith/service nsca restart |
|
|
fi |
|
|
|
|
|
%preun |
|
|
if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then |
|
|
if [ $1 = 0 ] ; then # uninstall |
|
|
/sbin/e-smith/service nsca 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 |
|
|
fi |
|
|
fi |
|
|
|
|
54 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
55 |
%defattr(-,root,root) |
%defattr(-,root,root) |