/[smecontribs]/rpms/smeserver-nagios/contribs8/smeserver-nagios.spec
ViewVC logotype

Annotation of /rpms/smeserver-nagios/contribs8/smeserver-nagios.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (hide annotations) (download)
Mon Oct 14 03:53:56 2013 UTC (11 years, 1 month ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-nagios-2_0_0-5_el5_sme
Changes since 1.4: +7 -2 lines
* Sun Oct 13  2013 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-5.sme
- pnp4nagio web path [SME: 7905]

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed