]> git.pld-linux.org Git - packages/apache.git/blob - apache.spec
a647e8c690294d25f26b01cd70b04e031fb054bf
[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 # - multiple MPM support in subpackages like apache-mpm-worker, apache-mpm-prefork
15 #   and so on. See SuSE 9 apache rpm for idea how to do this.
16 # - switch from worker to perchild when it will be working in apache (but better multiple MPM support)
17 #
18 # Conditional build:
19 %bcond_without  ssl     # don't build with SSL support
20 %bcond_without  ldap    # don't build with LDAP support
21 %bcond_with     metuxmpm        # use METUX MPM
22 #
23 %include        /usr/lib/rpm/macros.perl
24 # this is internal macro, don't change to %%apache_modules_api
25 %define         _apache_modules_api 20020903
26 Summary:        The most widely used Web server on the Internet
27 Summary(de):    Leading World Wide Web-Server
28 Summary(es):    Servidor HTTPD para proveer servicios WWW
29 Summary(fr):    Le serveur web le plus utilise sur Internet
30 Summary(pl):    Serwer WWW (World Wide Web)
31 Summary(pt_BR): Servidor HTTPD para prover serviços WWW
32 Summary(ru):    óÁÍÙÊ ÐÏÐÕÌÑÒÎÙÊ ×ÅÂ-ÓÅÒ×ÅÒ
33 Summary(tr):    Lider WWW tarayýcý
34 Name:           apache
35 Version:        2.0.49
36 Release:        0.1
37 License:        Apache Group License
38 Group:          Networking/Daemons
39 Source0:        http://www.apache.org/dist/httpd/httpd-%{version}.tar.gz
40 # Source0-md5:  275d3d37eed1b070f333d3618f7d1954
41 Source1:        %{name}.init
42 Source2:        %{name}.logrotate
43 Source3:        %{name}-icons.tar.gz
44 # Source3-md5:  2b085cbc19fd28536dc883f0b864cd83
45 Source4:        %{name}.sysconfig
46 Source6:        %{name}-httpd.conf
47 Source8:        %{name}-mod_vhost_alias.conf
48 Source9:        %{name}-mod_status.conf
49 Source10:       %{name}-mod_proxy.conf
50 Source11:       %{name}-mod_info.conf
51 Source12:       %{name}-mod_ssl.conf
52 Source13:       %{name}-mod_dav.conf
53 Source14:       %{name}-mod_dir.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 $MODILES_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 %configure \
671         --prefix=%{_libexecdir} \
672         --enable-layout=PLD \
673         --enable-modules=all \
674         --enable-mods-shared=all \
675         --enable-auth-anon \
676         --enable-auth-dbm \
677         --enable-auth-digest \
678         --enable-file-cache \
679         --enable-echo \
680         --enable-cache \
681         --enable-charset-lite \
682         --enable-mem-cache \
683         --enable-disk-cache \
684         --enable-ext-filter \
685         --enable-case-filter \
686         --enable-case-filter-in \
687         --enable-deflate \
688         --with-z=%{_prefix} \
689         --enable-mime-magic \
690         --enable-cern-meta \
691         --enable-expires \
692         --enable-headers \
693         --enable-usertrack \
694         --enable-unique-id \
695         --enable-proxy \
696         --enable-proxy-connect \
697         --enable-proxy-ftp \
698         --enable-proxy-http \
699         %{?with_ssl:--enable-ssl} \
700         --enable-optional-hook-export \
701         --enable-optional-hook-import \
702         --enable-optional-fn-import \
703         --enable-optional-fn-export \
704         %{?with_ldap:--enable-ldap} \
705         %{?with_ldap:--enable-auth-ldap} \
706         --enable-dav \
707         --enable-info \
708         --enable-suexec \
709         --enable-cgi \
710         --enable-cgid \
711         --enable-dav-fs \
712         --enable-vhost-alias \
713         --enable-speling \
714         --enable-rewrite \
715         --enable-so \
716 %if %{with metuxmpm}
717         --with-mpm=metuxmpm \
718 %else
719         --with-mpm=worker \
720 %endif
721         --with-suexec-bin=%{_sbindir}/suexec \
722         --with-suexec-caller=http \
723         --with-suexec-docroot=%{_datadir} \
724         --with-suexec-logfile=/var/log/httpd/suexec_log \
725         --with-suexec-uidmin=500 \
726         --with-suexec-gidmin=500 \
727         --with-suexec-umask=077 \
728         --with-apr=%{_bindir} \
729         --with-apr-util=%{_bindir}
730
731 %{__make}
732
733 %install
734 rm -rf $RPM_BUILD_ROOT
735 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
736         $RPM_BUILD_ROOT%{_var}/{log/{httpd,archiv/httpd},{run,cache}/apache}
737
738 %{__make} install \
739         DESTDIR=$RPM_BUILD_ROOT \
740         installbuilddir=%{_sysconfdir}/build \
741         prefix=%{_sysconfdir}/httpd \
742         libexecdir=%{_libdir}/%{name} \
743         iconsdir=%{_datadir}/icons \
744         errordir=%{_datadir}/error \
745         htdocsdir=%{_datadir}/html \
746         manualdir=%{_datadir}/manual \
747         cgidir=%{_datadir}/cgi-bin \
748         runtimedir=%{_var}/run \
749         logdir=%{_var}/log/httpd \
750         proxycachedir=%{_var}/cache/httpd
751
752 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
753 install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
754
755 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/build \
756         $RPM_BUILD_ROOT%{_libexecdir}/build
757
758 perl -pi -e "s#$RPM_BUILD_ROOT##g" $RPM_BUILD_ROOT%{_libexecdir}/build/*
759 perl -pi -e "s#$RPM_BUILD_DIR#%{_usrsrc}#g" $RPM_BUILD_ROOT%{_libexecdir}/build/*
760 perl -pi -e "s#-pthread#-lpthread#g" $RPM_BUILD_ROOT%{_libdir}/lib*.la
761 perl -pi -e 's#/etc/httpd/build#%{_libexecdir}/build#g' $RPM_BUILD_ROOT%{_libexecdir}/build/*
762 ln -sf %{_bindir}/libtool $RPM_BUILD_ROOT%{_libexecdir}/build/libtool
763 ln -sf %{_libexecdir}/build $RPM_BUILD_ROOT%{_sysconfdir}/build
764
765 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
766 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
767 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/apache
768
769 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer,suexec}_log
770
771 %if %{with ssl}
772 install -d $RPM_BUILD_ROOT%{_sysconfdir}/ssl
773 install %{SOURCE20} $RPM_BUILD_ROOT%{_sysconfdir}/ssl/server.crt
774 install %{SOURCE21} $RPM_BUILD_ROOT%{_sysconfdir}/ssl/server.key
775 %endif
776
777 CFG="$RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/"
778
779 install %{SOURCE6} $CFG/10_httpd.conf
780 install %{SOURCE8} $CFG/20_mod_vhost_alias.conf
781 install %{SOURCE9} $CFG/25_mod_status.conf
782 install %{SOURCE10} $CFG/30_mod_proxy.conf
783 install %{SOURCE11} $CFG/35_mod_info.conf
784 install %{SOURCE12} $CFG/40_mod_ssl.conf
785 install %{SOURCE13} $CFG/45_mod_dav.conf
786 install %{SOURCE14} $CFG/59_mod_dir.conf
787
788 echo "LoadModule ldap_module    %{_libexecdir}/mod_ldap.so" > $CFG/49_mod_ldap.conf
789 echo "LoadModule actions_module %{_libexecdir}/mod_actions.so" > $CFG/50_mod_actions.conf
790 echo "LoadModule auth_module    %{_libexecdir}/mod_auth.so" > $CFG/51_mod_auth.conf
791 echo "LoadModule auth_anon_module       %{_libexecdir}/mod_auth_anon.so" > $CFG/52_mod_auth_anon.conf
792 echo "LoadModule auth_dbm_module        %{_libexecdir}/mod_auth_dbm.so" > $CFG/53_mod_auth_dbm.conf
793 echo "LoadModule auth_digest_module     %{_libexecdir}/mod_auth_digest.so" > $CFG/54_mod_auth_digest.conf
794 echo "LoadModule cache_module   %{_libexecdir}/mod_cache.so
795 LoadModule mem_cache_module     %{_libexecdir}/mod_mem_cache.so
796 LoadModule disk_cache_module    %{_libexecdir}/mod_disk_cache.so" > $CFG/55_mod_cache.conf
797 echo "LoadModule cgid_module    %{_libexecdir}/mod_cgid.so" > $CFG/56_mod_cgid.conf
798 echo "LoadModule charset_lite_module    %{_libexecdir}/mod_charset_lite.so" > $CFG/57_mod_charset_lite.conf
799 echo "LoadModule deflate_module %{_libexecdir}/mod_deflate.so" > $CFG/58_mod_deflate.conf
800 echo "LoadModule auth_ldap_module       %{_libexecdir}/mod_auth_ldap.so" > $CFG/59_mod_auth_ldap.conf
801 echo "LoadModule expires_module %{_libexecdir}/mod_expires.so" > $CFG/60_mod_expires.conf
802 echo "LoadModule file_cache_module      %{_libexecdir}/mod_file_cache.so" > $CFG/61_mod_file_cache.conf
803 echo "LoadModule headers_module %{_libexecdir}/mod_headers.so" > $CFG/62_mod_headers.conf
804 echo "LoadModule imap_module    %{_libexecdir}/mod_imap.so" > $CFG/63_mod_imap.conf
805 echo "LoadModule rewrite_module %{_libexecdir}/mod_rewrite.so" > $CFG/64_mod_rewrite.conf
806 echo "LoadModule usertrack_module       %{_libexecdir}/mod_usertrack.so" > $CFG/65_mod_usertrack.conf
807 echo "LoadModule unique_id_module       %{_libexecdir}/mod_unique_id.so" > $CFG/66_mod_unique_id.conf
808
809 ln -sf index.html.en $RPM_BUILD_ROOT%{_datadir}/html/index.html
810
811 %clean
812 rm -rf $RPM_BUILD_ROOT
813
814 %pre
815 if [ -n "`getgid http`" ]; then
816         if [ "`getgid http`" != "51" ]; then
817                 echo "Error: group http doesn't have gid=51. Correct this before installing apache." 1>&2
818                 exit 1
819         fi
820 else
821         /usr/sbin/groupadd -g 51 -r -f http
822 fi
823 if [ -n "`id -u http 2>/dev/null`" ]; then
824         if [ "`id -u http`" != "51" ]; then
825                 echo "Error: user http doesn't have uid=51. Correct this before installing apache." 1>&2
826                 exit 1
827         fi
828 else
829         /usr/sbin/useradd -u 51 -r -d /home/services/httpd -s /bin/false -c "HTTP User" -g http http 1>&2
830 fi
831
832 %post
833 /sbin/ldconfig
834 /sbin/chkconfig --add httpd
835 umask 137
836 touch /var/log/httpd/{access,error,agent,referer}_log
837 if [ -f /var/lock/subsys/httpd ]; then
838         /etc/rc.d/init.d/httpd restart 1>&2
839 else
840         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
841 fi
842
843 %preun
844 if [ "$1" = "0" ]; then
845         if [ -f /var/lock/subsys/httpd ]; then
846                 /etc/rc.d/init.d/httpd stop 1>&2
847         fi
848         /sbin/chkconfig --del httpd
849 fi
850
851 %postun
852 /sbin/ldconfig
853 if [ "$1" = "0" ]; then
854         /usr/sbin/userdel http
855         /usr/sbin/groupdel http
856 fi
857
858 %post mod_actions
859 if [ -f /var/lock/subsys/httpd ]; then
860         /etc/rc.d/init.d/httpd restart 1>&2
861 else
862         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
863 fi
864
865 %preun mod_actions
866 if [ "$1" = "0" ]; then
867         if [ -f /var/lock/subsys/httpd ]; then
868                 /etc/rc.d/init.d/httpd restart 1>&2
869         fi
870 fi
871
872 %post mod_auth
873 if [ -f /var/lock/subsys/httpd ]; then
874         /etc/rc.d/init.d/httpd restart 1>&2
875 else
876         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
877 fi
878
879 %preun mod_auth
880 if [ "$1" = "0" ]; then
881         if [ -f /var/lock/subsys/httpd ]; then
882                 /etc/rc.d/init.d/httpd restart 1>&2
883         fi
884 fi
885
886 %post mod_auth_anon
887 if [ -f /var/lock/subsys/httpd ]; then
888         /etc/rc.d/init.d/httpd restart 1>&2
889 else
890         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
891 fi
892
893 %preun mod_auth_anon
894 if [ "$1" = "0" ]; then
895         if [ -f /var/lock/subsys/httpd ]; then
896                 /etc/rc.d/init.d/httpd restart 1>&2
897         fi
898 fi
899
900 %post mod_auth_dbm
901 if [ -f /var/lock/subsys/httpd ]; then
902         /etc/rc.d/init.d/httpd restart 1>&2
903 else
904         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
905 fi
906
907 %preun mod_auth_dbm
908 if [ "$1" = "0" ]; then
909         if [ -f /var/lock/subsys/httpd ]; then
910                 /etc/rc.d/init.d/httpd restart 1>&2
911         fi
912 fi
913
914 %post mod_cache
915 if [ -f /var/lock/subsys/httpd ]; then
916         /etc/rc.d/init.d/httpd restart 1>&2
917 else
918         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
919 fi
920
921 %preun mod_cache
922 if [ "$1" = "0" ]; then
923         if [ -f /var/lock/subsys/httpd ]; then
924                 /etc/rc.d/init.d/httpd restart 1>&2
925         fi
926 fi
927
928 %post mod_cgid
929 if [ -f /var/lock/subsys/httpd ]; then
930         /etc/rc.d/init.d/httpd restart 1>&2
931 else
932         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
933 fi
934
935 %preun mod_cgid
936 if [ "$1" = "0" ]; then
937         if [ -f /var/lock/subsys/httpd ]; then
938                 /etc/rc.d/init.d/httpd restart 1>&2
939         fi
940 fi
941
942 %post mod_charset_lite
943 if [ -f /var/lock/subsys/httpd ]; then
944         /etc/rc.d/init.d/httpd restart 1>&2
945 else
946         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
947 fi
948
949 %preun mod_charset_lite
950 if [ "$1" = "0" ]; then
951         if [ -f /var/lock/subsys/httpd ]; then
952                 /etc/rc.d/init.d/httpd restart 1>&2
953         fi
954 fi
955
956 %post mod_dav
957 if [ -f /var/lock/subsys/httpd ]; then
958         /etc/rc.d/init.d/httpd restart 1>&2
959 else
960         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
961 fi
962
963 %preun mod_dav
964 if [ "$1" = "0" ]; then
965         if [ -f /var/lock/subsys/httpd ]; then
966                 /etc/rc.d/init.d/httpd restart 1>&2
967         fi
968 fi
969
970 %post mod_auth_digest
971 if [ -f /var/lock/subsys/httpd ]; then
972         /etc/rc.d/init.d/httpd restart 1>&2
973 else
974         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
975 fi
976
977 %preun mod_auth_digest
978 if [ "$1" = "0" ]; then
979         if [ -f /var/lock/subsys/httpd ]; then
980                 /etc/rc.d/init.d/httpd restart 1>&2
981         fi
982 fi
983
984 %post mod_deflate
985 if [ -f /var/lock/subsys/httpd ]; then
986         /etc/rc.d/init.d/httpd restart 1>&2
987 else
988         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
989 fi
990
991 %preun mod_deflate
992 if [ "$1" = "0" ]; then
993         if [ -f /var/lock/subsys/httpd ]; then
994                 /etc/rc.d/init.d/httpd restart 1>&2
995         fi
996 fi
997
998 %post mod_dir
999 if [ -f /var/lock/subsys/httpd ]; then
1000         /etc/rc.d/init.d/httpd restart 1>&2
1001 else
1002         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1003 fi
1004
1005 %preun mod_dir
1006 if [ "$1" = "0" ]; then
1007         if [ -f /var/lock/subsys/httpd ]; then
1008                 /etc/rc.d/init.d/httpd restart 1>&2
1009         fi
1010 fi
1011
1012 %post mod_expires
1013 if [ -f /var/lock/subsys/httpd ]; then
1014         /etc/rc.d/init.d/httpd restart 1>&2
1015 else
1016         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1017 fi
1018
1019 %preun mod_expires
1020 if [ "$1" = "0" ]; then
1021         if [ -f /var/lock/subsys/httpd ]; then
1022                 /etc/rc.d/init.d/httpd restart 1>&2
1023         fi
1024 fi
1025
1026 %post mod_file_cache
1027 if [ -f /var/lock/subsys/httpd ]; then
1028         /etc/rc.d/init.d/httpd restart 1>&2
1029 else
1030         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1031 fi
1032
1033 %preun mod_file_cache
1034 if [ "$1" = "0" ]; then
1035         if [ -f /var/lock/subsys/httpd ]; then
1036                 /etc/rc.d/init.d/httpd restart 1>&2
1037         fi
1038 fi
1039
1040 %post mod_headers
1041 if [ -f /var/lock/subsys/httpd ]; then
1042         /etc/rc.d/init.d/httpd restart 1>&2
1043 else
1044         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1045 fi
1046
1047 %preun mod_headers
1048 if [ "$1" = "0" ]; then
1049         if [ -f /var/lock/subsys/httpd ]; then
1050                 /etc/rc.d/init.d/httpd restart 1>&2
1051         fi
1052 fi
1053
1054 %post mod_imap
1055 if [ -f /var/lock/subsys/httpd ]; then
1056         /etc/rc.d/init.d/httpd restart 1>&2
1057 else
1058         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1059 fi
1060
1061 %preun mod_imap
1062 if [ "$1" = "0" ]; then
1063         if [ -f /var/lock/subsys/httpd ]; then
1064                 /etc/rc.d/init.d/httpd restart 1>&2
1065         fi
1066 fi
1067
1068 %post mod_info
1069 if [ -f /var/lock/subsys/httpd ]; then
1070         /etc/rc.d/init.d/httpd restart 1>&2
1071 else
1072         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1073 fi
1074
1075 %preun mod_info
1076 if [ "$1" = "0" ]; then
1077         if [ -f /var/lock/subsys/httpd ]; then
1078                 /etc/rc.d/init.d/httpd restart 1>&2
1079         fi
1080 fi
1081
1082 %post mod_proxy
1083 if [ -f /var/lock/subsys/httpd ]; then
1084         /etc/rc.d/init.d/httpd restart 1>&2
1085 else
1086         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1087 fi
1088
1089 %preun mod_proxy
1090 if [ "$1" = "0" ]; then
1091         if [ -f /var/lock/subsys/httpd ]; then
1092                 /etc/rc.d/init.d/httpd restart 1>&2
1093         fi
1094 fi
1095
1096 %post mod_rewrite
1097 if [ -f /var/lock/subsys/httpd ]; then
1098         /etc/rc.d/init.d/httpd restart 1>&2
1099 else
1100         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1101 fi
1102
1103 %preun mod_rewrite
1104 if [ "$1" = "0" ]; then
1105         if [ -f /var/lock/subsys/httpd ]; then
1106                 /etc/rc.d/init.d/httpd restart 1>&2
1107         fi
1108 fi
1109
1110 %post mod_ssl
1111 if [ -f /var/lock/subsys/httpd ]; then
1112         /etc/rc.d/init.d/httpd restart 1>&2
1113 else
1114         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1115 fi
1116
1117 %preun mod_ssl
1118 if [ "$1" = "0" ]; then
1119         if [ -f /var/lock/subsys/httpd ]; then
1120                 /etc/rc.d/init.d/httpd restart 1>&2
1121         fi
1122 fi
1123
1124 %post mod_status
1125 if [ -f /var/lock/subsys/httpd ]; then
1126         /etc/rc.d/init.d/httpd restart 1>&2
1127 else
1128         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1129 fi
1130
1131 %preun mod_status
1132 if [ "$1" = "0" ]; then
1133         if [ -f /var/lock/subsys/httpd ]; then
1134                 /etc/rc.d/init.d/httpd restart 1>&2
1135         fi
1136 fi
1137
1138 %post mod_usertrack
1139 if [ -f /var/lock/subsys/httpd ]; then
1140         /etc/rc.d/init.d/httpd restart 1>&2
1141 else
1142         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1143 fi
1144
1145 %preun mod_usertrack
1146 if [ "$1" = "0" ]; then
1147         if [ -f /var/lock/subsys/httpd ]; then
1148                 /etc/rc.d/init.d/httpd restart 1>&2
1149         fi
1150 fi
1151
1152 %post mod_unique_id
1153 if [ -f /var/lock/subsys/httpd ]; then
1154         /etc/rc.d/init.d/httpd restart 1>&2
1155 else
1156         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1157 fi
1158
1159 %preun mod_unique_id
1160 if [ "$1" = "0" ]; then
1161         if [ -f /var/lock/subsys/httpd ]; then
1162                 /etc/rc.d/init.d/httpd restart 1>&2
1163         fi
1164 fi
1165
1166 %post mod_vhost_alias
1167 if [ -f /var/lock/subsys/httpd ]; then
1168         /etc/rc.d/init.d/httpd restart 1>&2
1169 else
1170         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
1171 fi
1172
1173 %preun mod_vhost_alias
1174 if [ "$1" = "0" ]; then
1175         if [ -f /var/lock/subsys/httpd ]; then
1176                 /etc/rc.d/init.d/httpd restart 1>&2
1177         fi
1178 fi
1179
1180 %files
1181 %defattr(644,root,root,755)
1182 %doc ABOUT_APACHE CHANGES README
1183 %doc docs/conf/mime.types
1184
1185 %attr(754,root,root) /etc/rc.d/init.d/httpd
1186
1187 %attr(750,root,root) %dir %{_sysconfdir}
1188 %attr(750,root,root) %dir %{_sysconfdir}/httpd.conf
1189 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_httpd.conf
1190 %attr(640,root,root) %{_sysconfdir}/magic
1191 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/*
1192 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/*
1193
1194 %dir %{_libexecdir}
1195 %attr(755,root,root) %{_libexecdir}/mod_access.so
1196 %attr(755,root,root) %{_libexecdir}/mod_alias.so
1197 %attr(755,root,root) %{_libexecdir}/mod_asis.so
1198 %attr(755,root,root) %{_libexecdir}/mod_autoindex.so
1199 %attr(755,root,root) %{_libexecdir}/mod_cern_meta.so
1200 %attr(755,root,root) %{_libexecdir}/mod_cgi.so
1201 %attr(755,root,root) %{_libexecdir}/mod_env.so
1202 %attr(755,root,root) %{_libexecdir}/mod_include.so
1203 %attr(755,root,root) %{_libexecdir}/mod_log_config.so
1204 %attr(755,root,root) %{_libexecdir}/mod_mime.so
1205 %attr(755,root,root) %{_libexecdir}/mod_mime_magic.so
1206 %attr(755,root,root) %{_libexecdir}/mod_negotiation.so
1207 %attr(755,root,root) %{_libexecdir}/mod_setenvif.so
1208 %attr(755,root,root) %{_libexecdir}/mod_speling.so
1209 %attr(755,root,root) %{_libexecdir}/mod_userdir.so
1210
1211 # look at TODO on top
1212 %attr(755,root,root) %{_libexecdir}/mod_case_filter.so
1213 %attr(755,root,root) %{_libexecdir}/mod_case_filter_in.so
1214 %attr(755,root,root) %{_libexecdir}/mod_echo.so
1215 %attr(755,root,root) %{_libexecdir}/mod_ext_filter.so
1216 %attr(755,root,root) %{_libexecdir}/mod_optional_fn_export.so
1217 %attr(755,root,root) %{_libexecdir}/mod_optional_fn_import.so
1218 %attr(755,root,root) %{_libexecdir}/mod_optional_hook_export.so
1219 %attr(755,root,root) %{_libexecdir}/mod_optional_hook_import.so
1220
1221 %attr(755,root,root) %{_sbindir}/htdigest
1222
1223 %attr(755,root,root) %{_sbindir}/ab
1224 %attr(755,root,root) %{_sbindir}/apachectl
1225 %attr(755,root,root) %{_sbindir}/apxs
1226 %attr(755,root,root) %{_sbindir}/checkgid
1227 %attr(755,root,root) %{_sbindir}/httpd
1228 %attr(755,root,root) %{_sbindir}/logresolve
1229 %attr(755,root,root) %{_sbindir}/rotatelogs
1230 %attr(755,root,root) %{_sbindir}/envvars*
1231
1232 %dir %attr(770,root,http) /var/run/apache
1233
1234 %{_mandir}/man1/htdigest.1*
1235 %{_mandir}/man8/*
1236
1237 %attr(750,root,root) %dir /var/log/httpd
1238 %attr(750,root,root) %dir /var/log/archiv/httpd
1239 %attr(640,root,root) %ghost /var/log/httpd/*
1240
1241 %dir %{_datadir}
1242
1243 %attr(755,root,root) %dir %{_datadir}/html
1244 %{_datadir}/icons
1245 %attr(755,root,root) %{_datadir}/cgi-bin
1246
1247 %{_datadir}/error
1248 %dir %{_datadir}/manual
1249
1250 %files doc
1251 %{_datadir}/manual/LICENSE
1252 %{_datadir}/manual/*.xml
1253 %{_datadir}/manual/*.html.en
1254 %lang(ja) %{_datadir}/manual/*.html.ja.jis
1255 %lang(ja) %{_datadir}/manual/*.xml.ja
1256 %lang(ko) %{_datadir}/manual/*.html.ko.euc-kr
1257 %lang(de) %{_datadir}/manual/*.html.de
1258 %lang(fr) %{_datadir}/manual/*.html.fr
1259 %{_datadir}/manual/developer
1260 %{_datadir}/manual/faq
1261 %dir %{_datadir}/manual/howto
1262 %doc %{_datadir}/manual/howto/*.en
1263 %lang(ja) %{_datadir}/manual/howto/*.ja.jis
1264 %dir %{_datadir}/manual/images
1265 %{_datadir}/manual/images/[achips]*
1266 %{_datadir}/manual/misc
1267 %dir %{_datadir}/manual/mod
1268 %{_datadir}/manual/mod/[cdfhipw]*.html.en
1269 %{_datadir}/manual/mod/[acd]*.xml
1270 %lang(ja) %{_datadir}/manual/mod/[ad]*.xml.ja*
1271 %lang(ja) %{_datadir}/manual/mod/index.html.ja.jis
1272 %lang(ja) %{_datadir}/manual/mod/index.xml.ja
1273 %{_datadir}/manual/mod/index.xml
1274 %{_datadir}/manual/mod/mpm*.html.en
1275 %{_datadir}/manual/mod/mod_access.html.en
1276 %{_datadir}/manual/mod/mod_alias.html.en
1277 %{_datadir}/manual/mod/mod_asis.html.en
1278 %{_datadir}/manual/mod/mod_autoindex.html.en
1279 %{_datadir}/manual/mod/mod_cern_meta.html.en
1280 %{_datadir}/manual/mod/mod_cgi.html.en
1281 %{_datadir}/manual/mod/mod_env.html.en
1282 %{_datadir}/manual/mod/mod_include.html.en
1283 %{_datadir}/manual/mod/mod_log_config.html.en
1284 %{_datadir}/manual/mod/mod_mime*.html.en
1285 %{_datadir}/manual/mod/mod_negotiation.html.en
1286 %{_datadir}/manual/mod/mod_setenvif.html.en
1287 %{_datadir}/manual/mod/mod_speling.html.en
1288 %{_datadir}/manual/mod/mod_userdir.html.en
1289 %{_datadir}/manual/platform
1290 %{_datadir}/manual/programs
1291 %{_datadir}/manual/style
1292
1293 %files suexec
1294 %defattr(644,root,root,755)
1295 %attr(4755,root,root) %{_sbindir}/suexec
1296 %attr(755,root,root) %{_libexecdir}/mod_suexec.so
1297 %{_datadir}/manual/mod/mod_suexec.html.en
1298
1299 %files index
1300 %defattr(644,root,root,755)
1301 %config(noreplace,missingok) %{_datadir}/html/index.html*
1302 %{_datadir}/html/*.gif
1303 %{_datadir}/html/*.png
1304
1305 %files devel
1306 %defattr(644,root,root,755)
1307 %{_includedir}
1308 %{_libexecdir}/*.exp
1309 %attr(755,root,root) %dir %{_libexecdir}/build
1310 %attr(644,root,root) %{_libexecdir}/build/*.mk
1311 %attr(755,root,root) %{_libexecdir}/build/*.sh
1312 %attr(755,root,root) %{_libexecdir}/build/libtool
1313
1314 %files mod_actions
1315 %defattr(644,root,root,755)
1316 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_actions.conf
1317 %attr(755,root,root) %{_libexecdir}/mod_actions.so
1318 %{_datadir}/manual/mod/mod_actions.html.en
1319
1320 %files mod_auth
1321 %defattr(644,root,root,755)
1322 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth.conf
1323 %attr(755,root,root) %{_libexecdir}/mod_auth.so
1324 %attr(755,root,root) %{_sbindir}/htpasswd
1325 %{_datadir}/manual/mod/mod_auth.html.en
1326 %{_mandir}/man1/htpasswd.1*
1327
1328 %files mod_auth_anon
1329 %defattr(644,root,root,755)
1330 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_anon.conf
1331 %attr(755,root,root) %{_libexecdir}/mod_auth_anon.so
1332 %{_datadir}/manual/mod/mod_auth_anon.html.en
1333
1334 %if %{with ldap}
1335 %files mod_auth_ldap
1336 %defattr(644,root,root,755)
1337 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_ldap.conf
1338 %attr(755,root,root) %{_libexecdir}/mod_auth_ldap.so
1339 %{_datadir}/manual/mod/mod_auth_ldap.html.en
1340 %endif
1341
1342 %if %{with ldap}
1343 %files mod_ldap
1344 %defattr(644,root,root,755)
1345 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_ldap.conf
1346 %attr(755,root,root) %{_libexecdir}/mod_ldap.so
1347 %{_datadir}/manual/mod/mod_ldap.html.en
1348 %endif
1349
1350 %files mod_auth_dbm
1351 %defattr(644,root,root,755)
1352 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_dbm.conf
1353 %attr(755,root,root) %{_libexecdir}/mod_auth_dbm.so
1354 %attr(755,root,root) %{_sbindir}/dbmmanage
1355 %attr(755,root,root) %{_sbindir}/htdbm
1356 %{_datadir}/manual/mod/mod_auth_dbm.html.en
1357 %{_mandir}/man1/dbmmanage.1*
1358
1359 %files mod_auth_digest
1360 %defattr(644,root,root,755)
1361 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_auth_digest.conf
1362 %attr(755,root,root) %{_libexecdir}/mod_auth_digest.so
1363 %{_datadir}/manual/mod/mod_auth_digest.html.en
1364
1365 %files mod_cache
1366 %defattr(644,root,root,755)
1367 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_cache.conf
1368 %attr(755,root,root) %{_libexecdir}/mod_cache.so
1369 %attr(755,root,root) %{_libexecdir}/mod_disk_cache.so
1370 %attr(755,root,root) %{_libexecdir}/mod_mem_cache.so
1371 %{_datadir}/manual/mod/mod_cache.html.en
1372
1373 %files mod_cgid
1374 %defattr(644,root,root,755)
1375 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_cgid.conf
1376 %attr(755,root,root) %{_libexecdir}/mod_cgid.so
1377 %{_datadir}/manual/mod/mod_cgid.html.en
1378
1379 %files mod_charset_lite
1380 %defattr(644,root,root,755)
1381 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_charset_lite.conf
1382 %attr(755,root,root) %{_libexecdir}/mod_charset_lite.so
1383 %{_datadir}/manual/mod/mod_charset_lite.html.en
1384
1385 %files mod_dav
1386 %defattr(644,root,root,755)
1387 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_dav.conf
1388 %attr(755,root,root) %{_libexecdir}/mod_dav*.so
1389 %{_datadir}/manual/mod/mod_dav*.html.en
1390
1391 %files mod_deflate
1392 %defattr(644,root,root,755)
1393 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_deflate.conf
1394 %attr(755,root,root) %{_libexecdir}/mod_deflate.so
1395 %{_datadir}/manual/mod/mod_deflate.html.en
1396
1397 %files mod_dir
1398 %defattr(644,root,root,755)
1399 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_dir.conf
1400 %attr(755,root,root) %{_libexecdir}/mod_dir.so
1401 %{_datadir}/manual/mod/mod_dir.html.en
1402
1403 %files mod_expires
1404 %defattr(644,root,root,755)
1405 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_expires.conf
1406 %attr(755,root,root) %{_libexecdir}/mod_expires.so
1407 %{_datadir}/manual/mod/mod_expires.html.en
1408
1409 %files mod_file_cache
1410 %defattr(644,root,root,755)
1411 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_file_cache.conf
1412 %attr(755,root,root) %{_libexecdir}/mod_file_cache.so
1413 %{_datadir}/manual/mod/mod_file_cache.html.en
1414
1415 %files mod_headers
1416 %defattr(644,root,root,755)
1417 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_headers.conf
1418 %attr(755,root,root) %{_libexecdir}/mod_headers.so
1419 %{_datadir}/manual/mod/mod_headers.html.en
1420
1421 %files mod_imap
1422 %defattr(644,root,root,755)
1423 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_imap.conf
1424 %attr(755,root,root) %{_libexecdir}/mod_imap.so
1425 %{_datadir}/manual/mod/mod_imap.html.en
1426
1427 %files mod_info
1428 %defattr(644,root,root,755)
1429 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_info.conf
1430 %attr(755,root,root) %{_libexecdir}/mod_info.so
1431 %{_datadir}/manual/mod/mod_info.html.en
1432
1433 %files mod_proxy
1434 %defattr(644,root,root,755)
1435 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_proxy.conf
1436 %attr(755,root,root) %{_libexecdir}/mod_proxy*.so
1437 %doc %{_datadir}/manual/mod/mod_proxy*.html.en
1438 %attr(770,root,http) /var/cache/apache
1439
1440 %files mod_rewrite
1441 %defattr(644,root,root,755)
1442 %attr(755,root,root) %{_libexecdir}/mod_rewrite.so
1443 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_rewrite.conf
1444 %{_datadir}/manual/mod/mod_rewrite.html.en
1445 %{_datadir}/manual/images/mod_rewrite*
1446
1447 %if %{with ssl}
1448 %files mod_ssl
1449 %defattr(644,root,root,755)
1450 %attr(750,root,root) %dir %{_sysconfdir}/ssl
1451 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ssl/server.*
1452 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_ssl.conf
1453 %attr(755,root,root) %{_libexecdir}/mod_ssl.so
1454 %{_datadir}/manual/ssl
1455 %{_datadir}/manual/mod/mod_ssl.html.en
1456 %endif
1457
1458 %files mod_status
1459 %defattr(644,root,root,755)
1460 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_status.conf
1461 %attr(755,root,root) %{_libexecdir}/mod_status.so
1462 %{_datadir}/manual/mod/mod_status.html.en
1463
1464 %files mod_usertrack
1465 %defattr(644,root,root,755)
1466 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_usertrack.conf
1467 %attr(755,root,root) %{_libexecdir}/mod_usertrack.so
1468 %{_datadir}/manual/mod/mod_usertrack.html.en
1469
1470 %files mod_unique_id
1471 %defattr(644,root,root,755)
1472 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_unique_id.conf
1473 %attr(755,root,root) %{_libexecdir}/mod_unique_id.so
1474 %{_datadir}/manual/mod/mod_unique_id.html.en
1475
1476 %files mod_vhost_alias
1477 %defattr(644,root,root,755)
1478 %attr(755,root,root) %{_libexecdir}/mod_vhost_alias.so
1479 %{_datadir}/manual/mod/mod_vhost_alias.html.en
1480 %{_datadir}/manual/vhosts
1481 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*_mod_vhost_alias.conf
This page took 0.113259 seconds and 2 git commands to generate.