]> git.pld-linux.org Git - packages/nagios.git/blame - nagios.spec
- x32 rebuild
[packages/nagios.git] / nagios.spec
CommitLineData
03d5d122
ER
1# TODO
2# - /var/log/nagios/archives -> /var/log/archive/nagios
c90d41c3 3# - bundled jquery in themes
c2fe0fab 4#
b21411a3 5# Conditional build:
e1f9e4d5 6%bcond_without gd # without statusmap and trends, which require gd library
acd5f253 7%bcond_without doc # don't build html docs
8c8f3904
AM
8# reeenable when http://tracker.nagios.org/view.php?id=51 is fixed
9%bcond_with tests
03d5d122 10
86568aa8 11Summary: Open Source host, service and network monitoring program
a02dfee5
ER
12Summary(pl.UTF-8): Program do monitorowania serwerów/usług/sieci
13Summary(pt_BR.UTF-8): Programa para monitoração de máquinas e serviços
1b3d1540 14Name: nagios
fa363e1f 15Version: 4.0.8
8a2dc600 16Release: 2
ab40d60f 17License: GPL v2+
1b3d1540 18Group: Networking
e277f689 19Source0: http://downloads.sourceforge.net/nagios/nagios-4.x/%{name}-%{version}/%{name}-%{version}.tar.gz
fa363e1f 20# Source0-md5: 4bba4eef427cfb113fb513b6166a6af6
1b3d1540
TO
21Source1: %{name}-apache.conf
22Source2: %{name}.init
156a07c5 23Source3: %{name}.sysconfig
ee487720 24# http://git.pld-linux.org/cgi-bin/cgit.cgi/projects/nagios-config.git/
9c387eb0
ER
25Source4: %{name}-config-20090914.tar.bz2
26# Source4-md5: 605f1cd28c00db961dad6f529d849f16
27Source5: %{name}-lighttpd.conf
455492e8
ER
28Source6: http://www.google.com/mapfiles/shadow50.png
29# Source6-md5: eff99f302f21b95a900d321743fce72b
30Source7: http://www.google.com/mapfiles/marker.png
31# Source7-md5: edefef4bdfc29e1c953694651f05b466
32Source8: googlemap.js
d12528d9 33Source9: %{name}wall.php
b24b4667
ER
34Patch0: %{name}-resources.patch
35Patch1: %{name}-iconv-in-libc.patch
19670bc2 36Patch2: %{name}-webapps.patch
f29ace4f 37Patch3: %{name}-cgi-http_charset.patch
d39e610a 38Patch4: %{name}-cmd-typo.patch
4af19791 39Patch5: config.patch
3392dafc 40Patch6: %{name}-googlemap.patch
27a9d69f
ER
41Patch7: %{name}-doc-usermacros.patch
42Patch8: archivelog-timeformat.patch
e9dab65f 43Patch9: system-magpierss.patch
bf8055c4 44Patch10: system-jquery.patch
252c8c1b 45Patch11: do-not-fetch-rss.patch
1b3d1540 46URL: http://www.nagios.org/
14ddd08f
JB
47BuildRequires: autoconf
48BuildRequires: automake
acd5f253 49%{?with_doc:BuildRequires: doxygen}
2f5235a6
ER
50BuildRequires: rpmbuild(macros) >= 1.268
51BuildRequires: sed >= 4.0
86522331
AG
52%if %{with gd}
53BuildRequires: gd-devel
54BuildRequires: libjpeg-devel
55BuildRequires: libpng-devel
56%endif
2f5235a6
ER
57%if %{with tests}
58BuildRequires: perl-HTML-Lint
59BuildRequires: perl-Test-WWW-Mechanize-CGI
60%endif
8a91cf36 61Requires(post,preun): /sbin/chkconfig
bc56720c 62Requires: %{name}-common = %{version}-%{release}
d12528d9 63Requires: rc-scripts >= 0.4.5.5
d4363d96 64Requires: sh-utils
f77e54ce 65Suggests: nagios-notify >= 0.13
3392dafc
ER
66Suggests: nagios-plugin-check_load
67Suggests: nagios-plugin-check_ping
68Suggests: nagios-plugins
f0724323 69Provides: nagios-core
1b3d1540 70Obsoletes: netsaint
d4363d96 71Conflicts: iputils-ping < 1:ss020124
56d92939 72BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
1b3d1540 73
e1f9e4d5 74%define _sysconfdir /etc/%{name}
708a261e
ER
75%define cgidir %{_libdir}/%{name}/cgi
76%define htmldir %{_prefix}/share/%{name}
e1f9e4d5 77%define _localstatedir /var/lib/%{name}
31f3ed2f
ER
78%define _webapps /etc/webapps
79%define _webapp %{name}
a9824b3a 80
1b3d1540
TO
81%description
82Nagios is a program that will monitor hosts and services on your
83network. It has the ability to email or page you when a problem arises
0cf1a114
TO
84and when a problem is resolved. Nagios is written in C and is designed
85to run under Linux (and some other *NIX variants) as a background
86process, intermittently running checks on various services that you
87specify.
1b3d1540
TO
88
89The actual service checks are performed by separate "plugin" programs
90which return the status of the checks to Nagios. The plugins are
91available in nagios-plugins packages.
92
924840b9
TO
93Nagios is successor to NetSaint.
94
eb034f05
JR
95%description -l pl.UTF-8
96Nagios to program, który monitoruje serwery oraz usługi w naszej
97sieci. Posiada on możliwość wysyłania informacji o wystąpieniu oraz
98rozwiązaniu problemu. Nagios został napisany w C oraz jest
99zaprojektowany do pracy pod Linuksem (i niektórymi innymi uniksami)
100jako proces pracujący w tle i bezustannie wykonujący pewne operacje
101sprawdzające.
1b3d1540 102
eb034f05
JR
103Właściwe sprawdzanie jest wykonywane przez osobne programy
104("wtyczki"), które zwracają informacje o statusie do Nagiosa. Wtyczki
105są dostępne na stronie w pakietach nagios-plugins.
1b3d1540 106
eb034f05 107Nagios jest następcą NetSainta.
924840b9 108
eb034f05
JR
109%description -l pt_BR.UTF-8
110O Nagios é um programa que monitora máquinas e serviços na sua rede.
1b3d1540 111Ele pode enviar um email ou um aviso de pager para o administrador
eb034f05 112quando surgir um problema e quando ele for resolvido. Nagios é escrito
0cf1a114 113em C e foi desenvolvido para rodar em plataformas Linux (e algumas
eb034f05
JR
114variações de *NIX) como um processo em segundo plano, periodicamente
115executando checagens nos diversos serviços que forem especificados.
1b3d1540 116
901d97df
ER
117%package common
118Summary: Common files needed by both nagios and nrpe
a02dfee5 119Summary(pl.UTF-8): Wspólne pliki wymagane zarówno przez nagiosa jak i nrpe
901d97df 120Group: Networking
d4363d96
ER
121Requires(postun): /usr/sbin/groupdel
122Requires(postun): /usr/sbin/userdel
901d97df 123Requires(pre): /bin/id
d4363d96 124Requires(pre): /usr/bin/getgid
901d97df
ER
125Requires(pre): /usr/sbin/groupadd
126Requires(pre): /usr/sbin/groupmod
127Requires(pre): /usr/sbin/useradd
128Requires(pre): /usr/sbin/usermod
7970ec44 129Provides: group(nagcmd)
f77e54ce 130Provides: group(nagios)
d4363d96 131Provides: user(nagios)
901d97df
ER
132
133%description common
134Common files needed by both nagios and nrpe.
135
eb034f05
JR
136%description common -l pl.UTF-8
137Wspólne pliki wymagane zarówno przez nagiosa jak i nrpe.
bee7c8ea 138
1b3d1540
TO
139%package cgi
140Summary: CGI webinterface for Nagios
a02dfee5 141Summary(pl.UTF-8): Interfejs WWW/CGI dla Nagiosa
7c33b67a 142Group: Applications/WWW
bf60adae 143# for dirs... and accessing local logs, nagios config
4a3af0fb 144Requires: %{name} = %{version}-%{release}
1bbdd399 145Requires: %{name}-imagepaks
20145354 146Requires: %{name}-theme
156a07c5 147Requires: group(http)
bf8055c4 148Requires: jquery
d4363d96 149Requires: webapps
e785f9d9 150Requires: webserver
111ce231 151Requires: webserver(access)
e785f9d9
ER
152Requires: webserver(alias)
153Requires: webserver(auth)
154Requires: webserver(cgi)
155Requires: webserver(indexfile)
bf60adae 156Suggests: %{name}-doc
252c8c1b 157Suggests: php-magpierss >= 0.72
1b3d1540
TO
158
159%description cgi
0964d76f
JB
160CGI webinterface for Nagios.
161
eb034f05 162%description cgi -l pl.UTF-8
0964d76f 163Interfejs CGI dla Nagiosa.
1b3d1540 164
4f43d0aa
ER
165%package mrtggraphs
166Summary: MRTG Graphs: Nagios Statistics
167Group: Applications/Networking
168Requires: %{name} = %{version}-%{release}
169Provides: mrtg-start
c90d41c3
ER
170%if "%{_rpmversion}" >= "5"
171BuildArch: noarch
172%endif
4f43d0aa
ER
173
174%description mrtggraphs
175This pacakge graphs several Nagios statistics which can be useful for
176debugging and trending purposes. The nagiostats binary is used to
177generate the data.
178
bf60adae
ER
179%package doc
180Summary: HTML Documentation for Nagios
181Group: Documentation
acd5f253
ER
182%if "%{_rpmversion}" >= "5"
183BuildArch: noarch
184%endif
bf60adae
ER
185# does not require base
186
187%description doc
188HTML Documentation for Nagios.
189
a10f2ff5
ER
190%package theme-classicui
191Summary: ClassicUI Nagios theme
7c33b67a 192Group: Applications/WWW
c80fbcb2 193Requires: %{name}-cgi = %{version}-%{release}
fdea6415 194Requires: webserver(php)
60238ce7
JB
195Provides: nagios-theme
196Obsoletes: nagios-theme
c90d41c3
ER
197%if "%{_rpmversion}" >= "5"
198BuildArch: noarch
199%endif
20145354 200
a10f2ff5 201%description theme-classicui
20145354
ER
202Original theme from Nagios.
203
a10f2ff5 204%description theme-classicui -l pl.UTF-8
60238ce7
JB
205Oryginalny motyw z Nagiosa.
206
a10f2ff5
ER
207%package theme-default
208Summary: Virtual package to handle Nagios theme migration
209Group: Applications/WWW
210Requires: nagios-theme
8da737aa
ER
211Suggests: nagios-theme-classicui
212Suggests: nagios-theme-exfoliation
213Suggests: nagios-theme-nuvola
a10f2ff5 214Obsoletes: nagios-theme-default < 3.3.1-1.4
c90d41c3
ER
215%if "%{_rpmversion}" >= "5"
216BuildArch: noarch
217%endif
a10f2ff5
ER
218
219%description theme-default
220Virtual package to handle Nagios theme migration
221
1b3d1540 222%package devel
e5fcc454 223Summary: Include files that Nagios-related applications may compile against
a02dfee5
ER
224Summary(pl.UTF-8): Pliki nagłówkowe, wykorzystywane przez aplikacje nagiosa
225Summary(pt_BR.UTF-8): Arquivos de cabeçalho necessários para desenvolvimento de aplicativos para o Nagios
1b3d1540 226Group: Development/Libraries
e1f9e4d5 227# doesn't require base
1b3d1540
TO
228
229%description devel
442ef855
ER
230This package contains the header files, static libraries and
231development documentation for Nagios. If you are a NEB-module author
232or wish to write addons for Nagios using Nagios' own API's, you should
233install this package.
1b3d1540 234
eb034f05
JR
235%description devel -l pl.UTF-8
236Ten pakiet dostarcza pliki nagłówkowe, które mogą być wykorzystywane
237przez aplikacje związane z nagiosem podczas kompilacji.
1b3d1540 238
eb034f05
JR
239%description devel -l pt_BR.UTF-8
240Este pacote contém arquivos de cabeçalho usados no desenvolvimento de
1b3d1540
TO
241aplicativos para o Nagios.
242
243%prep
7f0097ee 244%setup -qc -a4
f09aa22f 245mv %{name}-%{version}/* .
0d02e51c 246%undos cgi/*.c
247%undos include/*.h
248%undos base/*
b24b4667
ER
249%patch0 -p0
250%patch1 -p1
4a3af0fb 251%patch2 -p1
f29ace4f 252%patch3 -p1
5ddc91b8 253#fixed
0d02e51c 254#%patch4 -p1
744a134f 255%patch5 -p1
455492e8 256%patch6 -p1
7116ea37 257%patch7 -p1
27a9d69f 258%patch8 -p1
e9dab65f 259%patch9 -p1
bf8055c4 260%patch10 -p1
252c8c1b 261%patch11 -p1
156a07c5 262
6e193622 263find -name .cvsignore -o -name .gitignore | xargs rm
fdea6415
ER
264
265mv nagios-config-*/objects/*.cfg sample-config/template-object
266mv nagios-config-*/*.cfg sample-config
267
af765cf5
ER
268# cleanup backups after patching
269find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
270
156a07c5 271sed -i -e '
c80fbcb2 272 s,".*/var/rw/%{name}.cmd,"%{_localstatedir}/rw/%{name}.cmd,
156a07c5
ER
273 s,".*/libexec/eventhandlers,"%{_libdir}/%{name}/eventhandlers,
274' $(find contrib/eventhandlers -type f)
1b3d1540 275
078e0b6e 276sed -e 's,%{_prefix}/lib/,%{_libdir}/,' %{SOURCE1} > apache.conf
9c387eb0 277sed -e 's,%{_prefix}/lib/,%{_libdir}/,' %{SOURCE5} > lighttpd.conf
078e0b6e 278
744a134f
ER
279# fixup cgi config
280%{__sed} -i -e '
281 # kill trailing spaces
282 s, \+$,,
283 # use real paths
c80fbcb2 284 s,/usr/local/%{name}/share,@datadir@,g
744a134f
ER
285 # we want all authorized users have default access
286 s,=nagiosadmin,=*,g
4af19791 287' sample-config/*.cfg.in
744a134f 288
2f5235a6
ER
289#rm t/611cgistatus-hosturgencies.t
290
1b3d1540 291%build
156a07c5 292cp -f /usr/share/automake/config.sub .
a9824b3a
TO
293%{__aclocal}
294%{__autoconf}
2f5235a6
ER
295%if %{with tests}
296cd tap
297%{__libtoolize}
298%{__aclocal}
299%{__autoconf}
300cd ..
301%endif
a9824b3a 302%configure \
b654dd87 303 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
708a261e
ER
304 --bindir=%{_sbindir} \
305 --sbindir=%{cgidir} \
306 --datadir=%{htmldir} \
1b3d1540
TO
307 --with-nagios-user=%{name} \
308 --with-nagios-grp=%{name} \
156a07c5
ER
309 --with-command-user=%{name} \
310 --with-command-grp=%{name} \
311 --with-lockfile=%{_localstatedir}/%{name}.pid \
e56088ed 312 --with-checkresult-dir=%{_var}/spool/%{name}/checkresults \
0964d76f 313 --with-ping_command='/bin/ping -n %%s -c %%d' \
8c8f3904
AM
314 %{!?with_gd:--disable-statusmap --disable-trends} \
315 %{?with_tests:--enable-libtap} \
316 --enable-event-broker
1b3d1540
TO
317
318%{__make} all
319
acd5f253
ER
320%{?with_doc:%{__make} dox}
321
8c8f3904
AM
322%{?with_tests:%{__make} test}
323
1b3d1540
TO
324%install
325rm -rf $RPM_BUILD_ROOT
4a5ea7ae
ER
326install -d $RPM_BUILD_ROOT{/etc/{sysconfig,rc.d/init.d},%{_webapps}/%{_webapp}} \
327 $RPM_BUILD_ROOT{%{_var}/log/%{name}/archives,%{_localstatedir}/rw} \
fdea6415 328 $RPM_BUILD_ROOT%{_sysconfdir}/{plugins,objects} \
fcd029a6 329 $RPM_BUILD_ROOT%{_libdir}/%{name}/{eventhandlers,plugins,brokers} \
4a5ea7ae
ER
330%if "%{_lib}" != "lib"
331 $RPM_BUILD_ROOT%{_prefix}/lib/%{name}/{eventhandlers,plugins} \
332%endif
1b3d1540 333
442ef855 334%{__make} install-unstripped install-devel \
1b3d1540
TO
335 DESTDIR=$RPM_BUILD_ROOT \
336 INSTALL_OPTS="" \
337 INIT_OPTS="" \
338 COMMAND_OPTS=""
339
6e193622 340install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
5ddc91b8 341cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
156a07c5
ER
342
343# install templated configuration files
c80fbcb2 344for a in %{name}.cfg resource.cfg commands.cfg contactgroups.cfg contacts.cfg templates.cfg timeperiods.cfg; do
5ddc91b8 345 cp -p sample-config/$a $RPM_BUILD_ROOT%{_sysconfdir}
fdea6415 346done
c0350ebc 347
31f3ed2f 348# webserver files
5ddc91b8 349cp -p apache.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
218b60a4 350cp -p apache.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
5ddc91b8
ER
351cp -p lighttpd.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/lighttpd.conf
352cp -p sample-config/cgi.cfg $RPM_BUILD_ROOT%{_webapps}/%{_webapp}
353cp -p %{SOURCE6} $RPM_BUILD_ROOT%{htmldir}/images
354cp -p %{SOURCE7} $RPM_BUILD_ROOT%{htmldir}/images
355cp -p %{SOURCE8} $RPM_BUILD_ROOT%{htmldir}/images
4e60ae1d 356cp -p %{SOURCE9} $RPM_BUILD_ROOT%{htmldir}
31f3ed2f
ER
357> $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/passwd
358echo 'nagios:' > $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/group
156a07c5 359
fdea6415 360# install event handlers, sample config
4a5ea7ae 361install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
156a07c5 362cp -a contrib/eventhandlers $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
fdea6415
ER
363cp -a sample-config $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
364find $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -name '*.in' | xargs rm
156a07c5 365
4f43d0aa
ER
366# mrtg script
367install -d $RPM_BUILD_ROOT/etc/mrtg/conf.d
86568aa8 368cp -p sample-config/mrtg.cfg $RPM_BUILD_ROOT/etc/mrtg/conf.d/%{name}.cfg
4f43d0aa 369
156a07c5 370# Object data/cache files
e6b8c4d6 371for i in {objects.{cache,precache},{retention,status}.dat,%{name}.{tmp,pid}}; do
156a07c5 372 > $RPM_BUILD_ROOT%{_localstatedir}/$i
b0a1a45f 373done
c80fbcb2 374> $RPM_BUILD_ROOT%{_localstatedir}/rw/%{name}.cmd
86568aa8 375> $RPM_BUILD_ROOT%{_localstatedir}/rw/%{name}.qh
e58661fb 376
bf60adae 377install -d $RPM_BUILD_ROOT%{_docdir}/%{name}
acd5f253 378%{__cp} -a Documentation/html/* $RPM_BUILD_ROOT%{_docdir}/%{name}
bf60adae 379
1b3d1540
TO
380%clean
381rm -rf $RPM_BUILD_ROOT
382
1b3d1540 383%post
f9b2b5a9 384for i in %{_localstatedir}/{objects.{cache,precache},{retention,status}.dat}; do
156a07c5
ER
385 [ ! -f $i ] && touch $i
386 chown root:nagios $i
387 chmod 664 $i
388done
389
fe2307cb 390/sbin/chkconfig --add %{name}
09b7a682 391%service %{name} restart "Nagios service"
fe2307cb 392
1b3d1540
TO
393%preun
394if [ "$1" = "0" ] ; then
fe2307cb 395 %service %{name} stop
1b3d1540
TO
396 /sbin/chkconfig --del %{name}
397fi
398
901d97df 399%pre common
7970ec44 400# rename group netsaint -> nagios
3392dafc 401if [ "$(getgid netsaint 2>/dev/null)" = "72" ]; then
901d97df
ER
402 /usr/sbin/groupmod -n nagios netsaint
403fi
7970ec44 404# rename group nagios-data -> nagcmd
3392dafc 405if [ "$(getgid nagios-data 2>/dev/null)" = "147" ]; then
7970ec44
ER
406 /usr/sbin/groupmod -n nagcmd nagios-data
407fi
901d97df 408%groupadd -g 72 nagios
7970ec44 409%groupadd -g 147 -f nagcmd
3392dafc 410if [ -n "$(id -u netsaint 2>/dev/null)" ] && [ "$(id -u netsaint)" = "72" ]; then
c80fbcb2 411 /usr/sbin/usermod -d %{_libdir}/%{name} -l nagios -c "Nagios Daemon" -G nagcmd netsaint
901d97df 412fi
c80fbcb2 413%useradd -u 72 -d %{_libdir}/%{name} -s /bin/false -c "Nagios Daemon" -g nagios -G nagcmd nagios
901d97df
ER
414
415%postun common
4b3055f2 416if [ "$1" = "0" ]; then
56d92939 417 %userremove nagios
418 %groupremove nagios
7970ec44 419 %groupremove nagcmd
4b3055f2 420fi
421
7441a39b 422%post cgi
156a07c5
ER
423if [ "$1" = 1 ]; then
424%banner %{name} -e <<EOF
425NOTE:
31f3ed2f 426You need to add user to %{_webapps}/%{_webapp}/passwd and
fe2307cb 427%{_webapps}/%{_webapp}/group to access Nagios via web.
156a07c5
ER
428
429EOF
430fi
431
91b73a43 432%triggerin cgi -- apache1 < 1.3.37-3, apache1-base
7970ec44 433%addusertogroup http nagcmd
31f3ed2f 434%webapp_register apache %{_webapp}
26c807b6 435
91b73a43 436%triggerun cgi -- apache1 < 1.3.37-3, apache1-base
31f3ed2f 437%webapp_unregister apache %{_webapp}
26c807b6 438
218b60a4 439%triggerin cgi -- apache < 2.2.0, apache-base
7970ec44 440%addusertogroup http nagcmd
31f3ed2f 441%webapp_register httpd %{_webapp}
26c807b6 442
218b60a4 443%triggerun cgi -- apache < 2.2.0, apache-base
31f3ed2f 444%webapp_unregister httpd %{_webapp}
156a07c5 445
e785f9d9 446%triggerin cgi -- lighttpd
7970ec44 447%addusertogroup lighttpd nagcmd
e785f9d9
ER
448%webapp_register lighttpd %{_webapp}
449
450%triggerun cgi -- lighttpd
451%webapp_unregister lighttpd %{_webapp}
452
156a07c5
ER
453%triggerpostun -- nagios-cgi < 2.0-0.b3.21
454chown root:http %{_sysconfdir}/cgi.cfg
455
e56088ed 456%triggerpostun -- nagios < 3.1.2-4
fdea6415 457# restore lost files
53326298 458for a in dependencies.cfg services.cfg serviceextinfo.cfg hosts.cfg hostgroups.cfg hostextinfo.cfg escalations.cfg checkcommands.cfg misccommands.cfg; do
fdea6415
ER
459 if [ -f %{_sysconfdir}/$a.rpmsave -a ! -f %{_sysconfdir}/$a ]; then
460 mv -f %{_sysconfdir}/$a{.rpmsave,}
31f3ed2f
ER
461 fi
462done
c80fbcb2 463%{__sed} -i -e 's,^check_result_path=.*,check_result_path=%{_var}/spool/%{name}/checkresults,' %{_sysconfdir}/%{name}.cfg
31f3ed2f 464
1b3d1540
TO
465%files
466%defattr(644,root,root,755)
156a07c5 467%doc Changelog README* UPGRADING INSTALLING LICENSE
9ac20a2e 468%attr(750,root,nagios) %dir %{_sysconfdir}/objects
3392dafc
ER
469
470# leave main nagios config readable for -cgi.
c80fbcb2 471%attr(640,root,nagcmd) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.cfg
3392dafc
ER
472
473%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/commands.cfg
474%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/contactgroups.cfg
475%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/contacts.cfg
476%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/resource.cfg
477%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/templates.cfg
478%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/timeperiods.cfg
156a07c5 479
3f16fe73 480%attr(754,root,root) /etc/rc.d/init.d/%{name}
156a07c5
ER
481%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
482
708a261e
ER
483%attr(755,root,root) %{_sbindir}/%{name}
484%attr(755,root,root) %{_sbindir}/nagiostats
fcd029a6 485%dir %{_libdir}/%{name}/brokers
156a07c5 486
7970ec44
ER
487%attr(770,root,nagcmd) %dir %{_var}/log/%{name}
488%attr(770,root,nagcmd) %dir %{_var}/log/%{name}/archives
156a07c5 489
7970ec44
ER
490%attr(770,root,nagcmd) %dir %{_localstatedir}
491%attr(2770,root,nagcmd) %dir %{_localstatedir}/rw
c80fbcb2 492%attr(660,nagios,nagcmd) %ghost %{_localstatedir}/rw/%{name}.cmd
86568aa8 493%attr(660,nagios,nagcmd) %ghost %{_localstatedir}/rw/%{name}.qh
3e125558 494%attr(664,root,nagios) %ghost %{_localstatedir}/objects.cache
19cc8e59 495%attr(664,root,nagios) %ghost %{_localstatedir}/objects.precache
3e125558
ER
496%attr(664,root,nagios) %ghost %{_localstatedir}/*.dat
497%attr(664,root,nagios) %ghost %{_localstatedir}/%{name}.tmp
e6b8c4d6 498%attr(664,root,nagios) %ghost %{_localstatedir}/%{name}.pid
156a07c5 499
7e556525 500%attr(770,root,nagcmd) %dir %{_var}/spool/%{name}/checkresults
3d336594 501
156a07c5
ER
502%{_examplesdir}/%{name}-%{version}
503
901d97df
ER
504%files common
505%defattr(644,root,root,755)
7970ec44 506%attr(750,root,nagcmd) %dir %{_sysconfdir}
1e0c0567 507%attr(750,root,nagios) %dir %{_sysconfdir}/plugins
901d97df
ER
508%dir %{_libdir}/%{name}
509%dir %{_libdir}/%{name}/plugins
156a07c5 510%dir %{_libdir}/%{name}/eventhandlers
1b3d1540 511
4a5ea7ae
ER
512%if "%{_lib}" != "lib"
513%dir %{_prefix}/lib/%{name}
514%dir %{_prefix}/lib/%{name}/plugins
515%dir %{_prefix}/lib/%{name}/eventhandlers
516%endif
517
7e556525 518%attr(770,root,nagcmd) %dir %{_var}/spool/%{name}
2ea9f2fa 519
4f43d0aa
ER
520%files mrtggraphs
521%defattr(644,root,root,755)
522%config(noreplace) %verify(not md5 mtime size) /etc/mrtg/conf.d/%{name}.cfg
523
bf60adae
ER
524%files doc
525%defattr(644,root,root,755)
526%{_docdir}/%{name}
527
1b3d1540
TO
528%files cgi
529%defattr(644,root,root,755)
31f3ed2f
ER
530%dir %attr(750,root,http) %{_webapps}/%{_webapp}
531%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/apache.conf
532%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/httpd.conf
e785f9d9 533%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/lighttpd.conf
31f3ed2f
ER
534%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/cgi.cfg
535%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/passwd
536%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/group
708a261e
ER
537%dir %{cgidir}
538%attr(755,root,root) %{cgidir}/*.cgi
539
540%dir %{htmldir}
541%dir %{htmldir}/includes
542%dir %{htmldir}/images
543%dir %{htmldir}/stylesheets
544%{htmldir}/robots.txt
545%{htmldir}/contexthelp
fa363e1f 546%{htmldir}/jsonquery.html
708a261e
ER
547%{htmldir}/media
548%{htmldir}/ssi
549%{htmldir}/images/favicon.ico
550%{htmldir}/images/marker.png
551%{htmldir}/images/shadow50.png
4e60ae1d 552%{htmldir}/nagioswall.php
fa363e1f
AM
553%{htmldir}/rss-corefeed.html
554%{htmldir}/rss-newsfeed.html
20145354 555
a10f2ff5 556%files theme-classicui
20145354 557%defattr(644,root,root,755)
66a71233 558%exclude %{htmldir}/nagioswall.php
708a261e
ER
559%{htmldir}/*.php
560%{htmldir}/includes/*
561%{htmldir}/images/*
562%exclude %{htmldir}/images/favicon.ico
563%exclude %{htmldir}/images/marker.png
564%exclude %{htmldir}/images/shadow50.png
565%{htmldir}/stylesheets/*
1b3d1540 566
a10f2ff5
ER
567%files theme-default
568%defattr(644,root,root,755)
569
1b3d1540
TO
570%files devel
571%defattr(644,root,root,755)
572%dir %{_includedir}/%{name}
573%{_includedir}/%{name}/*.h
442ef855
ER
574%{_includedir}/%{name}/lib
575%{_libdir}/libnagios.a
This page took 0.261952 seconds and 4 git commands to generate.