]> git.pld-linux.org Git - packages/apache.git/blob - apache.spec
we want auth_db module
[packages/apache.git] / apache.spec
1 Summary:        HTTP server daemon to provide WWW services with IPv6 support
2 Summary(de):    Leading World Wide Web-Server
3 Summary(fr):    Serveur Web leader du marché
4 Summary(pl):    Serwer WWW (World Wide Web) ze wsparciem dla IPv6
5 Summary(tr):    Lider WWW tarayýcý
6 Name:           apache
7 Version:        1.3.6
8 Release:        1
9 Group:          Networking/Daemons
10 Group(pl):      Sieci/Demony
11 Source0:        ftp://ftp.apache.org/apache/dist/%{name}_%{version}.tar.gz
12 Source1:        apache.init
13 Source2:        %{name}.logrotate
14 Source3:        %{name}-extra.tar.bz2
15 ########        http://stonecold.unity.ncsu.edu/software/mod_auth_kerb/index.html
16 Source5:        mod_auth_kerb-4.3.tar.gz
17 Source6:        apache_1.3.6.tar.gz.asc
18 Source7:        apache_1.3.6.tar.gz.md5
19 Patch0:         %{name}-suexec.patch
20 Patch1:         %{name}_1.3.6.ipv6.patch
21 Copyright:      BSD-like
22 Obsoletes:      apache-extra
23 Obsoletes:      apache6
24 Provides:       httpd
25 Provides:       webserver
26 Prereq:         /sbin/chkconfig
27 URL:            http://www.apache.org/
28 BuildRoot:      /tmp/%{name}-%{version}-root
29
30 %description
31 Apache is a full featured web server that is freely available, and also
32 happens to be the most widely used. This version supports IPv6.
33
34 %description -l de
35 Apache ist ein voll funktionsfähiger Web-Server, der kostenlos
36 erhältlich und weit verbreitet ist.
37
38 %description -l fr
39 Apache est un serveur Web complet, disponible librement, et se trouve être
40 aussi le plus utilisé à travers le monde.
41
42 %description -l pl
43 Apache jest serwerem WWW (World Wide Web). Instaluj±c ten pakiet bêdziesz 
44 móg³ prezentowaæ w³asne strony WWW w sieci internet. Apache umo¿liwia równie¿
45 konfigurowanie serwerów wirtualnych. Ta wersja wspiera IPv6.
46
47 %description -l tr
48 Apache serbest daðýtýlan ve çok kullanýlan yetenekli bir web sunucusudur.
49
50 %package suexec
51 Summary:        Apache suexec wrapper
52 Summary(pl):    Suexec wrapper do serwera www Apache
53 Group:          Networking/Development
54 Group(pl):      Sieci/Programowanie
55 Requires:       %{name} = %{version}
56
57 %description suexec
58 The suEXEC feature provides Apache users the ability to run CGI and SSI
59 programs under user IDs different from the user ID of the calling web-server.
60 Normally, when a CGI or SSI program executes, it runs as the same user 
61 who is running the web server. 
62
63 %description -l pl suexec
64 SuEXEC umo¿liwia serwerowi Apache uruchamianie programów CGI i SSI z innym
65 UID ni¿ wywo³uj±cy je serwer. Normalnie programy CGI i SSI s± wykonywane
66 jako taki sam u¿ytkownik jak serwer WWW.
67
68 %package devel
69 Summary:        Apache include files
70 Summary(pl):    Pliki nag³ówkowe do serwera www Apache
71 Group:          Networking/Development
72 Group(pl):      Sieci/Programowanie
73 Requires:       %{name} = %{version}
74
75 %description devel
76 Apache include files.
77
78 %description -l pl devel
79 Pliki nag³ówkowe dla serwera WWW Apache.
80
81 %package doc
82 Summary:        Apache dokumentation
83 Summary(pl):    Dokumentacja do Apache
84 Group:          Documentation
85 Group(pl):      Dokumentacja
86 Requires:       %{name} = %{version}
87 URL:            http://www.apache.org/
88
89 %description doc
90 Documentation for apache in HTML format.
91
92 %description -l pl doc
93 Dokumentacja do Apache w formacie HTML
94
95 %prep 
96 %setup -q -n apache_%{version} -a3
97 %patch0 -p1
98 %patch1 -p1
99
100 %build
101 OPTIM=$RPM_OPT_FLAGS LDFLAGS=-s\
102     ./configure \
103         --prefix=/usr \
104         --sysconfdir=/etc/httpd/conf \
105         --datadir=/home/httpd \
106         --libexecdir=/usr/libexec/apache \
107         --localstatedir=/var \
108         --runtimedir=/var/run \
109         --logfiledir=/var/log/httpd \
110         --without-confadjust \
111         --enable-module=all \
112         --enable-shared=max \
113         --proxycachedir=/var/cache/www/apache \
114         --with-perl=%{_bindir}/perl \
115         --enable-suexec \
116         --suexec-caller=http \
117         --suexec-uidmin=500 \
118         --suexec-gidmin=500 \
119         --sbindir=%{_sbindir} \
120         --includedir=%{_includedir}/apache \
121         --enable-rule=INET6
122
123 make
124
125 %install
126 rm -rf $RPM_BUILD_ROOT
127
128 make install-quiet root="$RPM_BUILD_ROOT"
129
130 mv $RPM_BUILD_ROOT/home/httpd/htdocs $RPM_BUILD_ROOT/home/httpd/html
131
132 install -d $RPM_BUILD_ROOT/etc/{httpd/conf,logrotate.d,rc.d/init.d}
133 install -d $RPM_BUILD_ROOT/home/httpd/{html/manual,icons,cgi-bin}
134 install -d $RPM_BUILD_ROOT/{usr/{share,lib/apache,sbin,man/man{1,8}},var/log/httpd}
135
136 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache
137 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/httpd
138
139 install -d $RPM_BUILD_ROOT%{_includedir}/apache
140
141 rm -f $RPM_BUILD_ROOT/etc/httpd/conf/*
142 rm -f $RPM_BUILD_ROOT/home/httpd/html/manual/expand.pl
143
144 touch $RPM_BUILD_ROOT/var/log/httpd/{access,error}_log
145
146 cp -a apache-extra/errordocs    $RPM_BUILD_ROOT/home/httpd/
147 cp -a apache-extra/icons/*      $RPM_BUILD_ROOT/home/httpd/icons
148 cp -a apache-extra/*.conf       $RPM_BUILD_ROOT/etc/httpd/conf
149 cp -a apache-extra/m*           $RPM_BUILD_ROOT/etc/httpd/conf
150
151 mv $RPM_BUILD_ROOT/usr/man $RPM_BUILD_ROOT%{_mandir}
152
153 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/{man1/*,man8/*}
154 gzip -9nf ABOUT_APACHE src/CHANGES KEYS README README.v6
155
156 %clean
157 rm -rf $RPM_BUILD_ROOT
158
159 %post
160 /sbin/chkconfig --add httpd
161
162 %preun
163 if [ $1 = 0 ]; then
164    if [ -f /var/lock/subsys/httpd ]; then
165        /etc/rc.d/init.d/httpd stop >&2
166    fi
167    /sbin/chkconfig --del httpd
168 fi
169
170 %files
171 %defattr(644,root,root,755)
172 %doc ABOUT_APACHE.gz src/CHANGES.gz KEYS.gz README.gz
173 %doc conf/mime.types README.v6
174
175 %attr(750,root,root) %dir /etc/httpd
176 %attr(750,root,root) %dir /etc/httpd/conf
177 %attr(640,root,root) %config %verify(not size mtime md5) /etc/httpd/conf/*
178
179 %attr(640,root,root) %config /etc/logrotate.d/*
180 %attr(755,root,root) %dir /home/httpd/html
181
182 %config(noreplace) /home/httpd/html/index.html
183
184 %attr(644,root,root) /home/httpd/html/*.gif
185 %attr(700,root,root) %config %verify(not size mtime md5) /etc/rc.d/init.d/*
186
187 %attr(755,root,root) /home/httpd/cgi-bin
188 %attr(755,root,root) /usr/libexec/apache
189
190 %attr(755,root,root) %dir /home/httpd/icons
191 /home/httpd/icons/*.gif
192
193 %attr(755,root,root) %dir /home/httpd/errordocs
194 /home/httpd/errordocs/*
195
196 %attr(755,root,root) %{_bindir}/dbmmanage 
197 %attr(755,root,root) %{_bindir}/htdigest
198 %attr(755,root,root) %{_bindir}/htpasswd
199
200 %attr(755,root,root) %{_sbindir}/ab
201 %attr(755,root,root) %{_sbindir}/apachectl
202 %attr(755,root,root) %{_sbindir}/apxs
203 %attr(755,root,root) %{_sbindir}/httpd
204 %attr(755,root,root) %{_sbindir}/logresolve
205 %attr(755,root,root) %{_sbindir}/rotatelogs
206 %dir %attr(750,http,http) /var/cache/www/apache
207
208 %{_mandir}/man[18]/*
209
210 %attr(750,root,root) %dir /var/log/httpd
211 %attr(640,root,root) %config %verify(not size mtime md5) /var/log/httpd/*
212
213 %files suexec
214 %attr(4711,root,root) %{_sbindir}/suexec
215
216 %files devel
217 %defattr(644,root,root,755) 
218
219 %dir %{_includedir}/apache
220 %{_includedir}/apache/*
221
222 %files doc
223 %defattr(644,root,root,755)
224 /home/httpd/html/manual
225
226 %changelog
227 * Thu Feb 10 1999 Micha³ Kuratczyk <kurkens@polbox.com>
228   [1.3.4-6d]
229 - added LDFLAGS=-s
230 - gzipping instead bzipping
231 - cosmetic changes
232
233 * Tue Jan 26 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
234   [1.3.4-5d]
235 - rebuild against new kernel-2.2.0 ;)  
236
237 * Mon Jan 25 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
238   [1.3.4-4d]
239 - added errordocs.  
240
241 * Thu Jan 21 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
242   [1.3.4-3d]
243 - fixed files permission,
244 - fixed apache.init,
245 - some other changes.
246
247 * Sun Jan 17 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
248   [1.3.4-2d]
249 - fixed sbindir && apache includes (by Mirek Nowakowski <nowam@pg.gda.pl>),
250 - compressed documentation,
251 - fixed Group(pl).
252
253 * Wed Nov 13 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
254   [1.3.3-1]
255 - removed making symlinks in /etc/rc.d/rc?.d and in %install also
256   removed this symlinks from %files (/etc/rc.d/init.d/httpd suports
257   chkconfig),
258 - more simplifications in %install,
259 - added new apache-config.patch,
260 - added "%ghost /var/log/httpd/suexec_log" for suexec subpackage,
261 - added "Requires: setup >= 1.10.0" for proper install in enviroment with
262   http user/group.
263
264 * Wed Oct 14 1998 Konrad Stêpieñ <konrad@interdata.com.pl>
265   [1.3.3-1d]
266 - up to 1.3.3
267 - changed user/group to http
268 - added patch against GNU libc-2.1, 
269   prepared by Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
270 - enabled all modules (without auth_db ....)
271 - added magic (for mod_mime_magic)
272 - rebuild spec file to minimize number of patches
273 - suEXEC in separated package
274
275 * Wed Oct 14 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
276   [1.3.2-1d]
277 - build against Tornado (GNU libc-2.1),
278 - minor changes. 
279
280 * Fri Sep 25 1998 Konrad Stêpieñ <konrad@interdata.com.pl>
281   [1.3.2-1]
282 - up to 1.3.2
283 - reconfig to use /etc/mime.types (again)
284   orginal mime.types can be found in documentation directory
285 - changed to user/group httpd
286 - restore orginal start page
287 - documentation in separate package
288 - added "Provides:httpd"
289
290 * Thu Sep  3 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
291   [1.3.1-2]
292 - removed /home/httpd/icons/README
293 - added devel subpackage,
294 - added pl translation (Wojtek ¦lusarczyk <wojtek@shadow.eu.org>),
295 - removed Serial: filed,
296 - removed Packager: field (this must be placed in private ~/.rpmrc),
297 - simplification in %files and %install,
298 - /home/httpd/html/manual is now marked as %doc,
299 - added /etc/rc.d/rc*.d/* symlinks as a %config(missingok),
300 - changed permidssion on logrotate config file to 600,
301 - changed permidssion on /var/log/httpd to 700,
302 - added %ghost /var/log/httpd/*
303 - added striping modules.
304 - added patch to defeat header dos attack
305
306 * Sat Jul 18 1998 Manoj Kasichainula <manojk@io.com>
307   [1.3.1-1]
308   some of the changes from 1.3.0-1 (mine was done independantly, so there are
309   probably other changes)
310 - /etc/rc.d/init.d/httpd includes reload
311 - logrotate doesn't kill all httpd processes, just one. This is recommended.
312 - Doesn't uses Red Hat MIME typesm since RH mime.types doesn't include .htm,
313   and there are other differences which will probably just cause lots of
314   annoying bug reports
315 - Don't change ServerAdmin (this fake address is on purpose according
316   to the Apache Group)
317 - don't enable mod_auth_dbm, since it can supposedly conflict with
318   mod_auth_db
319
320 * Sun May 31 1998 Manoj Kasichainula <manojk@io.com>
321   [1.3b8_dev-1]
322 - Updated to 1.3b8_dev
323 - Deleted some patchwork because of improvements in APACI
324 - Added translations from RH 5.1 Apache RPM
325 - Loosened permissions to match RH 5.1 Apache RPM in /home
326 - Allow index.htm
327 - Collapsed doc package into main package (partly inspired by RPM bug)
328
329 * Fri May 22 1998 Manoj Kasichainula <manojk@io.com>
330   [1.3b7-0]
331 - Upgraded to 1.3b7
332 - Uses APACI configuration interface -- radical rewrite
333 - No more apache-extra, at least for now
334 - more descriptive Copyright field
335 - Now builds suEXEC
336 - Explicitly decided not to use built-in mime.types, but included patch to do
337   so
338
339 * Thu Apr 16 1998 Manoj Kasichainula <manojk@io.com>
340   [1.3b6-4]
341 - Upgraded to 1.3b6
342 - Split perl path patch from other config (saves a little time when upgrading
343   packages)
344 - Started the process of separating out shared modules. So far, only the proxy
345   module has been done.
346 - Yeah, I'm aware of 1.3b6-3 RPM in contrib. It has problems that I would
347   discuss with the packager if I could find out who that was.
348
349 * Thu Mar 5 1998 Manoj Kasichainula <manojk@io.com>
350
351 - Upgraded to 1.3b5
352 - Buildable by non-root
353
354 * Fri Jan 2 1998 Manoj Kasichainula <manojk@io.com>
355
356 - Includes changes from Red Hat 5.0's Apache release
357   - added patch for backslash DoS attach
358   - made the default index.html be config(noreplace) so we no longer
359     blow away other folks' index.html
360   - added chkconfig support
361   - added restart|status options to initscript
362   - renamed httpd.init to httpd
363   - New index.html
364   - Now uses Red Hat's mime.types file (I may change my mind on this)
365   - No longer keeps an agent and referer log.
366   - Much more
367 - Upgraded to 1.3b3
368 - Fixed sillyness in /etc/rc.d/init.d/httpd
369 - Now require recent version of initscripts with killproc fix.
370 - Changed logrotate script
371 - Undid Red Hat's ServerAdmin change (Red Hat's choice results in a
372   seemingly valid but nonsensical address)
373 - suexec moved to /home/httpd/sbin/suexec
374 - Replaced a reference to apache_pb.gif to /icons/apache_pb.gif, to save a
375   bit of space)
376
377 * Thu Oct 16 1997 Manoj Kasichainula <manojk@io.com>
378 - Upgraded to 1.3b2
379 - MaxRequestsPerChild upped to 10000
380 - apache-suexec absorbed into apache
381 - Uncommented Serial: line. Now, it requires a recent version of RPM
This page took 0.068038 seconds and 4 git commands to generate.