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