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