1 |
unnilennium |
1.2 |
# $Id: smeserver-nagios.spec,v 1.1 2013/06/01 13:18:54 unnilennium Exp $ |
2 |
unnilennium |
1.1 |
# Authority: mweinber |
3 |
|
|
# Name: Michael Weinberger |
4 |
|
|
|
5 |
|
|
Summary: Nagios integration |
6 |
|
|
%define name smeserver-nagios |
7 |
|
|
Name: %{name} |
8 |
|
|
%define version 2.0.0 |
9 |
unnilennium |
1.2 |
%define release 2 |
10 |
unnilennium |
1.1 |
Version: %{version} |
11 |
|
|
Release: %{release}%{?dist} |
12 |
|
|
License: GPL |
13 |
|
|
Group: Applications/System |
14 |
|
|
Source: %{name}-%{version}.tar.gz |
15 |
unnilennium |
1.2 |
Patch0: smeserver-nagios-2.0.0-usermod.patch |
16 |
unnilennium |
1.1 |
BuildRoot: /var/tmp/%{name}-buildroot/ |
17 |
|
|
BuildArch: noarch |
18 |
unnilennium |
1.2 |
Requires: smeserver-release >= 8 |
19 |
unnilennium |
1.1 |
Requires: nagios >= 3 |
20 |
|
|
Requires: pnp4nagios >= 0.4.10 |
21 |
unnilennium |
1.2 |
Requires: nagios-plugins |
22 |
|
|
Requires: nagios-plugins-setuid |
23 |
|
|
Requires: smeserver-nagios-plugins-mysql |
24 |
|
|
Requires: smeserver-nagios-backup |
25 |
unnilennium |
1.1 |
BuildRequires: e-smith-devtools |
26 |
|
|
AutoReq: no |
27 |
|
|
|
28 |
|
|
%changelog |
29 |
unnilennium |
1.2 |
* Sun Oct 13 2013 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-2.sme |
30 |
|
|
- usermod bug [SME: 5539] |
31 |
|
|
- add requirements to ease isntallation : nagios-plugins nagios-plugins-setuid |
32 |
|
|
- smeserver-nagios-plugins-mysql and smeserver-nagios-backup |
33 |
|
|
|
34 |
unnilennium |
1.1 |
* Mon Nov 17 2008 Michael Weinberger <mweinber@neddix.de> 2.0.0-1.sme |
35 |
|
|
removed scripts frpm spec file |
36 |
|
|
placed all nagios config file in directories |
37 |
|
|
|
38 |
|
|
* Sun Nov 16 2008 Michael Weinberger <mweinber@neddix.de> |
39 |
|
|
AddType application/x-httpd-php .php for PNP |
40 |
|
|
pre-configured nagios.cfg-smeserver |
41 |
|
|
* Wed Nov 14 2007 Michael Weinberger <mweinber@neddix.de> |
42 |
|
|
fixed usermod in /etc/rc.d/init.d/nagios-sme |
43 |
|
|
* Thu Oct 1 2007 Michael Weinberger <mweinber@neddix.de> |
44 |
|
|
- Initial release |
45 |
|
|
|
46 |
|
|
%description |
47 |
|
|
Nagios integration |
48 |
|
|
|
49 |
|
|
%prep |
50 |
|
|
%setup |
51 |
unnilennium |
1.2 |
%patch0 -p1 |
52 |
|
|
|
53 |
unnilennium |
1.1 |
|
54 |
|
|
%build |
55 |
|
|
|
56 |
|
|
%install |
57 |
|
|
rm -rf $RPM_BUILD_ROOT |
58 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
59 |
|
|
rm -f %{name}-%{version}-filelist |
60 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
61 |
|
|
--file /etc/nagios/nagios.cfg-smeserver 'attr(644,nagios,nagios)' \ |
62 |
|
|
--dir /etc/nagios 'attr(755,nagios,nagios)' \ |
63 |
|
|
--dir /etc/nagios/contacts 'attr(755,nagios,nagios)' \ |
64 |
|
|
--dir /etc/nagios/hosts 'attr(755,nagios,nagios)' \ |
65 |
|
|
--dir /etc/nagios/services 'attr(755,nagios,nagios)' \ |
66 |
|
|
--dir /etc/nagios/commands 'attr(755,nagios,nagios)' \ |
67 |
|
|
--dir /etc/nagios/pnp 'attr(755,nagios,nagios)' \ |
68 |
|
|
--dir /etc/nagios/servicegroups 'attr(755,nagios,nagios)' \ |
69 |
|
|
--dir /etc/nagios/hostgroups 'attr(755,nagios,nagios)' \ |
70 |
|
|
--dir /etc/nagios/templates 'attr(755,nagios,nagios)' \ |
71 |
|
|
--dir /etc/nagios/timeperiods 'attr(755,nagios,nagios)' \ |
72 |
|
|
>> %{name}-%{version}-filelist |
73 |
|
|
|
74 |
|
|
%clean |
75 |
|
|
rm -rf $RPM_BUILD_ROOT |
76 |
|
|
|
77 |
|
|
%files -f %{name}-%{version}-filelist |
78 |
|
|
%defattr(-,root,root) |