1 %include /usr/lib/rpm/macros.perl
2 Summary: The most widely used Web server on the Internet
3 Summary(de): Leading World Wide Web-Server
4 Summary(fr): Le serveur web le plus utilise sur Internet
5 Summary(pl): Serwer WWW (World Wide Web)
6 Summary(tr): Lider WWW tarayýcý
11 Group: Networking/Daemons
12 Group(pl): Sieciowe/Serwery
13 Source0: ftp://ftp.apache.org/dist/%{name}_%{version}.tar.gz
15 Source2: %{name}.logrotate
16 Source3: %{name}-icons.tar.gz
17 Source4: %{name}.sysconfig
18 Source6: %{name}-httpd.conf
19 Source8: %{name}-mod_vhost_alias.conf
20 Source9: %{name}-mod_status.conf
21 Source10: %{name}-mod_proxy.conf
22 Patch0: %{name}-PLD.patch
23 Patch1: %{name}-suexec.patch
24 Patch2: %{name}-htdocs.patch
25 Patch3: %{name}-errordocs.patch
26 Patch4: %{name}-apxs.patch
27 Patch5: %{name}-EAPI.patch
28 Patch6: %{name}-v6-PLD-2.patch.gz
29 Patch7: %{name}-mm_conf.patch
30 Patch8: %{name}-modules_symbols.patch
31 Patch9: %{name}-apxs_force_rm_cp.patch
34 Prereq: /sbin/chkconfig
35 Prereq: /usr/sbin/useradd
36 Prereq: /usr/bin/getgid
39 BuildRequires: mm-devel >= 1.1.3
42 Requires: /etc/mime.types
43 URL: http://www.apache.org/
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 Provides: %{name}(EAPI) = %{version}
46 Obsoletes: apache-extra
50 %define _sysconfdir /etc/httpd
51 %define _includedir %{_prefix}/include/apache
52 %define _datadir /home/httpd
53 %define _libexecdir %{_prefix}/lib/apache
56 Apache is a powerful, full-featured, efficient and freely-available
57 Web server. Apache is also the most popular Web server on the
61 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
62 erhältlich und weit verbreitet ist.
65 Apache est un serveur Web puissant, efficace, gratuit et complet.
66 Apache est aussi le serveur Web le plus populaire sur Internet.
69 Apache jest serwerem WWW (World Wide Web). Instaluj±c ten pakiet
70 bêdziesz móg³ prezentowaæ w³asne strony WWW w sieci internet.
73 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web
77 Summary: Apache suexec wrapper
78 Summary(pl): Suexec wrapper do serwera www Apache
79 Group: Networking/Development
81 Group(pl): Sieciowe/Programowanie
82 Requires: %{name}(EAPI) = %{version}
85 The suEXEC feature provides Apache users the ability to run CGI and
86 SSI programs under user IDs different from the user ID of the calling
87 web-server. Normally, when a CGI or SSI program executes, it runs as
88 the same user who is running the web server.
90 %description -l pl suexec
91 SuEXEC umo¿liwia serwerowi Apache uruchamianie programów CGI i SSI z
92 innym UID ni¿ wywo³uj±cy je serwer. Normalnie programy CGI i SSI s±
93 wykonywane jako taki sam u¿ytkownik jak serwer WWW.
96 Summary: Module development tools for the Apache web server
97 Summary(fr): Les outils de developpement de modules pour le serveur web Apache
98 Summary(pl): Pliki nag³ówkowe do tworzenai modu³ów rozszerzeñ do serwera www Apache
99 Group: Networking/Utilities
100 Group(pl): Sieciowe/Narzêdzia
101 Requires: %{name}(EAPI) = %{version}
102 Provides: %{name}(EAPI)-devel
105 The apache-devel package contains the source code for the Apache Web
106 server and the APXS binary you'll need to build Dynamic Shared Objects
109 %description -l fr devel
110 Le package apache-devel contient le code source pour le serveur Web
111 Apache et le binaire APXS dont vous aurez besoin pour construire des
112 Objets Dynamiques Partages (DSOs) pour Apache.
114 %description -l pl devel
115 Pliki nag³ówkowe dla serwera WWW Apache.
118 Summary: Apache module for run CGI whenever a file of a certain type is requested
119 Summary(pl): Modu³ dla apache do uruchamiania skryptów cgi
120 Group: Networking/Daemons
121 Group(pl): Sieciowe/Serwery
122 Prereq: %{_sbindir}/apxs
123 Requires: %{name}(EAPI) = %{version}
125 %description mod_actions
126 This package contains mod_actions module. This module lets you run CGI
127 scripts whenever a file of a certain type is requested. This makes it
128 much easier to execute scripts that process files.
130 %description -l pl mod_actions
131 Ten modu³ pozwala na uruchamianie skryptów w momencie gdy nadchodzi
132 ¿±danie pobrania pliku okre¶lonego typu.
134 %package mod_auth_anon
135 Summary: Apache module with "anonymous" user access authentication
136 Summary(pl): Modu³ apache oferuj±cy anonimow± autoryzacjê u¿ytkownia
137 Group: Networking/Daemons
138 Group(pl): Sieciowe/Serwery
139 Prereq: %{_sbindir}/apxs
140 Requires: %{name}(EAPI) = %{version}
142 %description mod_auth_anon
143 This package contains mod_auth_anon module. It allows "anonymous" user
144 access to authenticated areas. It does access control in a manner
145 similar to anonymous-ftp sites; i.e. have a 'magic' user id
146 'anonymous' and the email address as a password. These email addresses
147 can be logged. Combined with other (database) access control methods,
148 this allows for effective user tracking and customization according to
149 a user profile while still keeping the site open for 'unregistered'
150 users. One advantage of using Auth-based user tracking is that, unlike
151 magic-cookies and funny URL pre/postfixes, it is completely browser
152 independent and it allows users to share URLs.
154 %description -l pl mod_auth_anon
155 Ten modu³ oferuje anonimow± autoryzacjê u¿ytkownia podobnie do
156 anonimowych serwerów ftp (u¿ytkownik ,,anonymous'' oraz has³o w
157 postaci adresu pocztowego u¿ytkownika).
160 Summary: Apache module - authentication variables for arbitrary directives
161 Summary(pl): Modu³ apache do definiowania zmiennych
162 Group: Networking/Daemons
163 Group(pl): Sieciowe/Serwery
164 Prereq: %{_sbindir}/apxs
165 Requires: %{name}(EAPI) = %{version}
167 %description mod_define
168 It provides the definition variables for arbitrary directives, i.e.
169 variables which can be expanded on any(!) directive line.
171 %description -l pl mod_define
172 Modu³ ten umo¿liwia definicjê zmiennych i dyrektyw.
175 Summary: Apache user authentication module using MD5 Digest Authentication
176 Summary(pl): Modu³ apache do autoryzacji MD5
177 Group: Networking/Daemons
178 Group(pl): Sieciowe/Serwery
179 Prereq: %{_sbindir}/apxs
180 Requires: %{name}(EAPI) = %{version}
182 %description mod_digest
183 This package contains mod_digest module. It provides user
184 authentication using MD5 Digest Authentication.
186 %description -l pl mod_digest
187 Modu³ ten dostarcza metodê autoryzacji bazuj±c± na MD5 Digest
191 Summary: Apache module for "trailing slash" redirects and serving directory index files
192 Summary(pl): Modu³ oferuj±cy przekierowania i serwowanie indeksu katalogu.
193 Group: Networking/Daemons
194 Group(pl): Sieciowe/Serwery
195 Prereq: %{_sbindir}/apxs
196 Requires: %{name}(EAPI) = %{version}
199 This package contains mod_dir which provides "trailing slash"
200 redirects and serving directory index files.
202 %description -l pl mod_dir
203 Modu³ oferuj±cy przekierowania i serwowanie indeksu katalogu.
206 Summary: Apache module allows for the customization of HTTP response headers
207 Summary(pl): Modu³ pozwalaj±cy na modyfikacjê nag³ówków HTTP
208 Group: Networking/Daemons
209 Group(pl): Sieciowe/Serwery
210 Prereq: %{_sbindir}/apxs
211 Requires: %{name}(EAPI) = %{version}
213 %description mod_headers
214 This package contains mod_headers module. The module allows for the
215 customization of HTTP response headers. Headers can be merged,
218 %description -l pl mod_headers
219 Modu³ pozwalaj±cy na ³±czenie, usuwania, zamianê nag³ówków HTTP
220 wysy³anych do przegl±darki.
222 %package mod_mmap_static
223 Summary: Apache module for mmap()ing statically configured list files
224 Summary(pl): Modu³ s³u¿±cy do mmap()owania plików.
225 Group: Networking/Daemons
226 Group(pl): Sieciowe/Serwery
227 Prereq: %{_sbindir}/apxs
228 Requires: %{name}(EAPI) = %{version}
230 %description mod_mmap_static
231 This package contains mod_mmap_static module. It provides mmap()ing of
232 a statically configured list of frequently requested but not changed
235 %description -l pl mod_mmap_static
236 Modu³ umo¿liwia mmap()owanie statycznie skonfigurowanych plików
237 (czêsto u¿ywanych ale nie ulegaj±cych zmianom).
240 Summary: Apache module with imap-file handler
241 Summary(pl): Modu³ z obs³ug± imap-file
242 Group: Networking/Daemons
243 Group(pl): Sieciowe/Serwery
244 Prereq: %{_sbindir}/apxs
245 Requires: %{name}(EAPI) = %{version}
247 %description mod_imap
248 This package contains mod_imap module. It provides for .map files,
249 replacing the functionality of the imagemap CGI program. Any directory
250 or document type configured to use the handler imap-file.
252 %description -l pl mod_imap
253 Modu³ umozliwiaj±cy obs³ugê plików .map (imap-file handler)
256 Summary: Apache module with comprehensive overview of the server configuration
257 Summary(pl): Modu³ dostarczaj±cy informacji na temat serwera.
258 Group: Networking/Daemons
259 Group(pl): Sieciowe/Serwery
260 Prereq: %{_sbindir}/apxs
261 Requires: %{name}(EAPI) = %{version}
263 %description mod_info
264 This package contains mod_info module. It provides a comprehensive
265 overview of the server configuration including all installed modules
266 and directives in the configuration files.
268 %description -l pl mod_info
269 Modu³ dostarczaj±cy informacji o konfiguracji serwera, zainstalowanych
273 Summary: Apache module with Web proxy
274 Summary(pl): Modu³ dodaj±cy obs³ugê serwera proxy
275 Group: Networking/Daemons
276 Group(pl): Sieciowe/Serwery
277 Prereq: %{_sbindir}/apxs
278 Requires: %{name}(EAPI) = %{version}
280 %description mod_proxy
281 This package contains module with implementation a proxy/cache for
282 Apache. It implements proxying capability for FTP, CONNECT (for SSL),
283 HTTP/0.9, and HTTP/1.0. The module can be configured to connect to
284 other proxy modules for these and other protocols.
286 %description -l pl mod_proxy
287 Modu³ zawiera implementacjê serwera proxy/cache dla Apache.
288 Iplementacja zawiera obs³ugê FTP, CONNECT (dla SSL), HTTP/0.9 i
292 Summary: Apache module with rule-based engine for rewrite requested URLs on the fly
293 Summary(pl): Modu³ do ,,przepisywania'' adresów URL w locie
294 Group: Networking/Daemons
295 Group(pl): Sieciowe/Serwery
296 Prereq: %{_sbindir}/apxs
297 Requires: %{name}(EAPI) = %{version}
299 %description mod_rewrite
300 This package contains It provides a rule-based rewriting engine to
301 rewrite requested URLs on the fly.
303 %description -l pl mod_rewrite
304 Modu³ oferuj±cy mo¿liwo¶æ ,,przepisywania'' adresów URL w locie.
307 Summary: Server status report module for apache
308 Summary(pl): Modu³ dostarczaj±cy informacje statystyczne o serwerze.
309 Group: Networking/Daemons
310 Group(pl): Sieciowe/Serwery
311 Prereq: %{_sbindir}/apxs
312 Requires: %{name}(EAPI) = %{version}
314 %description mod_status
315 The Status module allows a server administrator to find out how well
316 their server is performing. A HTML page is presented that gives the
317 current server statistics in an easily readable form. If required this
318 page can be made to automatically refresh (given a compatible
321 %description -l pl mod_status
322 Modu³ pozwala administratorowi na przegl±danie statystyk dotycz±cych
323 pracy serwera apache (w postaci strony HTML).
325 %package mod_usertrack
326 Summary: Apache module for user tracking using cookies
327 Summary(pl): Modu³ s³u¿±cy do ¶ledzenia ,,ciasteczek''.
328 Group: Networking/Daemons
329 Group(pl): Sieciowe/Serwery
330 Prereq: %{_sbindir}/apxs
331 Requires: %{name}(EAPI) = %{version}
333 %description mod_usertrack
334 This package contains the user tracking module which did its own
335 logging using CookieLog directory. This module allow multiple log
338 %description -l pl mod_usertrack
339 Modu³ pozwalaj±cy na ¶ledzenie ,,ciasteczek''.
341 %package mod_vhost_alias
342 Summary: Apache module for dynamically configured mass virtual hosting
343 Summary(pl): Modu³ dodaj±cy obs³ugê hostów wirtualnych.
344 Group: Networking/Daemons
345 Group(pl): Sieciowe/Serwery
346 Prereq: %{_sbindir}/apxs
347 Requires: %{name}(EAPI) = %{version}
349 %description mod_vhost_alias
350 This package contains the mod_vhost_alias. It provides support for
351 dynamically configured mass virtual hosting.
353 %description -l pl mod_vhost_alias
354 Modu³ umo¿liwia na dynamiczne konfigurowanie masowej ilo¶ci serwerów
357 %package mod_unique_id
358 Summary: Apache module which provides a magic token for each request
359 Group: Networking/Daemons
360 Group(pl): Sieciowe/Serwery
361 Prereq: %{_sbindir}/apxs
362 Requires: %{name}(EAPI) = %{version}
364 %description mod_unique_id
365 This package contains the mod_unique_id. This module provides a magic
366 token for each request which is guaranteed to be unique across "all"
367 requests under very specific conditions. The unique identifier is even
368 unique across multiple machines in a properly configured cluster of
369 machines. The environment variable UNIQUE_ID is set to the identifier
370 for each request. Unique identifiers are useful for various reasons
371 which are beyond the scope of this document.
374 Summary: Apache module which provides ....
375 Group: Networking/Daemons
376 Group(pl): Sieciowe/Serwery
377 Prereq: %{_sbindir}/apxs
378 Requires: %{name}(EAPI) = %{version}
380 %description mod_expires
383 %setup -q -n apache_%{version} -a3
396 CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
397 LDFLAGS="-s"; export LDFLAGS CFLAGS
398 OPTIM="$RPM_OPT_FLAGS" \
400 --prefix=%{_prefix} \
401 --sysconfdir=%{_sysconfdir} \
402 --includedir=%{_includedir} \
403 --sbindir=%{_sbindir} \
404 --libexecdir=%{_libexecdir} \
405 --datadir=%{_datadir} \
406 --localstatedir=/var \
407 --runtimedir=/var/run \
408 --logfiledir=/var/log/httpd \
410 --without-confadjust \
411 --enable-module=all \
412 --enable-shared=max \
413 --proxycachedir=/var/cache/apache \
414 --with-perl=%{_bindir}/perl \
416 --suexec-caller=http \
417 --suexec-uidmin=500 \
418 --suexec-gidmin=500 \
419 --suexec-docroot=%{_datadir} \
420 --disable-rule=WANTHSREGEX \
426 rm -rf $RPM_BUILD_ROOT
427 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
428 $RPM_BUILD_ROOT%{_datadir}/errordocs \
429 $RPM_BUILD_ROOT/var/{log/{httpd,archiv/httpd},lib/apache/mm}
431 %{__make} install-quiet root="$RPM_BUILD_ROOT"
433 mv -f $RPM_BUILD_ROOT%{_datadir}/html/manual $RPM_BUILD_ROOT%{_datadir}
435 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
436 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
437 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/apache
439 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer}_log
441 install errordocs/* $RPM_BUILD_ROOT%{_datadir}/errordocs
443 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
445 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/mod_vhost_alias.conf
446 install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/mod_status.conf
447 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/mod_proxy.conf
449 ln -sf index.html.en $RPM_BUILD_ROOT%{_datadir}/html/index.html
451 strip --strip-unneeded $RPM_BUILD_ROOT%{_libexecdir}/*.so
453 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
454 ABOUT_APACHE src/CHANGES KEYS README
457 if [ -n "`getgid http`" ]; then
458 if [ "`getgid http`" != "51" ]; then
459 echo "Warning: group http haven't gid=51. Corect this before install apache" 1>&2
463 /usr/sbin/groupadd -g 51 -r -f http
464 if [ -f /var/db/group.db ]; then
465 /usr/bin/update-db 1>&2
468 if [ -n "`id -u http 2>/dev/null`" ]; then
469 if [ "`id -u http`" != "51" ]; then
470 echo "Warning:user http haven't uid=51. Corect this before install apache" 1>&2
474 /usr/sbin/useradd -u 51 -r -d /home/httpd -s /bin/false -c "HTTP User" -g http http 1>&2
475 if [ -f /var/db/passwd.db ]; then
476 /usr/bin/update-db 1>&2
481 /sbin/chkconfig --add httpd
482 %{_sbindir}/apxs -e -a -n access %{_libexecdir}/mod_access.so 1>&2
483 %{_sbindir}/apxs -e -a -n alias %{_libexecdir}/mod_alias.so 1>&2
484 %{_sbindir}/apxs -e -a -n asis %{_libexecdir}/mod_asis.so 1>&2
485 %{_sbindir}/apxs -e -a -n auth %{_libexecdir}/mod_auth.so 1>&2
486 %{_sbindir}/apxs -e -a -n auth_db %{_libexecdir}/mod_auth_db.so 1>&2
487 %{_sbindir}/apxs -e -a -n auth_dbm %{_libexecdir}/mod_auth_dbm.so 1>&2
488 %{_sbindir}/apxs -e -a -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
489 %{_sbindir}/apxs -e -a -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
490 %{_sbindir}/apxs -e -a -n cgi %{_libexecdir}/mod_cgi.so 1>&2
491 %{_sbindir}/apxs -e -a -n env %{_libexecdir}/mod_env.so 1>&2
492 %{_sbindir}/apxs -e -a -n include %{_libexecdir}/mod_include.so 1>&2
493 %{_sbindir}/apxs -e -a -n log_agent %{_libexecdir}/mod_log_agent.so 1>&2
494 %{_sbindir}/apxs -e -a -n log_config %{_libexecdir}/mod_log_config.so 1>&2
495 %{_sbindir}/apxs -e -a -n log_referer %{_libexecdir}/mod_log_referer.so 1>&2
496 %{_sbindir}/apxs -e -a -n mime_magic %{_libexecdir}/mod_mime_magic.so 1>&2
497 %{_sbindir}/apxs -e -a -n mime %{_libexecdir}/mod_mime.so 1>&2
498 %{_sbindir}/apxs -e -a -n negotiation %{_libexecdir}/mod_negotiation.so 1>&2
499 %{_sbindir}/apxs -e -a -n setenvif %{_libexecdir}/mod_setenvif.so 1>&2
500 %{_sbindir}/apxs -e -a -n speling %{_libexecdir}/mod_speling.so 1>&2
501 %{_sbindir}/apxs -e -a -n userdir %{_libexecdir}/mod_userdir.so 1>&2
503 touch /var/log/httpd/{access,error,agent,referer}_log
504 if [ -f /var/lock/subsys/httpd ]; then
505 /etc/rc.d/init.d/httpd restart 1>&2
507 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
511 if [ "$1" = "0" ]; then
512 %{_sbindir}/apxs -e -A -n access %{_libexecdir}/mod_access.so 1>&2
513 %{_sbindir}/apxs -e -A -n alias %{_libexecdir}/mod_alias.so 1>&2
514 %{_sbindir}/apxs -e -A -n asis %{_libexecdir}/mod_asis.so 1>&2
515 %{_sbindir}/apxs -e -A -n auth %{_libexecdir}/mod_auth.so 1>&2
516 %{_sbindir}/apxs -e -A -n auth_db %{_libexecdir}/mod_auth_db.so 1>&2
517 %{_sbindir}/apxs -e -A -n auth_dbm %{_libexecdir}/mod_auth_dbm.so 1>&2
518 %{_sbindir}/apxs -e -A -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
519 %{_sbindir}/apxs -e -A -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
520 %{_sbindir}/apxs -e -A -n cgi %{_libexecdir}/mod_cgi.so 1>&2
521 %{_sbindir}/apxs -e -A -n env %{_libexecdir}/mod_env.so 1>&2
522 %{_sbindir}/apxs -e -A -n include %{_libexecdir}/mod_include.so 1>&2
523 %{_sbindir}/apxs -e -A -n log_agent %{_libexecdir}/mod_log_agent.so 1>&2
524 %{_sbindir}/apxs -e -A -n log_config %{_libexecdir}/mod_log_config.so 1>&2
525 %{_sbindir}/apxs -e -A -n log_referer %{_libexecdir}/mod_log_referer.so 1>&2
526 %{_sbindir}/apxs -e -A -n mime %{_libexecdir}/mod_mime.so 1>&2
527 %{_sbindir}/apxs -e -A -n mime_magic %{_libexecdir}/mod_mime_magic.so 1>&2
528 %{_sbindir}/apxs -e -A -n negotiation %{_libexecdir}/mod_negotiation.so 1>&2
529 %{_sbindir}/apxs -e -A -n setenvif %{_libexecdir}/mod_setenvif.so 1>&2
530 %{_sbindir}/apxs -e -A -n speling %{_libexecdir}/mod_speling.so 1>&2
531 %{_sbindir}/apxs -e -A -n userdir %{_libexecdir}/mod_userdir.so 1>&2
532 if [ -f /var/lock/subsys/httpd ]; then
533 /etc/rc.d/init.d/httpd stop 1>&2
535 /sbin/chkconfig --del httpd
539 if [ "$1" = "0" ]; then
540 /usr/sbin/userdel http
541 if [ -f /var/db/passwd.db ]; then
544 /usr/sbin/groupdel http
545 if [ -f /var/db/group.db ]; then
551 %{_sbindir}/apxs -e -a -n actions %{_libexecdir}/mod_actions.so 1>&2
552 if [ -f /var/lock/subsys/httpd ]; then
553 /etc/rc.d/init.d/httpd restart 1>&2
555 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
559 if [ "$1" = "0" ]; then
560 %{_sbindir}/apxs -e -A -n actions %{_libexecdir}/mod_actions.so 1>&2
561 if [ -f /var/lock/subsys/httpd ]; then
562 /etc/rc.d/init.d/httpd restart 1>&2
567 %{_sbindir}/apxs -e -a -n auth_anon %{_libexecdir}/mod_auth_anon.so 1>&2
568 if [ -f /var/lock/subsys/httpd ]; then
569 /etc/rc.d/init.d/httpd restart 1>&2
571 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
575 if [ "$1" = "0" ]; then
576 %{_sbindir}/apxs -e -A -n auth_anon %{_libexecdir}/mod_auth_anon.so 1>&2
577 if [ -f /var/lock/subsys/httpd ]; then
578 /etc/rc.d/init.d/httpd restart 1>&2
583 %{_sbindir}/apxs -e -a -n define %{_libexecdir}/mod_define.so 1>&2
584 if [ -f /var/lock/subsys/httpd ]; then
585 /etc/rc.d/init.d/httpd restart 1>&2
587 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
591 if [ "$1" = "0" ]; then
592 %{_sbindir}/apxs -e -A -n define %{_libexecdir}/mod_define.so 1>&2
593 if [ -f /var/lock/subsys/httpd ]; then
594 /etc/rc.d/init.d/httpd restart 1>&2
599 %{_sbindir}/apxs -e -a -n digest %{_libexecdir}/mod_digest.so 1>&2
600 if [ -f /var/lock/subsys/httpd ]; then
601 /etc/rc.d/init.d/httpd restart 1>&2
603 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
607 if [ "$1" = "0" ]; then
608 %{_sbindir}/apxs -e -A -n digest %{_libexecdir}/mod_digest.so 1>&2
609 if [ -f /var/lock/subsys/httpd ]; then
610 /etc/rc.d/init.d/httpd restart 1>&2
615 %{_sbindir}/apxs -e -a -n dir %{_libexecdir}/mod_dir.so 1>&2
616 if [ -f /var/lock/subsys/httpd ]; then
617 /etc/rc.d/init.d/httpd restart 1>&2
619 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
623 if [ "$1" = "0" ]; then
624 %{_sbindir}/apxs -e -A -n dir %{_libexecdir}/mod_dir.so 1>&2
625 if [ -f /var/lock/subsys/httpd ]; then
626 /etc/rc.d/init.d/httpd restart 1>&2
631 %{_sbindir}/apxs -e -a -n expires %{_libexecdir}/mod_expires.so 1>&2
632 if [ -f /var/lock/subsys/httpd ]; then
633 /etc/rc.d/init.d/httpd restart 1>&2
635 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
639 if [ "$1" = "0" ]; then
640 %{_sbindir}/apxs -e -A -n expires %{_libexecdir}/mod_expires.so 1>&2
641 if [ -f /var/lock/subsys/httpd ]; then
642 /etc/rc.d/init.d/httpd restart 1>&2
647 %{_sbindir}/apxs -e -a -n headers %{_libexecdir}/mod_headers.so 1>&2
648 if [ -f /var/lock/subsys/httpd ]; then
649 /etc/rc.d/init.d/httpd restart 1>&2
651 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
655 if [ "$1" = "0" ]; then
656 %{_sbindir}/apxs -e -A -n headers %{_libexecdir}/mod_headers.so 1>&2
657 if [ -f /var/lock/subsys/httpd ]; then
658 /etc/rc.d/init.d/httpd restart 1>&2
662 %post mod_mmap_static
663 %{_sbindir}/apxs -e -a -n mmap_static %{_libexecdir}/mod_mmap_static.so 1>&2
664 if [ -f /var/lock/subsys/httpd ]; then
665 /etc/rc.d/init.d/httpd restart 1>&2
667 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
670 %preun mod_mmap_static
671 if [ "$1" = "0" ]; then
672 %{_sbindir}/apxs -e -A -n mmap_static %{_libexecdir}/mod_mmap_static.so 1>&2
673 if [ -f /var/lock/subsys/httpd ]; then
674 /etc/rc.d/init.d/httpd restart 1>&2
679 %{_sbindir}/apxs -e -a -n imap %{_libexecdir}/mod_imap.so 1>&2
680 if [ -f /var/lock/subsys/httpd ]; then
681 /etc/rc.d/init.d/httpd restart 1>&2
683 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
687 if [ "$1" = "0" ]; then
688 %{_sbindir}/apxs -e -A -n imap %{_libexecdir}/mod_imap.so 1>&2
689 if [ -f /var/lock/subsys/httpd ]; then
690 /etc/rc.d/init.d/httpd restart 1>&2
695 %{_sbindir}/apxs -e -a -n info %{_libexecdir}/mod_info.so 1>&2
696 if [ -f /var/lock/subsys/httpd ]; then
697 /etc/rc.d/init.d/httpd restart 1>&2
699 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
703 if [ "$1" = "0" ]; then
704 %{_sbindir}/apxs -e -A -n info %{_libexecdir}/mod_info.so 1>&2
705 if [ -f /var/lock/subsys/httpd ]; then
706 /etc/rc.d/init.d/httpd restart 1>&2
711 %{_sbindir}/apxs -e -a -n proxy %{_libexecdir}/libproxy.so 1>&2
712 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_proxy.conf" /etc/httpd/httpd.conf; then
713 echo "Include /etc/httpd/mod_proxy.conf" >> /etc/httpd/httpd.conf
715 if [ -f /var/lock/subsys/httpd ]; then
716 /etc/rc.d/init.d/httpd restart 1>&2
718 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
722 if [ "$1" = "0" ]; then
723 %{_sbindir}/apxs -e -A -n proxy %{_libexecdir}/libproxy.so 1>&2
724 grep -v -q "^Include.*mod_proxy.conf" /etc/httpd/httpd.conf > \
725 /etc/httpd/httpd.conf.tmp
726 mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
727 if [ -f /var/lock/subsys/httpd ]; then
728 /etc/rc.d/init.d/httpd restart 1>&2
733 %{_sbindir}/apxs -e -a -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
734 if [ -f /var/lock/subsys/httpd ]; then
735 /etc/rc.d/init.d/httpd restart 1>&2
737 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
741 if [ "$1" = "0" ]; then
742 %{_sbindir}/apxs -e -A -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
743 if [ -f /var/lock/subsys/httpd ]; then
744 /etc/rc.d/init.d/httpd restart 1>&2
749 %{_sbindir}/apxs -e -a -n status %{_libexecdir}/mod_status.so 1>&2
750 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_status.conf" /etc/httpd/httpd.conf; then
751 echo "Include /etc/httpd/mod_status.conf" >> /etc/httpd/httpd.conf
753 if [ -f /var/lock/subsys/httpd ]; then
754 /etc/rc.d/init.d/httpd restart 1>&2
756 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
760 if [ "$1" = "0" ]; then
761 %{_sbindir}/apxs -e -A -n status %{_libexecdir}/mod_status.so 1>&2
762 grep -v -q "^Include.*mod_status.conf" /etc/httpd/httpd.conf > \
763 /etc/httpd/httpd.conf.tmp
764 mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
765 if [ -f /var/lock/subsys/httpd ]; then
766 /etc/rc.d/init.d/httpd restart 1>&2
771 %{_sbindir}/apxs -e -a -n usertrack %{_libexecdir}/mod_usertrack.so 1>&2
772 if [ -f /var/lock/subsys/httpd ]; then
773 /etc/rc.d/init.d/httpd restart 1>&2
775 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
779 if [ "$1" = "0" ]; then
780 %{_sbindir}/apxs -e -A -n usertrack %{_libexecdir}/mod_usertrack.so 1>&2
781 if [ -f /var/lock/subsys/httpd ]; then
782 /etc/rc.d/init.d/httpd restart 1>&2
787 %{_sbindir}/apxs -e -a -n unique_id %{_libexecdir}/mod_unique_id.so 1>&2
788 if [ -f /var/lock/subsys/httpd ]; then
789 /etc/rc.d/init.d/httpd restart 1>&2
791 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
795 if [ "$1" = "0" ]; then
796 %{_sbindir}/apxs -e -A -n unique_id %{_libexecdir}/mod_unique_id.so 1>&2
797 if [ -f /var/lock/subsys/httpd ]; then
798 /etc/rc.d/init.d/httpd restart 1>&2
802 %post mod_vhost_alias
803 %{_sbindir}/apxs -e -a -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
804 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_vhost_alias.conf" /etc/httpd/httpd.conf; then
805 echo "Include /etc/httpd/mod_vhost_alias.conf" >> /etc/httpd/httpd.conf
807 if [ -f /var/lock/subsys/httpd ]; then
808 /etc/rc.d/init.d/httpd restart 1>&2
810 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
813 %preun mod_vhost_alias
814 if [ "$1" = "0" ]; then
815 %{_sbindir}/apxs -e -A -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
816 grep -v -q "^Include.*mod_vhost_alias.conf" /etc/httpd/httpd.conf > \
817 /etc/httpd/httpd.conf.tmp
818 mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
819 if [ -f /var/lock/subsys/httpd ]; then
820 /etc/rc.d/init.d/httpd restart 1>&2
825 rm -rf $RPM_BUILD_ROOT
828 %defattr(644,root,root,755)
829 %doc ABOUT_APACHE.gz src/CHANGES.gz KEYS.gz README.gz
832 %dir %{_datadir}/manual
833 %dir %{_datadir}/manual/images/
834 %{_datadir}/manual/images/sub.gif
835 %{_datadir}/manual/images/index.gif
836 %{_datadir}/manual/images/home.gif
837 %{_datadir}/manual/misc
838 %dir %{_datadir}/manual/search
839 %attr(755,root,root) %{_datadir}/manual/search/manual-index.cgi
840 %{_datadir}/manual/vhosts
841 %{_datadir}/manual/LICENSE
842 %{_datadir}/manual/bind.html
843 %{_datadir}/manual/cgi_path.html
844 %{_datadir}/manual/content-negotiation.html
845 %{_datadir}/manual/custom-error.html
846 %{_datadir}/manual/dns-caveats.html
847 %{_datadir}/manual/dso.html
848 %{_datadir}/manual/env.html
849 %{_datadir}/manual/footer.html
850 %{_datadir}/manual/handler.html
851 %{_datadir}/manual/header.html
852 %{_datadir}/manual/index.html
853 %{_datadir}/manual/install.html
854 %{_datadir}/manual/invoking.html
855 %{_datadir}/manual/keepalive.html
856 %{_datadir}/manual/location.html
857 %{_datadir}/manual/multilogs.html
858 %{_datadir}/manual/new_features_1_3.html
859 %{_datadir}/manual/process-model.html
860 %{_datadir}/manual/sections.html
861 %{_datadir}/manual/sourcereorg.html
862 %{_datadir}/manual/suexec.html
863 %{_datadir}/manual/upgrading_to_1_3.html
864 %dir %{_datadir}/manual/mod
865 %{_datadir}/manual/mod/core.html
866 %{_datadir}/manual/mod/directive-dict.html
867 %{_datadir}/manual/mod/directives.html
868 %{_datadir}/manual/mod/footer.html
869 %{_datadir}/manual/mod/header.html
870 %{_datadir}/manual/mod/index.html
871 %{_datadir}/manual/mod/mod_access.html
872 %{_datadir}/manual/mod/mod_alias.html
873 %{_datadir}/manual/mod/mod_asis.html
874 %{_datadir}/manual/mod/mod_auth.html
875 %{_datadir}/manual/mod/mod_auth_db.html
876 %{_datadir}/manual/mod/mod_auth_dbm.html
877 %{_datadir}/manual/mod/mod_autoindex.html
878 %{_datadir}/manual/mod/mod_cgi.html
879 %{_datadir}/manual/mod/mod_cookies.html
880 %{_datadir}/manual/mod/mod_env.html
881 %{_datadir}/manual/mod/mod_include.html
882 %{_datadir}/manual/mod/mod_log_agent.html
883 %{_datadir}/manual/mod/mod_log_config.html
884 %{_datadir}/manual/mod/mod_log_referer.html
885 %{_datadir}/manual/mod/mod_mime.html
886 %{_datadir}/manual/mod/mod_mime_magic.html
887 %{_datadir}/manual/mod/mod_negotiation.html
888 %{_datadir}/manual/mod/mod_setenvif.html
889 %{_datadir}/manual/mod/mod_speling.html
890 %{_datadir}/manual/mod/mod_userdir.html
892 %attr(754,root,root) /etc/rc.d/init.d/httpd
894 %attr(750,root,root) %dir %{_sysconfdir}
895 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf
896 %attr(640,root,root) %{_sysconfdir}/magic
898 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/*
899 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/*
901 %attr(755,root,root) %dir %{_datadir}/html
902 %config(noreplace) %{_datadir}/html/index.html
903 %lang(ca) %{_datadir}/html/index.html.ca
904 %lang(cz) %{_datadir}/html/index.html.cz
905 %lang(de) %{_datadir}/html/index.html.de
906 %lang(dk) %{_datadir}/html/index.html.dk
907 %lang(ee) %{_datadir}/html/index.html.ee
908 %lang(en) %{_datadir}/html/index.html.en
909 %lang(es) %{_datadir}/html/index.html.es
910 %lang(fr) %{_datadir}/html/index.html.fr
911 %lang(it) %{_datadir}/html/index.html.it
912 %lang(lu) %{_datadir}/html/index.html.lu
913 %lang(nl) %{_datadir}/html/index.html.nl
914 %lang(pt) %{_datadir}/html/index.html.pt
915 %lang(se) %{_datadir}/html/index.html.se
917 %{_datadir}/html/*.gif
918 %{_datadir}/errordocs
919 %dir %{_datadir}/icons
920 %{_datadir}/icons/*.gif
921 %dir %{_datadir}/icons/small
922 %{_datadir}/icons/small/*.gif
923 %attr(755,root,root) %{_datadir}/cgi-bin
926 %attr(755,root,root) %{_libexecdir}/mod_access.so
927 %attr(755,root,root) %{_libexecdir}/mod_alias.so
928 %attr(755,root,root) %{_libexecdir}/mod_asis.so
929 %attr(755,root,root) %{_libexecdir}/mod_auth.so
930 %attr(755,root,root) %{_libexecdir}/mod_auth_db.so
931 %attr(755,root,root) %{_libexecdir}/mod_auth_dbm.so
932 %attr(755,root,root) %{_libexecdir}/mod_autoindex.so
933 %attr(755,root,root) %{_libexecdir}/mod_cern_meta.so
934 %attr(755,root,root) %{_libexecdir}/mod_cgi.so
935 %attr(755,root,root) %{_libexecdir}/mod_env.so
936 %attr(755,root,root) %{_libexecdir}/mod_include.so
937 %attr(755,root,root) %{_libexecdir}/mod_log_agent.so
938 %attr(755,root,root) %{_libexecdir}/mod_log_config.so
939 %attr(755,root,root) %{_libexecdir}/mod_log_referer.so
940 %attr(755,root,root) %{_libexecdir}/mod_mime.so
941 %attr(755,root,root) %{_libexecdir}/mod_mime_magic.so
942 %attr(755,root,root) %{_libexecdir}/mod_negotiation.so
943 %attr(755,root,root) %{_libexecdir}/mod_setenvif.so
944 %attr(755,root,root) %{_libexecdir}/mod_speling.so
945 %attr(755,root,root) %{_libexecdir}/mod_userdir.so
947 %attr(755,root,root) %{_bindir}/dbmmanage
948 %attr(755,root,root) %{_bindir}/htdigest
949 %attr(755,root,root) %{_bindir}/htpasswd
951 %attr(755,root,root) %{_sbindir}/ab
952 %attr(755,root,root) %{_sbindir}/apachectl
953 %attr(755,root,root) %{_sbindir}/apxs
954 %attr(755,root,root) %{_sbindir}/httpd
955 %attr(755,root,root) %{_sbindir}/logresolve
956 %attr(755,root,root) %{_sbindir}/rotatelogs
958 %dir %attr(750,http,http) /var/lib/apache
962 %attr(750,root,root) %dir /var/log/httpd
963 %attr(750,root,root) %dir /var/log/archiv/httpd
964 %attr(640,root,root) %ghost /var/log/httpd/*
967 %defattr(644,root,root,755)
968 %attr(4755,root,root) %{_sbindir}/suexec
971 %defattr(644,root,root,755)
975 %defattr(644,root,root,755)
976 %attr(755,root,root) %{_libexecdir}/mod_actions.so
977 %{_datadir}/manual/mod/mod_actions.html
980 %defattr(644,root,root,755)
981 %attr(755,root,root) %{_libexecdir}/mod_auth_anon.so
982 %{_datadir}/manual/mod/mod_auth_anon.html
985 %defattr(644,root,root,755)
986 %attr(755,root,root) %{_libexecdir}/mod_define.so
987 %{_datadir}/manual/mod/mod_define.html
990 %defattr(644,root,root,755)
991 %attr(755,root,root) %{_libexecdir}/mod_digest.so
992 %{_datadir}/manual/mod/mod_digest.html
995 %defattr(644,root,root,755)
996 %attr(755,root,root) %{_libexecdir}/mod_dir.so
997 %{_datadir}/manual/mod/mod_dir.html
1000 %defattr(644,root,root,755)
1001 %attr(755,root,root) %{_libexecdir}/mod_expires.so
1002 %{_datadir}/manual/mod/mod_expires.html
1005 %defattr(644,root,root,755)
1006 %attr(755,root,root) %{_libexecdir}/mod_headers.so
1007 %{_datadir}/manual/mod/mod_headers.html
1009 %files mod_mmap_static
1010 %defattr(644,root,root,755)
1011 %attr(755,root,root) %{_libexecdir}/mod_mmap_static.so
1012 %{_datadir}/manual/mod/mod_mmap_static.html
1015 %defattr(644,root,root,755)
1016 %attr(755,root,root) %{_libexecdir}/mod_imap.so
1017 %{_datadir}/manual/mod/mod_imap.html
1020 %defattr(644,root,root,755)
1021 %attr(755,root,root) %{_libexecdir}/mod_info.so
1022 %{_datadir}/manual/mod/mod_info.html
1025 %defattr(644,root,root,755)
1026 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_proxy.conf
1027 %attr(755,root,root) %{_libexecdir}/libproxy.so
1028 %{_datadir}/manual/mod/mod_proxy.html
1029 %dir %attr(750,http,http) /var/cache/apache
1032 %defattr(644,root,root,755)
1033 %attr(755,root,root) %{_libexecdir}/mod_rewrite.so
1034 %{_datadir}/manual/mod/mod_rewrite.html
1037 %defattr(644,root,root,755)
1038 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_status.conf
1039 %attr(755,root,root) %{_libexecdir}/mod_status.so
1040 %{_datadir}/manual/mod/mod_status.html
1042 %files mod_usertrack
1043 %defattr(644,root,root,755)
1044 %attr(755,root,root) %{_libexecdir}/mod_usertrack.so
1045 %{_datadir}/manual/mod/mod_usertrack.html
1047 %files mod_unique_id
1048 %defattr(644,root,root,755)
1049 %attr(755,root,root) %{_libexecdir}/mod_unique_id.so
1050 %{_datadir}/manual/mod/mod_unique_id.html
1052 %files mod_vhost_alias
1053 %defattr(644,root,root,755)
1054 %attr(755,root,root) %{_libexecdir}/mod_vhost_alias.so
1055 %{_datadir}/manual/mod/mod_vhost_alias.html
1056 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_vhost_alias.conf