1 |
# $Id: smeserver-nagios-nsca.spec,v 1.3 2008/04/02 15:03:58 slords Exp $ |
# $Id: smeserver-nagios-nsca.spec,v 1.5 2008/11/25 16:20:27 slords Exp $ |
2 |
# Authority: mweinber |
# Authority: mweinber |
3 |
# Name: Michael Weinberger |
# 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}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
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 |
|
|
35 |
|
|
36 |
|
|
37 |
%prep |
%prep |
38 |
%setup -q -n %{name}-%{version} |
%setup |
39 |
|
|
40 |
%build |
%build |
41 |
|
|
51 |
%clean |
%clean |
52 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
53 |
|
|
|
%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) |