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