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: apache.logrotate
16 Source3: apache-icons.tar.gz
17 Source4: apache.sysconfig
18 Source5: apache-access.conf
19 Source6: apache-httpd.conf
20 Source7: apache-srm.conf
21 Source8: apache-mod_vhost_alias.conf
22 Source9: apache-mod_status.conf
23 Source10: apache-mod_proxy.conf
24 Patch0: apache-PLD.patch
25 Patch1: apache-suexec.patch
26 Patch2: apache-htdocs.patch
27 Patch3: apache-errordocs.patch
28 Patch4: apache-apxs.patch
29 Patch5: apache-EAPI.patch
30 Patch6: apache-v6-PLD-1.patch.gz
31 Patch7: apache-mm_conf.patch
32 Patch8: apache-modules_symbols.patch
35 Prereq: /sbin/chkconfig
36 Prereq: /usr/sbin/useradd
37 Prereq: /usr/bin/getgid
40 BuildRequires: mm-devel
43 Requires: /etc/mime.types
44 URL: http://www.apache.org/
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 Provides: apache(EAPI)
47 Obsoletes: apache-extra
51 %define _sysconfdir /etc/httpd
52 %define _includedir %{_prefix}/include/apache
53 %define _datadir /home/httpd
54 %define _libexecdir %{_prefix}/lib/apache
57 Apache is a powerful, full-featured, efficient and freely-available Web
58 server. Apache is also the most popular Web server on the Internet.
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. Apache est
66 aussi le serveur Web le plus populaire sur Internet.
69 Apache jest serwerem WWW (World Wide Web). Instaluj±c ten pakiet bêdziesz
70 móg³ prezentowaæ w³asne strony WWW w sieci internet.
73 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web sunucusudur.
76 Summary: Apache suexec wrapper
77 Summary(pl): Suexec wrapper do serwera www Apache
78 Group: Networking/Development
79 Group(pl): Sieciowe/Programowanie
80 Requires: %{name}(EAPI) = %{version}
83 The suEXEC feature provides Apache users the ability to run CGI and SSI
84 programs under user IDs different from the user ID of the calling web-server.
85 Normally, when a CGI or SSI program executes, it runs as the same user
86 who is running the web server.
88 %description -l pl suexec
89 SuEXEC umo¿liwia serwerowi Apache uruchamianie programów CGI i SSI z innym
90 UID ni¿ wywo³uj±cy je serwer. Normalnie programy CGI i SSI s± wykonywane
91 jako taki sam u¿ytkownik jak serwer WWW.
94 Summary: Module development tools for the Apache web server
95 Summary(fr): Les outils de developpement de modules pour le serveur web Apache
96 Summary(pl): Pliki nag³ówkowe do tworzenai modu³ów rozszerzeñ do serwera www Apache
97 Group: Networking/Development
98 Group(pl): Sieciowe/Programowanie
99 Requires: %{name}(EAPI) = %{version}
100 Provides: %{name}(EAPI)-devel
103 The apache-devel package contains the source code for the Apache Web server
104 and the APXS binary you'll need to build Dynamic Shared Objects (DSOs) for
107 %description -l fr devel
108 Le package apache-devel contient le code source pour le serveur Web Apache
109 et le binaire APXS dont vous aurez besoin pour construire des Objets
110 Dynamiques Partages (DSOs) pour Apache.
112 %description -l pl devel
113 Pliki nag³ówkowe dla serwera WWW Apache.
116 Summary: Apache module for run CGI whenever a file of a certain type is requested
117 Group: Networking/Daemons
118 Group(pl): Sieciowe/Serwery
119 Prereq: %{_sbindir}/apxs
120 Requires: %{name}(EAPI) = %{version}
122 %description mod_actions
123 This package contains mod_actions module. This module lets you run CGI
124 scripts whenever a file of a certain type is requested. This makes it much
125 easier to execute scripts that process files.
127 %package mod_auth_anon
128 Summary: Apache module with "anonymous" user access authentication
129 Group: Networking/Daemons
130 Group(pl): Sieciowe/Serwery
131 Prereq: %{_sbindir}/apxs
132 Requires: %{name}(EAPI) = %{version}
134 %description mod_auth_anon
135 This package contains mod_auth_anon module. It allows "anonymous" user
136 access to authenticated areas. It does access control in a manner similar to
137 anonymous-ftp sites; i.e. have a 'magic' user id 'anonymous' and the email
138 address as a password. These email addresses can be logged. Combined with
139 other (database) access control methods, this allows for effective user
140 tracking and customization according to a user profile while still keeping
141 the site open for 'unregistered' users. One advantage of using Auth-based
142 user tracking is that, unlike magic-cookies and funny URL pre/postfixes, it
143 is completely browser independent and it allows users to share URLs.
146 Summary: Apache module - authentication variables for arbitrary directives
147 Group: Networking/Daemons
148 Group(pl): Sieciowe/Serwery
149 Prereq: %{_sbindir}/apxs
150 Requires: %{name}(EAPI) = %{version}
152 %description mod_define
153 It provides the definition variables for arbitrary directives, i.e.
154 variables which can be expanded on any(!) directive line.
157 Summary: Apache user authentication module using MD5 Digest Authentication
158 Group: Networking/Daemons
159 Group(pl): Sieciowe/Serwery
160 Prereq: %{_sbindir}/apxs
161 Requires: %{name}(EAPI) = %{version}
163 %description mod_digest
164 This package contains mod_dir module. It provides user authentication using
165 MD5 Digest Authentication.
168 Summary: Apache module for trailing slash" redirects and serving directory index files
169 Group: Networking/Daemons
170 Group(pl): Sieciowe/Serwery
171 Prereq: %{_sbindir}/apxs
172 Requires: %{name}(EAPI) = %{version}
175 This package contains mod_dir which provides "trailing slash" redirects and
176 serving directory index files.
179 Summary: Apache module allows for the customization of HTTP response headers
180 Group: Networking/Daemons
181 Group(pl): Sieciowe/Serwery
182 Prereq: %{_sbindir}/apxs
183 Requires: %{name}(EAPI) = %{version}
185 %description mod_headers
186 This package contains mod_headers module. The module allows for the
187 customization of HTTP response headers. Headers can be merged, replaced or
190 %package mod_mmap_static
191 Summary: Apache module for mmap()ing statically configured list files
192 Group: Networking/Daemons
193 Group(pl): Sieciowe/Serwery
194 Prereq: %{_sbindir}/apxs
195 Requires: %{name}(EAPI) = %{version}
197 %description mod_mmap_static
198 This package contains mod_mmap_static module. It provides mmap()ing of a
199 statically configured list of frequently requested but not changed files.
202 Summary: Apache module with imap-file handler
203 Group: Networking/Daemons
204 Group(pl): Sieciowe/Serwery
205 Prereq: %{_sbindir}/apxs
206 Requires: %{name}(EAPI) = %{version}
208 %description mod_imap
209 This package contains mod_imap module. It provides for .map files, replacing
210 the functionality of the imagemap CGI program. Any directory or document
211 type configured to use the handler imap-file.
214 Summary: Apache module with comprehensive overview of the server configuration
215 Group: Networking/Daemons
216 Group(pl): Sieciowe/Serwery
217 Prereq: %{_sbindir}/apxs
218 Requires: %{name}(EAPI) = %{version}
220 %description mod_info
221 This package contains mod_mmap_static module. It provides a comprehensive
222 overview of the server configuration including all installed modules and
223 directives in the configuration files.
226 Summary: Apache module with Web proxy
227 Group: Networking/Daemons
228 Group(pl): Sieciowe/Serwery
229 Prereq: %{_sbindir}/apxs
230 Requires: %{name}(EAPI) = %{version}
232 %description mod_proxy
233 This package contains module with implementation a proxy/cache for Apache.
234 It implements proxying capability for FTP, CONNECT (for SSL), HTTP/0.9, and
235 HTTP/1.0. The module can be configured to connect to other proxy modules for
236 these and other protocols.
239 Summary: Apache module with rule-based engine for rewrite requested URLs on the fly
240 Group: Networking/Daemons
241 Group(pl): Sieciowe/Serwery
242 Prereq: %{_sbindir}/apxs
243 Requires: %{name}(EAPI) = %{version}
245 %description mod_rewrite
246 This package contains It provides a rule-based rewriting engine to rewrite
247 requested URLs on the fly.
250 Summary: Server status report module for apache
251 Group: Networking/Daemons
252 Group(pl): Sieciowe/Serwery
253 Prereq: %{_sbindir}/apxs
254 Requires: %{name}(EAPI) = %{version}
256 %description mod_status
257 The Status module allows a server administrator to find out how well their
258 server is performing. A HTML page is presented that gives the current server
259 statistics in an easily readable form. If required this page can be made to
260 automatically refresh (given a compatible browser).
262 %package mod_usertrack
263 Summary: Apache module for user tracking using cookies
264 Group: Networking/Daemons
265 Group(pl): Sieciowe/Serwery
266 Prereq: %{_sbindir}/apxs
267 Requires: %{name}(EAPI) = %{version}
269 %description mod_usertrack
270 This package contains the user tracking module which did its own logging
271 using CookieLog directory. This module allow multiple log files.
273 %package mod_vhost_alias
274 Summary: Apache module for dynamically configured mass virtual hosting
275 Group: Networking/Daemons
276 Group(pl): Sieciowe/Serwery
277 Prereq: %{_sbindir}/apxs
278 Requires: %{name}(EAPI) = %{version}
280 %description mod_vhost_alias
281 This package contains the mod_vhost_alias. It provides support for
282 dynamically configured mass virtual hosting.
284 %package mod_unique_id
285 Summary: Apache module which provides a magic token for each request
286 Group: Networking/Daemons
287 Group(pl): Sieciowe/Serwery
288 Prereq: %{_sbindir}/apxs
289 Requires: %{name}(EAPI) = %{version}
291 %description mod_unique_id
292 This package contains the mod_unique_id. This module provides a magic token
293 for each request which is guaranteed to be unique across "all" requests
294 under very specific conditions. The unique identifier is even unique across
295 multiple machines in a properly configured cluster of machines. The
296 environment variable UNIQUE_ID is set to the identifier for each request.
297 Unique identifiers are useful for various reasons which are beyond the scope
301 Summary: Apache module which provides ....
302 Group: Networking/Daemons
303 Group(pl): Sieciowe/Serwery
304 Prereq: %{_sbindir}/apxs
305 Requires: %{name}(EAPI) = %{version}
307 %description mod_expires
310 %setup -q -n apache_%{version} -a3
323 LDFLAGS="-s"; export LDFLAGS
324 OPTIM="$RPM_OPT_FLAGS" \
326 --prefix=%{_prefix} \
327 --sysconfdir=%{_sysconfdir} \
328 --includedir=%{_includedir} \
329 --sbindir=%{_sbindir} \
330 --libexecdir=%{_libexecdir} \
331 --datadir=%{_datadir} \
332 --localstatedir=/var \
333 --runtimedir=/var/run \
334 --logfiledir=/var/log/httpd \
336 --without-confadjust \
337 --enable-module=all \
338 --enable-shared=max \
339 --proxycachedir=/var/cache/apache \
340 --with-perl=%{_bindir}/perl \
342 --suexec-caller=http \
343 --suexec-uidmin=500 \
344 --suexec-gidmin=500 \
345 --disable-rule=WANTHSREGEX \
347 # --enable-rule=INET6
351 rm -rf $RPM_BUILD_ROOT
352 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
353 $RPM_BUILD_ROOT%{_datadir}/errordocs \
354 $RPM_BUILD_ROOT/var/{log/{httpd,archiv/httpd},state/apache/mm}
356 make install-quiet root="$RPM_BUILD_ROOT"
358 mv $RPM_BUILD_ROOT%{_datadir}/html/manual $RPM_BUILD_ROOT%{_datadir}
360 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
361 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
362 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/apache
364 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer}_log
366 install errordocs/* $RPM_BUILD_ROOT%{_datadir}/errordocs
368 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/access.conf
369 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
370 install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/srm.conf
372 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/mod_vhost_alias.conf
373 install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/mod_status.conf
374 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/mod_proxy.conf
376 ln -sf index.html.en $RPM_BUILD_ROOT/home/httpd/html/index.html
378 strip --strip-unneeded $RPM_BUILD_ROOT%{_libexecdir}/*.so
380 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
381 ABOUT_APACHE src/CHANGES KEYS README
384 if [ -n "`getgid http`" ]; then
385 if [ "`getgid http`" != "51" ]; then
386 echo "Warning: group http haven't gid=51. Corect this before install apache" 1>&2
390 /usr/sbin/groupadd -g 51 -r -f http
391 if [ -f /var/db/group.db ]; then
392 /usr/bin/update-db 1>&2
395 if [ -n "`id -u http 2>/dev/null`" ]; then
396 if [ "`id -u http`" != "51" ]; then
397 echo "Warning: user http haven't uid=51. Corect this before install apache" 1>&2
401 /usr/sbin/useradd -u 51 -r -d /home/httpd -s /bin/false -c "HTTP User" -g http http 1>&2
402 if [ -f /var/db/passwd.db ]; then
403 /usr/bin/update-db 1>&2
408 /sbin/chkconfig --add httpd
409 %{_sbindir}/apxs -e -a -n access %{_libexecdir}/mod_access.so 1>&2
410 %{_sbindir}/apxs -e -a -n alias %{_libexecdir}/mod_alias.so 1>&2
411 %{_sbindir}/apxs -e -a -n asis %{_libexecdir}/mod_asis.so 1>&2
412 %{_sbindir}/apxs -e -a -n auth %{_libexecdir}/mod_auth.so 1>&2
413 %{_sbindir}/apxs -e -a -n auth_db %{_libexecdir}/mod_auth_db.so 1>&2
414 %{_sbindir}/apxs -e -a -n auth_dbm %{_libexecdir}/mod_auth_dbm.so 1>&2
415 %{_sbindir}/apxs -e -a -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
416 %{_sbindir}/apxs -e -a -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
417 %{_sbindir}/apxs -e -a -n cgi %{_libexecdir}/mod_cgi.so 1>&2
418 %{_sbindir}/apxs -e -a -n env %{_libexecdir}/mod_env.so 1>&2
419 %{_sbindir}/apxs -e -a -n include %{_libexecdir}/mod_include.so 1>&2
420 %{_sbindir}/apxs -e -a -n log_agent %{_libexecdir}/mod_log_agent.so 1>&2
421 %{_sbindir}/apxs -e -a -n log_config %{_libexecdir}/mod_log_config.so 1>&2
422 %{_sbindir}/apxs -e -a -n log_referer %{_libexecdir}/mod_log_referer.so 1>&2
423 %{_sbindir}/apxs -e -a -n mime_magic %{_libexecdir}/mod_mime_magic.so 1>&2
424 %{_sbindir}/apxs -e -a -n mime %{_libexecdir}/mod_mime.so 1>&2
425 %{_sbindir}/apxs -e -a -n negotiation %{_libexecdir}/mod_negotiation.so 1>&2
426 %{_sbindir}/apxs -e -a -n setenvif %{_libexecdir}/mod_setenvif.so 1>&2
427 %{_sbindir}/apxs -e -a -n speling %{_libexecdir}/mod_speling.so 1>&2
428 %{_sbindir}/apxs -e -a -n userdir %{_libexecdir}/mod_userdir.so 1>&2
430 touch /var/log/httpd/{access,error,agent,referer}_log
431 if [ -f /var/lock/subsys/httpd ]; then
432 /etc/rc.d/init.d/httpd restart 1>&2
434 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
438 if [ "$1" = "0" ]; then
439 %{_sbindir}/apxs -e -A -n access %{_libexecdir}/mod_access.so 1>&2
440 %{_sbindir}/apxs -e -A -n alias %{_libexecdir}/mod_alias.so 1>&2
441 %{_sbindir}/apxs -e -A -n asis %{_libexecdir}/mod_asis.so 1>&2
442 %{_sbindir}/apxs -e -A -n auth %{_libexecdir}/mod_auth.so 1>&2
443 %{_sbindir}/apxs -e -A -n auth_db %{_libexecdir}/mod_auth_db.so 1>&2
444 %{_sbindir}/apxs -e -A -n auth_dbm %{_libexecdir}/mod_auth_dbm.so 1>&2
445 %{_sbindir}/apxs -e -A -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
446 %{_sbindir}/apxs -e -A -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
447 %{_sbindir}/apxs -e -A -n cgi %{_libexecdir}/mod_cgi.so 1>&2
448 %{_sbindir}/apxs -e -A -n env %{_libexecdir}/mod_env.so 1>&2
449 %{_sbindir}/apxs -e -A -n include %{_libexecdir}/mod_include.so 1>&2
450 %{_sbindir}/apxs -e -A -n log_agent %{_libexecdir}/mod_log_agent.so 1>&2
451 %{_sbindir}/apxs -e -A -n log_config %{_libexecdir}/mod_log_config.so 1>&2
452 %{_sbindir}/apxs -e -A -n log_referer %{_libexecdir}/mod_log_referer.so 1>&2
453 %{_sbindir}/apxs -e -A -n mime %{_libexecdir}/mod_mime.so 1>&2
454 %{_sbindir}/apxs -e -A -n mime_magic %{_libexecdir}/mod_mime_magic.so 1>&2
455 %{_sbindir}/apxs -e -A -n negotiation %{_libexecdir}/mod_negotiation.so 1>&2
456 %{_sbindir}/apxs -e -A -n setenvif %{_libexecdir}/mod_setenvif.so 1>&2
457 %{_sbindir}/apxs -e -A -n speling %{_libexecdir}/mod_speling.so 1>&2
458 %{_sbindir}/apxs -e -A -n userdir %{_libexecdir}/mod_userdir.so 1>&2
459 if [ -f /var/lock/subsys/httpd ]; then
460 /etc/rc.d/init.d/httpd stop 1>&2
462 /sbin/chkconfig --del httpd
466 if [ "$1" = "0" ]; then
467 /usr/sbin/userdel http
468 if [ -f /var/db/passwd.db ]; then
471 /usr/sbin/groupdel http
472 if [ -f /var/db/group.db ]; then
478 %{_sbindir}/apxs -e -a -n action %{_libexecdir}/mod_actions.so 1>&2
479 if [ -f /var/lock/subsys/httpd ]; then
480 /etc/rc.d/init.d/httpd restart 1>&2
482 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
486 if [ "$1" = "0" ]; then
487 %{_sbindir}/apxs -e -A -n action %{_libexecdir}/mod_actions.so 1>&2
488 if [ -f /var/lock/subsys/httpd ]; then
489 /etc/rc.d/init.d/httpd restart 1>&2
494 %{_sbindir}/apxs -e -a -n auth_anon %{_libexecdir}/mod_auth_anon.so 1>&2
495 if [ -f /var/lock/subsys/httpd ]; then
496 /etc/rc.d/init.d/httpd restart 1>&2
498 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
502 if [ "$1" = "0" ]; then
503 %{_sbindir}/apxs -e -A -n auth_anon %{_libexecdir}/mod_auth_anon.so 1>&2
504 if [ -f /var/lock/subsys/httpd ]; then
505 /etc/rc.d/init.d/httpd restart 1>&2
510 %{_sbindir}/apxs -e -a -n define %{_libexecdir}/mod_define.so 1>&2
511 if [ -f /var/lock/subsys/httpd ]; then
512 /etc/rc.d/init.d/httpd restart 1>&2
514 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
518 if [ "$1" = "0" ]; then
519 %{_sbindir}/apxs -e -A -n define %{_libexecdir}/mod_define.so 1>&2
520 if [ -f /var/lock/subsys/httpd ]; then
521 /etc/rc.d/init.d/httpd restart 1>&2
526 %{_sbindir}/apxs -e -a -n digest %{_libexecdir}/mod_digest.so 1>&2
527 if [ -f /var/lock/subsys/httpd ]; then
528 /etc/rc.d/init.d/httpd restart 1>&2
530 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
534 if [ "$1" = "0" ]; then
535 %{_sbindir}/apxs -e -A -n digest %{_libexecdir}/mod_digest.so 1>&2
536 if [ -f /var/lock/subsys/httpd ]; then
537 /etc/rc.d/init.d/httpd restart 1>&2
542 %{_sbindir}/apxs -e -a -n dir %{_libexecdir}/mod_dir.so 1>&2
543 if [ -f /var/lock/subsys/httpd ]; then
544 /etc/rc.d/init.d/httpd restart 1>&2
546 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
550 if [ "$1" = "0" ]; then
551 %{_sbindir}/apxs -e -A -n dir %{_libexecdir}/mod_dir.so 1>&2
552 if [ -f /var/lock/subsys/httpd ]; then
553 /etc/rc.d/init.d/httpd restart 1>&2
558 %{_sbindir}/apxs -e -a -n expires %{_libexecdir}/mod_expires.so 1>&2
559 if [ -f /var/lock/subsys/httpd ]; then
560 /etc/rc.d/init.d/httpd restart 1>&2
562 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
566 if [ "$1" = "0" ]; then
567 %{_sbindir}/apxs -e -A -n expires %{_libexecdir}/mod_expires.so 1>&2
568 if [ -f /var/lock/subsys/httpd ]; then
569 /etc/rc.d/init.d/httpd restart 1>&2
574 %{_sbindir}/apxs -e -a -n headers %{_libexecdir}/mod_headers.so 1>&2
575 if [ -f /var/lock/subsys/httpd ]; then
576 /etc/rc.d/init.d/httpd restart 1>&2
578 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
582 if [ "$1" = "0" ]; then
583 %{_sbindir}/apxs -e -A -n headers %{_libexecdir}/mod_headers.so 1>&2
584 if [ -f /var/lock/subsys/httpd ]; then
585 /etc/rc.d/init.d/httpd restart 1>&2
589 %post mod_mmap_static
590 %{_sbindir}/apxs -e -a -n mmap_static %{_libexecdir}/mod_mmap_static.so 1>&2
591 if [ -f /var/lock/subsys/httpd ]; then
592 /etc/rc.d/init.d/httpd restart 1>&2
594 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
597 %preun mod_mmap_static
598 if [ "$1" = "0" ]; then
599 %{_sbindir}/apxs -e -A -n mmap_static %{_libexecdir}/mod_mmap_static.so 1>&2
600 if [ -f /var/lock/subsys/httpd ]; then
601 /etc/rc.d/init.d/httpd restart 1>&2
606 %{_sbindir}/apxs -e -a -n imap %{_libexecdir}/mod_imap.so 1>&2
607 if [ -f /var/lock/subsys/httpd ]; then
608 /etc/rc.d/init.d/httpd restart 1>&2
610 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
614 if [ "$1" = "0" ]; then
615 %{_sbindir}/apxs -e -A -n imap %{_libexecdir}/mod_imap.so 1>&2
616 if [ -f /var/lock/subsys/httpd ]; then
617 /etc/rc.d/init.d/httpd restart 1>&2
622 %{_sbindir}/apxs -e -a -n info %{_libexecdir}/mod_info.so 1>&2
623 if [ -f /var/lock/subsys/httpd ]; then
624 /etc/rc.d/init.d/httpd restart 1>&2
626 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
630 if [ "$1" = "0" ]; then
631 %{_sbindir}/apxs -e -A -n info %{_libexecdir}/mod_info.so 1>&2
632 if [ -f /var/lock/subsys/httpd ]; then
633 /etc/rc.d/init.d/httpd restart 1>&2
638 %{_sbindir}/apxs -e -a -n proxy %{_libexecdir}/libproxy.so 1>&2
639 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_proxy.conf" /etc/httpd/httpd.conf; then
640 echo "Include mod_proxy.conf" >> /etc/httpd/httpd.conf
642 if [ -f /var/lock/subsys/httpd ]; then
643 /etc/rc.d/init.d/httpd restart 1>&2
645 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
649 if [ "$1" = "0" ]; then
650 %{_sbindir}/apxs -e -A -n proxy %{_libexecdir}/libproxy.so 1>&2
651 grep -v -q "^Include.*mod_proxy.conf" /etc/httpd/httpd.conf > \
652 /etc/httpd/httpd.conf.tmp
653 mv /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
654 if [ -f /var/lock/subsys/httpd ]; then
655 /etc/rc.d/init.d/httpd restart 1>&2
660 %{_sbindir}/apxs -e -a -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
661 if [ -f /var/lock/subsys/httpd ]; then
662 /etc/rc.d/init.d/httpd restart 1>&2
664 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
668 if [ "$1" = "0" ]; then
669 %{_sbindir}/apxs -e -A -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
670 if [ -f /var/lock/subsys/httpd ]; then
671 /etc/rc.d/init.d/httpd restart 1>&2
676 %{_sbindir}/apxs -e -a -n status %{_libexecdir}/mod_status.so 1>&2
677 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_status.conf" /etc/httpd/httpd.conf; then
678 echo "Include mod_status.conf" >> /etc/httpd/httpd.conf
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 status %{_libexecdir}/mod_status.so 1>&2
689 grep -v -q "^Include.*mod_status.conf" /etc/httpd/httpd.conf > \
690 /etc/httpd/httpd.conf.tmp
691 mv /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
692 if [ -f /var/lock/subsys/httpd ]; then
693 /etc/rc.d/init.d/httpd restart 1>&2
698 %{_sbindir}/apxs -e -a -n usertrack %{_libexecdir}/mod_usertrack.so 1>&2
699 if [ -f /var/lock/subsys/httpd ]; then
700 /etc/rc.d/init.d/httpd restart 1>&2
702 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
706 if [ "$1" = "0" ]; then
707 %{_sbindir}/apxs -e -A -n usertrack %{_libexecdir}/mod_usertrack.so 1>&2
708 if [ -f /var/lock/subsys/httpd ]; then
709 /etc/rc.d/init.d/httpd restart 1>&2
714 %{_sbindir}/apxs -e -a -n unique_id %{_libexecdir}/mod_unique_id.so 1>&2
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 unique_id %{_libexecdir}/mod_unique_id.so 1>&2
724 if [ -f /var/lock/subsys/httpd ]; then
725 /etc/rc.d/init.d/httpd restart 1>&2
729 %post mod_vhost_alias
730 %{_sbindir}/apxs -e -a -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
731 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_vhost_alias.conf" /etc/httpd/httpd.conf; then
732 echo "Include mod_vhost_alias.conf" >> /etc/httpd/httpd.conf
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."
740 %preun mod_vhost_alias
741 if [ "$1" = "0" ]; then
742 %{_sbindir}/apxs -e -A -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
743 grep -v -q "^Include.*mod_vhost_alias.conf" /etc/httpd/httpd.conf > \
744 /etc/httpd/httpd.conf.tmp
745 mv /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
746 if [ -f /var/lock/subsys/httpd ]; then
747 /etc/rc.d/init.d/httpd restart 1>&2
752 rm -rf $RPM_BUILD_ROOT
755 %defattr(644,root,root,755)
756 %doc ABOUT_APACHE.gz src/CHANGES.gz KEYS.gz README.gz
759 %dir %{_datadir}/manual
760 %dir %{_datadir}/manual/images/
761 %{_datadir}/manual/images/sub.gif
762 %{_datadir}/manual/images/index.gif
763 %{_datadir}/manual/images/home.gif
764 %{_datadir}/manual/misc
765 %dir %{_datadir}/manual/search
766 %attr(755,root,root) %{_datadir}/manual/search/manual-index.cgi
767 %{_datadir}/manual/vhosts
768 %{_datadir}/manual/LICENSE
769 %{_datadir}/manual/bind.html
770 %{_datadir}/manual/cgi_path.html
771 %{_datadir}/manual/content-negotiation.html
772 %{_datadir}/manual/custom-error.html
773 %{_datadir}/manual/dns-caveats.html
774 %{_datadir}/manual/dso.html
775 %{_datadir}/manual/env.html
776 %{_datadir}/manual/footer.html
777 %{_datadir}/manual/handler.html
778 %{_datadir}/manual/header.html
779 %{_datadir}/manual/index.html
780 %{_datadir}/manual/install.html
781 %{_datadir}/manual/invoking.html
782 %{_datadir}/manual/keepalive.html
783 %{_datadir}/manual/location.html
784 %{_datadir}/manual/multilogs.html
785 %{_datadir}/manual/new_features_1_3.html
786 %{_datadir}/manual/process-model.html
787 %{_datadir}/manual/sections.html
788 %{_datadir}/manual/sourcereorg.html
789 %{_datadir}/manual/suexec.html
790 %{_datadir}/manual/upgrading_to_1_3.html
791 %{_datadir}/manual/mod/core.html
792 %{_datadir}/manual/mod/directive-dict.html
793 %{_datadir}/manual/mod/directives.html
794 %{_datadir}/manual/mod/footer.html
795 %{_datadir}/manual/mod/header.html
796 %{_datadir}/manual/mod/index.html
797 %{_datadir}/manual/mod/mod_access.html
798 %{_datadir}/manual/mod/mod_alias.html
799 %{_datadir}/manual/mod/mod_asis.html
800 %{_datadir}/manual/mod/mod_auth.html
801 %{_datadir}/manual/mod/mod_auth_db.html
802 %{_datadir}/manual/mod/mod_auth_dbm.html
803 %{_datadir}/manual/mod/mod_autoindex.html
804 %{_datadir}/manual/mod/mod_cgi.html
805 %{_datadir}/manual/mod/mod_cookies.html
806 %{_datadir}/manual/mod/mod_env.html
807 %{_datadir}/manual/mod/mod_include.html
808 %{_datadir}/manual/mod/mod_log_agent.html
809 %{_datadir}/manual/mod/mod_log_config.html
810 %{_datadir}/manual/mod/mod_log_referer.html
811 %{_datadir}/manual/mod/mod_mime.html
812 %{_datadir}/manual/mod/mod_mime_magic.html
813 %{_datadir}/manual/mod/mod_negotiation.html
814 %{_datadir}/manual/mod/mod_setenvif.html
815 %{_datadir}/manual/mod/mod_speling.html
816 %{_datadir}/manual/mod/mod_userdir.html
818 %attr(754,root,root) /etc/rc.d/init.d/httpd
820 %attr(750,root,root) %dir %{_sysconfdir}
821 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/access.conf
822 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf
823 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/srm.conf
824 %attr(640,root,root) %{_sysconfdir}/magic
826 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/*
827 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/*
829 %attr(755,root,root) %dir %{_datadir}/html
830 %config(noreplace) %{_datadir}/html/index.html
831 %lang(ca) %{_datadir}/html/index.html.ca
832 %lang(cz) %{_datadir}/html/index.html.cz
833 %lang(de) %{_datadir}/html/index.html.de
834 %lang(dk) %{_datadir}/html/index.html.dk
835 %lang(ee) %{_datadir}/html/index.html.ee
836 %lang(en) %{_datadir}/html/index.html.en
837 %lang(es) %{_datadir}/html/index.html.es
838 %lang(fr) %{_datadir}/html/index.html.fr
839 %lang(it) %{_datadir}/html/index.html.it
840 %lang(lu) %{_datadir}/html/index.html.lu
841 %lang(nl) %{_datadir}/html/index.html.nl
842 %lang(pt) %{_datadir}/html/index.html.pt
843 %lang(se) %{_datadir}/html/index.html.se
845 %{_datadir}/html/*.gif
846 %{_datadir}/errordocs
847 %dir %{_datadir}/icons
848 %{_datadir}/icons/*.gif
849 %dir %{_datadir}/icons/small
850 %{_datadir}/icons/small/*.gif
851 %attr(755,root,root) %{_datadir}/cgi-bin
854 %attr(755,root,root) %{_libexecdir}/mod_access.so
855 %attr(755,root,root) %{_libexecdir}/mod_alias.so
856 %attr(755,root,root) %{_libexecdir}/mod_asis.so
857 %attr(755,root,root) %{_libexecdir}/mod_auth.so
858 %attr(755,root,root) %{_libexecdir}/mod_auth_db.so
859 %attr(755,root,root) %{_libexecdir}/mod_auth_dbm.so
860 %attr(755,root,root) %{_libexecdir}/mod_autoindex.so
861 %attr(755,root,root) %{_libexecdir}/mod_cern_meta.so
862 %attr(755,root,root) %{_libexecdir}/mod_cgi.so
863 %attr(755,root,root) %{_libexecdir}/mod_env.so
864 %attr(755,root,root) %{_libexecdir}/mod_include.so
865 %attr(755,root,root) %{_libexecdir}/mod_log_agent.so
866 %attr(755,root,root) %{_libexecdir}/mod_log_config.so
867 %attr(755,root,root) %{_libexecdir}/mod_log_referer.so
868 %attr(755,root,root) %{_libexecdir}/mod_mime.so
869 %attr(755,root,root) %{_libexecdir}/mod_mime_magic.so
870 %attr(755,root,root) %{_libexecdir}/mod_negotiation.so
871 %attr(755,root,root) %{_libexecdir}/mod_setenvif.so
872 %attr(755,root,root) %{_libexecdir}/mod_speling.so
873 %attr(755,root,root) %{_libexecdir}/mod_userdir.so
875 %attr(755,root,root) %{_bindir}/dbmmanage
876 %attr(755,root,root) %{_bindir}/htdigest
877 %attr(755,root,root) %{_bindir}/htpasswd
879 %attr(755,root,root) %{_sbindir}/ab
880 %attr(755,root,root) %{_sbindir}/apachectl
881 %attr(755,root,root) %{_sbindir}/apxs
882 %attr(755,root,root) %{_sbindir}/httpd
883 %attr(755,root,root) %{_sbindir}/logresolve
884 %attr(755,root,root) %{_sbindir}/rotatelogs
886 %dir %attr(750,http,http) /var/state/apache
890 %attr(750,root,root) %dir /var/log/httpd
891 %attr(750,root,root) %dir /var/log/archiv/httpd
892 %attr(640,root,root) %ghost /var/log/httpd/*
895 %attr(4755,root,root) %{_sbindir}/suexec
898 %defattr(644,root,root,755)
903 %attr(755,root,root) %{_libexecdir}/mod_actions.so
904 %attr(644,root,root) %{_datadir}/manual/mod/mod_actions.html
907 %attr(755,root,root) %{_libexecdir}/mod_auth_anon.so
908 %attr(644,root,root) %{_datadir}/manual/mod/mod_auth_anon.html
911 %attr(755,root,root) %{_libexecdir}/mod_define.so
912 %attr(644,root,root) %{_datadir}/manual/mod/mod_define.html
915 %attr(755,root,root) %{_libexecdir}/mod_digest.so
916 %attr(644,root,root) %{_datadir}/manual/mod/mod_digest.html
919 %attr(755,root,root) %{_libexecdir}/mod_dir.so
920 %attr(644,root,root) %{_datadir}/manual/mod/mod_dir.html
923 %attr(755,root,root) %{_libexecdir}/mod_expires.so
924 %attr(644,root,root) %{_datadir}/manual/mod/mod_expires.html
927 %attr(755,root,root) %{_libexecdir}/mod_headers.so
928 %attr(644,root,root) %{_datadir}/manual/mod/mod_headers.html
930 %files mod_mmap_static
931 %attr(755,root,root) %{_libexecdir}/mod_mmap_static.so
932 %attr(644,root,root) %{_datadir}/manual/mod/mod_mmap_static.html
935 %attr(755,root,root) %{_libexecdir}/mod_imap.so
936 %attr(644,root,root) %{_datadir}/manual/mod/mod_imap.html
939 %attr(755,root,root) %{_libexecdir}/mod_info.so
940 %attr(644,root,root) %{_datadir}/manual/mod/mod_info.html
943 %config(noreplace) %{_sysconfdir}/mod_proxy.conf
944 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_proxy.conf
945 %attr(755,root,root) %{_libexecdir}/libproxy.so
946 %attr(644,root,root) %{_datadir}/manual/mod/mod_proxy.html
947 %dir %attr(750,http,http) /var/cache/apache
950 %attr(755,root,root) %{_libexecdir}/mod_rewrite.so
951 %attr(644,root,root) %{_datadir}/manual/mod/mod_rewrite.html
954 %config(noreplace) %{_sysconfdir}/mod_status.conf
955 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_status.conf
956 %attr(755,root,root) %{_libexecdir}/mod_status.so
957 %attr(644,root,root) %{_datadir}/manual/mod/mod_status.html
960 %attr(755,root,root) %{_libexecdir}/mod_usertrack.so
961 %attr(644,root,root) %{_datadir}/manual/mod/mod_usertrack.html
964 %attr(755,root,root) %{_libexecdir}/mod_unique_id.so
965 %attr(644,root,root) %{_datadir}/manual/mod/mod_unique_id.html
967 %files mod_vhost_alias
968 %attr(755,root,root) %{_libexecdir}/mod_vhost_alias.so
969 %attr(644,root,root) %{_datadir}/manual/mod/mod_vhost_alias.html
970 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_vhost_alias.conf