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