1 |
unnilennium |
1.6 |
# $Id: smeserver-nagios.spec,v 1.5 2013/10/14 03:53:56 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.6 |
%define release 6 |
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.3 |
Patch1: smeserver-nagios-2.0.0-dbinit.patch |
17 |
unnilennium |
1.5 |
Patch2: smeserver-nagios-2.0.0-pnpalias.patch |
18 |
unnilennium |
1.6 |
Patch3: smeserver-nagios-2.0.0-pnppath.patch |
19 |
unnilennium |
1.1 |
BuildRoot: /var/tmp/%{name}-buildroot/ |
20 |
|
|
BuildArch: noarch |
21 |
unnilennium |
1.2 |
Requires: smeserver-release >= 8 |
22 |
unnilennium |
1.1 |
Requires: nagios >= 3 |
23 |
|
|
Requires: pnp4nagios >= 0.4.10 |
24 |
unnilennium |
1.2 |
Requires: nagios-plugins |
25 |
|
|
Requires: nagios-plugins-setuid |
26 |
|
|
Requires: smeserver-nagios-plugins-mysql |
27 |
|
|
Requires: smeserver-nagios-backup |
28 |
unnilennium |
1.1 |
BuildRequires: e-smith-devtools |
29 |
|
|
AutoReq: no |
30 |
|
|
|
31 |
|
|
%changelog |
32 |
unnilennium |
1.6 |
* Tue Oct 15 2013 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-6.sme |
33 |
|
|
- libexec nagios path [SME: 7908] |
34 |
|
|
- another time for [SME: 5539](one line missing in patch) |
35 |
|
|
|
36 |
unnilennium |
1.5 |
* Sun Oct 13 2013 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-5.sme |
37 |
|
|
- pnp4nagio web path [SME: 7905] |
38 |
|
|
|
39 |
unnilennium |
1.4 |
* Sun Oct 13 2013 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-4.sme |
40 |
unnilennium |
1.2 |
- usermod bug [SME: 5539] |
41 |
|
|
- add requirements to ease isntallation : nagios-plugins nagios-plugins-setuid |
42 |
|
|
- smeserver-nagios-plugins-mysql and smeserver-nagios-backup |
43 |
unnilennium |
1.3 |
- inserted config db default |
44 |
|
|
- added users to accounts defaults |
45 |
|
|
- corrected /etc/nagios/nagios.cfg-smeserver |
46 |
unnilennium |
1.4 |
- /var/run/nagios |
47 |
unnilennium |
1.2 |
|
48 |
unnilennium |
1.1 |
* Mon Nov 17 2008 Michael Weinberger <mweinber@neddix.de> 2.0.0-1.sme |
49 |
|
|
removed scripts frpm spec file |
50 |
|
|
placed all nagios config file in directories |
51 |
|
|
|
52 |
|
|
* Sun Nov 16 2008 Michael Weinberger <mweinber@neddix.de> |
53 |
|
|
AddType application/x-httpd-php .php for PNP |
54 |
|
|
pre-configured nagios.cfg-smeserver |
55 |
|
|
* Wed Nov 14 2007 Michael Weinberger <mweinber@neddix.de> |
56 |
|
|
fixed usermod in /etc/rc.d/init.d/nagios-sme |
57 |
|
|
* Thu Oct 1 2007 Michael Weinberger <mweinber@neddix.de> |
58 |
|
|
- Initial release |
59 |
|
|
|
60 |
|
|
%description |
61 |
|
|
Nagios integration |
62 |
|
|
|
63 |
|
|
%prep |
64 |
|
|
%setup |
65 |
unnilennium |
1.2 |
%patch0 -p1 |
66 |
unnilennium |
1.3 |
%patch1 -p1 |
67 |
unnilennium |
1.5 |
%patch2 -p1 |
68 |
unnilennium |
1.6 |
%patch3 -p1 |
69 |
unnilennium |
1.1 |
|
70 |
|
|
%build |
71 |
|
|
|
72 |
|
|
%install |
73 |
|
|
rm -rf $RPM_BUILD_ROOT |
74 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
75 |
|
|
rm -f %{name}-%{version}-filelist |
76 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
77 |
|
|
--file /etc/nagios/nagios.cfg-smeserver 'attr(644,nagios,nagios)' \ |
78 |
|
|
--dir /etc/nagios 'attr(755,nagios,nagios)' \ |
79 |
|
|
--dir /etc/nagios/contacts 'attr(755,nagios,nagios)' \ |
80 |
|
|
--dir /etc/nagios/hosts 'attr(755,nagios,nagios)' \ |
81 |
|
|
--dir /etc/nagios/services 'attr(755,nagios,nagios)' \ |
82 |
|
|
--dir /etc/nagios/commands 'attr(755,nagios,nagios)' \ |
83 |
|
|
--dir /etc/nagios/pnp 'attr(755,nagios,nagios)' \ |
84 |
|
|
--dir /etc/nagios/servicegroups 'attr(755,nagios,nagios)' \ |
85 |
|
|
--dir /etc/nagios/hostgroups 'attr(755,nagios,nagios)' \ |
86 |
|
|
--dir /etc/nagios/templates 'attr(755,nagios,nagios)' \ |
87 |
|
|
--dir /etc/nagios/timeperiods 'attr(755,nagios,nagios)' \ |
88 |
|
|
>> %{name}-%{version}-filelist |
89 |
|
|
|
90 |
|
|
%clean |
91 |
|
|
rm -rf $RPM_BUILD_ROOT |
92 |
|
|
|
93 |
|
|
%files -f %{name}-%{version}-filelist |
94 |
|
|
%defattr(-,root,root) |