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