]> git.pld-linux.org Git - packages/apache.git/blob - apache.spec
- ifmodule around mod_cache directives
[packages/apache.git] / apache.spec
1 # _without_ssl  - don't build with SSL support
2 # _with_ldap    - build with LDAP support
3 # TODO:
4 # - mod_case_filter
5 # - mod_case_filter_in
6 # - mod_optional_fn_{export,import}
7 # - mod_optional_hook_{export,import}
8 # - mod_ext_filter
9 # - mod_echo
10 # - config examples for mod_*
11 # - switch from worker to perchild when it will be working in apache
12 # - check if all modules are (de)registered in %%post/%%postun
13 # - find smart way to deregister module if its moved from main package to subpackage (maybe test -f ?)
14 # - add %%post/%%postun to suexec
15 # - --with-suexec-gidmin=500 or =100 ?
16 # - --with-suexec-uidmin=500 or =1000 ?
17 # - multiple MPM support in subpackages like apache-mpm-worker, apache-mpm-prefork
18 #   and so on. See SuSE 9 apache rpm for idea how to do this.
19 #
20 %include        /usr/lib/rpm/macros.perl
21 # this is internal macro, don't change to %%apache_modules_api
22 %define         _apache_modules_api 20020903
23 Summary:        The most widely used Web server on the Internet
24 Summary(de):    Leading World Wide Web-Server
25 Summary(es):    Servidor HTTPD para proveer servicios WWW
26 Summary(fr):    Le serveur web le plus utilise sur Internet
27 Summary(pl):    Serwer WWW (World Wide Web)
28 Summary(pt_BR): Servidor HTTPD para prover serviços WWW
29 Summary(ru):    óÁÍÙÊ ÐÏÐÕÌÑÒÎÙÊ ×ÅÂ-ÓÅÒ×ÅÒ
30 Summary(tr):    Lider WWW tarayýcý
31 Name:           apache
32 Version:        2.0.48
33 Release:        0.1.4
34 License:        Apache Group License
35 Group:          Networking/Daemons
36 Source0:        http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz
37 # Source0-md5:  466c63bb71b710d20a5c353df8c1a19c
38 Source1:        %{name}.init
39 Source2:        %{name}.logrotate
40 Source3:        %{name}-icons.tar.gz
41 # Source3-md5:  2b085cbc19fd28536dc883f0b864cd83
42 Source4:        %{name}.sysconfig
43 Source6:        %{name}-httpd.conf
44 Source8:        %{name}-mod_vhost_alias.conf
45 Source9:        %{name}-mod_status.conf
46 Source10:       %{name}-mod_proxy.conf
47 Source11:       %{name}-mod_info.conf
48 Source12:       %{name}-mod_ssl.conf
49 Source13:       %{name}-mod_dav.conf
50 Source14:       %{name}-mod_dir.conf
51 Source20:       %{name}-server.crt
52 Source21:       %{name}-server.key
53 Patch0:         %{name}-configdir_skip_backups.patch
54 Patch1:         %{name}-layout.patch
55 Patch2:         %{name}-suexec.patch
56 Patch3:         %{name}-nolibs.patch
57 Patch4:         %{name}-apr.patch
58 # taken from suse. project homepage http://www.metux.de/mpm/en/?patpage=index
59 Patch5:         httpd-2.0.47-metuxmpm-r6.diff
60 Patch6:         %{name}-posix_syntax
61 URL:            http://httpd.apache.org/
62 BuildRequires:  automake
63 BuildRequires:  apr-devel >= 1:0.9.4-1
64 BuildRequires:  apr-util-devel >= 1:0.9.5-0.3
65 BuildRequires:  db-devel
66 BuildRequires:  expat-devel
67 BuildRequires:  gdbm-devel >= 1.8.3
68 BuildRequires:  libtool >= 1.5
69 %{?_with_ldap:BuildRequires:    openldap-devel}
70 %{!?_without_ssl:BuildRequires: openssl-devel >= 0.9.7c}
71 %{!?_without_ssl:BuildRequires: openssl-tools >= 0.9.7c}
72 BuildRequires:  perl-devel >= 5.004
73 BuildRequires:  rpm-perlprov >= 4.0.4
74 BuildRequires:  zlib-devel
75 PreReq:         perl-base
76 PreReq:         rc-scripts
77 Requires(pre):  /bin/id
78 Requires(pre):  /usr/bin/getgid
79 Requires(pre):  /usr/sbin/groupadd
80 Requires(pre):  /usr/sbin/useradd
81 Requires(postun):       /usr/sbin/userdel
82 Requires(postun):       /usr/sbin/groupdel
83 Requires(post,preun):   /sbin/chkconfig
84 Requires(post,postun):  /sbin/ldconfig
85 Requires(post): fileutils
86 Requires:       apr-util >= 1:0.9.4-1
87 Requires:       /etc/mime.types
88 Requires:       mailcap
89 Requires:       psmisc >= 20.1
90 Provides:       httpd = %{version}
91 Provides:       webserver = %{version}
92 Provides:       apache(modules-api) = %{_apache_modules_api}
93 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
94 Obsoletes:      apache-extra
95 Obsoletes:      apache-doc
96 Obsoletes:      apache6
97 Obsoletes:      apache1
98 Obsoletes:      indexhtml
99
100 %define         _sysconfdir     /etc/httpd
101 %define         _includedir     %{_prefix}/include/apache
102 %define         _datadir        /home/services/httpd
103 %define         _libexecdir     %{_libdir}/apache
104
105 %description
106 Apache is a powerful, full-featured, efficient and freely-available
107 Web server. Apache is also the most popular Web server on the
108 Internet.
109
110 %description -l de
111 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
112 erhältlich und weit verbreitet ist.
113
114 %description -l es
115 El servidor web Apache es el mejor servidor gratuito disponible en el
116 mundo UNIX hoy. Usa HTTP (HyperText Transfer Protocol) para permitir
117 que browsers web vean documentos y sometan datos remotamente. Puede
118 ejecutar varias funciones diferentes, incluyendo funciones de proxy y
119 caché, y nos ofrece características como monitor de estado, conversión
120 dinámica de tipo, y otras más.
121
122 %description -l fr
123 Apache est un serveur Web puissant, efficace, gratuit et complet.
124 Apache est aussi le serveur Web le plus populaire sur Internet.
125
126 %description -l pl
127 Apache jest serwerem WWW (World Wide Web). Instaluj±c ten pakiet
128 bêdziesz móg³ prezentowaæ w³asne strony WWW w sieci internet.
129
130 %description -l pt_BR
131 O servidor web Apache é o melhor servidor gratuito disponível no mundo
132 UNIX hoje. Ele usa HTTP (HyperText Transfer Protocol) para permitir
133 que browsers web vejam documentos e submetam dados remotamente. Ele
134 pode executar várias funções diferentes, incluindo funções de proxy e
135 cache, e oferece características como monitor de status, conversão
136 dinâmica de tipo, e mais.
137
138 %description -l ru
139 Apache - ÍÏÝÎÙÊ, ÆÕÎËÃÉÏÎÁÌØÎÙÊ, ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ É Ó×ÏÂÏÄÎÏ
140 ÒÁÓÐÒÏÓÔÒÁÎÑÅÍÙÊ ×ÅÂ-ÓÅÒ×ÅÒ.
141
142 %description -l tr
143 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web
144 sunucusudur.
145
146 %package suexec
147 Summary:        Apache suexec wrapper
148 Summary(pl):    Wrapper suexec do serwera WWW Apache
149 Group:          Development/Tools
150 Requires:       %{name} = %{version}
151
152 %description suexec
153 The suEXEC feature provides Apache users the ability to run CGI and
154 SSI programs under user IDs different from the user ID of the calling
155 web-server. Normally, when a CGI or SSI program executes, it runs as
156 the same user who is running the web server.
157
158 %description suexec -l pl
159 SuEXEC umo¿liwia serwerowi Apache uruchamianie programów CGI i SSI z
160 innym UID ni¿ wywo³uj±cy je serwer. Normalnie programy CGI i SSI s±
161 wykonywane jako taki sam u¿ytkownik jak serwer WWW.
162
163 %package index
164 Summary:        Apache index.html* files
165 Summary(pl):    Pliki Apache index.html*
166 Group:          Documentation
167 Requires:       %{name} = %{version}
168
169 %description index
170 Apache index.html* files.
171
172 %description index -l pl
173 Pliki Apache index.html*.
174
175 %package devel
176 Summary:        Module development tools for the Apache web server
177 Summary(es):    Archivos de inclusión del Apache para desarrollo de módulos
178 Summary(fr):    Les outils de developpement de modules pour le serveur web Apache
179 Summary(pl):    Pliki nag³ówkowe do tworzenia modu³ów rozszerzeñ do serwera WWW Apache
180 Summary(pt_BR): Arquivos de inclusão do Apache para desenvolvimento de módulos
181 Summary(ru):    óÒÅÄÓÔ×Á ÒÁÚÒÁÂÏÔËÉ ÍÏÄÕÌÅÊ ÄÌÑ ×ÅÂ-ÓÅÒ×ÅÒÁ Apache
182 Group:          Networking/Utilities
183 Requires:       %{name} = %{version}
184 Requires:       apr-util-devel >= 1:0.9.4
185 Requires:       libtool
186 Obsoletes:      %{name}-static
187
188 %description devel
189 The apache-devel package contains header files for Apache.
190
191 %description devel -l es
192 Este paquete contiene los archivos de inclusión para el Apache, bien
193 como el utilitario apxs para la construcción de objetos compartidos
194 dinámicos (DSOs). Ha ce falta instalar este paquete si deseas compilar
195 o desarrollar módulos adicionales para Apache.
196
197 %description devel -l fr
198 Le package apache-devel contient le code source pour le serveur Web
199 Apache et le binaire APXS dont vous aurez besoin pour construire des
200 Objets Dynamiques Partages (DSOs) pour Apache.
201
202 %description devel -l pl
203 Pliki nag³ówkowe i inne zasoby niezbêdne przy budowaniu modu³ów DSO
204 (Dynamic Shared Objects) dla Apache.
205
206 %description devel -l ru
207 óÒÅÄÓÔ×Á ÒÁÚÒÁÂÏÔËÉ ÍÏÄÕÌÅÊ ÄÌÑ ×ÅÂ-ÓÅÒ×ÅÒÁ Apache.
208
209 %description devel -l pt_BR
210 Este pacote contem os arquivos de inclusão para o Apache, bem como o
211 utilitário apxs para a construção de objetos compartilhados dinâmicos
212 (DSOs). Este pacote precisa ser instalado se você deseja compilar ou
213 desenvolver módulos adicionais para o Apache.
214
215 %package mod_actions
216 Summary:        Apache module for run CGI whenever a file of a certain type is requested
217 Summary(pl):    Modu³ Apache'a do uruchamiania skryptów CGI
218 Group:          Networking/Daemons
219 Requires:       %{name} = %{version}
220
221 %description mod_actions
222 This package contains mod_actions module. This module lets you run CGI
223 scripts whenever a file of a certain type is requested. This makes it
224 much easier to execute scripts that process files.
225
226 %description mod_actions -l pl
227 Ten modu³ pozwala na uruchamianie skryptów w momencie gdy nadchodzi
228 ¿±danie pobrania pliku okre¶lonego typu.
229
230 %package mod_auth
231 Summary:        Apache module with user authentication using textual files
232 Summary(pl):    Modu³ Apache'a identyfikuj±cy u¿ytkowników na podstawie plików tekstowych
233 Group:          Networking/Daemons
234 Requires:       %{name} = %{version}
235
236 %description mod_auth
237 This package contains mod_auth module. It provides for user
238 authentication using textual files.
239
240 %description mod_auth -l pl
241 Ten pakiet zawiera modu³ mod_auth. S³u¿y on do sprawdzania to¿samo¶ci
242 u¿ytkowników na podstawie plików tekstowych.
243
244 %package mod_auth_anon
245 Summary:        Apache module with "anonymous" user access authentication
246 Summary(pl):    Modu³ Apache'a oferuj±cy autoryzacjê u¿ytkownika "anonimowego"
247 Group:          Networking/Daemons
248 Requires:       %{name} = %{version}
249
250 %description mod_auth_anon
251 This package contains mod_auth_anon module. It allows "anonymous" user
252 access to authenticated areas. It does access control in a manner
253 similar to anonymous-ftp sites; i.e. have a 'magic' user id
254 'anonymous' and the email address as a password. These email addresses
255 can be logged. Combined with other (database) access control methods,
256 this allows for effective user tracking and customization according to
257 a user profile while still keeping the site open for 'unregistered'
258 users. One advantage of using Auth-based user tracking is that, unlike
259 magic-cookies and funny URL pre/postfixes, it is completely browser
260 independent and it allows users to share URLs.
261
262 %description mod_auth_anon -l pl
263 Ten modu³ oferuje autoryzacjê u¿ytkownika "anonimowego" podobnie do
264 anonimowych serwerów FTP (u¿ytkownik "anonymous" oraz has³o w postaci
265 adresu pocztowego u¿ytkownika).
266
267 %package mod_auth_ldap
268 Summary:        Apache module with LDAP user access authentication
269 Summary(pl):    Modu³ Apache'a oferuj±cy autoryzacjê u¿ytkowników poprzez LDAP
270 Group:          Networking/Daemons
271 Requires:       %{name} = %{version}
272
273 %description mod_auth_ldap
274 Apache module with LDAP user access authentication.
275
276 %description mod_auth_ldap -l pl
277 Modu³ Apache'a oferuj±cy autoryzacjê u¿ytkowników poprzez LDAP
278
279 %package mod_auth_dbm
280 Summary:        Apache module with user authentication which uses DBM files
281 Summary(pl):    Modu³ Apache'a z mechanizmem identyfikacji korzystaj±cym z plików DBM
282 Group:          Networking/Daemons
283 Obsoletes:      %{name}-mod_auth_db
284 Requires:       %{name} = %{version}
285
286 %description mod_auth_dbm
287 This module provides for HTTP Basic Authentication, where the
288 usernames and passwords are stored in DBM type database files. It is
289 an alternative to the plain text password files provided by mod_auth.
290
291 %description mod_auth_dbm -l pl
292 Ten modu³ udostêpnia Prost± Autoryzacjê HTTP, gdzie u¿ytkownicy oraz
293 ich has³a s± trzymane w plikach bazy typu DBM.
294
295 %package mod_auth_digest
296 Summary:        Apache user authentication module using MD5 Digest Authentication
297 Summary(pl):    Modu³ Apache'a do autoryzacji MD5
298 Group:          Networking/Daemons
299 Obsoletes:      apache-mod_digest
300 Requires:       %{name} = %{version}
301
302 %description mod_auth_digest
303 This package contains mod_digest module. It provides user
304 authentication using MD5 Digest Authentication.
305
306 %description mod_auth_digest -l pl
307 Modu³ ten dostarcza metodê autoryzacji bazuj±c± na MD5 Digest
308 Authentication.
309
310 %package mod_cache
311 Summary:        Content cache keyed to URIs
312 Summary(pl):    Pamiêæ podrêczna wg klucza URI
313 Group:          Networking/Daemons
314 Requires:       %{name} = %{version}
315
316 %description mod_cache
317 mod_cache implements an RFC 2616 compliant HTTP content cache that can
318 be used to cache either local or proxied content. Two storage
319 management modules are included in the base Apache distribution:
320 mod_disk_cache implements a disk based storage manager (generally used
321 for proxy caching) and mod_mem_cache implements an in-memory based
322 storage manager (primarily useful for caching local content).
323
324 %description mod_cache -l pl
325 Implementacja zgodnej z RFC 2616 pamiêci podrêcznej, która mo¿e byæ
326 u¿ywana do zapamiêtywania zawarto¶ci lokalnej lub dostêpnej przez
327 proxy. Do³±czono dwa modu³y pozwalaj±ce magazynowaæ dane w pamiêci
328 (g³ównie u¿yteczne przy cacheowaniu lokalnej zawarto¶ci) oraz na dysku
329 (u¿ywane do cacheowania proxy).
330
331 %package mod_cgid
332 Summary:        Execution of CGI scripts using an external CGI daemon
333 Summary(pl):    Uruchamianie zewnêtrznych skryptów CGI za pomoc± daemona CGI
334 Group:          Networking/Daemons
335 Requires:       %{name} = %{version}
336
337 %description mod_cgid
338 Execution of CGI scripts using an external CGI daemon.
339
340 %description mod_cgid -l pl
341 Uruchamianie zewnêtrznych skryptów CGI za pomoc± demona CGI.
342
343 %package mod_charset_lite
344 Summary:        Specify character set translation or recoding
345 Summary(pl):    Translacja lub przekodowywanie znaków
346 Group:          Networking/Daemons
347 Requires:       %{name} = %{version}
348
349 %description mod_charset_lite
350 Specify character set translation or recoding.
351
352 %description mod_charset_lite -l pl
353 Translacja lub przekodowywanie znaków.
354
355 %package mod_dav
356 Summary:        Apache module - Distributed Authoring and Versioning
357 Summary(pl):    Modu³ Apache'a - rozproszone autorstwo i wersjonowanie
358 Group:          Networking/Daemons
359 Requires:       %{name} = %{version}
360
361 %description mod_dav
362 This module provides class 1 and class 2 WebDAV ('Web-based
363 Distributed Authoring and Versioning') functionality for Apache. This
364 extension to the HTTP protocol allows creating, moving, copying, and
365 deleting resources and collections on a remote web server.
366
367 %description mod_dav -l pl
368 Modu³ udostêpnia klasê 1 oraz klasê 2 WebDAV (Bazuj±cego na WWW
369 rozproszonego autorstwa i wersjonowania). To rozszerzenie HTTP pozwala
370 na tworzenie, przesuwanie, kopiowanie oraz kasowanie zasobów na
371 zdalnym serwerze WWW.
372
373 %package mod_deflate
374 Summary:        Apache module: Compress content before it is delivered to the client
375 Summary(pl):    Modu³ Apache'a kompresuj±cy dane przed przes³aniem ich do klienta
376 Group:          Networking/Daemons
377 Requires:       %{name} = %{version}
378
379 %description mod_deflate
380 Compress content before it is delivered to the client.
381
382 %description mod_deflate -l pl
383 Modu³ kompresuj±cy dane przed przes³aniem ich do klienta.
384
385 %package mod_dir
386 Summary:        Apache module for "trailing slash" redirects and serving directory index files
387 Summary(pl):    Modu³ Apache'a oferuj±cy przekierowania i udostêpnianie informacji o zawarto¶ci katalogu
388 Group:          Networking/Daemons
389 Requires:       %{name} = %{version}
390
391 %description mod_dir
392 This package contains mod_dir which provides "trailing slash"
393 redirects and serving directory index files.
394
395 %description mod_dir -l pl
396 Modu³ oferuj±cy przekierowania i udostêpnianie informacji o zawarto¶ci
397 katalogu.
398
399 %package mod_headers
400 Summary:        Apache module allows for the customization of HTTP response headers
401 Summary(pl):    Modu³ Apache'a pozwalaj±cy na modyfikacjê nag³ówków HTTP
402 Group:          Networking/Daemons
403 Requires:       %{name} = %{version}
404
405 %description mod_headers
406 This package contains mod_headers module. The module allows for the
407 customization of HTTP response headers. Headers can be merged,
408 replaced or removed.
409
410 %description mod_headers -l pl
411 Modu³ pozwalaj±cy na ³±czenie, usuwania, zamianê nag³ówków HTTP
412 wysy³anych do przegl±darki.
413
414 %package mod_imap
415 Summary:        Apache module with imap-file handler
416 Summary(pl):    Modu³ Apache'a z obs³ug± imap-file
417 Group:          Networking/Daemons
418 Requires:       %{name} = %{version}
419
420 %description mod_imap
421 This package contains mod_imap module. It provides for .map files,
422 replacing the functionality of the imagemap CGI program. Any directory
423 or document type configured to use the handler imap-file.
424
425 %description mod_imap -l pl
426 Modu³ umo¿liwiaj±cy obs³ugê plików .map (imap-file handler).
427
428 %package mod_info
429 Summary:        Apache module with comprehensive overview of the server configuration
430 Summary(pl):    Modu³ Apache'a udostêpniaj±cy informacje o serwerze
431 Group:          Networking/Daemons
432 Requires:       %{name} = %{version}
433
434 %description mod_info
435 This package contains mod_info module. It provides a comprehensive
436 overview of the server configuration including all installed modules
437 and directives in the configuration files.
438
439 %description mod_info -l pl
440 Modu³ udostêpniaj±cy informacje o konfiguracji serwera,
441 zainstalowanych modu³ach itp.
442
443 %package mod_ldap
444 Summary:        Apache module to use LDAP connections
445 Summary(pl):    Modu³ Apache'a umo¿liwiaj±cy korzystanie z po³±czeñ LDAP
446 Group:          Networking/Daemons
447 Requires:       %{name} = %{version}
448
449 %description mod_ldap
450 Apache module to use LDAP connections.
451
452 %description mod_ldap -l pl
453 Modu³ Apache'a umo¿liwiaj±cy korzystanie z po³±czeñ LDAP.
454
455 %package mod_proxy
456 Summary:        Apache module with Web proxy
457 Summary(pl):    Modu³ Apache'a dodaj±cy obs³ugê serwera proxy
458 Group:          Networking/Daemons
459 Requires:       %{name} = %{version}
460
461 %description mod_proxy
462 This package contains module with implementation a proxy/cache for
463 Apache. It implements proxying capability for FTP, CONNECT (for SSL),
464 HTTP/0.9, HTTP/1.0 and HTTP/1.1. The module can be configured to
465 connect to other proxy modules for these and other protocols.
466
467 %description mod_proxy -l pl
468 Modu³ zawiera implementacjê serwera proxy/cache dla Apache.
469 Implementacja zawiera obs³ugê FTP, CONNECT (dla SSL), HTTP/0.9,
470 HTTP/1.0 i HTTP/1.1.
471
472 %package mod_rewrite
473 Summary:        Apache module with rule-based engine for rewrite requested URLs on the fly
474 Summary(pl):    Modu³ Apache'a do "przepisywania" adresów URL w locie
475 Group:          Networking/Daemons
476 Requires:       %{name} = %{version}
477
478 %description mod_rewrite
479 This package contains It provides a rule-based rewriting engine to
480 rewrite requested URLs on the fly.
481
482 %description mod_rewrite -l pl
483 Modu³ oferuj±cy mo¿liwo¶æ "przepisywania" adresów URL w locie.
484
485 %package mod_ssl
486 Summary:        SSL/TLS module for the Apache HTTP server
487 Summary(pl):    Modu³ SSL/TSL dla serwera Apache
488 Summary(ru):    íÏÄÕÌØ SSL/TLS ÄÌÑ ×ÅÂ-ÓÅÒ×ÅÒÁ Apache
489 Group:          Networking/Daemons
490 Epoch:          1
491 Requires:       %{name} = %{version}
492
493 %description mod_ssl
494 The mod_ssl module provides strong cryptography for the Apache Web
495 server via the Secure Sockets Layer (SSL) and Transport Layer Security
496 (TLS) protocols.
497
498 %description mod_ssl -l pl
499 Modu³ mod_ssl udostêpnia wsparcie do silnej kryptografii dla serwera
500 Apache poprzez protoko³y SSL/TSL (Secure Sockets Layer/Transport Layer
501 Security).
502
503 %description mod_ssl -l ru
504 íÏÄÕÌØ mod_ssl ÏÂÅÓÐÅÞÉ×ÁÅÔ ÐÏÄÄÅÒÖËÕ × ×ÅÂ-ÓÅÒ×ÅÒÅ Apache ÎÁÄÅÖÎÏÇÏ
505 ÛÉÆÒÏ×ÁÎÉÑ ÓÒÅÄÓÔ×ÁÍÉ Secure Sockets Layer (SSL) É Transport Layer
506
507 %package mod_status
508 Summary:        Server status report module for Apache
509 Summary(pl):    Modu³ udostêpniaj±cy informacje statystyczne z serwera Apache
510 Group:          Networking/Daemons
511 Requires:       %{name} = %{version}
512
513 %description mod_status
514 The Status module allows a server administrator to find out how well
515 their server is performing. A HTML page is presented that gives the
516 current server statistics in an easily readable form. If required this
517 page can be made to automatically refresh (given a compatible
518 browser).
519
520 %description mod_status -l pl
521 Modu³ pozwala administratorowi na przegl±danie statystyk dotycz±cych
522 pracy serwera apache (w postaci strony HTML).
523
524 %package mod_usertrack
525 Summary:        Apache module for user tracking using cookies
526 Summary(pl):    Modu³ Apache'a s³u¿±cy do ¶ledzenia "ciasteczek"
527 Group:          Networking/Daemons
528 Requires:       %{name} = %{version}
529
530 %description mod_usertrack
531 This package contains the user tracking module which did its own
532 logging using CookieLog directory. This module allow multiple log
533 files.
534
535 %description mod_usertrack -l pl
536 Modu³ pozwalaj±cy na ¶ledzenie "ciasteczek".
537
538 %package mod_vhost_alias
539 Summary:        Apache module for dynamically configured mass virtual hosting
540 Summary(pl):    Modu³ Apache'a dodaj±cy obs³ugê hostów wirtualnych
541 Group:          Networking/Daemons
542 Requires:       %{name} = %{version}
543
544 %description mod_vhost_alias
545 This package contains the mod_vhost_alias. It provides support for
546 dynamically configured mass virtual hosting.
547
548 %description mod_vhost_alias -l pl
549 Modu³ umo¿liwia na dynamiczne konfigurowanie masowej ilo¶ci serwerów
550 wirtualnych.
551
552 %package mod_unique_id
553 Summary:        Apache module which provides a magic token for each request
554 Summary(pl):    Modu³ Apache'a nadaj±cy ka¿demu zapytaniu unikalny token
555 Group:          Networking/Daemons
556 Requires:       %{name} = %{version}
557
558 %description mod_unique_id
559 This package contains the mod_unique_id. This module provides a magic
560 token for each request which is guaranteed to be unique across "all"
561 requests under very specific conditions. The unique identifier is even
562 unique across multiple machines in a properly configured cluster of
563 machines. The environment variable UNIQUE_ID is set to the identifier
564 for each request. Unique identifiers are useful for various reasons
565 which are beyond the scope of this document.
566
567 %description mod_unique_id -l pl
568 Modu³ nadaje ka¿demu zapytaniu token unikalny w ramach wszystkich
569 zapytañ, nawet w ramach poprawnie skonfigurowanego klastra z wielu
570 maszyn. Modu³ ustawia przy ka¿dym zapytaniu zmienn± ¶rodowiskow±
571 UNIQUE_ID.
572
573 %package mod_expires
574 Summary:        Apache module which generates Expires HTTP headers
575 Summary(pl):    Modu³ Apache'a generuj±cy nag³ówki HTTP Expires
576 Group:          Networking/Daemons
577 Requires:       %{name} = %{version}
578
579 %description mod_expires
580 This module controls the setting of the Expires HTTP header in server
581 responses. The expiration date can set to be relative to either the
582 time the source file was last modified, or to the time of the client
583 access.
584
585 %description mod_expires -l pl
586 Modu³ kontroluje ustawianie nag³ówka HTTP Expires. Data wyga¶niêcia
587 wa¿no¶ci mo¿e byæ ustalana w zale¿no¶ci od czasu modyfikacji plików
588 ¼ród³owych lub odwo³ania klienta.
589
590 %package mod_file_cache
591 Summary:        Apache module: caches a static list of files in memory
592 Summary(pl):    Modu³ Apache'a cache'uj±cy statyczn± listê plików w pamiêci
593 Group:          Networking/Daemons
594 Obsoletes:      %{name}-mmap_static
595 Requires:       %{name} = %{version}
596
597 %description mod_file_cache
598 Caches a static list of files in memory.
599
600 %description mod_file_cache -l pl
601 Modu³ cache'uj±cy statyczn± listê plików w pamiêci.
602
603 %prep
604 %setup -q -n httpd-%{version}
605 %patch0 -p1
606 %patch1 -p1
607 %patch2 -p1
608 %patch3 -p1
609 %patch4 -p1
610 %patch6 -p1
611 #%patch5 -p1
612
613 %build
614 # sanity check
615 MODULES_API=`awk '/#define MODULE_MAGIC_NUMBER_MAJOR/ {print $3}' include/ap_mmn.h`
616 if [ "$MODULES_API" != "%_apache_modules_api" ]; then
617         echo "Set %%_apache_modules_api to $MODILES_API and rerun."
618         exit 1
619 fi
620 ./buildconf
621 # Before configure; fix location of build dir in generated apxs
622 %{__perl} -pi -e "s:\@exp_installbuilddir\@:%{_libdir}/apache/build:g" \
623         support/apxs.in
624 install /usr/share/automake/config.* build/
625 %configure \
626         --prefix=%{_libexecdir} \
627         --enable-layout=PLD \
628         --enable-modules=all \
629         --enable-mods-shared=all \
630         --enable-auth-anon       \
631         --enable-auth-dbm \
632         --enable-auth-digest \
633         --enable-file-cache \
634         --enable-echo \
635         --enable-cache \
636         --enable-charset-lite \
637         --enable-mem-cache \
638         --enable-disk-cache \
639         --enable-ext-filter \
640         --enable-case-filter \
641         --enable-case-filter-in \
642         --enable-deflate \
643         --with-z=%{_prefix} \
644         --enable-mime-magic \
645         --enable-cern-meta \
646         --enable-expires \
647         --enable-headers \
648         --enable-usertrack \
649         --enable-unique-id \
650         --enable-proxy \
651         --enable-proxy-connect \
652         --enable-proxy-ftp \
653         --enable-proxy-http \
654         %{!?_without_ssl:--enable-ssl} \
655         --enable-optional-hook-export \
656         --enable-optional-hook-import \
657         --enable-optional-fn-import \
658         --enable-optional-fn-export \
659         %{?_with_ldap:--enable-ldap} \
660         %{?_with_ldap:--enable-auth-ldap} \
661         --enable-dav \
662         --enable-info \
663         --enable-suexec \
664         --enable-cgi \
665         --enable-cgid \
666         --enable-dav-fs \
667         --enable-vhost-alias \
668         --enable-speling \
669         --enable-rewrite \
670         --enable-so \
671         --with-mpm=worker \
672         --with-suexec-bin=%{_sbindir}/suexec \
673         --with-suexec-caller=http \
674         --with-suexec-docroot=%{_datadir} \
675         --with-suexec-logfile=/var/log/httpd/suexec_log \
676         --with-suexec-uidmin=500 \
677         --with-suexec-gidmin=500 \
678         --with-suexec-umask=077 \
679         --with-apr=%{_bindir} \
680         --with-apr-util=%{_bindir}
681
682 %{__make}
683
684 %install
685 rm -rf $RPM_BUILD_ROOT
686 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
687         $RPM_BUILD_ROOT%{_var}/{log/{httpd,archiv/httpd},{run,cache}/apache}
688
689 %{__make} install \
690         DESTDIR=$RPM_BUILD_ROOT \
691         installbuilddir=%{_sysconfdir}/build \
692         prefix=%{_sysconfdir}/httpd \
693         libexecdir=%{_libdir}/%{name} \
694         iconsdir=%{_datadir}/icons \
695         errordir=%{_datadir}/error \
696         htdocsdir=%{_datadir}/html \
697         manualdir=%{_datadir}/manual \
698         cgidir=%{_datadir}/cgi-bin \
699         runtimedir=%{_var}/run \
700         logdir=%{_var}/log/httpd \
701         proxycachedir=%{_var}/cache/httpd
702
703 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
704 install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
705
706 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/build \
707         $RPM_BUILD_ROOT%{_libexecdir}/build
708
709 perl -pi -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_libexecdir}/build/*
710 perl -pi -e "s#$RPM_BUILD_DIR#%{_usrsrc}#g" $RPM_BUILD_ROOT%{_libexecdir}/build/*
711 perl -pi -e "s#-pthread#-lpthread#g" $RPM_BUILD_ROOT%{_libdir}/lib*.la
712 perl -pi -e 's#/etc/httpd/build#%{_libexecdir}/build#g' $RPM_BUILD_ROOT%{_libexecdir}/build/*
713 ln -sf %{_bindir}/libtool $RPM_BUILD_ROOT%{_libexecdir}/build/libtool
714 ln -sf %{_libexecdir}/build $RPM_BUILD_ROOT%{_sysconfdir}/build
715
716 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
717 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
718 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/apache
719
720 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer,suexec}_log
721
722 %if %{?_without_ssl:0}%{!?_without_ssl:1}
723 install -d $RPM_BUILD_ROOT%{_sysconfdir}/ssl
724 install %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/ssl/server.crt
725 install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/ssl/server.key
726 %endif
727
728 CFG="$RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/"
729
730 install %{SOURCE6}  $CFG/10_httpd.conf
731 install %{SOURCE8}  $CFG/20_mod_vhost_alias.conf
732 install %{SOURCE9}  $CFG/25_mod_status.conf
733 install %{SOURCE10} $CFG/30_mod_proxy.conf
734 install %{SOURCE11} $CFG/35_mod_info.conf
735 install %{SOURCE12} $CFG/40_mod_ssl.conf
736 install %{SOURCE13} $CFG/45_mod_dav.conf
737 install %{SOURCE14} $CFG/59_mod_dir.conf
738
739 echo "LoadModule ldap_module       %{_libexecdir}/mod_ldap.so" > $CFG/49_mod_ldap.conf
740 echo "LoadModule actions_module       %{_libexecdir}/mod_actions.so" > $CFG/50_mod_actions.conf
741 echo "LoadModule auth_module          %{_libexecdir}/mod_auth.so" > $CFG/51_mod_auth.conf
742 echo "LoadModule auth_anon_module     %{_libexecdir}/mod_auth_anon.so" > $CFG/52_mod_auth_anon.conf
743 echo "LoadModule auth_dbm_module      %{_libexecdir}/mod_auth_dbm.so" > $CFG/53_mod_auth_dbm.conf
744 echo "LoadModule auth_digest_module   %{_libexecdir}/mod_auth_digest.so" > $CFG/54_mod_auth_digest.conf
745 echo "LoadModule cache_module         %{_libexecdir}/mod_cache.so
746 LoadModule mem_cache_module     %{_libexecdir}/mod_mem_cache.so
747 LoadModule disk_cache_module    %{_libexecdir}/mod_disk_cache.so" > $CFG/55_mod_cache.conf
748 echo "LoadModule cgid_module          %{_libexecdir}/mod_cgid.so" > $CFG/56_mod_cgid.conf
749 echo "LoadModule charset_lite_module  %{_libexecdir}/mod_charset_lite.so" > $CFG/57_mod_charset_lite.conf
750 echo "LoadModule deflate_module       %{_libexecdir}/mod_deflate.so" > $CFG/58_mod_deflate.conf
751 echo "LoadModule auth_ldap_module     %{_libexecdir}/mod_auth_ldap.so" > $CFG/59_mod_auth_ldap.conf
752 echo "LoadModule expires_module       %{_libexecdir}/mod_expires.so" > $CFG/60_mod_expires.conf
753 echo "LoadModule file_cache_module    %{_libexecdir}/mod_file_cache.so" > $CFG/61_mod_file_cache.conf
754 echo "LoadModule headers_module       %{_libexecdir}/mod_headers.so" > $CFG/62_mod_headers.conf
755 echo "LoadModule imap_module          %{_libexecdir}/mod_imap.so" > $CFG/63_mod_imap.conf
756 echo "LoadModule rewrite_module       %{_libexecdir}/mod_rewrite.so" > $CFG/64_mod_rewrite.conf
757 echo "LoadModule usertrack_module     %{_libexecdir}/mod_usertrack.so" > $CFG/65_mod_usertrack.conf
758 echo "LoadModule unique_id_module     %{_libexecdir}/mod_unique_id.so" > $CFG/66_mod_unique_id.conf
759
760 ln -sf index.html.en $RPM_BUILD_ROOT%{_datadir}/html/index.html
761
762 %clean
763 rm -rf $RPM_BUILD_ROOT
764
765 %pre
766 if [ -n "`getgid http`" ]; then
767         if [ "`getgid http`" != "51" ]; then
768                 echo "Error: group http doesn't have gid=51. Correct this before installing apache." 1>&2
769                 exit 1
770         fi
771 else
772         /usr/sbin/groupadd -g 51 -r -f http
773 fi
774 if [ -n "`id -u http 2>/dev/null`" ]; then
775         if [ "`id -u http`" != "51" ]; then
776                 echo "Error: user http doesn't have uid=51. Correct this before installing apache." 1>&2
777                 exit 1
778         fi
779 else
780         /usr/sbin/useradd -u 51 -r -d /home/services/httpd -s /bin/false -c "HTTP User" -g http http 1>&2
781 fi
782
783 %post
784 /sbin/ldconfig
785 /sbin/chkconfig --add httpd
786 umask 137
787 touch /var/log/httpd/{access,error,agent,referer}_log
788 if [ -f /var/lock/subsys/httpd ]; then
789         /etc/rc.d/init.d/httpd restart 1>&2
790 else
791         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
792 fi
793
794 %preun
795 if [ "$1" = "0" ]; then
796         if [ -f /var/lock/subsys/httpd ]; then
797                 /etc/rc.d/init.d/httpd stop 1>&2
798         fi
799         /sbin/chkconfig --del httpd
800 fi
801
802 %postun
803 /sbin/ldconfig
804 if [ "$1" = "0" ]; then
805         /usr/sbin/userdel http
806         /usr/sbin/groupdel http
807 fi
808
809 %post mod_actions
810 if [ -f /var/lock/subsys/httpd ]; then
811         /etc/rc.d/init.d/httpd restart 1>&2
812 else
813         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
814 fi
815
816 %preun mod_actions
817 if [ "$1" = "0" ]; then
818         if [ -f /var/lock/subsys/httpd ]; then
819                 /etc/rc.d/init.d/httpd restart 1>&2
820         fi
821 fi
822
823 %post mod_auth
824 if [ -f /var/lock/subsys/httpd ]; then
825         /etc/rc.d/init.d/httpd restart 1>&2
826 else
827         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
828 fi
829
830 %preun mod_auth
831 if [ "$1" = "0" ]; then
832         if [ -f /var/lock/subsys/httpd ]; then
833                 /etc/rc.d/init.d/httpd restart 1>&2
834         fi
835 fi
836
837 %post mod_auth_anon
838 if [ -f /var/lock/subsys/httpd ]; then
839         /etc/rc.d/init.d/httpd restart 1>&2
840 else
841         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
842 fi
843
844 %preun mod_auth_anon
845 if [ "$1" = "0" ]; then
846         if [ -f /var/lock/subsys/httpd ]; then
847                 /etc/rc.d/init.d/httpd restart 1>&2
848         fi
849 fi
850
851 %post mod_auth_dbm
852 if [ -f /var/lock/subsys/httpd ]; then
853         /etc/rc.d/init.d/httpd restart 1>&2
854 else
855         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
856 fi
857
858 %preun mod_auth_dbm
859 if [ "$1" = "0" ]; then
860         if [ -f /var/lock/subsys/httpd ]; then
861                 /etc/rc.d/init.d/httpd restart 1>&2
862         fi
863 fi
864
865 %post mod_cache
866 if [ -f /var/lock/subsys/httpd ]; then
867         /etc/rc.d/init.d/httpd restart 1>&2
868 else
869         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
870 fi
871
872 %preun mod_cache
873 if [ "$1" = "0" ]; then
874         if [ -f /var/lock/subsys/httpd ]; then
875                 /etc/rc.d/init.d/httpd restart 1>&2
876         fi
877 fi
878
879 %post mod_cgid
880 if [ -f /var/lock/subsys/httpd ]; then
881         /etc/rc.d/init.d/httpd restart 1>&2
882 else
883         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
884 fi
885
886 %preun mod_cgid
887 if [ "$1" = "0" ]; then
888         if [ -f /var/lock/subsys/httpd ]; then
889                 /etc/rc.d/init.d/httpd restart 1>&2
890         fi
891 fi
892
893 %post mod_charset_lite
894 if [ -f /var/lock/subsys/httpd ]; then
895         /etc/rc.d/init.d/httpd restart 1>&2
896 else
897         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
898 fi
899
900 %preun mod_charset_lite
901 if [ "$1" = "0" ]; then
902         if [ -f /var/lock/subsys/httpd ]; then
903                 /etc/rc.d/init.d/httpd restart 1>&2
904         fi
905 fi
906
907 %post mod_dav
908 if [ -f /var/lock/subsys/httpd ]; then
909         /etc/rc.d/init.d/httpd restart 1>&2
910 else
911         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
912 fi
913
914 %preun mod_dav
915 if [ "$1" = "0" ]; then
916         if [ -f /var/lock/subsys/httpd ]; then
917                 /etc/rc.d/init.d/httpd restart 1>&2
918         fi
919 fi
920
921 %post mod_auth_digest
922 if [ -f /var/lock/subsys/httpd ]; then
923         /etc/rc.d/init.d/httpd restart 1>&2
924 else
925         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
926 fi
927
928 %preun mod_auth_digest
929 if [ "$1" = "0" ]; then
930         if [ -f /var/lock/subsys/httpd ]; then
931                 /etc/rc.d/init.d/httpd restart 1>&2
932         fi
933 fi
934
935 %post mod_deflate
936 if [ -f /var/lock/subsys/httpd ]; then
937         /etc/rc.d/init.d/httpd restart 1>&2
938 else
939         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
940 fi
941
942 %preun mod_deflate
943 if [ "$1" = "0" ]; then
944         if [ -f /var/lock/subsys/httpd ]; then
945                 /etc/rc.d/init.d/httpd restart 1>&2
946         fi
947 fi
948
949 %post mod_dir
950 if [ -f /var/lock/subsys/httpd ]; then
951         /etc/rc.d/init.d/httpd restart 1>&2
952 else
953         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
954 fi
955
956 %preun mod_dir
957 if [ "$1" = "0" ]; then
958         if [ -f /var/lock/subsys/httpd ]; then
959                 /etc/rc.d/init.d/httpd restart 1>&2
960         fi
961 fi
962
963 %post mod_expires
964 if [ -f /var/lock/subsys/httpd ]; then
965         /etc/rc.d/init.d/httpd restart 1>&2
966 else
967         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
968 fi
969
970 %preun mod_expires
971 if [ "$1" = "0" ]; then
972         if [ -f /var/lock/subsys/httpd ]; then
973                 /etc/rc.d/init.d/httpd restart 1>&2
974         fi
975 fi
976
977 %post mod_file_cache
978 if [ -f /var/lock/subsys/httpd ]; then
979         /etc/rc.d/init.d/httpd restart 1>&2
980 else
981         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
982 fi
983
984 %preun mod_file_cache
985 if [ "$1" = "0" ]; then
986         if [ -f /var/lock/subsys/httpd ]; then
987                 /etc/rc.d/init.d/httpd restart 1>&2
988         fi
989 fi
990
991 %post mod_headers
992 if [ -f /var/lock/subsys/httpd ]; then
993         /etc/rc.d/init.d/httpd restart 1>&2
994 else
995         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
996 fi
997
998 %preun mod_headers
999 if [ "$1" = "0" ]; then
1000         if [ -f /var/lock/subsys/httpd ]; then
1001                 /etc/rc.d/init.d/httpd restart 1>&2
1002         fi
1003 fi
1004
1005 %post mod_imap
1006 if [ -f /var/lock/subsys/httpd ]; then
1007         /etc/rc.d/init.d/httpd restart 1>&2
1008 else
1009         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1010 fi
1011
1012 %preun mod_imap
1013 if [ "$1" = "0" ]; then
1014         if [ -f /var/lock/subsys/httpd ]; then
1015                 /etc/rc.d/init.d/httpd restart 1>&2
1016         fi
1017 fi
1018
1019 %post mod_info
1020 if [ -f /var/lock/subsys/httpd ]; then
1021         /etc/rc.d/init.d/httpd restart 1>&2
1022 else
1023         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1024 fi
1025
1026 %preun mod_info
1027 if [ "$1" = "0" ]; then
1028         if [ -f /var/lock/subsys/httpd ]; then
1029                 /etc/rc.d/init.d/httpd restart 1>&2
1030         fi
1031 fi
1032
1033 %post mod_proxy
1034 if [ -f /var/lock/subsys/httpd ]; then
1035         /etc/rc.d/init.d/httpd restart 1>&2
1036 else
1037         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1038 fi
1039
1040 %preun mod_proxy
1041 if [ "$1" = "0" ]; then
1042         if [ -f /var/lock/subsys/httpd ]; then
1043                 /etc/rc.d/init.d/httpd restart 1>&2
1044         fi
1045 fi
1046
1047 %post mod_rewrite
1048 if [ -f /var/lock/subsys/httpd ]; then
1049         /etc/rc.d/init.d/httpd restart 1>&2
1050 else
1051         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1052 fi
1053
1054 %preun mod_rewrite
1055 if [ "$1" = "0" ]; then
1056         if [ -f /var/lock/subsys/httpd ]; then
1057                 /etc/rc.d/init.d/httpd restart 1>&2
1058         fi
1059 fi
1060
1061 %post mod_ssl
1062 if [ -f /var/lock/subsys/httpd ]; then
1063         /etc/rc.d/init.d/httpd restart 1>&2
1064 else
1065         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1066 fi
1067
1068 %preun mod_ssl
1069 if [ "$1" = "0" ]; then
1070         if [ -f /var/lock/subsys/httpd ]; then
1071                 /etc/rc.d/init.d/httpd restart 1>&2
1072         fi
1073 fi
1074
1075 %post mod_status
1076 if [ -f /var/lock/subsys/httpd ]; then
1077         /etc/rc.d/init.d/httpd restart 1>&2
1078 else
1079         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1080 fi
1081
1082 %preun mod_status
1083 if [ "$1" = "0" ]; then
1084         if [ -f /var/lock/subsys/httpd ]; then
1085                 /etc/rc.d/init.d/httpd restart 1>&2
1086         fi
1087 fi
1088
1089 %post mod_usertrack
1090 if [ -f /var/lock/subsys/httpd ]; then
1091         /etc/rc.d/init.d/httpd restart 1>&2
1092 else
1093         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1094 fi
1095
1096 %preun mod_usertrack
1097 if [ "$1" = "0" ]; then
1098         if [ -f /var/lock/subsys/httpd ]; then
1099                 /etc/rc.d/init.d/httpd restart 1>&2
1100         fi
1101 fi
1102
1103 %post mod_unique_id
1104 if [ -f /var/lock/subsys/httpd ]; then
1105         /etc/rc.d/init.d/httpd restart 1>&2
1106 else
1107         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1108 fi
1109
1110 %preun mod_unique_id
1111 if [ "$1" = "0" ]; then
1112         if [ -f /var/lock/subsys/httpd ]; then
1113                 /etc/rc.d/init.d/httpd restart 1>&2
1114         fi
1115 fi
1116
1117 %post mod_vhost_alias
1118 if [ -f /var/lock/subsys/httpd ]; then
1119         /etc/rc.d/init.d/httpd restart 1>&2
1120 else
1121         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1122 fi
1123
1124 %preun mod_vhost_alias
1125 if [ "$1" = "0" ]; then
1126         if [ -f /var/lock/subsys/httpd ]; then
1127                 /etc/rc.d/init.d/httpd restart 1>&2
1128         fi
1129 fi
1130
1131 %files
1132 %defattr(644,root,root,755)
1133 %doc ABOUT_APACHE CHANGES README
1134 %doc docs/conf/mime.types
1135
1136 %attr(754,root,root) /etc/rc.d/init.d/httpd
1137
1138 %attr(750,root,root) %dir %{_sysconfdir}
1139 %attr(750,root,root) %dir %{_sysconfdir}/httpd.conf
1140 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_httpd.conf
1141 %attr(640,root,root) %{_sysconfdir}/magic
1142 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/*
1143 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/*
1144
1145 %dir %{_libexecdir}
1146 %attr(755,root,root) %{_libexecdir}/mod_access.so
1147 %attr(755,root,root) %{_libexecdir}/mod_alias.so
1148 %attr(755,root,root) %{_libexecdir}/mod_asis.so
1149 %attr(755,root,root) %{_libexecdir}/mod_autoindex.so
1150 %attr(755,root,root) %{_libexecdir}/mod_cern_meta.so
1151 %attr(755,root,root) %{_libexecdir}/mod_cgi.so
1152 %attr(755,root,root) %{_libexecdir}/mod_env.so
1153 %attr(755,root,root) %{_libexecdir}/mod_include.so
1154 %attr(755,root,root) %{_libexecdir}/mod_log_config.so
1155 %attr(755,root,root) %{_libexecdir}/mod_mime.so
1156 %attr(755,root,root) %{_libexecdir}/mod_mime_magic.so
1157 %attr(755,root,root) %{_libexecdir}/mod_negotiation.so
1158 %attr(755,root,root) %{_libexecdir}/mod_setenvif.so
1159 %attr(755,root,root) %{_libexecdir}/mod_speling.so
1160 %attr(755,root,root) %{_libexecdir}/mod_userdir.so
1161
1162 # look at TODO on top
1163 %attr(755,root,root) %{_libexecdir}/mod_case_filter.so
1164 %attr(755,root,root) %{_libexecdir}/mod_case_filter_in.so
1165 %attr(755,root,root) %{_libexecdir}/mod_echo.so
1166 %attr(755,root,root) %{_libexecdir}/mod_ext_filter.so
1167 %attr(755,root,root) %{_libexecdir}/mod_optional_fn_export.so
1168 %attr(755,root,root) %{_libexecdir}/mod_optional_fn_import.so
1169 %attr(755,root,root) %{_libexecdir}/mod_optional_hook_export.so
1170 %attr(755,root,root) %{_libexecdir}/mod_optional_hook_import.so
1171
1172 %attr(755,root,root) %{_sbindir}/htdigest
1173
1174 %attr(755,root,root) %{_sbindir}/ab
1175 %attr(755,root,root) %{_sbindir}/apachectl
1176 %attr(755,root,root) %{_sbindir}/apxs
1177 %attr(755,root,root) %{_sbindir}/checkgid
1178 %attr(755,root,root) %{_sbindir}/httpd
1179 %attr(755,root,root) %{_sbindir}/logresolve
1180 %attr(755,root,root) %{_sbindir}/rotatelogs
1181 %attr(755,root,root) %{_sbindir}/envvars*
1182
1183 %dir %attr(770,root,http) /var/run/apache
1184
1185 %{_mandir}/man1/htdigest.1*
1186 %{_mandir}/man8/*
1187
1188 %attr(750,root,root) %dir /var/log/httpd
1189 %attr(750,root,root) %dir /var/log/archiv/httpd
1190 %attr(640,root,root) %ghost /var/log/httpd/*
1191
1192 %dir %{_datadir}
1193 %dir %{_datadir}/manual
1194 %{_datadir}/manual/LICENSE
1195 %{_datadir}/manual/*.xml
1196 %{_datadir}/manual/*.html.en
1197 %lang(ja) %{_datadir}/manual/*.html.ja.jis
1198 %lang(ja) %{_datadir}/manual/*.xml.ja
1199 %lang(ko) %{_datadir}/manual/*.html.ko.euc-kr
1200 %lang(de) %{_datadir}/manual/*.html.de
1201 %lang(fr) %{_datadir}/manual/*.html.fr
1202 %{_datadir}/manual/developer
1203 %{_datadir}/manual/faq
1204 %dir %{_datadir}/manual/howto
1205 %doc %{_datadir}/manual/howto/*.en
1206 %lang(ja) %{_datadir}/manual/howto/*.ja.jis
1207 %dir %{_datadir}/manual/images
1208 %{_datadir}/manual/images/[achips]*
1209 %{_datadir}/manual/misc
1210 %dir %{_datadir}/manual/mod
1211 %{_datadir}/manual/mod/[cdfhipw]*.html.en
1212 %{_datadir}/manual/mod/[acd]*.xml
1213 %lang(ja) %{_datadir}/manual/mod/[ad]*.xml.ja*
1214 %lang(ja) %{_datadir}/manual/mod/index.html.ja.jis
1215 %lang(ja) %{_datadir}/manual/mod/index.xml.ja
1216 %{_datadir}/manual/mod/index.xml
1217 %{_datadir}/manual/mod/mpm*.html.en
1218 %{_datadir}/manual/mod/mod_access.html.en
1219 %{_datadir}/manual/mod/mod_alias.html.en
1220 %{_datadir}/manual/mod/mod_asis.html.en
1221 %{_datadir}/manual/mod/mod_autoindex.html.en
1222 %{_datadir}/manual/mod/mod_cern_meta.html.en
1223 %{_datadir}/manual/mod/mod_cgi.html.en
1224 %{_datadir}/manual/mod/mod_env.html.en
1225 %{_datadir}/manual/mod/mod_include.html.en
1226 %{_datadir}/manual/mod/mod_log_config.html.en
1227 %{_datadir}/manual/mod/mod_mime*.html.en
1228 %{_datadir}/manual/mod/mod_negotiation.html.en
1229 %{_datadir}/manual/mod/mod_setenvif.html.en
1230 %{_datadir}/manual/mod/mod_speling.html.en
1231 %{_datadir}/manual/mod/mod_userdir.html.en
1232 %{_datadir}/manual/platform
1233 %{_datadir}/manual/programs
1234 %dir %{_datadir}/manual/search
1235 %doc%attr(755,root,root) %{_datadir}/manual/search/manual-index.cgi
1236 %{_datadir}/manual/style
1237
1238 %attr(755,root,root) %dir %{_datadir}/html
1239 %{_datadir}/icons
1240 %attr(755,root,root) %{_datadir}/cgi-bin
1241
1242 %{_datadir}/error
1243
1244 %files suexec
1245 %defattr(644,root,root,755)
1246 %attr(4755,root,root) %{_sbindir}/suexec
1247 %attr(755,root,root) %{_libexecdir}/mod_suexec.so
1248 %{_datadir}/manual/mod/mod_suexec.html.en
1249
1250 %files index
1251 %defattr(644,root,root,755)
1252 %config(noreplace,missingok) %{_datadir}/html/index.html*
1253 %{_datadir}/html/*.gif
1254 %{_datadir}/html/*.png
1255
1256 %files devel
1257 %defattr(644,root,root,755)
1258 %{_includedir}
1259 %{_libexecdir}/*.exp
1260 %attr(755,root,root) %dir %{_libexecdir}/build
1261 %attr(644,root,root) %{_libexecdir}/build/*.mk
1262 %attr(755,root,root) %{_libexecdir}/build/*.sh
1263 %attr(755,root,root) %{_libexecdir}/build/libtool
1264
1265 %files mod_actions
1266 %defattr(644,root,root,755)
1267 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_actions.conf
1268 %attr(755,root,root) %{_libexecdir}/mod_actions.so
1269 %{_datadir}/manual/mod/mod_actions.html.en
1270
1271 %files mod_auth
1272 %defattr(644,root,root,755)
1273 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth.conf
1274 %attr(755,root,root) %{_libexecdir}/mod_auth.so
1275 %attr(755,root,root) %{_sbindir}/htpasswd
1276 %{_datadir}/manual/mod/mod_auth.html.en
1277 %{_mandir}/man1/htpasswd.1*
1278
1279 %files mod_auth_anon
1280 %defattr(644,root,root,755)
1281 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_anon.conf
1282 %attr(755,root,root) %{_libexecdir}/mod_auth_anon.so
1283 %{_datadir}/manual/mod/mod_auth_anon.html.en
1284
1285 %if %{?_with_ldap:1}%{!?_with_ldap:0}
1286 %files mod_auth_ldap
1287 %defattr(644,root,root,755)
1288 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_ldap.conf
1289 %attr(755,root,root) %{_libexecdir}/mod_auth_ldap.so
1290 %{_datadir}/manual/mod/mod_auth_ldap.html.en
1291 %endif
1292
1293 %if %{?_with_ldap:1}%{!?_with_ldap:0}
1294 %files mod_ldap
1295 %defattr(644,root,root,755)
1296 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_ldap.conf
1297 %attr(755,root,root) %{_libexecdir}/mod_ldap.so
1298 %{_datadir}/manual/mod/mod_ldap.html.en
1299 %endif
1300
1301 %files mod_auth_dbm
1302 %defattr(644,root,root,755)
1303 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_dbm.conf
1304 %attr(755,root,root) %{_libexecdir}/mod_auth_dbm.so
1305 %attr(755,root,root) %{_sbindir}/dbmmanage
1306 %attr(755,root,root) %{_sbindir}/htdbm
1307 %{_datadir}/manual/mod/mod_auth_dbm.html.en
1308 %{_mandir}/man1/dbmmanage.1*
1309
1310 %files mod_auth_digest
1311 %defattr(644,root,root,755)
1312 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_digest.conf
1313 %attr(755,root,root) %{_libexecdir}/mod_auth_digest.so
1314 %{_datadir}/manual/mod/mod_auth_digest.html.en
1315
1316 %files mod_cache
1317 %defattr(644,root,root,755)
1318 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_cache.conf
1319 %attr(755,root,root) %{_libexecdir}/mod_cache.so
1320 %attr(755,root,root) %{_libexecdir}/mod_disk_cache.so
1321 %attr(755,root,root) %{_libexecdir}/mod_mem_cache.so
1322 %{_datadir}/manual/mod/mod_cache.html.en
1323
1324 %files mod_cgid
1325 %defattr(644,root,root,755)
1326 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_cgid.conf
1327 %attr(755,root,root) %{_libexecdir}/mod_cgid.so
1328 %{_datadir}/manual/mod/mod_cgid.html.en
1329
1330 %files mod_charset_lite
1331 %defattr(644,root,root,755)
1332 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_charset_lite.conf
1333 %attr(755,root,root) %{_libexecdir}/mod_charset_lite.so
1334 %{_datadir}/manual/mod/mod_charset_lite.html.en
1335
1336 %files mod_dav
1337 %defattr(644,root,root,755)
1338 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_dav.conf
1339 %attr(755,root,root) %{_libexecdir}/mod_dav*.so
1340 %{_datadir}/manual/mod/mod_dav*.html.en
1341
1342 %files mod_deflate
1343 %defattr(644,root,root,755)
1344 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_deflate.conf
1345 %attr(755,root,root) %{_libexecdir}/mod_deflate.so
1346 %{_datadir}/manual/mod/mod_deflate.html.en
1347
1348 %files mod_dir
1349 %defattr(644,root,root,755)
1350 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_dir.conf
1351 %attr(755,root,root) %{_libexecdir}/mod_dir.so
1352 %{_datadir}/manual/mod/mod_dir.html.en
1353
1354 %files mod_expires
1355 %defattr(644,root,root,755)
1356 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_expires.conf
1357 %attr(755,root,root) %{_libexecdir}/mod_expires.so
1358 %{_datadir}/manual/mod/mod_expires.html.en
1359
1360 %files mod_file_cache
1361 %defattr(644,root,root,755)
1362 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_file_cache.conf
1363 %attr(755,root,root) %{_libexecdir}/mod_file_cache.so
1364 %{_datadir}/manual/mod/mod_file_cache.html.en
1365
1366 %files mod_headers
1367 %defattr(644,root,root,755)
1368 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_headers.conf
1369 %attr(755,root,root) %{_libexecdir}/mod_headers.so
1370 %{_datadir}/manual/mod/mod_headers.html.en
1371
1372 %files mod_imap
1373 %defattr(644,root,root,755)
1374 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_imap.conf
1375 %attr(755,root,root) %{_libexecdir}/mod_imap.so
1376 %{_datadir}/manual/mod/mod_imap.html.en
1377
1378 %files mod_info
1379 %defattr(644,root,root,755)
1380 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_info.conf
1381 %attr(755,root,root) %{_libexecdir}/mod_info.so
1382 %{_datadir}/manual/mod/mod_info.html.en
1383
1384 %files mod_proxy
1385 %defattr(644,root,root,755)
1386 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_proxy.conf
1387 %attr(755,root,root) %{_libexecdir}/mod_proxy*.so
1388 %doc %{_datadir}/manual/mod/mod_proxy*.html.en
1389 %attr(770,root,http) /var/cache/apache
1390
1391 %files mod_rewrite
1392 %defattr(644,root,root,755)
1393 %attr(755,root,root) %{_libexecdir}/mod_rewrite.so
1394 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_rewrite.conf
1395 %{_datadir}/manual/mod/mod_rewrite.html.en
1396 %{_datadir}/manual/images/mod_rewrite*
1397
1398 %if %{!?_without_ssl:1}%{?_without_ssl:0}
1399 %files mod_ssl
1400 %defattr(644,root,root,755)
1401 %attr(750,root,root) %dir %{_sysconfdir}/ssl
1402 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ssl/server.*
1403 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_ssl.conf
1404 %attr(755,root,root) %{_libexecdir}/mod_ssl.so
1405 %{_datadir}/manual/ssl
1406 %{_datadir}/manual/mod/mod_ssl.html.en
1407 %endif
1408
1409 %files mod_status
1410 %defattr(644,root,root,755)
1411 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_status.conf
1412 %attr(755,root,root) %{_libexecdir}/mod_status.so
1413 %{_datadir}/manual/mod/mod_status.html.en
1414
1415 %files mod_usertrack
1416 %defattr(644,root,root,755)
1417 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_usertrack.conf
1418 %attr(755,root,root) %{_libexecdir}/mod_usertrack.so
1419 %{_datadir}/manual/mod/mod_usertrack.html.en
1420
1421 %files mod_unique_id
1422 %defattr(644,root,root,755)
1423 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_unique_id.conf
1424 %attr(755,root,root) %{_libexecdir}/mod_unique_id.so
1425 %{_datadir}/manual/mod/mod_unique_id.html.en
1426
1427 %files mod_vhost_alias
1428 %defattr(644,root,root,755)
1429 %attr(755,root,root) %{_libexecdir}/mod_vhost_alias.so
1430 %{_datadir}/manual/mod/mod_vhost_alias.html.en
1431 %{_datadir}/manual/vhosts
1432 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_vhost_alias.conf
This page took 0.431975 seconds and 3 git commands to generate.