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