1 |
# $Id: smeserver-nagios-nsca.spec,v 1.1 2013/06/01 13:25:13 unnilennium Exp $ |
2 |
# Authority: mweinber |
3 |
# Name: Michael Weinberger |
4 |
|
5 |
Summary: Nagios nsca integration |
6 |
%define name smeserver-nagios-nsca |
7 |
Name: %{name} |
8 |
%define version 2.0.0 |
9 |
%define release 2 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Applications/System |
14 |
Source: %{name}-%{version}.tar.gz |
15 |
BuildRoot: /var/tmp/%{name}-buildroot/ |
16 |
BuildArch: noarch |
17 |
Requires: smeserver-release >= 7.1.3 |
18 |
Requires: nagios-nsca >= 2.6 |
19 |
Requires: nagios-plugins |
20 |
Requires: nagios-plugins-nrpe |
21 |
Requires: nagios-plugins-setuid |
22 |
Requires: perl-Config-Tiny |
23 |
Requires: smeserver-nagios-backup |
24 |
Requires: perl-Nagios-Plugin |
25 |
Requires: smeserver-nagios-plugins-mysql |
26 |
BuildRequires: e-smith-devtools |
27 |
AutoReq: no |
28 |
|
29 |
%changelog |
30 |
* Sun Oct 27 2013 JP Pialasse <tests@pialasse.com> 2.0.0-2.sme |
31 |
- adding Requires to smooth the installation |
32 |
|
33 |
* Mon Nov 17 2008 Michael Weinberger <mweinber@neddix.de> 2.0.0-1.sme |
34 |
removed script from specfile |
35 |
|
36 |
* Thu Oct 1 2007 Michael Weinberger <mweinber@neddix.de> |
37 |
- Initial release |
38 |
|
39 |
%description |
40 |
Nagios nsca integration |
41 |
|
42 |
Setting the TCP wrapper allowed hosts: |
43 |
config setprop nsca HostsAllow "127.0.0.1 10.203.104.0/255.255.252.0 172.22.32.0/255.255.240.0" |
44 |
expand-template /etc/hosts.allow |
45 |
|
46 |
|
47 |
%prep |
48 |
%setup |
49 |
|
50 |
%build |
51 |
|
52 |
%install |
53 |
rm -rf $RPM_BUILD_ROOT |
54 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
55 |
rm -f %{name}-%{version}-filelist |
56 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
57 |
>> %{name}-%{version}-filelist |
58 |
find $RPM_BUILD_ROOT -depth -type l -print |\ |
59 |
sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist |
60 |
|
61 |
%clean |
62 |
rm -rf $RPM_BUILD_ROOT |
63 |
|
64 |
%files -f %{name}-%{version}-filelist |
65 |
%defattr(-,root,root) |