]> git.pld-linux.org Git - packages/apache.git/blob - apache.spec
- mod_mime_magic BEFORE mod_mime in %post
[packages/apache.git] / apache.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        The most widely used Web server on the Internet
3 Summary(de):    Leading World Wide Web-Server
4 Summary(fr):    Le serveur web le plus utilise sur Internet
5 Summary(pl):    Serwer WWW (World Wide Web)
6 Summary(tr):    Lider WWW tarayýcý
7 Name:           apache
8 Version:        1.3.12
9 Release:        3
10 Copyright:      BSD-like
11 Group:          Networking/Daemons
12 Group(pl):      Sieciowe/Serwery
13 Source0:        ftp://ftp.apache.org/dist/%{name}_%{version}.tar.gz
14 Source1:        apache.init
15 Source2:        apache.logrotate
16 Source3:        apache-icons.tar.gz
17 Source4:        apache.sysconfig
18 Source5:        apache-access.conf
19 Source6:        apache-httpd.conf
20 Source7:        apache-srm.conf
21 Source8:        apache-virtual-host.conf
22 Source9:        apache-mod_status.conf
23 Source10:       apache-mod_proxy.conf
24 Patch0:         apache-PLD.patch
25 Patch1:         apache-suexec.patch
26 Patch2:         apache-htdocs.patch
27 Patch3:         apache-errordocs.patch
28 Patch4:         apache-apxs.patch
29 Patch5:         apache-EAPI.patch
30 Patch6:         apache-v6-PLD-1.patch.gz
31 Patch7:         apache-mm_conf.patch
32 Patch8:         apache-modules_symbols.patch
33 Provides:       httpd
34 Provides:       webserver
35 Prereq:         /sbin/chkconfig
36 Prereq:         /usr/sbin/useradd
37 Prereq:         /usr/bin/getgid
38 Prereq:         /bin/id
39 Prereq:         sh-utils
40 BuildRequires:  mm-devel
41 Requires:       rc-scripts
42 Requires:       mailcap
43 Requires:       /etc/mime.types
44 URL:            http://www.apache.org/
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 Provides:       apache(EAPI)
47 Obsoletes:      apache-extra
48 Obsoletes:      apache6
49 Obsoletes:      apache-doc
50
51 %define         _sysconfdir     /etc/httpd
52 %define         _includedir     %{_prefix}/include/apache
53 %define         _datadir        /home/httpd
54 %define         _libexecdir     %{_prefix}/lib/apache
55
56 %description
57 Apache is a powerful, full-featured, efficient and freely-available Web
58 server. Apache is also the most popular Web server on the Internet.
59
60 %description -l de
61 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
62 erhältlich und weit verbreitet ist.
63
64 %description -l fr
65 Apache est un serveur Web puissant, efficace, gratuit et complet. Apache est
66 aussi le serveur Web le plus populaire sur Internet.
67
68 %description -l pl
69 Apache jest serwerem WWW (World Wide Web). Instaluj±c ten pakiet bêdziesz 
70 móg³ prezentowaæ w³asne strony WWW w sieci internet.
71
72 %description -l tr
73 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web sunucusudur.
74
75 %package suexec
76 Summary:        Apache suexec wrapper
77 Summary(pl):    Suexec wrapper do serwera www Apache
78 Group:          Networking/Development
79 Group(pl):      Sieciowe/Programowanie
80 Requires:       %{name}(EAPI) = %{version}
81
82 %description suexec
83 The suEXEC feature provides Apache users the ability to run CGI and SSI
84 programs under user IDs different from the user ID of the calling web-server.
85 Normally, when a CGI or SSI program executes, it runs as the same user 
86 who is running the web server. 
87
88 %description -l pl suexec
89 SuEXEC umo¿liwia serwerowi Apache uruchamianie programów CGI i SSI z innym
90 UID ni¿ wywo³uj±cy je serwer. Normalnie programy CGI i SSI s± wykonywane
91 jako taki sam u¿ytkownik jak serwer WWW.
92
93 %package devel
94 Summary:        Module development tools for the Apache web server
95 Summary(fr):    Les outils de developpement de modules pour le serveur web Apache
96 Summary(pl):    Pliki nag³ówkowe do tworzenai modu³ów rozszerzeñ do serwera www Apache
97 Group:          Networking/Development
98 Group(pl):      Sieciowe/Programowanie
99 Requires:       %{name}(EAPI) = %{version}
100 Provides:       %{name}(EAPI)-devel
101
102 %description devel
103 The apache-devel package contains the source code for the Apache Web server
104 and the APXS binary you'll need to build Dynamic Shared Objects (DSOs) for
105 Apache.
106
107 %description -l fr devel
108 Le package apache-devel contient le code source pour le serveur Web Apache
109 et le binaire APXS dont vous aurez besoin pour construire des Objets
110 Dynamiques Partages (DSOs) pour Apache.
111
112 %description -l pl devel
113 Pliki nag³ówkowe dla serwera WWW Apache.
114
115 %package mod_actions
116 Summary:        Apache module for run CGI whenever a file of a certain type is requested
117 Group:          Networking/Daemons
118 Group(pl):      Sieciowe/Serwery
119 Prereq:         %{_sbindir}/apxs
120 Requires:       %{name}(EAPI) = %{version}
121
122 %description mod_actions
123 This package contains mod_actions module. This module lets you run CGI
124 scripts whenever a file of a certain type is requested. This makes it much
125 easier to execute scripts that process files.
126
127 %package mod_auth_anon
128 Summary:        Apache module with "anonymous" user access authentication
129 Group:          Networking/Daemons
130 Group(pl):      Sieciowe/Serwery
131 Prereq:         %{_sbindir}/apxs
132 Requires:       %{name}(EAPI) = %{version}
133
134 %description mod_auth_anon
135 This package contains mod_auth_anon module. It allows "anonymous" user
136 access to authenticated areas. It does access control in a manner similar to
137 anonymous-ftp sites; i.e. have a 'magic' user id 'anonymous' and the email
138 address as a password. These email addresses can be logged. Combined with
139 other (database) access control methods, this allows for effective user
140 tracking and customization according to a user profile while still keeping
141 the site open for 'unregistered' users. One advantage of using Auth-based
142 user tracking is that, unlike magic-cookies and funny URL pre/postfixes, it
143 is completely browser independent and it allows users to share URLs.
144
145 %package mod_define
146 Summary:        Apache module - authentication variables for arbitrary directives
147 Group:          Networking/Daemons
148 Group(pl):      Sieciowe/Serwery
149 Prereq:         %{_sbindir}/apxs
150 Requires:       %{name}(EAPI) = %{version}
151
152 %description mod_define
153 It provides the definition variables for arbitrary directives, i.e.
154 variables which can be expanded on any(!) directive line.
155
156 %package mod_digest
157 Summary:        Apache user authentication module using MD5 Digest Authentication 
158 Group:          Networking/Daemons
159 Group(pl):      Sieciowe/Serwery
160 Prereq:         %{_sbindir}/apxs
161 Requires:       %{name}(EAPI) = %{version}
162
163 %description mod_digest
164 This package contains mod_dir module. It provides user authentication using
165 MD5 Digest Authentication.
166
167 %package mod_dir
168 Summary:        Apache module for trailing slash" redirects and serving directory index files
169 Group:          Networking/Daemons
170 Group(pl):      Sieciowe/Serwery
171 Prereq:         %{_sbindir}/apxs
172 Requires:       %{name}(EAPI) = %{version}
173
174 %description mod_dir
175 This package contains mod_dir which provides "trailing slash" redirects and
176 serving directory index files.
177
178 %package mod_headers
179 Summary:        Apache module allows for the customization of HTTP response headers
180 Group:          Networking/Daemons
181 Group(pl):      Sieciowe/Serwery
182 Prereq:         %{_sbindir}/apxs
183 Requires:       %{name}(EAPI) = %{version}
184
185 %description mod_headers
186 This package contains mod_headers module. The module allows for the
187 customization of HTTP response headers. Headers can be merged, replaced or
188 removed.
189
190 %package mod_mmap_static
191 Summary:        Apache module for mmap()ing statically configured list files
192 Group:          Networking/Daemons
193 Group(pl):      Sieciowe/Serwery
194 Prereq:         %{_sbindir}/apxs
195 Requires:       %{name}(EAPI) = %{version}
196
197 %description mod_mmap_static
198 This package contains mod_mmap_static module. It provides mmap()ing of a
199 statically configured list of frequently requested but not changed files.
200
201 %package mod_imap
202 Summary:        Apache module with imap-file handler
203 Group:          Networking/Daemons
204 Group(pl):      Sieciowe/Serwery
205 Prereq:         %{_sbindir}/apxs
206 Requires:       %{name}(EAPI) = %{version}
207
208 %description mod_imap
209 This package contains mod_imap module. It provides for .map files, replacing
210 the functionality of the imagemap CGI program. Any directory or document
211 type configured to use the handler imap-file.
212
213 %package mod_info
214 Summary:        Apache module with comprehensive overview of the server configuration
215 Group:          Networking/Daemons
216 Group(pl):      Sieciowe/Serwery
217 Prereq:         %{_sbindir}/apxs
218 Requires:       %{name}(EAPI) = %{version}
219
220 %description mod_info
221 This package contains mod_mmap_static module. It provides a comprehensive
222 overview of the server configuration including all installed modules and
223 directives in the configuration files.
224
225 %package mod_proxy
226 Summary:        Apache module with Web proxy
227 Group:          Networking/Daemons
228 Group(pl):      Sieciowe/Serwery
229 Prereq:         %{_sbindir}/apxs
230 Requires:       %{name}(EAPI) = %{version}
231
232 %description mod_proxy
233 This package contains module with implementation a proxy/cache for Apache.
234 It implements proxying capability for FTP, CONNECT (for SSL), HTTP/0.9, and
235 HTTP/1.0. The module can be configured to connect to other proxy modules for
236 these and other protocols.
237
238 %package mod_rewrite
239 Summary:        Apache module with rule-based engine for rewrite requested URLs on the fly
240 Group:          Networking/Daemons
241 Group(pl):      Sieciowe/Serwery
242 Prereq:         %{_sbindir}/apxs
243 Requires:       %{name}(EAPI) = %{version}
244
245 %description mod_rewrite
246 This package contains It provides a rule-based rewriting engine to rewrite
247 requested URLs on the fly.
248
249 %package mod_status
250 Summary:        Server status report module for apache
251 Group:          Networking/Daemons
252 Group(pl):      Sieciowe/Serwery
253 Prereq:         %{_sbindir}/apxs
254 Requires:       %{name}(EAPI) = %{version}
255
256 %description mod_status
257 The Status module allows a server administrator to find out how well their
258 server is performing. A HTML page is presented that gives the current server
259 statistics in an easily readable form. If required this page can be made to
260 automatically refresh (given a compatible browser).
261
262 %package mod_usertrack
263 Summary:        Apache module for user tracking using cookies
264 Group:          Networking/Daemons
265 Group(pl):      Sieciowe/Serwery
266 Prereq:         %{_sbindir}/apxs
267 Requires:       %{name}(EAPI) = %{version}
268
269 %description mod_usertrack
270 This package contains the user tracking module which did its own logging
271 using CookieLog directory. This module allow multiple log files.
272
273 %package mod_vhost_alias
274 Summary:        Apache module for dynamically configured mass virtual hosting
275 Group:          Networking/Daemons
276 Group(pl):      Sieciowe/Serwery
277 Prereq:         %{_sbindir}/apxs
278 Requires:       %{name}(EAPI) = %{version}
279
280 %description mod_vhost_alias
281 This package contains the mod_vhost_alias. It provides support for
282 dynamically configured mass virtual hosting.
283
284 %package mod_unique_id
285 Summary:        Apache module which provides a magic token for each request
286 Group:          Networking/Daemons
287 Group(pl):      Sieciowe/Serwery
288 Prereq:         %{_sbindir}/apxs
289 Requires:       %{name}(EAPI) = %{version}
290
291 %description mod_unique_id
292 This package contains the mod_unique_id. This module provides a magic token
293 for each request which is guaranteed to be unique across "all" requests
294 under very specific conditions. The unique identifier is even unique across
295 multiple machines in a properly configured cluster of machines. The
296 environment variable UNIQUE_ID is set to the identifier for each request.
297 Unique identifiers are useful for various reasons which are beyond the scope
298 of this document.
299
300 %package mod_expires
301 Summary:        Apache module which provides .... 
302 Group:          Networking/Daemons
303 Group(pl):      Sieciowe/Serwery
304 Prereq:         %{_sbindir}/apxs
305 Requires:       %{name}(EAPI) = %{version}
306
307 %description mod_expires
308
309 %prep 
310 %setup -q -n apache_%{version} -a3
311 %patch0 -p1
312 %patch1 -p1
313 %patch2 -p1
314 %patch3 -p1
315 %patch4 -p1
316 %patch5 -p1
317 #%patch6 -p1
318 %patch7 -p1
319 %patch8 -p1
320
321 %build
322
323 LDFLAGS="-s"; export LDFLAGS
324 OPTIM="$RPM_OPT_FLAGS" \
325 ./configure \
326         --prefix=%{_prefix} \
327         --sysconfdir=%{_sysconfdir} \
328         --includedir=%{_includedir} \
329         --sbindir=%{_sbindir} \
330         --libexecdir=%{_libexecdir} \
331         --datadir=%{_datadir} \
332         --localstatedir=/var \
333         --runtimedir=/var/run \
334         --logfiledir=/var/log/httpd \
335         --with-layout=PLD \
336         --without-confadjust \
337         --enable-module=all \
338         --enable-shared=max \
339         --proxycachedir=/var/cache/apache \
340         --with-perl=%{_bindir}/perl \
341         --enable-suexec \
342         --suexec-caller=http \
343         --suexec-uidmin=500 \
344         --suexec-gidmin=500 \
345         --disable-rule=WANTHSREGEX \
346         --enable-rule=EAPI
347 #       --enable-rule=INET6
348 make
349
350 %install
351 rm -rf $RPM_BUILD_ROOT
352 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,rc.d/init.d,sysconfig} \
353         $RPM_BUILD_ROOT%{_datadir}/errordocs \
354         $RPM_BUILD_ROOT/var/{log/{httpd,archiv/httpd},state/apache/mm}
355
356 make install-quiet root="$RPM_BUILD_ROOT"
357
358 mv $RPM_BUILD_ROOT%{_datadir}/html/manual $RPM_BUILD_ROOT%{_datadir}
359
360 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
361 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
362 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/apache
363
364 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error,agent,referer}_log
365
366 install errordocs/* $RPM_BUILD_ROOT%{_datadir}/errordocs
367
368 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/access.conf
369 install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
370 install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/srm.conf
371 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/virtual-host.conf
372
373 install %{SOURCE9}  $RPM_BUILD_ROOT%{_sysconfdir}/mod_status.conf
374 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/mod_proxy.conf
375
376 ln -sf index.html.en $RPM_BUILD_ROOT/home/httpd/html/index.html
377
378 strip --strip-unneeded $RPM_BUILD_ROOT%{_libexecdir}/*.so
379
380 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
381         ABOUT_APACHE src/CHANGES KEYS README
382
383 %pre
384 if [ -n "`getgid http`" ]; then
385         if [ "`getgid http`" != "51" ]; then
386                 echo "Warning: group http haven't gid=51. Corect this before install apache" 1>&2
387                 exit 1
388         fi
389 else
390         /usr/sbin/groupadd -g 51 -r -f http
391         if [ -f /var/db/group.db ]; then
392                 /usr/bin/update-db 1>&2
393         fi
394 fi
395 if [ -n "`id -u http 2>/dev/null`" ]; then
396         if [ "`id -u http`" != "51" ]; then
397                 echo "Warning: user http haven't uid=51. Corect this before install apache" 1>&2
398                 exit 1
399         fi
400 else
401         /usr/sbin/useradd -u 51 -r -d /home/httpd -s /bin/false -c "HTTP User" -g http http 1>&2
402         if [ -f /var/db/passwd.db ]; then
403                 /usr/bin/update-db 1>&2
404         fi
405 fi
406
407 %post
408 /sbin/chkconfig --add httpd
409 %{_sbindir}/apxs -e -a -n access %{_libexecdir}/mod_access.so 1>&2
410 %{_sbindir}/apxs -e -a -n alias %{_libexecdir}/mod_alias.so 1>&2
411 %{_sbindir}/apxs -e -a -n asis %{_libexecdir}/mod_asis.so 1>&2
412 %{_sbindir}/apxs -e -a -n auth %{_libexecdir}/mod_auth.so 1>&2
413 %{_sbindir}/apxs -e -a -n auth_db %{_libexecdir}/mod_auth_db.so 1>&2
414 %{_sbindir}/apxs -e -a -n auth_dbm %{_libexecdir}/mod_auth_dbm.so 1>&2
415 %{_sbindir}/apxs -e -a -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
416 %{_sbindir}/apxs -e -a -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
417 %{_sbindir}/apxs -e -a -n cgi %{_libexecdir}/mod_cgi.so 1>&2
418 %{_sbindir}/apxs -e -a -n env %{_libexecdir}/mod_env.so 1>&2
419 %{_sbindir}/apxs -e -a -n include %{_libexecdir}/mod_include.so 1>&2
420 %{_sbindir}/apxs -e -a -n log_agent %{_libexecdir}/mod_log_agent.so 1>&2
421 %{_sbindir}/apxs -e -a -n log_config %{_libexecdir}/mod_log_config.so 1>&2
422 %{_sbindir}/apxs -e -a -n log_referer %{_libexecdir}/mod_log_referer.so 1>&2
423 %{_sbindir}/apxs -e -a -n mime_magic %{_libexecdir}/mod_mime_magic.so 1>&2
424 %{_sbindir}/apxs -e -a -n mime %{_libexecdir}/mod_mime.so 1>&2
425 %{_sbindir}/apxs -e -a -n negotiation %{_libexecdir}/mod_negotiation.so 1>&2
426 %{_sbindir}/apxs -e -a -n setenvif %{_libexecdir}/mod_setenvif.so 1>&2
427 %{_sbindir}/apxs -e -a -n speling %{_libexecdir}/mod_speling.so 1>&2
428 %{_sbindir}/apxs -e -a -n userdir %{_libexecdir}/mod_userdir.so 1>&2
429 umask 137
430 touch /var/log/httpd/{access,error,agent,referer}_log
431 if [ -f /var/lock/subsys/httpd ]; then
432         /etc/rc.d/init.d/httpd restart 1>&2
433 else
434         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
435 fi
436
437 %preun
438 if [ "$1" = "0" ]; then
439         %{_sbindir}/apxs -e -A -n access %{_libexecdir}/mod_access.so 1>&2
440         %{_sbindir}/apxs -e -A -n alias %{_libexecdir}/mod_alias.so 1>&2
441         %{_sbindir}/apxs -e -A -n asis %{_libexecdir}/mod_asis.so 1>&2
442         %{_sbindir}/apxs -e -A -n auth %{_libexecdir}/mod_auth.so 1>&2
443         %{_sbindir}/apxs -e -A -n auth_db %{_libexecdir}/mod_auth_db.so 1>&2
444         %{_sbindir}/apxs -e -A -n auth_dbm %{_libexecdir}/mod_auth_dbm.so 1>&2
445         %{_sbindir}/apxs -e -A -n autoindex %{_libexecdir}/mod_autoindex.so 1>&2
446         %{_sbindir}/apxs -e -A -n cern_meta %{_libexecdir}/mod_cern_meta.so 1>&2
447         %{_sbindir}/apxs -e -A -n cgi %{_libexecdir}/mod_cgi.so 1>&2
448         %{_sbindir}/apxs -e -A -n env %{_libexecdir}/mod_env.so 1>&2
449         %{_sbindir}/apxs -e -A -n include %{_libexecdir}/mod_include.so 1>&2
450         %{_sbindir}/apxs -e -A -n log_agent %{_libexecdir}/mod_log_agent.so 1>&2
451         %{_sbindir}/apxs -e -A -n log_config %{_libexecdir}/mod_log_config.so 1>&2
452         %{_sbindir}/apxs -e -A -n log_referer %{_libexecdir}/mod_log_referer.so 1>&2
453         %{_sbindir}/apxs -e -A -n mime %{_libexecdir}/mod_mime.so 1>&2
454         %{_sbindir}/apxs -e -A -n mime_magic %{_libexecdir}/mod_mime_magic.so 1>&2
455         %{_sbindir}/apxs -e -A -n negotiation %{_libexecdir}/mod_negotiation.so 1>&2
456         %{_sbindir}/apxs -e -A -n setenvif %{_libexecdir}/mod_setenvif.so 1>&2
457         %{_sbindir}/apxs -e -A -n speling %{_libexecdir}/mod_speling.so 1>&2
458         %{_sbindir}/apxs -e -A -n userdir %{_libexecdir}/mod_userdir.so 1>&2
459         if [ -f /var/lock/subsys/httpd ]; then
460                 /etc/rc.d/init.d/httpd stop 1>&2
461         fi
462         /sbin/chkconfig --del httpd
463 fi
464
465 %postun
466 if [ "$1" = "0" ]; then
467         /usr/sbin/userdel http
468         if [ -f /var/db/passwd.db ]; then
469                 /usr/bin/update-db
470         fi
471         /usr/sbin/groupdel http
472         if [ -f /var/db/group.db ]; then
473                 /usr/bin/update-db
474         fi
475 fi
476
477 %post mod_actions
478 %{_sbindir}/apxs -e -a -n action %{_libexecdir}/mod_actions.so 1>&2
479 if [ -f /var/lock/subsys/httpd ]; then
480         /etc/rc.d/init.d/httpd restart 1>&2
481 else
482         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
483 fi
484
485 %preun mod_actions
486 if [ "$1" = "0" ]; then
487         %{_sbindir}/apxs -e -A -n action %{_libexecdir}/mod_actions.so 1>&2
488         if [ -f /var/lock/subsys/httpd ]; then
489                 /etc/rc.d/init.d/httpd restart 1>&2
490         fi
491 fi
492
493 %post mod_auth_anon
494 %{_sbindir}/apxs -e -a -n auth_anon %{_libexecdir}/mod_auth_anon.so 1>&2
495 if [ -f /var/lock/subsys/httpd ]; then
496         /etc/rc.d/init.d/httpd restart 1>&2
497 else
498         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
499 fi
500
501 %preun mod_auth_anon
502 if [ "$1" = "0" ]; then
503         %{_sbindir}/apxs -e -A -n auth_anon %{_libexecdir}/mod_auth_anon.so 1>&2
504         if [ -f /var/lock/subsys/httpd ]; then
505                 /etc/rc.d/init.d/httpd restart 1>&2
506         fi
507 fi
508
509 %post mod_define
510 %{_sbindir}/apxs -e -a -n define %{_libexecdir}/mod_define.so 1>&2
511 if [ -f /var/lock/subsys/httpd ]; then
512         /etc/rc.d/init.d/httpd restart 1>&2
513 else
514         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
515 fi
516
517 %preun mod_define
518 if [ "$1" = "0" ]; then
519         %{_sbindir}/apxs -e -A -n define %{_libexecdir}/mod_define.so 1>&2
520         if [ -f /var/lock/subsys/httpd ]; then
521                 /etc/rc.d/init.d/httpd restart 1>&2
522         fi
523 fi
524
525 %post mod_digest
526 %{_sbindir}/apxs -e -a -n digest %{_libexecdir}/mod_digest.so 1>&2
527 if [ -f /var/lock/subsys/httpd ]; then
528         /etc/rc.d/init.d/httpd restart 1>&2
529 else
530         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
531 fi
532
533 %preun mod_digest
534 if [ "$1" = "0" ]; then
535         %{_sbindir}/apxs -e -A -n digest %{_libexecdir}/mod_digest.so 1>&2
536         if [ -f /var/lock/subsys/httpd ]; then
537                 /etc/rc.d/init.d/httpd restart 1>&2
538         fi
539 fi
540
541 %post mod_dir
542 %{_sbindir}/apxs -e -a -n dir %{_libexecdir}/mod_dir.so 1>&2
543 if [ -f /var/lock/subsys/httpd ]; then
544         /etc/rc.d/init.d/httpd restart 1>&2
545 else
546         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
547 fi
548
549 %preun mod_dir
550 if [ "$1" = "0" ]; then
551         %{_sbindir}/apxs -e -A -n dir %{_libexecdir}/mod_dir.so 1>&2
552         if [ -f /var/lock/subsys/httpd ]; then
553                 /etc/rc.d/init.d/httpd restart 1>&2
554         fi
555 fi
556
557 %post mod_expires
558 %{_sbindir}/apxs -e -a -n expires %{_libexecdir}/mod_expires.so 1>&2
559 if [ -f /var/lock/subsys/httpd ]; then
560         /etc/rc.d/init.d/httpd restart 1>&2
561 else
562         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
563 fi
564
565 %preun mod_expires
566 if [ "$1" = "0" ]; then
567         %{_sbindir}/apxs -e -A -n expires %{_libexecdir}/mod_expires.so 1>&2
568         if [ -f /var/lock/subsys/httpd ]; then
569                 /etc/rc.d/init.d/httpd restart 1>&2
570         fi
571 fi
572
573 %post mod_headers
574 %{_sbindir}/apxs -e -a -n headers %{_libexecdir}/mod_headers.so 1>&2
575 if [ -f /var/lock/subsys/httpd ]; then
576         /etc/rc.d/init.d/httpd restart 1>&2
577 else
578         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
579 fi
580
581 %preun mod_headers
582 if [ "$1" = "0" ]; then
583         %{_sbindir}/apxs -e -A -n headers %{_libexecdir}/mod_headers.so 1>&2
584         if [ -f /var/lock/subsys/httpd ]; then
585                 /etc/rc.d/init.d/httpd restart 1>&2
586         fi
587 fi
588
589 %post mod_mmap_static
590 %{_sbindir}/apxs -e -a -n mmap_static %{_libexecdir}/mod_mmap_static.so 1>&2
591 if [ -f /var/lock/subsys/httpd ]; then
592         /etc/rc.d/init.d/httpd restart 1>&2
593 else
594         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
595 fi
596
597 %preun mod_mmap_static
598 if [ "$1" = "0" ]; then
599         %{_sbindir}/apxs -e -A -n mmap_static %{_libexecdir}/mod_mmap_static.so 1>&2
600         if [ -f /var/lock/subsys/httpd ]; then
601                 /etc/rc.d/init.d/httpd restart 1>&2
602         fi
603 fi
604
605 %post mod_imap
606 %{_sbindir}/apxs -e -a -n imap %{_libexecdir}/mod_imap.so 1>&2
607 if [ -f /var/lock/subsys/httpd ]; then
608         /etc/rc.d/init.d/httpd restart 1>&2
609 else
610         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
611 fi
612
613 %preun mod_imap
614 if [ "$1" = "0" ]; then
615         %{_sbindir}/apxs -e -A -n imap %{_libexecdir}/mod_imap.so 1>&2
616         if [ -f /var/lock/subsys/httpd ]; then
617                 /etc/rc.d/init.d/httpd restart 1>&2
618         fi
619 fi
620
621 %post mod_info
622 %{_sbindir}/apxs -e -a -n info %{_libexecdir}/mod_info.so 1>&2
623 if [ -f /var/lock/subsys/httpd ]; then
624         /etc/rc.d/init.d/httpd restart 1>&2
625 else
626         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
627 fi
628
629 %preun mod_info
630 if [ "$1" = "0" ]; then
631         %{_sbindir}/apxs -e -A -n info %{_libexecdir}/mod_info.so 1>&2
632         if [ -f /var/lock/subsys/httpd ]; then
633                 /etc/rc.d/init.d/httpd restart 1>&2
634         fi
635 fi
636
637 %post mod_proxy
638 %{_sbindir}/apxs -e -a -n proxy %{_libexecdir}/libproxy.so 1>&2
639 if [ -f /var/lock/subsys/httpd ]; then
640         /etc/rc.d/init.d/httpd restart 1>&2
641 else
642         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
643 fi
644
645 %preun mod_proxy
646 if [ "$1" = "0" ]; then
647         %{_sbindir}/apxs -e -A -n proxy %{_libexecdir}/libproxy.so 1>&2
648         if [ -f /var/lock/subsys/httpd ]; then
649                 /etc/rc.d/init.d/httpd restart 1>&2
650         fi
651 fi
652
653 %post mod_rewrite
654 %{_sbindir}/apxs -e -a -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
655 if [ -f /var/lock/subsys/httpd ]; then
656         /etc/rc.d/init.d/httpd restart 1>&2
657 else
658         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
659 fi
660
661 %preun mod_rewrite
662 if [ "$1" = "0" ]; then
663         %{_sbindir}/apxs -e -A -n rewrite %{_libexecdir}/mod_rewrite.so 1>&2
664         if [ -f /var/lock/subsys/httpd ]; then
665                 /etc/rc.d/init.d/httpd restart 1>&2
666         fi
667 fi
668
669 %post mod_status
670 %{_sbindir}/apxs -e -a -n status %{_libexecdir}/mod_status.so 1>&2
671 if [ -f /var/lock/subsys/httpd ]; then
672         /etc/rc.d/init.d/httpd restart 1>&2
673 else
674         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
675 fi
676
677 %preun mod_status
678 if [ "$1" = "0" ]; then
679         %{_sbindir}/apxs -e -A -n status %{_libexecdir}/mod_status.so 1>&2
680         if [ -f /var/lock/subsys/httpd ]; then
681                 /etc/rc.d/init.d/httpd restart 1>&2
682         fi
683 fi
684
685 %post mod_usertrack
686 %{_sbindir}/apxs -e -a -n usertrack %{_libexecdir}/mod_usertrack.so 1>&2
687 if [ -f /var/lock/subsys/httpd ]; then
688         /etc/rc.d/init.d/httpd restart 1>&2
689 else
690         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
691 fi
692
693 %preun mod_usertrack
694 if [ "$1" = "0" ]; then
695         %{_sbindir}/apxs -e -A -n usertrack %{_libexecdir}/mod_usertrack.so 1>&2
696         if [ -f /var/lock/subsys/httpd ]; then
697                 /etc/rc.d/init.d/httpd restart 1>&2
698         fi
699 fi
700
701 %post mod_unique_id
702 %{_sbindir}/apxs -e -a -n unique_id %{_libexecdir}/mod_unique_id.so 1>&2
703 if [ -f /var/lock/subsys/httpd ]; then
704         /etc/rc.d/init.d/httpd restart 1>&2
705 else
706         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
707 fi
708
709 %preun mod_unique_id
710 if [ "$1" = "0" ]; then
711         %{_sbindir}/apxs -e -A -n unique_id %{_libexecdir}/mod_unique_id.so 1>&2
712         if [ -f /var/lock/subsys/httpd ]; then
713                 /etc/rc.d/init.d/httpd restart 1>&2
714         fi
715 fi
716
717 %post mod_vhost_alias
718 %{_sbindir}/apxs -e -a -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
719 if [ -f /var/lock/subsys/httpd ]; then
720         /etc/rc.d/init.d/httpd restart 1>&2
721 else
722         echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
723 fi
724
725 %preun mod_vhost_alias
726 if [ "$1" = "0" ]; then
727         %{_sbindir}/apxs -e -A -n vhost_alias %{_libexecdir}/mod_vhost_alias.so 1>&2
728         if [ -f /var/lock/subsys/httpd ]; then
729                 /etc/rc.d/init.d/httpd restart 1>&2
730         fi
731 fi
732
733 %clean
734 rm -rf $RPM_BUILD_ROOT
735
736 %files
737 %defattr(644,root,root,755)
738 %doc ABOUT_APACHE.gz src/CHANGES.gz KEYS.gz README.gz
739 %doc conf/mime.types
740
741 %dir %{_datadir}/manual
742 %dir %{_datadir}/manual/images/
743 %{_datadir}/manual/images/sub.gif
744 %{_datadir}/manual/images/index.gif
745 %{_datadir}/manual/images/home.gif 
746 %{_datadir}/manual/misc
747 %dir %{_datadir}/manual/search
748 %attr(755,root,root) %{_datadir}/manual/search/manual-index.cgi
749 %{_datadir}/manual/vhosts
750 %{_datadir}/manual/LICENSE
751 %{_datadir}/manual/bind.html
752 %{_datadir}/manual/cgi_path.html
753 %{_datadir}/manual/content-negotiation.html
754 %{_datadir}/manual/custom-error.html
755 %{_datadir}/manual/dns-caveats.html
756 %{_datadir}/manual/dso.html
757 %{_datadir}/manual/env.html
758 %{_datadir}/manual/footer.html
759 %{_datadir}/manual/handler.html
760 %{_datadir}/manual/header.html
761 %{_datadir}/manual/index.html
762 %{_datadir}/manual/install.html
763 %{_datadir}/manual/invoking.html
764 %{_datadir}/manual/keepalive.html
765 %{_datadir}/manual/location.html
766 %{_datadir}/manual/multilogs.html
767 %{_datadir}/manual/new_features_1_3.html
768 %{_datadir}/manual/process-model.html
769 %{_datadir}/manual/sections.html
770 %{_datadir}/manual/sourcereorg.html
771 %{_datadir}/manual/suexec.html
772 %{_datadir}/manual/upgrading_to_1_3.html
773 %{_datadir}/manual/mod/core.html
774 %{_datadir}/manual/mod/directive-dict.html
775 %{_datadir}/manual/mod/directives.html
776 %{_datadir}/manual/mod/footer.html
777 %{_datadir}/manual/mod/header.html
778 %{_datadir}/manual/mod/index.html
779 %{_datadir}/manual/mod/mod_access.html
780 %{_datadir}/manual/mod/mod_alias.html
781 %{_datadir}/manual/mod/mod_asis.html
782 %{_datadir}/manual/mod/mod_auth.html
783 %{_datadir}/manual/mod/mod_auth_db.html
784 %{_datadir}/manual/mod/mod_auth_dbm.html
785 %{_datadir}/manual/mod/mod_autoindex.html
786 %{_datadir}/manual/mod/mod_cgi.html
787 %{_datadir}/manual/mod/mod_cookies.html
788 %{_datadir}/manual/mod/mod_env.html
789 %{_datadir}/manual/mod/mod_include.html
790 %{_datadir}/manual/mod/mod_log_agent.html
791 %{_datadir}/manual/mod/mod_log_config.html
792 %{_datadir}/manual/mod/mod_log_referer.html
793 %{_datadir}/manual/mod/mod_mime.html
794 %{_datadir}/manual/mod/mod_mime_magic.html
795 %{_datadir}/manual/mod/mod_negotiation.html
796 %{_datadir}/manual/mod/mod_setenvif.html
797 %{_datadir}/manual/mod/mod_speling.html
798 %{_datadir}/manual/mod/mod_userdir.html
799
800 %attr(754,root,root) /etc/rc.d/init.d/httpd
801
802 %attr(750,root,root) %dir %{_sysconfdir}
803 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/access.conf
804 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf
805 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/srm.conf
806 %attr(640,root,root) %{_sysconfdir}/magic
807
808 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/*
809 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/*
810
811 %attr(755,root,root) %dir %{_datadir}/html
812 %config(noreplace) %{_datadir}/html/index.html
813 %lang(ca) %{_datadir}/html/index.html.ca
814 %lang(cz) %{_datadir}/html/index.html.cz
815 %lang(de) %{_datadir}/html/index.html.de
816 %lang(dk) %{_datadir}/html/index.html.dk
817 %lang(ee) %{_datadir}/html/index.html.ee
818 %lang(en) %{_datadir}/html/index.html.en
819 %lang(es) %{_datadir}/html/index.html.es
820 %lang(fr) %{_datadir}/html/index.html.fr
821 %lang(it) %{_datadir}/html/index.html.it
822 %lang(lu) %{_datadir}/html/index.html.lu
823 %lang(nl) %{_datadir}/html/index.html.nl
824 %lang(pt) %{_datadir}/html/index.html.pt
825 %lang(se) %{_datadir}/html/index.html.se
826
827 %{_datadir}/html/*.gif
828 %{_datadir}/errordocs
829 %dir %{_datadir}/icons
830 %{_datadir}/icons/*.gif
831 %dir %{_datadir}/icons/small
832 %{_datadir}/icons/small/*.gif
833 %attr(755,root,root) %{_datadir}/cgi-bin
834
835 %dir %{_libexecdir}
836 %attr(755,root,root) %{_libexecdir}/mod_access.so
837 %attr(755,root,root) %{_libexecdir}/mod_alias.so
838 %attr(755,root,root) %{_libexecdir}/mod_asis.so
839 %attr(755,root,root) %{_libexecdir}/mod_auth.so
840 %attr(755,root,root) %{_libexecdir}/mod_auth_db.so
841 %attr(755,root,root) %{_libexecdir}/mod_auth_dbm.so
842 %attr(755,root,root) %{_libexecdir}/mod_autoindex.so
843 %attr(755,root,root) %{_libexecdir}/mod_cern_meta.so
844 %attr(755,root,root) %{_libexecdir}/mod_cgi.so
845 %attr(755,root,root) %{_libexecdir}/mod_env.so
846 %attr(755,root,root) %{_libexecdir}/mod_include.so
847 %attr(755,root,root) %{_libexecdir}/mod_log_agent.so
848 %attr(755,root,root) %{_libexecdir}/mod_log_config.so
849 %attr(755,root,root) %{_libexecdir}/mod_log_referer.so
850 %attr(755,root,root) %{_libexecdir}/mod_mime.so
851 %attr(755,root,root) %{_libexecdir}/mod_mime_magic.so
852 %attr(755,root,root) %{_libexecdir}/mod_negotiation.so
853 %attr(755,root,root) %{_libexecdir}/mod_setenvif.so
854 %attr(755,root,root) %{_libexecdir}/mod_speling.so
855 %attr(755,root,root) %{_libexecdir}/mod_userdir.so
856
857 %attr(755,root,root) %{_bindir}/dbmmanage 
858 %attr(755,root,root) %{_bindir}/htdigest
859 %attr(755,root,root) %{_bindir}/htpasswd
860
861 %attr(755,root,root) %{_sbindir}/ab
862 %attr(755,root,root) %{_sbindir}/apachectl
863 %attr(755,root,root) %{_sbindir}/apxs
864 %attr(755,root,root) %{_sbindir}/httpd
865 %attr(755,root,root) %{_sbindir}/logresolve
866 %attr(755,root,root) %{_sbindir}/rotatelogs
867
868 %dir %attr(750,http,http) /var/state/apache
869
870 %{_mandir}/man[18]/*
871
872 %attr(750,root,root) %dir /var/log/httpd
873 %attr(750,root,root) %dir /var/log/archiv/httpd
874 %attr(640,root,root) %ghost /var/log/httpd/*
875
876 %files suexec
877 %attr(4755,root,root) %{_sbindir}/suexec
878
879 %files devel
880 %defattr(644,root,root,755) 
881
882 %{_includedir}
883
884 %files mod_actions
885 %attr(755,root,root) %{_libexecdir}/mod_actions.so
886 %attr(644,root,root) %{_datadir}/manual/mod/mod_actions.html
887
888 %files mod_auth_anon
889 %attr(755,root,root) %{_libexecdir}/mod_auth_anon.so
890 %attr(644,root,root) %{_datadir}/manual/mod/mod_auth_anon.html
891
892 %files mod_define
893 %attr(755,root,root) %{_libexecdir}/mod_define.so
894 %attr(644,root,root) %{_datadir}/manual/mod/mod_define.html
895
896 %files mod_digest
897 %attr(755,root,root) %{_libexecdir}/mod_digest.so
898 %attr(644,root,root) %{_datadir}/manual/mod/mod_digest.html
899
900 %files mod_dir
901 %attr(755,root,root) %{_libexecdir}/mod_dir.so
902 %attr(644,root,root) %{_datadir}/manual/mod/mod_dir.html
903
904 %files mod_expires
905 %attr(755,root,root) %{_libexecdir}/mod_expires.so
906 %attr(644,root,root) %{_datadir}/manual/mod/mod_expires.html
907
908 %files mod_headers
909 %attr(755,root,root) %{_libexecdir}/mod_headers.so
910 %attr(644,root,root) %{_datadir}/manual/mod/mod_headers.html
911
912 %files mod_mmap_static
913 %attr(755,root,root) %{_libexecdir}/mod_mmap_static.so
914 %attr(644,root,root) %{_datadir}/manual/mod/mod_mmap_static.html
915
916 %files mod_imap
917 %attr(755,root,root) %{_libexecdir}/mod_imap.so
918 %attr(644,root,root) %{_datadir}/manual/mod/mod_imap.html
919
920 %files mod_info
921 %attr(755,root,root) %{_libexecdir}/mod_info.so
922 %attr(644,root,root) %{_datadir}/manual/mod/mod_info.html
923
924 %files mod_proxy
925 %config(noreplace) %{_sysconfdir}/mod_proxy.conf
926 %attr(640,root,root) %{_sysconfdir}/mod_proxy.conf
927 %attr(755,root,root) %{_libexecdir}/libproxy.so
928 %attr(644,root,root) %{_datadir}/manual/mod/mod_proxy.html
929 %dir %attr(750,http,http) /var/cache/apache
930
931 %files mod_rewrite
932 %attr(755,root,root) %{_libexecdir}/mod_rewrite.so
933 %attr(644,root,root) %{_datadir}/manual/mod/mod_rewrite.html
934
935 %files mod_status
936 %config(noreplace) %{_sysconfdir}/mod_status.conf
937 %attr(640,root,root) %{_sysconfdir}/mod_status.conf
938 %attr(755,root,root) %{_libexecdir}/mod_status.so
939 %attr(644,root,root) %{_datadir}/manual/mod/mod_status.html
940
941 %files mod_usertrack
942 %attr(755,root,root) %{_libexecdir}/mod_usertrack.so
943 %attr(644,root,root) %{_datadir}/manual/mod/mod_usertrack.html
944
945 %files mod_unique_id
946 %attr(755,root,root) %{_libexecdir}/mod_unique_id.so
947 %attr(644,root,root) %{_datadir}/manual/mod/mod_unique_id.html
948
949 %files mod_vhost_alias
950 %attr(755,root,root) %{_libexecdir}/mod_vhost_alias.so
951 %attr(644,root,root) %{_datadir}/manual/mod/mod_vhost_alias.html
952 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/virtual-host.conf
This page took 0.109113 seconds and 3 git commands to generate.