3 # mod_rewrite_ldap - enable ldap map supoort for mod_rewrite (alpha)
5 %include /usr/lib/rpm/macros.perl
6 Summary: The most widely used Web server on the Internet
7 Summary(de): Leading World Wide Web-Server
8 Summary(fr): Le serveur web le plus utilise sur Internet
9 Summary(pl): Serwer WWW (World Wide Web)
10 Summary(tr): Lider WWW tarayýcý
15 Group: Networking/Daemons
16 Group(de): Netzwerkwesen/Server
17 Group(pl): Sieciowe/Serwery
18 Source0: ftp://ftp.apache.org/dist/%{name}_%{version}.tar.gz
20 Source2: %{name}.logrotate
21 Source3: %{name}-icons.tar.gz
22 Source4: %{name}.sysconfig
23 Source6: %{name}-httpd.conf
24 Source8: %{name}-mod_vhost_alias.conf
25 Source9: %{name}-mod_status.conf
26 Source10: %{name}-mod_proxy.conf
27 Patch0: %{name}-PLD.patch
28 Patch1: %{name}-suexec.patch
29 Patch2: %{name}-htdocs.patch
30 Patch3: %{name}-errordocs.patch
31 Patch4: %{name}-apxs.patch
32 Patch5: %{name}-EAPI.patch
33 Patch6: %{name}-v6-PLD-3.patch.gz
34 Patch7: %{name}-mm_conf.patch
35 Patch8: %{name}-modules_symbols.patch
36 Patch9: %{name}-apxs_force_rm_cp.patch
37 Patch10: %{name}-db3.patch
38 Patch11: %{name}-lookup_map_ldap.patch
41 Prereq: /sbin/chkconfig
42 Prereq: /usr/sbin/useradd
43 Prereq: /usr/bin/getgid
46 BuildRequires: db2-devel
47 BuildRequires: mm-devel >= 1.1.3
48 %{?mod_rewrite_ldap:BuildRequires: openldap-devel}
51 Requires: /etc/mime.types
52 URL: http://www.apache.org/
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 Provides: %{name}(EAPI) = %{version}
56 Obsoletes: apache-extra
60 %define _sysconfdir /etc/httpd
61 %define _includedir %{_prefix}/include/apache
62 %define _datadir /home/httpd
63 %define _libexecdir %{_prefix}/lib/apache
66 Apache is a powerful, full-featured, efficient and freely-available
67 Web server. Apache is also the most popular Web server on the
71 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
72 erhältlich und weit verbreitet ist.
75 Apache est un serveur Web puissant, efficace, gratuit et complet.
76 Apache est aussi le serveur Web le plus populaire sur Internet.
79 Apache jest serwerem WWW (World Wide Web). Instaluj±c ten pakiet
80 bêdziesz móg³ prezentowaæ w³asne strony WWW w sieci internet.
83 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web
87 Summary: Apache suexec wrapper
88 Summary(pl): Suexec wrapper do serwera www Apache
89 Group: Development/Tools
90 Group(de): Entwicklung/Werkzeuge
91 Group(fr): Development/Outils
92 Group(pl): Programowanie/Narzêdzia
93 Requires: %{name}(EAPI) = %{version}
96 The suEXEC feature provides Apache users the ability to run CGI and
97 SSI programs under user IDs different from the user ID of the calling
98 web-server. Normally, when a CGI or SSI program executes, it runs as
99 the same user who is running the web server.
101 %description -l pl suexec
102 SuEXEC umo¿liwia serwerowi Apache uruchamianie programów CGI i SSI z
103 innym UID ni¿ wywo³uj±cy je serwer. Normalnie programy CGI i SSI s±
104 wykonywane jako taki sam u¿ytkownik jak serwer WWW.
107 Summary: Module development tools for the Apache web server
108 Summary(fr): Les outils de developpement de modules pour le serveur web Apache
109 Summary(pl): Pliki nag³ówkowe do tworzenai modu³ów rozszerzeñ do serwera www Apache
110 Group: Networking/Utilities
111 Group(de): Netzwerkwesen/Werkzeuge
112 Group(pl): Sieciowe/Narzêdzia
113 Requires: %{name}(EAPI) = %{version}
114 Provides: %{name}(EAPI)-devel
117 The apache-devel package contains the source code for the Apache Web
118 server and the APXS binary you'll need to build Dynamic Shared Objects
121 %description -l fr devel
122 Le package apache-devel contient le code source pour le serveur Web
123 Apache et le binaire APXS dont vous aurez besoin pour construire des
124 Objets Dynamiques Partages (DSOs) pour Apache.
126 %description -l pl devel
127 Pliki nag³ówkowe dla serwera WWW Apache.
130 Summary: Apache module for run CGI whenever a file of a certain type is requested
131 Summary(pl): Modu³ dla apache do uruchamiania skryptów cgi
132 Group: Networking/Daemons
133 Group(de): Netzwerkwesen/Server
134 Group(pl): Sieciowe/Serwery
135 Prereq: %{_sbindir}/apxs
136 Requires: %{name}(EAPI) = %{version}
138 %description mod_actions
139 This package contains mod_actions module. This module lets you run CGI
140 scripts whenever a file of a certain type is requested. This makes it
141 much easier to execute scripts that process files.
143 %description -l pl mod_actions
144 Ten modu³ pozwala na uruchamianie skryptów w momencie gdy nadchodzi
145 ¿±danie pobrania pliku okre¶lonego typu.
148 Summary: Apache module with user authentication using textual files
149 Group: Networking/Daemons
150 Group(de): Netzwerkwesen/Server
151 Group(pl): Sieciowe/Serwery
152 Prereq: %{_sbindir}/apxs
153 Requires: %{name}(EAPI) = %{version}
155 %description mod_auth
156 This package contains mod_auth module. It provides for user
157 authentication using textual files.
159 %package mod_auth_anon
160 Summary: Apache module with "anonymous" user access authentication
161 Summary(pl): Modu³ apache oferuj±cy anonimow± autoryzacjê u¿ytkownia
162 Group: Networking/Daemons
163 Group(de): Netzwerkwesen/Server
164 Group(pl): Sieciowe/Serwery
165 Prereq: %{_sbindir}/apxs
166 Requires: %{name}(EAPI) = %{version}
168 %description mod_auth_anon
169 This package contains mod_auth_anon module. It allows "anonymous" user
170 access to authenticated areas. It does access control in a manner
171 similar to anonymous-ftp sites; i.e. have a 'magic' user id
172 'anonymous' and the email address as a password. These email addresses
173 can be logged. Combined with other (database) access control methods,
174 this allows for effective user tracking and customization according to
175 a user profile while still keeping the site open for 'unregistered'
176 users. One advantage of using Auth-based user tracking is that, unlike
177 magic-cookies and funny URL pre/postfixes, it is completely browser
178 independent and it allows users to share URLs.
180 %description -l pl mod_auth_anon
181 Ten modu³ oferuje anonimow± autoryzacjê u¿ytkownia podobnie do
182 anonimowych serwerów ftp (u¿ytkownik ,,anonymous'' oraz has³o w
183 postaci adresu pocztowego u¿ytkownika).
186 Summary: Apache module with user authentication which uses Berkeley DB files
187 Summary(pl): Modu³ apache z mechanizmem autentykacji u¿ywaj±cym plików Berkeley DB
188 Group: Networking/Daemons
189 Group(de): Netzwerkwesen/Server
190 Group(pl): Sieciowe/Serwery
191 Prereq: %{_sbindir}/apxs
192 Requires: %{name}(EAPI) = %{version}
194 %description mod_auth_db
195 This package contains mod_auth_db module. It provides for user
196 authentication using Berkeley DB files. It is an alternative to DBM
197 files for those systems which support DB and not DBM. It is only
198 available in Apache 1.1 and later.
200 %description -l pl mod_auth_db
201 Ten modu³ zawiera modu³ mod_auth_db. Modu³ ten s³u¿y do autentykacji
202 ale jako plików danych u¿ywa Berkeley DB.
205 Summary: Apache module - authentication variables for arbitrary directives
206 Summary(pl): Modu³ apache do definiowania zmiennych
207 Group: Networking/Daemons
208 Group(de): Netzwerkwesen/Server
209 Group(pl): Sieciowe/Serwery
210 Prereq: %{_sbindir}/apxs
211 Requires: %{name}(EAPI) = %{version}
213 %description mod_define
214 It provides the definition variables for arbitrary directives, i.e.
215 variables which can be expanded on any(!) directive line.
217 %description -l pl mod_define
218 Modu³ ten umo¿liwia definicjê zmiennych i dyrektyw.
221 Summary: Apache user authentication module using MD5 Digest Authentication
222 Summary(pl): Modu³ apache do autoryzacji MD5
223 Group: Networking/Daemons
224 Group(de): Netzwerkwesen/Server
225 Group(pl): Sieciowe/Serwery
226 Prereq: %{_sbindir}/apxs
227 Requires: %{name}(EAPI) = %{version}
229 %description mod_digest
230 This package contains mod_digest module. It provides user
231 authentication using MD5 Digest Authentication.
233 %description -l pl mod_digest
234 Modu³ ten dostarcza metodê autoryzacji bazuj±c± na MD5 Digest
238 Summary: Apache module for "trailing slash" redirects and serving directory index files
239 Summary(pl): Modu³ oferuj±cy przekierowania i serwowanie indeksu katalogu.
240 Group: Networking/Daemons
241 Group(de): Netzwerkwesen/Server
242 Group(pl): Sieciowe/Serwery
243 Prereq: %{_sbindir}/apxs
244 Requires: %{name}(EAPI) = %{version}
247 This package contains mod_dir which provides "trailing slash"
248 redirects and serving directory index files.
250 %description -l pl mod_dir
251 Modu³ oferuj±cy przekierowania i serwowanie indeksu katalogu.
254 Summary: Apache module allows for the customization of HTTP response headers
255 Summary(pl): Modu³ pozwalaj±cy na modyfikacjê nag³ówków HTTP
256 Group: Networking/Daemons
257 Group(de): Netzwerkwesen/Server
258 Group(pl): Sieciowe/Serwery
259 Prereq: %{_sbindir}/apxs
260 Requires: %{name}(EAPI) = %{version}
262 %description mod_headers
263 This package contains mod_headers module. The module allows for the
264 customization of HTTP response headers. Headers can be merged,
267 %description -l pl mod_headers
268 Modu³ pozwalaj±cy na ³±czenie, usuwania, zamianê nag³ówków HTTP
269 wysy³anych do przegl±darki.
271 %package mod_mmap_static
272 Summary: Apache module for mmap()ing statically configured list files
273 Summary(pl): Modu³ s³u¿±cy do mmap()owania plików.
274 Group: Networking/Daemons
275 Group(de): Netzwerkwesen/Server
276 Group(pl): Sieciowe/Serwery
277 Prereq: %{_sbindir}/apxs
278 Requires: %{name}(EAPI) = %{version}
280 %description mod_mmap_static
281 This package contains mod_mmap_static module. It provides mmap()ing of
282 a statically configured list of frequently requested but not changed
285 %description -l pl mod_mmap_static
286 Modu³ umo¿liwia mmap()owanie statycznie skonfigurowanych plików
287 (czêsto u¿ywanych ale nie ulegaj±cych zmianom).
290 Summary: Apache module with imap-file handler
291 Summary(pl): Modu³ z obs³ug± imap-file
292 Group: Networking/Daemons
293 Group(de): Netzwerkwesen/Server
294 Group(pl): Sieciowe/Serwery
295 Prereq: %{_sbindir}/apxs
296 Requires: %{name}(EAPI) = %{version}
298 %description mod_imap
299 This package contains mod_imap module. It provides for .map files,
300 replacing the functionality of the imagemap CGI program. Any directory
301 or document type configured to use the handler imap-file.
303 %description -l pl mod_imap
304 Modu³ umozliwiaj±cy obs³ugê plików .map (imap-file handler)
307 Summary: Apache module with comprehensive overview of the server configuration
308 Summary(pl): Modu³ dostarczaj±cy informacji na temat serwera.
309 Group: Networking/Daemons
310 Group(de): Netzwerkwesen/Server
311 Group(pl): Sieciowe/Serwery
312 Prereq: %{_sbindir}/apxs
313 Requires: %{name}(EAPI) = %{version}
315 %description mod_info
316 This package contains mod_info module. It provides a comprehensive
317 overview of the server configuration including all installed modules
318 and directives in the configuration files.
320 %description -l pl mod_info
321 Modu³ dostarczaj±cy informacji o konfiguracji serwera, zainstalowanych
325 Summary: Apache module with Web proxy
326 Summary(pl): Modu³ dodaj±cy obs³ugê serwera proxy
327 Group: Networking/Daemons
328 Group(de): Netzwerkwesen/Server
329 Group(pl): Sieciowe/Serwery
330 Prereq: %{_sbindir}/apxs
331 Requires: %{name}(EAPI) = %{version}
333 %description mod_proxy
334 This package contains module with implementation a proxy/cache for
335 Apache. It implements proxying capability for FTP, CONNECT (for SSL),
336 HTTP/0.9, and HTTP/1.0. The module can be configured to connect to
337 other proxy modules for these and other protocols.
339 %description -l pl mod_proxy
340 Modu³ zawiera implementacjê serwera proxy/cache dla Apache.
341 Iplementacja zawiera obs³ugê FTP, CONNECT (dla SSL), HTTP/0.9 i
345 Summary: Apache module with rule-based engine for rewrite requested URLs on the fly
346 Summary(pl): Modu³ do ,,przepisywania'' adresów URL w locie
347 Group: Networking/Daemons
348 Group(de): Netzwerkwesen/Server
349 Group(pl): Sieciowe/Serwery
350 Prereq: %{_sbindir}/apxs
351 Requires: %{name}(EAPI) = %{version}
353 %description mod_rewrite
354 This package contains It provides a rule-based rewriting engine to
355 rewrite requested URLs on the fly.
357 %description -l pl mod_rewrite
358 Modu³ oferuj±cy mo¿liwo¶æ ,,przepisywania'' adresów URL w locie.
361 Summary: Server status report module for apache
362 Summary(pl): Modu³ dostarczaj±cy informacje statystyczne o serwerze.
363 Group: Networking/Daemons
364 Group(de): Netzwerkwesen/Server
365 Group(pl): Sieciowe/Serwery
366 Prereq: %{_sbindir}/apxs
367 Requires: %{name}(EAPI) = %{version}
369 %description mod_status
370 The Status module allows a server administrator to find out how well
371 their server is performing. A HTML page is presented that gives the
372 current server statistics in an easily readable form. If required this
373 page can be made to automatically refresh (given a compatible
376 %description -l pl mod_status
377 Modu³ pozwala administratorowi na przegl±danie statystyk dotycz±cych
378 pracy serwera apache (w postaci strony HTML).
380 %package mod_usertrack
381 Summary: Apache module for user tracking using cookies
382 Summary(pl): Modu³ s³u¿±cy do ¶ledzenia ,,ciasteczek''.
383 Group: Networking/Daemons
384 Group(de): Netzwerkwesen/Server
385 Group(pl): Sieciowe/Serwery
386 Prereq: %{_sbindir}/apxs
387 Requires: %{name}(EAPI) = %{version}
389 %description mod_usertrack
390 This package contains the user tracking module which did its own
391 logging using CookieLog directory. This module allow multiple log
394 %description -l pl mod_usertrack
395 Modu³ pozwalaj±cy na ¶ledzenie ,,ciasteczek''.
397 %package mod_vhost_alias
398 Summary: Apache module for dynamically configured mass virtual hosting
399 Summary(pl): Modu³ dodaj±cy obs³ugê hostów wirtualnych.
400 Group: Networking/Daemons
401 Group(de): Netzwerkwesen/Server
402 Group(pl): Sieciowe/Serwery
403 Prereq: %{_sbindir}/apxs
404 Requires: %{name}(EAPI) = %{version}
406 %description mod_vhost_alias
407 This package contains the mod_vhost_alias. It provides support for
408 dynamically configured mass virtual hosting.
410 %description -l pl mod_vhost_alias
411 Modu³ umo¿liwia na dynamiczne konfigurowanie masowej ilo¶ci serwerów
414 %package mod_unique_id
415 Summary: Apache module which provides a magic token for each request
416 Group: Networking/Daemons
417 Group(de): Netzwerkwesen/Server
418 Group(pl): Sieciowe/Serwery
419 Prereq: %{_sbindir}/apxs
420 Requires: %{name}(EAPI) = %{version}
422 %description mod_unique_id
423 This package contains the mod_unique_id. This module provides a magic
424 token for each request which is guaranteed to be unique across "all"
425 requests under very specific conditions. The unique identifier is even
426 unique across multiple machines in a properly configured cluster of
427 machines. The environment variable UNIQUE_ID is set to the identifier
428 for each request. Unique identifiers are useful for various reasons
429 which are beyond the scope of this document.
432 Summary: Apache module which provides ....
433 Group: Networking/Daemons
434 Group(de): Netzwerkwesen/Server
435 Group(pl): Sieciowe/Serwery
436 Prereq: %{_sbindir}/apxs
437 Requires: %{name}(EAPI) = %{version}
439 %description mod_expires
442 %setup -q -n apache_%{version} -a3
454 %{?mod_rewrite_ldap:%patch11 -p1}
457 OPTIM="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g}" \
459 --prefix=%{_prefix} \
460 --sysconfdir=%{_sysconfdir} \
461 --includedir=%{_includedir} \
462 --sbindir=%{_sbindir} \
463 --libexecdir=%{_libexecdir} \
464 --datadir=%{_datadir} \
465 --localstatedir=/var \
466 --runtimedir=/var/run \
467 --logfiledir=/var/log/httpd \
469 --without-confadjust \
470 --enable-module=all \
471 --disable-module=auth_dbm \
472 --enable-shared=max \
473 --proxycachedir=/var/cache/apache \
474 --with-perl=%{_bindir}/perl \
476 --suexec-caller=http \
477 --suexec-uidmin=500 \
478 --suexec-gidmin=500 \
479 --suexec-docroot=%{_datadir} \
480 --disable-rule=WANTHSREGEX \
483 %{__make} LIBS1="-lm -lcrypt -lmm -ldl"
485 rm -f src/modules/standard/mod_auth_db.so
486 %{__make} -C src/modules/standard mod_auth_db.so LIBS_SHLIB="-ldb"
488 rm -f src/modules/standard/mod_rewrite.so
489 %{__make} -C src/modules/standard mod_rewrite.so LIBS_SHLIB="-lndbm %{?mod_rewrite_ldap:-lldap -llber}"
492 rm -rf $RPM_BUILD_ROOT
493 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
494 $RPM_BUILD_ROOT%{_datadir}/errordocs \
495 $RPM_BUILD_ROOT/var/{log/{httpd,archiv/httpd},lib/apache/mm}
497 %{__make} install-quiet root="$RPM_BUILD_ROOT"
499 mv -f $RPM_BUILD_ROOT%{_datadir}/html/manual $RPM_BUILD_ROOT%{_datadir}
501 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
502 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
503 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/apache
505 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer}_log
507 install errordocs/* $RPM_BUILD_ROOT%{_datadir}/errordocs
509 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
511 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/mod_vhost_alias.conf
512 install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/mod_status.conf
513 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/mod_proxy.conf
515 ln -sf index.html.en $RPM_BUILD_ROOT%{_datadir}/html/index.html
517 gzip -9nf ABOUT_APACHE src/CHANGES KEYS README
520 if [ -n "`getgid http`" ]; then
521 if [ "`getgid http`" != "51" ]; then
522 echo "Warning:group http haven't gid=51. Corect this before install apache" 1>&2
526 /usr/sbin/groupadd -g 51 -r -f http
527 if [ -f /var/db/group.db ]; then
528 /usr/bin/update-db 1>&2
531 if [ -n "`id -u http 2>/dev/null`" ]; then
532 if [ "`id -u http`" != "51" ]; then
533 echo "Warning:user http haven't uid=51. Corect this before install apache" 1>&2
537 /usr/sbin/useradd -u 51 -r -d /home/httpd -s /bin/false -c "HTTP User" -g http http 1>&2
538 if [ -f /var/db/passwd.db ]; then
539 /usr/bin/update-db 1>&2
544 /sbin/chkconfig --add httpd
545 %{_sbindir}/apxs -e -a -n access %{_libexecdir}/mod_access.so 1>&2
546 %{_sbindir}/apxs -e -a -n alias %{_libexecdir}/mod_alias.so 1>&2
547 %{_sbindir}/apxs -e -a -n asis %{_libexecdir}/mod_asis.so 1>&2
548 %{_sbindir}/apxs -e -a -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
549 %{_sbindir}/apxs -e -a -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
550 %{_sbindir}/apxs -e -a -n cgi %{_libexecdir}/mod_cgi.so 1>&2
551 %{_sbindir}/apxs -e -a -n env %{_libexecdir}/mod_env.so 1>&2
552 %{_sbindir}/apxs -e -a -n include %{_libexecdir}/mod_include.so 1>&2
553 %{_sbindir}/apxs -e -a -n log_agent %{_libexecdir}/mod_log_agent.so 1>&2
554 %{_sbindir}/apxs -e -a -n log_config %{_libexecdir}/mod_log_config.so 1>&2
555 %{_sbindir}/apxs -e -a -n log_referer %{_libexecdir}/mod_log_referer.so 1>&2
556 %{_sbindir}/apxs -e -a -n mime_magic %{_libexecdir}/mod_mime_magic.so 1>&2
557 %{_sbindir}/apxs -e -a -n mime %{_libexecdir}/mod_mime.so 1>&2
558 %{_sbindir}/apxs -e -a -n negotiation %{_libexecdir}/mod_negotiation.so 1>&2
559 %{_sbindir}/apxs -e -a -n setenvif %{_libexecdir}/mod_setenvif.so 1>&2
560 %{_sbindir}/apxs -e -a -n speling %{_libexecdir}/mod_speling.so 1>&2
561 %{_sbindir}/apxs -e -a -n userdir %{_libexecdir}/mod_userdir.so 1>&2
563 touch /var/log/httpd/{access,error,agent,referer}_log
564 if [ -f /var/lock/subsys/httpd ]; then
565 /etc/rc.d/init.d/httpd restart 1>&2
567 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
571 if [ "$1" = "0" ]; then
572 %{_sbindir}/apxs -e -A -n access %{_libexecdir}/mod_access.so 1>&2
573 %{_sbindir}/apxs -e -A -n alias %{_libexecdir}/mod_alias.so 1>&2
574 %{_sbindir}/apxs -e -A -n asis %{_libexecdir}/mod_asis.so 1>&2
575 %{_sbindir}/apxs -e -A -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
576 %{_sbindir}/apxs -e -A -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
577 %{_sbindir}/apxs -e -A -n cgi %{_libexecdir}/mod_cgi.so 1>&2
578 %{_sbindir}/apxs -e -A -n env %{_libexecdir}/mod_env.so 1>&2
579 %{_sbindir}/apxs -e -A -n include %{_libexecdir}/mod_include.so 1>&2
580 %{_sbindir}/apxs -e -A -n log_agent %{_libexecdir}/mod_log_agent.so 1>&2
581 %{_sbindir}/apxs -e -A -n log_config %{_libexecdir}/mod_log_config.so 1>&2
582 %{_sbindir}/apxs -e -A -n log_referer %{_libexecdir}/mod_log_referer.so 1>&2
583 %{_sbindir}/apxs -e -A -n mime %{_libexecdir}/mod_mime.so 1>&2
584 %{_sbindir}/apxs -e -A -n mime_magic %{_libexecdir}/mod_mime_magic.so 1>&2
585 %{_sbindir}/apxs -e -A -n negotiation %{_libexecdir}/mod_negotiation.so 1>&2
586 %{_sbindir}/apxs -e -A -n setenvif %{_libexecdir}/mod_setenvif.so 1>&2
587 %{_sbindir}/apxs -e -A -n speling %{_libexecdir}/mod_speling.so 1>&2
588 %{_sbindir}/apxs -e -A -n userdir %{_libexecdir}/mod_userdir.so 1>&2
589 if [ -f /var/lock/subsys/httpd ]; then
590 /etc/rc.d/init.d/httpd stop 1>&2
592 /sbin/chkconfig --del httpd
596 if [ "$1" = "0" ]; then
597 /usr/sbin/userdel http
598 if [ -f /var/db/passwd.db ]; then
601 /usr/sbin/groupdel http
602 if [ -f /var/db/group.db ]; then
608 %{_sbindir}/apxs -e -a -n actions %{_libexecdir}/mod_actions.so 1>&2
609 if [ -f /var/lock/subsys/httpd ]; then
610 /etc/rc.d/init.d/httpd restart 1>&2
612 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
616 if [ "$1" = "0" ]; then
617 %{_sbindir}/apxs -e -A -n actions %{_libexecdir}/mod_actions.so 1>&2
618 if [ -f /var/lock/subsys/httpd ]; then
619 /etc/rc.d/init.d/httpd restart 1>&2
624 %{_sbindir}/apxs -e -a -n auth %{_libexecdir}/mod_auth.so 1>&2
625 if [ -f /var/lock/subsys/httpd ]; then
626 /etc/rc.d/init.d/httpd restart 1>&2
628 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
632 if [ "$1" = "0" ]; then
633 %{_sbindir}/apxs -e -A -n auth %{_libexecdir}/mod_auth.so 1>&2
634 if [ -f /var/lock/subsys/httpd ]; then
635 /etc/rc.d/init.d/httpd restart 1>&2
640 %{_sbindir}/apxs -e -a -n auth_anon %{_libexecdir}/mod_auth_anon.so 1>&2
641 if [ -f /var/lock/subsys/httpd ]; then
642 /etc/rc.d/init.d/httpd restart 1>&2
644 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
648 if [ "$1" = "0" ]; then
649 %{_sbindir}/apxs -e -A -n auth_anon %{_libexecdir}/mod_auth_anon.so 1>&2
650 if [ -f /var/lock/subsys/httpd ]; then
651 /etc/rc.d/init.d/httpd restart 1>&2
656 %{_sbindir}/apxs -e -a -n auth_db %{_libexecdir}/mod_auth_db.so 1>&2
657 if [ -f /var/lock/subsys/httpd ]; then
658 /etc/rc.d/init.d/httpd restart 1>&2
660 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
664 if [ "$1" = "0" ]; then
665 %{_sbindir}/apxs -e -A -n auth_db %{_libexecdir}/mod_auth_db.so 1>&2
666 if [ -f /var/lock/subsys/httpd ]; then
667 /etc/rc.d/init.d/httpd restart 1>&2
672 %{_sbindir}/apxs -e -a -n define %{_libexecdir}/mod_define.so 1>&2
673 if [ -f /var/lock/subsys/httpd ]; then
674 /etc/rc.d/init.d/httpd restart 1>&2
676 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
680 if [ "$1" = "0" ]; then
681 %{_sbindir}/apxs -e -A -n define %{_libexecdir}/mod_define.so 1>&2
682 if [ -f /var/lock/subsys/httpd ]; then
683 /etc/rc.d/init.d/httpd restart 1>&2
688 %{_sbindir}/apxs -e -a -n digest %{_libexecdir}/mod_digest.so 1>&2
689 if [ -f /var/lock/subsys/httpd ]; then
690 /etc/rc.d/init.d/httpd restart 1>&2
692 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
696 if [ "$1" = "0" ]; then
697 %{_sbindir}/apxs -e -A -n digest %{_libexecdir}/mod_digest.so 1>&2
698 if [ -f /var/lock/subsys/httpd ]; then
699 /etc/rc.d/init.d/httpd restart 1>&2
704 %{_sbindir}/apxs -e -a -n dir %{_libexecdir}/mod_dir.so 1>&2
705 if [ -f /var/lock/subsys/httpd ]; then
706 /etc/rc.d/init.d/httpd restart 1>&2
708 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
712 if [ "$1" = "0" ]; then
713 %{_sbindir}/apxs -e -A -n dir %{_libexecdir}/mod_dir.so 1>&2
714 if [ -f /var/lock/subsys/httpd ]; then
715 /etc/rc.d/init.d/httpd restart 1>&2
720 %{_sbindir}/apxs -e -a -n expires %{_libexecdir}/mod_expires.so 1>&2
721 if [ -f /var/lock/subsys/httpd ]; then
722 /etc/rc.d/init.d/httpd restart 1>&2
724 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
728 if [ "$1" = "0" ]; then
729 %{_sbindir}/apxs -e -A -n expires %{_libexecdir}/mod_expires.so 1>&2
730 if [ -f /var/lock/subsys/httpd ]; then
731 /etc/rc.d/init.d/httpd restart 1>&2
736 %{_sbindir}/apxs -e -a -n headers %{_libexecdir}/mod_headers.so 1>&2
737 if [ -f /var/lock/subsys/httpd ]; then
738 /etc/rc.d/init.d/httpd restart 1>&2
740 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
744 if [ "$1" = "0" ]; then
745 %{_sbindir}/apxs -e -A -n headers %{_libexecdir}/mod_headers.so 1>&2
746 if [ -f /var/lock/subsys/httpd ]; then
747 /etc/rc.d/init.d/httpd restart 1>&2
751 %post mod_mmap_static
752 %{_sbindir}/apxs -e -a -n mmap_static %{_libexecdir}/mod_mmap_static.so 1>&2
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."
759 %preun mod_mmap_static
760 if [ "$1" = "0" ]; then
761 %{_sbindir}/apxs -e -A -n mmap_static %{_libexecdir}/mod_mmap_static.so 1>&2
762 if [ -f /var/lock/subsys/httpd ]; then
763 /etc/rc.d/init.d/httpd restart 1>&2
768 %{_sbindir}/apxs -e -a -n imap %{_libexecdir}/mod_imap.so 1>&2
769 if [ -f /var/lock/subsys/httpd ]; then
770 /etc/rc.d/init.d/httpd restart 1>&2
772 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
776 if [ "$1" = "0" ]; then
777 %{_sbindir}/apxs -e -A -n imap %{_libexecdir}/mod_imap.so 1>&2
778 if [ -f /var/lock/subsys/httpd ]; then
779 /etc/rc.d/init.d/httpd restart 1>&2
784 %{_sbindir}/apxs -e -a -n info %{_libexecdir}/mod_info.so 1>&2
785 if [ -f /var/lock/subsys/httpd ]; then
786 /etc/rc.d/init.d/httpd restart 1>&2
788 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
792 if [ "$1" = "0" ]; then
793 %{_sbindir}/apxs -e -A -n info %{_libexecdir}/mod_info.so 1>&2
794 if [ -f /var/lock/subsys/httpd ]; then
795 /etc/rc.d/init.d/httpd restart 1>&2
800 %{_sbindir}/apxs -e -a -n proxy %{_libexecdir}/libproxy.so 1>&2
801 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_proxy.conf" /etc/httpd/httpd.conf; then
802 echo "Include /etc/httpd/mod_proxy.conf" >> /etc/httpd/httpd.conf
804 if [ -f /var/lock/subsys/httpd ]; then
805 /etc/rc.d/init.d/httpd restart 1>&2
807 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
811 if [ "$1" = "0" ]; then
812 %{_sbindir}/apxs -e -A -n proxy %{_libexecdir}/libproxy.so 1>&2
813 grep -v -q "^Include.*mod_proxy.conf" /etc/httpd/httpd.conf > \
814 /etc/httpd/httpd.conf.tmp
815 mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
816 if [ -f /var/lock/subsys/httpd ]; then
817 /etc/rc.d/init.d/httpd restart 1>&2
822 %{_sbindir}/apxs -e -a -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
823 if [ -f /var/lock/subsys/httpd ]; then
824 /etc/rc.d/init.d/httpd restart 1>&2
826 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
830 if [ "$1" = "0" ]; then
831 %{_sbindir}/apxs -e -A -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
832 if [ -f /var/lock/subsys/httpd ]; then
833 /etc/rc.d/init.d/httpd restart 1>&2
838 %{_sbindir}/apxs -e -a -n status %{_libexecdir}/mod_status.so 1>&2
839 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_status.conf" /etc/httpd/httpd.conf; then
840 echo "Include /etc/httpd/mod_status.conf" >> /etc/httpd/httpd.conf
842 if [ -f /var/lock/subsys/httpd ]; then
843 /etc/rc.d/init.d/httpd restart 1>&2
845 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
849 if [ "$1" = "0" ]; then
850 %{_sbindir}/apxs -e -A -n status %{_libexecdir}/mod_status.so 1>&2
851 grep -v -q "^Include.*mod_status.conf" /etc/httpd/httpd.conf > \
852 /etc/httpd/httpd.conf.tmp
853 mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
854 if [ -f /var/lock/subsys/httpd ]; then
855 /etc/rc.d/init.d/httpd restart 1>&2
860 %{_sbindir}/apxs -e -a -n usertrack %{_libexecdir}/mod_usertrack.so 1>&2
861 if [ -f /var/lock/subsys/httpd ]; then
862 /etc/rc.d/init.d/httpd restart 1>&2
864 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
868 if [ "$1" = "0" ]; then
869 %{_sbindir}/apxs -e -A -n usertrack %{_libexecdir}/mod_usertrack.so 1>&2
870 if [ -f /var/lock/subsys/httpd ]; then
871 /etc/rc.d/init.d/httpd restart 1>&2
876 %{_sbindir}/apxs -e -a -n unique_id %{_libexecdir}/mod_unique_id.so 1>&2
877 if [ -f /var/lock/subsys/httpd ]; then
878 /etc/rc.d/init.d/httpd restart 1>&2
880 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
884 if [ "$1" = "0" ]; then
885 %{_sbindir}/apxs -e -A -n unique_id %{_libexecdir}/mod_unique_id.so 1>&2
886 if [ -f /var/lock/subsys/httpd ]; then
887 /etc/rc.d/init.d/httpd restart 1>&2
891 %post mod_vhost_alias
892 %{_sbindir}/apxs -e -a -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
893 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_vhost_alias.conf" /etc/httpd/httpd.conf; then
894 echo "Include /etc/httpd/mod_vhost_alias.conf" >> /etc/httpd/httpd.conf
896 if [ -f /var/lock/subsys/httpd ]; then
897 /etc/rc.d/init.d/httpd restart 1>&2
899 echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
902 %preun mod_vhost_alias
903 if [ "$1" = "0" ]; then
904 %{_sbindir}/apxs -e -A -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
905 grep -v -q "^Include.*mod_vhost_alias.conf" /etc/httpd/httpd.conf > \
906 /etc/httpd/httpd.conf.tmp
907 mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
908 if [ -f /var/lock/subsys/httpd ]; then
909 /etc/rc.d/init.d/httpd restart 1>&2
914 rm -rf $RPM_BUILD_ROOT
917 %defattr(644,root,root,755)
918 %doc ABOUT_APACHE.gz src/CHANGES.gz KEYS.gz README.gz
921 %dir %{_datadir}/manual
922 %dir %{_datadir}/manual/images/
923 %{_datadir}/manual/images/sub.gif
924 %{_datadir}/manual/images/index.gif
925 %{_datadir}/manual/images/home.gif
926 %{_datadir}/manual/misc
927 %dir %{_datadir}/manual/search
928 %attr(755,root,root) %{_datadir}/manual/search/manual-index.cgi
929 %{_datadir}/manual/vhosts
930 %{_datadir}/manual/LICENSE
931 %{_datadir}/manual/bind.html
932 %{_datadir}/manual/cgi_path.html
933 %{_datadir}/manual/content-negotiation.html
934 %{_datadir}/manual/custom-error.html
935 %{_datadir}/manual/dns-caveats.html
936 %{_datadir}/manual/dso.html
937 %{_datadir}/manual/env.html
938 %{_datadir}/manual/footer.html
939 %{_datadir}/manual/handler.html
940 %{_datadir}/manual/header.html
941 %{_datadir}/manual/index.html
942 %{_datadir}/manual/install.html
943 %{_datadir}/manual/invoking.html
944 %{_datadir}/manual/keepalive.html
945 %{_datadir}/manual/location.html
946 %{_datadir}/manual/multilogs.html
947 %{_datadir}/manual/new_features_1_3.html
948 %{_datadir}/manual/process-model.html
949 %{_datadir}/manual/sections.html
950 %{_datadir}/manual/sourcereorg.html
951 %{_datadir}/manual/suexec.html
952 %{_datadir}/manual/upgrading_to_1_3.html
953 %dir %{_datadir}/manual/mod
954 %{_datadir}/manual/mod/core.html
955 %{_datadir}/manual/mod/directive-dict.html
956 %{_datadir}/manual/mod/directives.html
957 %{_datadir}/manual/mod/footer.html
958 %{_datadir}/manual/mod/header.html
959 %{_datadir}/manual/mod/index.html
960 %{_datadir}/manual/mod/mod_access.html
961 %{_datadir}/manual/mod/mod_alias.html
962 %{_datadir}/manual/mod/mod_asis.html
963 %{_datadir}/manual/mod/mod_autoindex.html
964 %{_datadir}/manual/mod/mod_cgi.html
965 %{_datadir}/manual/mod/mod_cookies.html
966 %{_datadir}/manual/mod/mod_env.html
967 %{_datadir}/manual/mod/mod_include.html
968 %{_datadir}/manual/mod/mod_log_agent.html
969 %{_datadir}/manual/mod/mod_log_config.html
970 %{_datadir}/manual/mod/mod_log_referer.html
971 %{_datadir}/manual/mod/mod_mime.html
972 %{_datadir}/manual/mod/mod_mime_magic.html
973 %{_datadir}/manual/mod/mod_negotiation.html
974 %{_datadir}/manual/mod/mod_setenvif.html
975 %{_datadir}/manual/mod/mod_speling.html
976 %{_datadir}/manual/mod/mod_userdir.html
978 %attr(754,root,root) /etc/rc.d/init.d/httpd
980 %attr(750,root,root) %dir %{_sysconfdir}
981 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf
982 %attr(640,root,root) %{_sysconfdir}/magic
984 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/*
985 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/*
987 %attr(755,root,root) %dir %{_datadir}/html
988 %config(noreplace) %{_datadir}/html/index.html
989 %lang(ca) %{_datadir}/html/index.html.ca
990 %lang(cz) %{_datadir}/html/index.html.cz
991 %lang(de) %{_datadir}/html/index.html.de
992 %lang(dk) %{_datadir}/html/index.html.dk
993 %lang(ee) %{_datadir}/html/index.html.ee
994 %lang(en) %{_datadir}/html/index.html.en
995 %lang(es) %{_datadir}/html/index.html.es
996 %lang(fr) %{_datadir}/html/index.html.fr
997 %lang(it) %{_datadir}/html/index.html.it
998 %lang(lu) %{_datadir}/html/index.html.lu
999 %lang(nl) %{_datadir}/html/index.html.nl
1000 %lang(pt) %{_datadir}/html/index.html.pt
1001 %lang(se) %{_datadir}/html/index.html.se
1003 %{_datadir}/html/*.gif
1004 %{_datadir}/errordocs
1005 %dir %{_datadir}/icons
1006 %{_datadir}/icons/*.gif
1007 %dir %{_datadir}/icons/small
1008 %{_datadir}/icons/small/*.gif
1009 %attr(755,root,root) %{_datadir}/cgi-bin
1012 %attr(755,root,root) %{_libexecdir}/mod_access.so
1013 %attr(755,root,root) %{_libexecdir}/mod_alias.so
1014 %attr(755,root,root) %{_libexecdir}/mod_asis.so
1015 %attr(755,root,root) %{_libexecdir}/mod_autoindex.so
1016 %attr(755,root,root) %{_libexecdir}/mod_cern_meta.so
1017 %attr(755,root,root) %{_libexecdir}/mod_cgi.so
1018 %attr(755,root,root) %{_libexecdir}/mod_env.so
1019 %attr(755,root,root) %{_libexecdir}/mod_include.so
1020 %attr(755,root,root) %{_libexecdir}/mod_log_agent.so
1021 %attr(755,root,root) %{_libexecdir}/mod_log_config.so
1022 %attr(755,root,root) %{_libexecdir}/mod_log_referer.so
1023 %attr(755,root,root) %{_libexecdir}/mod_mime.so
1024 %attr(755,root,root) %{_libexecdir}/mod_mime_magic.so
1025 %attr(755,root,root) %{_libexecdir}/mod_negotiation.so
1026 %attr(755,root,root) %{_libexecdir}/mod_setenvif.so
1027 %attr(755,root,root) %{_libexecdir}/mod_speling.so
1028 %attr(755,root,root) %{_libexecdir}/mod_userdir.so
1030 %attr(755,root,root) %{_bindir}/htdigest
1032 %attr(755,root,root) %{_sbindir}/ab
1033 %attr(755,root,root) %{_sbindir}/apachectl
1034 %attr(755,root,root) %{_sbindir}/apxs
1035 %attr(755,root,root) %{_sbindir}/httpd
1036 %attr(755,root,root) %{_sbindir}/logresolve
1037 %attr(755,root,root) %{_sbindir}/rotatelogs
1039 %dir %attr(750,http,http) /var/lib/apache
1041 %{_mandir}/man1/htdigest.1*
1044 %attr(750,root,root) %dir /var/log/httpd
1045 %attr(750,root,root) %dir /var/log/archiv/httpd
1046 %attr(640,root,root) %ghost /var/log/httpd/*
1049 %defattr(644,root,root,755)
1050 %attr(4755,root,root) %{_sbindir}/suexec
1053 %defattr(644,root,root,755)
1057 %defattr(644,root,root,755)
1058 %attr(755,root,root) %{_libexecdir}/mod_actions.so
1059 %{_datadir}/manual/mod/mod_actions.html
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_libexecdir}/mod_auth.so
1064 %{_datadir}/manual/mod/mod_auth.html
1066 %files mod_auth_anon
1067 %defattr(644,root,root,755)
1068 %attr(755,root,root) %{_libexecdir}/mod_auth_anon.so
1069 %{_datadir}/manual/mod/mod_auth_anon.html
1072 %defattr(644,root,root,755)
1073 %attr(755,root,root) %{_libexecdir}/mod_auth_db.so
1074 %attr(755,root,root) %{_bindir}/dbmmanage
1075 %attr(755,root,root) %{_bindir}/htpasswd
1076 %{_datadir}/manual/mod/mod_auth_db.html
1077 %{_mandir}/man1/dbmmanage.1*
1078 %{_mandir}/man1/htpasswd.1*
1081 %defattr(644,root,root,755)
1082 %attr(755,root,root) %{_libexecdir}/mod_define.so
1083 %{_datadir}/manual/mod/mod_define.html
1086 %defattr(644,root,root,755)
1087 %attr(755,root,root) %{_libexecdir}/mod_digest.so
1088 %{_datadir}/manual/mod/mod_digest.html
1091 %defattr(644,root,root,755)
1092 %attr(755,root,root) %{_libexecdir}/mod_dir.so
1093 %{_datadir}/manual/mod/mod_dir.html
1096 %defattr(644,root,root,755)
1097 %attr(755,root,root) %{_libexecdir}/mod_expires.so
1098 %{_datadir}/manual/mod/mod_expires.html
1101 %defattr(644,root,root,755)
1102 %attr(755,root,root) %{_libexecdir}/mod_headers.so
1103 %{_datadir}/manual/mod/mod_headers.html
1105 %files mod_mmap_static
1106 %defattr(644,root,root,755)
1107 %attr(755,root,root) %{_libexecdir}/mod_mmap_static.so
1108 %{_datadir}/manual/mod/mod_mmap_static.html
1111 %defattr(644,root,root,755)
1112 %attr(755,root,root) %{_libexecdir}/mod_imap.so
1113 %{_datadir}/manual/mod/mod_imap.html
1116 %defattr(644,root,root,755)
1117 %attr(755,root,root) %{_libexecdir}/mod_info.so
1118 %{_datadir}/manual/mod/mod_info.html
1121 %defattr(644,root,root,755)
1122 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_proxy.conf
1123 %attr(755,root,root) %{_libexecdir}/libproxy.so
1124 %{_datadir}/manual/mod/mod_proxy.html
1125 %dir %attr(750,http,http) /var/cache/apache
1128 %defattr(644,root,root,755)
1129 %attr(755,root,root) %{_libexecdir}/mod_rewrite.so
1130 %{_datadir}/manual/mod/mod_rewrite.html
1133 %defattr(644,root,root,755)
1134 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_status.conf
1135 %attr(755,root,root) %{_libexecdir}/mod_status.so
1136 %{_datadir}/manual/mod/mod_status.html
1138 %files mod_usertrack
1139 %defattr(644,root,root,755)
1140 %attr(755,root,root) %{_libexecdir}/mod_usertrack.so
1141 %{_datadir}/manual/mod/mod_usertrack.html
1143 %files mod_unique_id
1144 %defattr(644,root,root,755)
1145 %attr(755,root,root) %{_libexecdir}/mod_unique_id.so
1146 %{_datadir}/manual/mod/mod_unique_id.html
1148 %files mod_vhost_alias
1149 %defattr(644,root,root,755)
1150 %attr(755,root,root) %{_libexecdir}/mod_vhost_alias.so
1151 %{_datadir}/manual/mod/mod_vhost_alias.html
1152 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_vhost_alias.conf