1 |
unnilennium |
1.1 |
# $Id: smeserver-nagios-nsca.spec,v 1.6 2010/12/06 20:54:12 slords 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 1 |
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 |
|
|
BuildRequires: e-smith-devtools |
20 |
|
|
AutoReq: no |
21 |
|
|
|
22 |
|
|
%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> |
27 |
|
|
- Initial release |
28 |
|
|
|
29 |
|
|
%description |
30 |
|
|
Nagios nsca integration |
31 |
|
|
|
32 |
|
|
Setting the TCP wrapper allowed hosts: |
33 |
|
|
config setprop nsca HostsAllow "127.0.0.1 10.203.104.0/255.255.252.0 172.22.32.0/255.255.240.0" |
34 |
|
|
expand-template /etc/hosts.allow |
35 |
|
|
|
36 |
|
|
|
37 |
|
|
%prep |
38 |
|
|
%setup |
39 |
|
|
|
40 |
|
|
%build |
41 |
|
|
|
42 |
|
|
%install |
43 |
|
|
rm -rf $RPM_BUILD_ROOT |
44 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
45 |
|
|
rm -f %{name}-%{version}-filelist |
46 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
47 |
|
|
>> %{name}-%{version}-filelist |
48 |
|
|
find $RPM_BUILD_ROOT -depth -type l -print |\ |
49 |
|
|
sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist |
50 |
|
|
|
51 |
|
|
%clean |
52 |
|
|
rm -rf $RPM_BUILD_ROOT |
53 |
|
|
|
54 |
|
|
%files -f %{name}-%{version}-filelist |
55 |
|
|
%defattr(-,root,root) |