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