]> git.pld-linux.org Git - packages/lighttpd.git/blob - lighttpd.spec
- make etag consistent across mixed 32/64 enviroment (avoid 32bit overflow); rel 5
[packages/lighttpd.git] / lighttpd.spec
1 # Conditional build for lighttpd:
2 %bcond_without  xattr           # support of extended attributes
3 %bcond_without  ipv6            # IPv4-only version (doesn't require IPv6 in kernel)
4 %bcond_without  largefile       # largefile support (see notes above)
5 %bcond_without  ssl             # ssl support
6 %bcond_without  mysql           # mysql support in mod_mysql_vhost
7 %bcond_without  ldap            # ldap support in mod_auth
8 %bcond_without  lua             # LUA support in mod_cml (needs LUA >= 5.1)
9 %bcond_with     memcache        # memcached support in mod_cml / mod_trigger_b4_dl
10 %bcond_with     gamin           # gamin for reducing number of stat() calls.
11                                 # NOTE: must be enabled in config: server.stat-cache-engine = "fam"
12 %bcond_with     gdbm            # gdbm in mod_trigger_b4_dl
13 %bcond_with     webdav_props    # properties in mod_webdav (includes extra sqlite3/libxml deps)
14 %bcond_with     webdav_locks    # webdav locks with extra efsprogs deps
15 %bcond_with     valgrind        # compile code with valgrind support.
16 %bcond_with     deflate         # build deflate module (needs patch update with current svn)
17
18 %if %{with webdav_locks}
19 %define         webdav_progs    1
20 %endif
21
22 Summary:        Fast and light HTTP server
23 Summary(pl.UTF-8):      Szybki i lekki serwer HTTP
24 Name:           lighttpd
25 Version:        1.4.26
26 Release:        5
27 License:        BSD
28 Group:          Networking/Daemons/HTTP
29 Source0:        http://download.lighttpd.net/lighttpd/releases-1.4.x/%{name}-%{version}.tar.bz2
30 # Source0-md5:  a682c8efce47a2f4263a247ba0813c9b
31 Source1:        %{name}.init
32 Source2:        %{name}.conf
33 Source3:        %{name}.user
34 Source4:        %{name}.logrotate
35 Source5:        %{name}.sysconfig
36 Source6:        %{name}-mime.types.sh
37 Source7:        http://glen.alkohol.ee/pld/lighty/favicon.ico
38 # Source7-md5:  00fcac5b861a54f5eb147a589504d480
39 Source8:        light_button.png
40 # Source8-md5:  3e1008ee1d3d6d390cf81fe3072b4f50
41 Source9:        light_logo.png
42 # Source9-md5:  cbb7f0676e51ee2e26cf004df293fc62
43 Source10:       pld_button.png
44 # Source10-md5: 185afa921e81bd726b9f0f9f0909dc6e
45 Source11:       %{name}-pld.html
46 Source12:       %{name}.monitrc
47 Source13:       %{name}-branch.sh
48 Source14:       TODO
49 Source100:      %{name}-mod_access.conf
50 Source101:      %{name}-mod_accesslog.conf
51 Source102:      %{name}-mod_alias.conf
52 Source103:      %{name}-mod_auth.conf
53 Source104:      %{name}-mod_cgi.conf
54 Source105:      %{name}-mod_cml.conf
55 Source106:      %{name}-mod_compress.conf
56 Source107:      %{name}-mod_deflate.conf
57 Source108:      %{name}-mod_dirlisting.conf
58 Source109:      %{name}-mod_evasive.conf
59 Source110:      %{name}-mod_evhost.conf
60 Source111:      %{name}-mod_expire.conf
61 Source112:      %{name}-mod_fastcgi.conf
62 Source113:      %{name}-mod_flv_streaming.conf
63 Source114:      %{name}-mod_indexfile.conf
64 Source115:      %{name}-mod_proxy.conf
65 Source116:      %{name}-mod_redirect.conf
66 Source117:      %{name}-mod_rewrite.conf
67 Source118:      %{name}-mod_rrdtool.conf
68 Source119:      %{name}-mod_scgi.conf
69 Source120:      %{name}-mod_secdownload.conf
70 Source121:      %{name}-mod_setenv.conf
71 Source122:      %{name}-mod_simple_vhost.conf
72 Source123:      %{name}-mod_ssi.conf
73 Source124:      %{name}-mod_staticfile.conf
74 Source125:      %{name}-mod_status.conf
75 Source126:      %{name}-mod_trigger_b4_dl.conf
76 Source127:      %{name}-mod_userdir.conf
77 Source128:      %{name}-mod_usertrack.conf
78 Source129:      %{name}-mod_webdav.conf
79 Source130:      %{name}-php-spawned.conf
80 Source131:      %{name}-php-external.conf
81 Source132:      %{name}-ssl.conf
82 Source133:      %{name}-mod_mysql_vhost.conf
83 Source134:      %{name}-mod_magnet.conf
84 Source135:      %{name}-mod_extforward.conf
85 Source136:      %{name}-mod_h264_streaming.conf
86 Source137:      %{name}-mod_cgi_php.conf
87 Patch100:       %{name}-branch.diff
88 Patch0:         %{name}-use_bin_sh.patch
89 Patch1:         %{name}-mod_evasive-status_code.patch
90 Patch2:         %{name}-mod_h264_streaming.patch
91 Patch3:         %{name}-branding.patch
92 Patch4:         %{name}-modinit-before-fork.patch
93 Patch5:         %{name}-mod_deflate.patch
94 Patch6:         etag-32bit-overflow.patch
95 #Patch8:                %{name}-errorlog-before-fork.patch
96 URL:            http://www.lighttpd.net/
97 %{?with_xattr:BuildRequires:    attr-devel}
98 BuildRequires:  autoconf >= 2.57
99 BuildRequires:  automake
100 BuildRequires:  bzip2-devel
101 BuildRequires:  fcgi-devel
102 %{?with_gamin:BuildRequires:    gamin-devel}
103 %{?with_gdbm:BuildRequires:     gdbm-devel}
104 %{?with_memcache:BuildRequires: libmemcache-devel}
105 BuildRequires:  libtool
106 BuildRequires:  libuuid-devel
107 %{?with_webdav_props:BuildRequires:     libxml2-devel}
108 %{?with_lua:BuildRequires:      lua51-devel}
109 BuildRequires:  mailcap >= 2.1.14-4.4
110 %{?with_mysql:BuildRequires:    mysql-devel}
111 %{?with_ldap:BuildRequires:     openldap-devel}
112 %{?with_ssl:BuildRequires:      openssl-devel}
113 BuildRequires:  pcre-devel
114 BuildRequires:  pkgconfig
115 BuildRequires:  rpmbuild(macros) >= 1.268
116 %{?with_webdav_props:BuildRequires:     sqlite3-devel}
117 %{?with_valgrind:BuildRequires: valgrind}
118 BuildRequires:  which
119 BuildRequires:  zlib-devel
120 Requires(post,preun):   /sbin/chkconfig
121 Requires(postun):       /usr/sbin/groupdel
122 Requires(postun):       /usr/sbin/userdel
123 Requires(pre):  /bin/id
124 Requires(pre):  /usr/bin/getgid
125 Requires(pre):  /usr/lib/rpm/user_group.sh
126 Requires(pre):  /usr/sbin/groupadd
127 Requires(pre):  /usr/sbin/useradd
128 Requires(pre):  /usr/sbin/usermod
129 Requires:       %{name}-mod_dirlisting = %{version}-%{release}
130 Requires:       %{name}-mod_indexfile = %{version}-%{release}
131 Requires:       %{name}-mod_staticfile = %{version}-%{release}
132 Requires:       rc-scripts >= 0.4.1.26-2
133 Requires:       rpm-whiteout >= 1.5
134 Provides:       group(http)
135 Provides:       group(lighttpd)
136 Provides:       user(lighttpd)
137 Provides:       webserver
138 Provides:       webserver(mime)
139 Conflicts:      logrotate < 3.7-4
140 # for the posttrans scriptlet, conflicts because in vserver environment rpm package is not installed.
141 Conflicts:      rpm < 4.4.2-0.2
142 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
143
144 %define         _libdir         %{_prefix}/%{_lib}/%{name}
145 %define         _lighttpddir    /home/services/%{name}
146 %define         _sysconfdir     /etc/%{name}
147
148 %description
149 lighttpd is a secure, fast, compliant and very flexible web-server
150 which has been optimized for high-performance environments. It has a
151 very low memory footprint compared to other webservers and takes care
152 of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth,
153 Output-Compression, URL-Rewriting and many more) make lighttpd the
154 perfect webserver-software for every server that is suffering load
155 problems.
156
157 %description -l pl.UTF-8
158 lighttpd jest bezpiecznym, szybkim, przyjaznym i bardzo elastycznym
159 serwerem WWW, który został zoptymalizowany pod kątem
160 wysokowydajnościowych środowisk. Zajmuje bardzo małą ilość pamięci w
161 porównaniu do innych serwerów WWW oraz dba o zajętość procesora.
162 Szeroki zestaw opcji (FastCGI, CGI, uwierzytelnianie, kompresja
163 wyjścia, przepisywanie URL-i i wiele innych) czynią z lighttpd
164 doskonałe oprogramowanie web-serwerowe na każdy serwer cierpiący z
165 powodu problemów z obciążeniem.
166
167 %package mod_access
168 Summary:        lighttpd module for making access restrictions
169 Summary(pl.UTF-8):      Moduł lighttpd ograniczający dostęp
170 Group:          Networking/Daemons/HTTP
171 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModAccess
172 Requires:       %{name} = %{version}-%{release}
173 Provides:       webserver(access)
174
175 %description mod_access
176 The access module is used to deny access to files with given trailing
177 path names.
178
179 %description mod_access -l pl.UTF-8
180 Moduł access służy do ograniczania dostępu do plików o podanych
181 ścieżkach.
182
183 %package mod_accesslog
184 Summary:        lighttpd module to record access logs
185 Summary(pl.UTF-8):      Moduł lighttpd do zapisu logów dostępu
186 Group:          Networking/Daemons/HTTP
187 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModAccessLog
188 Requires:       %{name} = %{version}-%{release}
189
190 %description mod_accesslog
191 CLF like by default, flexible like Apache.
192
193 %description mod_accesslog -l pl.UTF-8
194 Domyślnie podobny do CLF, elastyczny jak Apache.
195
196 %package mod_alias
197 Summary:        lighttpd module for making URL aliasing
198 Summary(pl.UTF-8):      Moduł lighttpd odpowiadający za aliasy URL-i
199 Group:          Networking/Daemons/HTTP
200 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModAlias
201 Requires:       %{name} = %{version}-%{release}
202 Provides:       webserver(alias)
203
204 %description mod_alias
205 The alias module is used to specify a special document-root for a
206 given URL-subset.
207
208 %description mod_alias -l pl.UTF-8
209 Modul alias służy do określania specjalnego drzewa (document-roota)
210 dla podanego podzbioru URL-i.
211
212 %package mod_auth
213 Summary:        lighttpd module for authentication support
214 Summary(pl.UTF-8):      Moduł lighttpd do obsługi uwierzytelniania
215 Group:          Networking/Daemons/HTTP
216 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModAuth
217 Requires:       %{name} = %{version}-%{release}
218 Provides:       webserver(auth)
219
220 %description mod_auth
221 lighttpd supportes both authentication method described by RFC 2617:
222 basic and digest.
223
224 %description mod_auth -l pl.UTF-8
225 lighttpd obsługuje obie metody uwierzytelniania opisane w RFC 2617:
226 basic i digest.
227
228 %package mod_cgi
229 Summary:        lighttpd module for CGI handling
230 Summary(pl.UTF-8):      Moduł lighttpd do obsługi CGI
231 Group:          Networking/Daemons/HTTP
232 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModCGI
233 Requires:       %{name} = %{version}-%{release}
234 Requires:       %{name}-mod_alias = %{version}-%{release}
235 Provides:       webserver(cgi)
236
237 %description mod_cgi
238 The cgi module provides a CGI-conforming interface.
239
240 CGI programs allow you to enhance the functionality of the server in a
241 very straight and simple way.
242
243 %description mod_cgi -l pl.UTF-8
244 Moduł cgi udostępnia interfejs zgodny z CGI.
245
246 Programy CGI pozwalają rozszerzać funkcjonalność serwera w bardzo
247 prosty i naturalny sposób.
248
249 %package mod_cgi_php
250 Summary:        lighttpd module for CGI handling PHP scripts
251 Summary(pl.UTF-8):      Moduł lighttpd do obsługi skryptów PHP przez CGI
252 Group:          Networking/Daemons/HTTP
253 Requires:       %{name}-mod_cgi = %{version}-%{release}
254 Requires:       php(cgi)
255 Provides:       webserver(php)
256
257 %description mod_cgi_php
258 The cgi module provides a CGI-conforming interface for PHP scripts.
259
260 CGI programs allow you to enhance the functionality of the server in a
261 very straight and simple way.
262
263 %description mod_cgi_php -l pl.UTF-8
264 Moduł cgi udostępnia interfejs zgodny z CGI do wywoływania skryptów
265 PHP.
266
267 Programy CGI pozwalają rozszerzać funkcjonalność serwera w bardzo
268 prosty i naturalny sposób.
269
270 %package mod_cml
271 Summary:        lighttpd module for Cache Meta Language
272 Summary(pl.UTF-8):      Moduł Cache Meta Language
273 Group:          Networking/Daemons/HTTP
274 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModCML
275 Requires:       %{name} = %{version}-%{release}
276
277 %description mod_cml
278 CML is a Meta language to describe the dependencies of a page at one
279 side and building a page from its fragments on the other side using
280 LUA.
281
282 %description mod_cml -l pl.UTF-8
283 CML to metajęzyk służący z jednej strony do opisu zależności strony i
284 z drugiej strony do budowania strony z fragmentów przy użyciu LUA.
285
286 %package mod_compress
287 Summary:        lighttpd module for output compression
288 Summary(pl.UTF-8):      Moduł lighttpd do kompresji wyjścia
289 Group:          Networking/Daemons/HTTP
290 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModCompress
291 Requires:       %{name} = %{version}-%{release}
292
293 %description mod_compress
294 Output compression reduces the network load and can improve the
295 overall throughput of the webserver.
296
297 Only static content is supported up to now.
298
299 The server negotiates automatically which compression method is used.
300 Supported are gzip, deflate, bzip.
301
302 %description mod_compress -l pl.UTF-8
303 Kompresja wyjścia zmniejsza obciążenie sieci i może poprawić całkowitą
304 przepustowość serwera WWW.
305
306 Jak na razie obsługiwana jest tylko statyczna treść.
307
308 Serwer automatycznie negocjuje, która metoda kompresji jest używana.
309 Obsługiwane są gzip, deflate i bzip.
310
311 %package mod_deflate
312 Summary:        lighttpd module for output compression using deflate method
313 Summary(pl.UTF-8):      Moduł lighttpd do kompresji wyjścia metodą deflate
314 Group:          Networking/Daemons/HTTP
315 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Mod_Deflate
316 Requires:       %{name} = %{version}-%{release}
317
318 %description mod_deflate
319 mod_deflate can compress any output from lighttpd static or dynamic.
320 It doesn't support caching compressed output like mod_compress.
321
322 %description mod_deflate -l pl.UTF-8
323 mod_deflate potrafi kompresować statyczne i dynamiczne wyjście z
324 lighttpd. Nie obsługuje cache'owania wyniku kompresji, jak robi to
325 mod_compress.
326
327 %package mod_dirlisting
328 Summary:        lighttpd module for directory listings
329 Summary(pl.UTF-8):      Moduł lighttpd do tworzenia listingów katalogów
330 Group:          Networking/Daemons/HTTP
331 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModDirlisting
332 Requires:       %{name} = %{version}-%{release}
333
334 %description mod_dirlisting
335 mod_dirlisting generates HTML based directory listings with full CSS
336 control.
337
338 %description mod_dirlisting -l pl.UTF-8
339 mod_dirlisting tworzy listingi katalogów w formacie HTML z pełną
340 kontrolą CSS.
341
342 %package mod_evasive
343 Summary:        lighttpd evasive module
344 Summary(pl.UTF-8):      Moduł evasive dla lighttpd
345 Group:          Networking/Daemons/HTTP
346 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModEvasive
347 Requires:       %{name} = %{version}-%{release}
348
349 %description mod_evasive
350 lighttpd evasive module.
351
352 %description mod_evasive -l pl.UTF-8
353 Moduł evasive dla lighttpd.
354
355 %package mod_evhost
356 Summary:        lighttpd module for enhanced virtual-hosting
357 Summary(pl.UTF-8):      Moduł lighttpd rozszerzający obsługę hostów wirtualnych
358 Group:          Networking/Daemons/HTTP
359 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModEVhost
360 Requires:       %{name} = %{version}-%{release}
361
362 %description mod_evhost
363 mod_evhost builds the document-root based on a pattern which contains
364 wildcards. Those wildcards can represent parts of the submitted
365 hostname.
366
367 %description mod_evhost -l pl.UTF-8
368 mod_evhost tworzy document-root w oparciu o wzorzec zawierający znaki
369 wieloznaczne (wildcards). Znaki te reprezentują części przekazanej
370 nazwy hosta.
371
372 %package mod_expire
373 Summary:        lighttpd module for controlling the expiration of content in caches
374 Summary(pl.UTF-8):      Moduł lighttpd sterujący wygasaniem treści w cache'ach
375 Group:          Networking/Daemons/HTTP
376 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModExpire
377 Requires:       %{name} = %{version}-%{release}
378 Provides:       webserver(expires)
379
380 %description mod_expire
381 mod_expire controls the setting of the the Expire response header.
382
383 %description mod_expire -l pl.UTF-8
384 mod_expire steruje ustawianiem nagłówka odpowiedzi Expire.
385
386 %package mod_extforward
387 Summary:        lighttpd module to extract the client's "real" IP from X-Forwarded-For header
388 Summary(pl.UTF-8):      Moduł lighttpd wyciągający "prawdziwy" IP klienta z nagłówka X-Forwarded-For
389 Group:          Networking/Daemons/HTTP
390 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/DocsModExtForward
391 Requires:       %{name} = %{version}-%{release}
392
393 %description mod_extforward
394 This module will extract the client's "real" IP from X-Forwarded-For
395 header which is added by Squid or other proxies. It might be useful
396 for servers behind reverse proxy servers.
397
398 %description mod_extforward -l pl.UTF-8
399 Ten moduł wyciąga "prawdziwy" IP klienta z nagłówka X-Forwarded-For
400 dodawanego przez Squida czy inne proxy. Może być przydatny dla
401 serwerów stojących za odwrotnymi serwerami proxy.
402
403 %package mod_fastcgi
404 Summary:        lighttpd module for FastCGI interface
405 Summary(pl.UTF-8):      Moduł lighttpd do interfejsu FastCGI
406 Group:          Networking/Daemons/HTTP
407 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModFastCGI
408 Requires:       %{name} = %{version}-%{release}
409
410 %description mod_fastcgi
411 The FastCGI interface is the fastest and most secure way to interface
412 external process-handlers like Perl, PHP and your self-written
413 applications.
414
415 %description mod_fastcgi -l pl.UTF-8
416 Interfejs FastCGI to najszybszy i najbezpieczniejszy sposób
417 komunikacji z zewnętrznymi programami obsługującymi procesy, takimi
418 jak Perl, PHP czy własne aplikacje.
419
420 %package mod_flv_streaming
421 Summary:        lighttpd module for flv streaming
422 Summary(pl.UTF-8):      Moduł lighttpd do streamingu flv
423 Group:          Networking/Daemons/HTTP
424 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModFLVStreaming
425 Requires:       %{name} = %{version}-%{release}
426
427 %description mod_flv_streaming
428 lighttpd module for flv streaming.
429
430 %description mod_flv_streaming -l pl.UTF-8
431 Moduł lighttpd do streamingu flv.
432
433 %package mod_h264_streaming
434 Summary:        lighttpd module for h264 streaming
435 Summary(pl.UTF-8):      Moduł lighttpd do emisji strumieni h264
436 License:        CC 3.0 BY-NC-SA
437 Group:          Networking/Daemons/HTTP
438 URL:            http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Lighttpd-Version2
439 Requires:       %{name} = %{version}-%{release}
440
441 %description mod_h264_streaming
442 A lighttpd plugin for pseudo-streaming QuickTime/MPEG-4 files.
443
444 %description mod_h264_streaming -l pl.UTF-8
445 Moduł lighttpd do pseudostreamingu plików QuickTime/MPEG-4.
446
447 %package mod_indexfile
448 Summary:        lighttpd indexfile module
449 Summary(pl.UTF-8):      Moduł indexfile dla lighttpd
450 Group:          Networking/Daemons/HTTP
451 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Index-file-names.Details
452 Requires:       %{name} = %{version}-%{release}
453 Provides:       webserver(indexfile)
454
455 %description mod_indexfile
456 indexfile module.
457
458 %description mod_indexfile -l pl.UTF-8
459 Moduł indexfile.
460
461 %package mod_magnet
462 Summary:        lighttpd powermagnet module
463 Summary(pl.UTF-8):      Moduł powermagnet dla lighttpd
464 Group:          Networking/Daemons/HTTP
465 URL:            http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModMagnet
466 Requires:       %{name} = %{version}-%{release}
467
468 %description mod_magnet
469 mod_magnet is a module to control the request handling in lighty.
470
471 %description mod_magnet -l pl.UTF-8
472 mod_magnet to moduł sterujący obsługą żądań w lighty.
473
474 %package mod_mysql_vhost
475 Summary:        lighttpd module for MySQL based vhosting
476 Summary(pl.UTF-8):      Moduł lighttpd obsługujący vhosty oparte na MySQL-u
477 Group:          Networking/Daemons/HTTP
478 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModMySQLVhost
479 Requires:       %{name} = %{version}-%{release}
480 Conflicts:      %{name}-mod_simple_vhost
481
482 %description mod_mysql_vhost
483 This module provides virtual hosts (vhosts) based on a MySQL table.
484
485 %description mod_mysql_vhost -l pl.UTF-8
486 Ten moduł udostępnia wirtualne hosty (vhosty) oparte na tabeli MySQL.
487
488 %package mod_proxy
489 Summary:        lighttpd module for proxying requests
490 Summary(pl.UTF-8):      Moduł lighttpd do przekazywania żądań
491 Group:          Networking/Daemons/HTTP
492 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModProxy
493 Requires:       %{name} = %{version}-%{release}
494
495 %description mod_proxy
496 The proxy module a simplest way to connect lighttpd to Java servers
497 which have a HTTP-interface.
498
499 %description mod_proxy -l pl.UTF-8
500 Moduł proxy to najprostszy sposób łączenia lighttpd z serwerami Javy
501 mającymi interfejs HTTP.
502
503 %package mod_proxy_core
504 Summary:        lighttpd module for proxying requests
505 Summary(pl.UTF-8):      Moduł lighttpd do przekazywania żądań
506 Group:          Networking/Daemons/HTTP
507 URL:            http://blog.lighttpd.net/articles/2006/07/18/mod_proxy_core-commited-to-svn
508 Requires:       %{name} = %{version}-%{release}
509
510 %description mod_proxy_core
511 The proxy module a simplest way to connect lighttpd to java servers
512 which have a HTTP-interface.
513
514 This is the new proxy code.
515
516 %description mod_proxy_core -l pl.UTF-8
517 Moduł proxy to najprostszy sposób łączenia lighttpd z serwerami Javy
518 mającymi interfejs HTTP.
519
520 Ten pakiet zawiera nowy moduł proxy.
521
522 %package mod_redirect
523 Summary:        lighttpd module for URL redirects
524 Summary(pl.UTF-8):      Moduł lighttpd do przekierowań URL-i
525 Group:          Networking/Daemons/HTTP
526 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModRedirect
527 Requires:       %{name} = %{version}-%{release}
528
529 %description mod_redirect
530 With mod_redirect module you can redirect a set of URLs externally.
531
532 %description mod_redirect -l pl.UTF-8
533 Przy użyciu modułu mod_redirect można przekierować zbiór URL-i na
534 zewnątrz.
535
536 %package mod_rewrite
537 Summary:        lighttpd module for internal redirects, URL rewrite
538 Summary(pl.UTF-8):      Moduł lighttpd do wewnętrznych przekierowań i przepisywania URL-i
539 Group:          Networking/Daemons/HTTP
540 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModRewrite
541 Requires:       %{name} = %{version}-%{release}
542 Provides:       webserver(rewrite)
543
544 %description mod_rewrite
545 This module allows you rewrite a set of URLs interally in the
546 webserver BEFORE they are handled.
547
548 %description mod_rewrite -l pl.UTF-8
549 Ten moduł pozwala na przepisywanie zbioru URL-i wewnętrznie w serwerze
550 WWW _przed_ ich obsługą.
551
552 %package mod_rrdtool
553 Summary:        lighttpd module for monitoring traffic and server load
554 Summary(pl.UTF-8):      Moduł lighttpd do monitorowania ruchu i obciążenia serwera
555 Group:          Networking/Daemons/HTTP
556 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModRRDTool
557 Requires:       %{name} = %{version}-%{release}
558 Requires:       rrdtool
559
560 %description mod_rrdtool
561 RRD is a system to store and display time-series data (i.e. network
562 bandwidth, machine-room temperature, server load average).
563
564 With this module you can monitor the traffic and load on the
565 webserver.
566
567 %description mod_rrdtool -l pl.UTF-8
568 RRD to system przechowywania i wyświetlania danych zależnych od czasu
569 (np. obciążenia sieci, temperatury w serwerowni, średniego obciążenia
570 serwera).
571
572 Przy użyciu tego modułu można monitorować ruch i obciążenie serwera
573 WWW.
574
575 %package mod_scgi
576 Summary:        lighttpd module for SCGI interface
577 Summary(pl.UTF-8):      Moduł lighttpd do interfejsu SCGI
578 Group:          Networking/Daemons/HTTP
579 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSCGI
580 Requires:       %{name} = %{version}-%{release}
581
582 %description mod_scgi
583 SCGI is a fast and simplified CGI interface. It is mostly used by
584 Python + WSGI.
585
586 %description mod_scgi -l pl.UTF-8
587 SCGI to szybki i uproszczony interfejs CGI. Jest używany głównie przez
588 Pythona z WSGI.
589
590 %package mod_secdownload
591 Summary:        lighttpd module for secure and fast downloading
592 Summary(pl.UTF-8):      Moduł lighttpd do bezpiecznego i szybkiego ściągania danych
593 Group:          Networking/Daemons/HTTP
594 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSecDownload
595 Requires:       %{name} = %{version}-%{release}
596
597 %description mod_secdownload
598 With this module you can easily achieve authenticated file requests
599 and a countermeasure against deep-linking.
600
601 %description mod_secdownload -l pl.UTF-8
602 Przy użyciu tego modułu można łatwo umożliwić ściąganie plików z
603 uwierzytelnieniem i zapobiec używaniu bezpośrednich odnośników.
604
605 %package mod_setenv
606 Summary:        lighttpd module for setting conditional request headers
607 Summary(pl.UTF-8):      Moduł lighttpd do ustawiania warunkowych nagłówków żądań
608 Group:          Networking/Daemons/HTTP
609 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSetEnv
610 Requires:       %{name} = %{version}-%{release}
611 Provides:       webserver(setenv)
612
613 %description mod_setenv
614 mod_setenv is used to add request headers.
615
616 %description mod_setenv -l pl.UTF-8
617 mod_setenv służy do dodawania nagłówków żądań.
618
619 %package mod_simple_vhost
620 Summary:        lighttpd module for simple virtual-hosting
621 Summary(pl.UTF-8):      Moduł lighttpd do prostych hostów wirtualnych
622 Group:          Networking/Daemons/HTTP
623 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSimpleVhost
624 Requires:       %{name} = %{version}-%{release}
625 Conflicts:      %{name}-mod_mysql_vhost
626
627 %description mod_simple_vhost
628 lighttpd module for simple virtual-hosting.
629
630 %description mod_simple_vhost -l pl.UTF-8
631 Moduł lighttpd do prostych hostów wirtualnych.
632
633 %package mod_ssi
634 Summary:        lighttpd module for server-side includes
635 Summary(pl.UTF-8):      Moduł lighttpd do SSI (server-side includes)
636 Group:          Networking/Daemons/HTTP
637 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSSI
638 Requires:       %{name} = %{version}-%{release}
639
640 %description mod_ssi
641 The module for server-side includes provides a compatability layer for
642 NSCA/Apache SSI.
643
644 %description mod_ssi -l pl.UTF-8
645 Moduł server-side includes udostępnia warstwę kompatybilności z SSI
646 znanym z NSCA/Apache'a.
647
648 %package mod_staticfile
649 Summary:        lighttpd module for static file serving
650 Summary(pl.UTF-8):      Moduł lighttpd do serwowania statycznych plików
651 Group:          Networking/Daemons/HTTP
652 Requires:       %{name} = %{version}-%{release}
653
654 %description mod_staticfile
655 lighttpd module for static file serving.
656
657 %description mod_staticfile -l pl.UTF-8
658 Moduł lighttpd do serwowania statycznych plików.
659
660 %package mod_status
661 Summary:        lighttpd module for displaying server status
662 Summary(pl.UTF-8):      Moduł lighttpd do wyświetlania stanu serwera
663 Group:          Networking/Daemons/HTTP
664 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModStatus
665 Requires:       %{name} = %{version}-%{release}
666
667 %description mod_status
668 mod_status displays the server's status and configuration.
669
670 %description mod_status -l pl.UTF-8
671 mod_status wyświetla stan i konfigurację serwera.
672
673 %package mod_trigger_b4_dl
674 Summary:        Trigger before Download
675 Summary(pl.UTF-8):      Wyzwalacz przed ściąganiem
676 Group:          Networking/Daemons/HTTP
677 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModTriggerBeforeDownload
678 Requires:       %{name} = %{version}-%{release}
679
680 %description mod_trigger_b4_dl
681 Another anti hot-linking module.
682
683 %description mod_trigger_b4_dl -l pl.UTF-8
684 Jeszcze jeden moduł blokujący bezpośrednie linkowanie.
685
686 %package mod_userdir
687 Summary:        lighttpd module for user homedirs
688 Summary(pl.UTF-8):      Moduł lighttpd obsługujący katalogi domowe użytkowników
689 Group:          Networking/Daemons/HTTP
690 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModUserDir
691 Requires:       %{name} = %{version}-%{release}
692
693 %description mod_userdir
694 The userdir module provides a simple way to link user-based
695 directories into the global namespace of the webserver.
696
697 %description mod_userdir -l pl.UTF-8
698 Moduł userdir udostępnia prosty sposób włączenia katalogów
699 użytkowników do globalnej przestrzeni nazw serwera WWW.
700
701 %package mod_usertrack
702 Summary:        lighttpd usertrack module
703 Summary(pl.UTF-8):      Moduł usertrack dla lighttpd
704 Group:          Networking/Daemons/HTTP
705 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModUserTrack
706 Requires:       %{name} = %{version}-%{release}
707
708 %description mod_usertrack
709 lighttpd usertrack module.
710
711 %description mod_usertrack -l pl.UTF-8
712 Moduł usertrack dla lighttpd.
713
714 %package mod_webdav
715 Summary:        WebDAV module for lighttpd
716 Summary(pl.UTF-8):      Moduł WebDAV dla libghttpd
717 Group:          Networking/Daemons/HTTP
718 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModWebDAV
719 Requires:       %{name} = %{version}-%{release}
720
721 %description mod_webdav
722 The WebDAV module is a very minimalistic implementation of RFC 2518.
723 Minimalistic means that not all operations are implementated yet.
724
725 So far we have
726 - PROPFIND
727 - OPTIONS
728 - MKCOL
729 - DELETE
730 - PUT
731 - LOCK (experimental)
732
733 and the usual GET, POST, HEAD from HTTP/1.1.
734
735 So far mounting a webdav resource into Windows XP works and the basic
736 litmus tests are passed.
737
738 %description mod_webdav -l pl.UTF-8
739 Moduł WebDAV to bardzo minimalistyczna implementacja RFC 2518.
740 Minimalistyczna oznacza, że jeszcze nie wszystkie operacje są
741 zaimplementowane. Jak na razie są:
742 - PROPFIND
743 - OPTIONS
744 - MKCOL
745 - DELETE
746 - PUT
747 - LOCK (experimental)
748
749 oraz zwykłe GET, POST, HEAD z HTTP/1.1.
750
751 Jak na razie montowanie zasobu webdav pod Windows XP działa i
752 podstawowe testy lakmusowe przechodzą.
753
754 %package php-spawned
755 Summary:        PHP support via FastCGI, spawned by lighttpd
756 Summary(pl.UTF-8):      Obsługa PHP przez FastCGI, uruchamiane przez lighttpd
757 Group:          Networking/Daemons/HTTP
758 Requires:       %{name} = %{version}-%{release}
759 Requires:       %{name}-mod_fastcgi = %{version}-%{release}
760 Requires:       php-fcgi
761 Provides:       webserver(php)
762 Obsoletes:      lighttpd-php-external
763
764 %description php-spawned
765 PHP support via FastCGI, spawned by lighttpd.
766
767 %description php-spawned -l pl.UTF-8
768 Obsługa PHP przez FastCGI, uruchamiane przez lighttpd.
769
770 %package php-external
771 Summary:        PHP support via FastCGI, spawning controlled externally
772 Summary(pl.UTF-8):      Obsługa PHP przez FastCGI, uruchamianie sterowane zewnętrznie
773 Group:          Networking/Daemons/HTTP
774 Requires:       %{name} = %{version}-%{release}
775 Requires:       %{name}-mod_fastcgi = %{version}-%{release}
776 Suggests:       php-fcgi-init
777 Suggests:       php-fpm
778 Obsoletes:      lighttpd-php-spawned
779
780 %description php-external
781 PHP support via FastCGI, spawning controlled externally.
782
783 %description php-external -l pl.UTF-8
784 Obsługa PHP przez FastCGI, uruchamianie sterowane zewnętrznie.
785
786 %package ssl
787 Summary:        lighttpd support for SSLv2 and SSLv3
788 Summary(pl.UTF-8):      Obsługa SSLv2 i SSLv3 dla lighttpd
789 Group:          Networking/Daemons/HTTP
790 URL:            http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:SSL
791 Requires:       %{name} = %{version}-%{release}
792 Suggests:       ca-certificates
793
794 %description ssl
795 lighttpd support for SSLv2 and SSLv3.
796
797 %description ssl -l pl.UTF-8
798 Obsługa SSLv2 i SSLv3 dla lighttpd.
799
800 %package -n monit-rc-lighttpd
801 Summary:        lighttpd support for monit
802 Summary(pl.UTF-8):      Wsparcie lighttpd dla monit
803 Group:          Applications/System
804 Requires:       %{name} = %{version}-%{release}
805 Requires:       monit
806
807 %description -n monit-rc-lighttpd
808 monitrc file for monitoring lighttpd web server.
809
810 %description -n monit-rc-lighttpd -l pl.UTF-8
811 Plik monitrc do monitorowania serwera www lighttpd.
812
813 %prep
814 %setup -q
815 %patch100 -p0
816 %patch4 -p0
817 %patch0 -p1
818 %patch1 -p1
819 %patch2 -p1
820 %patch3 -p1
821 %{?with_deflate:%patch5 -p1}
822 %patch6 -p1
823
824 rm -f src/mod_ssi_exprparser.h # bad patching: should be removed by is emptied instead
825
826 # build mime.types.conf
827 sh %{SOURCE6} /etc/mime.types
828 cp -a %{SOURCE14} PLD-TODO
829
830 %build
831 ver=$(awk '/AC_INIT/{a=$2;gsub(/[\[\],]/, "", a); print a}' configure.ac)
832 if [ "$ver" != "%{version}" ]; then
833         : configure.ac specifies wrong version
834         exit 1
835 fi
836
837 %{__libtoolize}
838 %{__aclocal}
839 %{__autoconf}
840 %{__automake}
841
842 %configure \
843         --enable-maintainer-mode \
844         --with-distribution="PLD Linux" \
845         %{!?with_ipv6:--disable-ipv6} \
846         %{!?with_largefile:--disable-lfs} \
847         %{?with_valgrind:--with-valgrind} \
848         %{?with_xattr:--with-attr} \
849         %{?with_mysql:--with-mysql} \
850         %{?with_ldap:--with-ldap} \
851         %{?with_ssl:--with-openssl} \
852         %{?with_lua:--with-lua=lua51} \
853         %{?with_memcache:--with-memcache} \
854         %{?with_webdav_props:--with-webdav-props} \
855         %{?with_webdav_locks:--with-webdav-locks} \
856         %{?with_gamin:--with-gamin} \
857         %{?with_gdbm:--with-gdbm}
858
859 # -j1 as src/mod_ssi_exprparser.h regeneration deps are broken
860 %{__make} -j1
861
862 %install
863 rm -rf $RPM_BUILD_ROOT
864 install -d $RPM_BUILD_ROOT{%{_lighttpddir}/{cgi-bin,html},/etc/{logrotate.d,rc.d/init.d,sysconfig,monit}} \
865         $RPM_BUILD_ROOT%{_sysconfdir}/{conf,vhosts,webapps}.d \
866         $RPM_BUILD_ROOT{/var/log/{%{name},archive/%{name}},/var/run/%{name}} \
867         $RPM_BUILD_ROOT%{_datadir}/lighttpd/errordocs \
868         $RPM_BUILD_ROOT/var/lib/lighttpd \
869         $RPM_BUILD_ROOT/var/cache/lighttpd/mod_compress
870
871 %{__make} install \
872         DESTDIR=$RPM_BUILD_ROOT
873
874 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
875 install %{SOURCE2} %{SOURCE3} mime.types.conf $RPM_BUILD_ROOT%{_sysconfdir}
876 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
877 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
878 install %{SOURCE12} $RPM_BUILD_ROOT/etc/monit/%{name}.monitrc
879
880 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
881
882 # Install lighttpd images
883 install %{SOURCE7} %{SOURCE8} %{SOURCE9} $RPM_BUILD_ROOT%{_lighttpddir}/html
884 install %{SOURCE10} $RPM_BUILD_ROOT%{_lighttpddir}/html/pld_button.png
885 install %{SOURCE11} $RPM_BUILD_ROOT%{_lighttpddir}/html/index.html
886
887 # NOTE: the order of the modules is somewhat important as the modules are
888 # handled in the way they are specified. mod_rewrite should always be the first
889 # module, mod_accesslog always the last.
890
891 install %{SOURCE117} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/10_mod_rewrite.conf
892 install %{SOURCE116} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/11_mod_redirect.conf
893
894 install %{SOURCE100} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_access.conf
895 install %{SOURCE102} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_alias.conf
896 install %{SOURCE103} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_auth.conf
897 install %{SOURCE104} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_cgi.conf
898 install %{SOURCE137} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_cgi_php.conf
899 install %{SOURCE105} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_cml.conf
900 install %{SOURCE107} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_deflate.conf
901 install %{SOURCE108} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_dirlisting.conf
902 install %{SOURCE109} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evasive.conf
903 install %{SOURCE110} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evhost.conf
904 install %{SOURCE112} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_fastcgi.conf
905 install %{SOURCE113} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_flv_streaming.conf
906 install %{SOURCE136} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_h264_streaming.conf
907 install %{SOURCE114} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_indexfile.conf
908 install %{SOURCE115} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_proxy.conf
909 install %{SOURCE118} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_rrdtool.conf
910 install %{SOURCE119} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_scgi.conf
911 install %{SOURCE120} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_secdownload.conf
912 install %{SOURCE121} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_setenv.conf
913 install %{SOURCE122} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_simple_vhost.conf
914 install %{SOURCE123} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_ssi.conf
915 install %{SOURCE124} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_staticfile.conf
916 install %{SOURCE125} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_status.conf
917 install %{SOURCE126} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_trigger_b4_dl.conf
918 install %{SOURCE127} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_userdir.conf
919 install %{SOURCE128} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_usertrack.conf
920 install %{SOURCE129} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_webdav.conf
921 install %{SOURCE133} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_mysql_vhost.conf
922
923 install %{SOURCE134} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/55_mod_magnet.conf
924 install %{SOURCE111} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/55_mod_expire.conf
925
926 install %{SOURCE106} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/60_mod_compress.conf
927
928 install %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_accesslog.conf
929 install %{SOURCE135} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/91_mod_extforward.conf
930
931 install %{SOURCE130} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/php-spawned.conf
932 install %{SOURCE131} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/php-external.conf
933 install %{SOURCE132} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/ssl.conf
934
935 touch $RPM_BUILD_ROOT/var/lib/lighttpd/lighttpd.rrd
936
937 %if %{without mysql}
938 # avoid packaging dummy module
939 rm -f $RPM_BUILD_ROOT%{_libdir}/mod_mysql_vhost.so
940 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/*_mod_mysql_vhost.conf
941 %endif
942 %if %{without deflate}
943 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/*_mod_deflate.conf
944 %endif
945
946 touch $RPM_BUILD_ROOT/var/log/%{name}/{access,error,breakage}.log
947
948 %clean
949 rm -rf $RPM_BUILD_ROOT
950
951 %pre
952 %groupadd -g 109 lighttpd
953 %groupadd -g 51 http
954 %useradd -u 116 -d %{_lighttpddir} -c "Lighttpd User" -g lighttpd lighttpd
955 %addusertogroup lighttpd http
956
957 %post
958 for a in access.log error.log breakage.log; do
959         if [ ! -f /var/log/%{name}/$a ]; then
960                 touch /var/log/%{name}/$a
961                 chown lighttpd:lighttpd /var/log/%{name}/$a
962                 chmod 644 /var/log/%{name}/$a
963         fi
964 done
965 /sbin/chkconfig --add %{name}
966
967 %preun
968 if [ "$1" = "0" ]; then
969         %service %{name} stop
970         /sbin/chkconfig --del %{name}
971 fi
972
973 %postun
974 if [ "$1" = "0" ]; then
975         %userremove lighttpd
976         %groupremove lighttpd
977         %groupremove http
978 fi
979
980 %posttrans
981 # minimizing lighttpd restarts logics. we restart webserver:
982 #
983 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
984 # 2. first install of module (post: $1 = 1)
985 # 2. uninstall of module (postun: $1 == 0)
986 #
987 # the strict internal deps between lighttpd modules and
988 # main package are very important for all this to work.
989 %service %{name} restart "Lighttpd webserver"
990 exit 0
991
992 # macro called at module post scriptlet
993 %define module_post \
994 if [ "$1" = "1" ]; then \
995         %service -q lighttpd restart \
996 fi
997
998 # macro called at module postun scriptlet
999 %define module_postun \
1000 if [ "$1" = "0" ]; then \
1001         %service -q lighttpd restart \
1002 fi
1003
1004 # it's sooo annoying to write them
1005 %define module_scripts() \
1006 %post %1 \
1007 %module_post \
1008 \
1009 %postun %1 \
1010 %module_postun
1011
1012 %module_scripts mod_access
1013 %module_scripts mod_accesslog
1014 %module_scripts mod_alias
1015 %module_scripts mod_auth
1016 %module_scripts mod_cgi
1017 %module_scripts mod_cml
1018 %module_scripts mod_compress
1019 %module_scripts mod_deflate
1020 %module_scripts mod_dirlisting
1021 %module_scripts mod_evasive
1022 %module_scripts mod_evhost
1023 %module_scripts mod_expire
1024 %module_scripts mod_extforward
1025 %module_scripts mod_fastcgi
1026 %module_scripts mod_flv_streaming
1027 %module_scripts mod_h264_streaming
1028 %module_scripts mod_indexfile
1029 %module_scripts mod_magnet
1030 %module_scripts mod_mysql_vhost
1031 %module_scripts mod_proxy
1032 %module_scripts mod_redirect
1033 %module_scripts mod_rewrite
1034
1035 %post mod_rrdtool
1036 if [ ! -f /var/lib/lighttpd/lighttpd.rrd ]; then
1037         touch /var/lib/lighttpd/lighttpd.rrd
1038         chown lighttpd:stats /var/lib/lighttpd/lighttpd.rrd
1039         chmod 640 /var/lib/lighttpd/lighttpd.rrd
1040 fi
1041 %module_post
1042
1043 %postun mod_rrdtool
1044 %module_postun
1045
1046 %module_scripts mod_scgi
1047 %module_scripts mod_secdownload
1048 %module_scripts mod_setenv
1049 %module_scripts mod_simple_vhost
1050 %module_scripts mod_ssi
1051 %module_scripts mod_staticfile
1052 %module_scripts mod_status
1053 %module_scripts mod_trigger_b4_dl
1054 %module_scripts mod_userdir
1055 %module_scripts mod_usertrack
1056 %module_scripts mod_webdav
1057
1058 %module_scripts php-spawned
1059 %module_scripts php-external
1060
1061 %triggerpostun -- %{name} < 1.4.18-10.1
1062 if [ -f /etc/lighttpd/conf.d/50_mod_extforward.conf.rpmsave ]; then
1063         cp -f /etc/lighttpd/conf.d/91_mod_extforward.conf{,.rpmnew}
1064         mv -f /etc/lighttpd/conf.d/{50_mod_extforward.conf.rpmsave,91_mod_extforward.conf}
1065 fi
1066
1067 %files
1068 %defattr(644,root,root,755)
1069 %doc NEWS README doc/lighttpd.conf doc/*.txt doc/rrdtool-graph.sh PLD-TODO
1070 %dir %attr(751,root,lighttpd) %{_sysconfdir}
1071 %dir %attr(750,root,root) %{_sysconfdir}/conf.d
1072 %dir %attr(750,root,root) %{_sysconfdir}/vhosts.d
1073 %dir %attr(750,root,root) %{_sysconfdir}/webapps.d
1074 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
1075 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.types.conf
1076 %attr(640,root,lighttpd) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.user
1077
1078 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
1079 %attr(750,root,root) %dir /var/log/archive/%{name}
1080 %dir %attr(751,root,root) /var/log/%{name}
1081 %attr(644,lighttpd,lighttpd) %ghost /var/log/%{name}/access.log
1082 %attr(644,lighttpd,lighttpd) %ghost /var/log/%{name}/error.log
1083 %attr(644,lighttpd,lighttpd) %ghost /var/log/%{name}/breakage.log
1084 %dir %attr(770,root,lighttpd) /var/run/%{name}
1085 %attr(754,root,root) /etc/rc.d/init.d/%{name}
1086 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
1087 %attr(755,root,root) %{_sbindir}/lighttpd
1088 %attr(755,root,root) %{_sbindir}/lighttpd-angel
1089 %dir %{_libdir}
1090 %{_mandir}/man8/lighttpd.8*
1091 %dir %{_lighttpddir}
1092 %dir %{_lighttpddir}/cgi-bin
1093 %dir %{_lighttpddir}/html
1094 %config(noreplace,missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/index.html
1095 %config(missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/*.png
1096 %config(missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/*.ico
1097
1098 %dir %{_datadir}/lighttpd
1099 %dir %{_datadir}/lighttpd/errordocs
1100
1101 # rrdtool database is stored there
1102 %dir %attr(771,root,lighttpd) /var/lib/lighttpd
1103
1104 # mod_compress can put cached files there
1105 %dir /var/cache/lighttpd
1106
1107 %files mod_access
1108 %defattr(644,root,root,755)
1109 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_access.conf
1110 %attr(755,root,root) %{_libdir}/mod_access.so
1111
1112 %files mod_accesslog
1113 %defattr(644,root,root,755)
1114 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_accesslog.conf
1115 %attr(755,root,root) %{_libdir}/mod_accesslog.so
1116
1117 %files mod_alias
1118 %defattr(644,root,root,755)
1119 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_alias.conf
1120 %attr(755,root,root) %{_libdir}/mod_alias.so
1121
1122 %files mod_auth
1123 %defattr(644,root,root,755)
1124 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_auth.conf
1125 %attr(755,root,root) %{_libdir}/mod_auth.so
1126
1127 %files mod_cgi
1128 %defattr(644,root,root,755)
1129 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_cgi.conf
1130 %attr(755,root,root) %{_libdir}/mod_cgi.so
1131
1132 %files mod_cgi_php
1133 %defattr(644,root,root,755)
1134 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_cgi_php.conf
1135
1136 %files mod_cml
1137 %defattr(644,root,root,755)
1138 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_cml.conf
1139 %attr(755,root,root) %{_libdir}/mod_cml.so
1140
1141 %files mod_compress
1142 %defattr(644,root,root,755)
1143 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_compress.conf
1144 %attr(755,root,root) %{_libdir}/mod_compress.so
1145 %dir %attr(775,root,lighttpd) /var/cache/lighttpd/mod_compress
1146
1147 %if %{with deflate}
1148 %files mod_deflate
1149 %defattr(644,root,root,755)
1150 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_deflate.conf
1151 %attr(755,root,root) %{_libdir}/mod_deflate.so
1152 %endif
1153
1154 %files mod_dirlisting
1155 %defattr(644,root,root,755)
1156 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_dirlisting.conf
1157 %attr(755,root,root) %{_libdir}/mod_dirlisting.so
1158
1159 %files mod_evasive
1160 %defattr(644,root,root,755)
1161 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_evasive.conf
1162 %attr(755,root,root) %{_libdir}/mod_evasive.so
1163
1164 %files mod_evhost
1165 %defattr(644,root,root,755)
1166 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_evhost.conf
1167 %attr(755,root,root) %{_libdir}/mod_evhost.so
1168
1169 %files mod_expire
1170 %defattr(644,root,root,755)
1171 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_expire.conf
1172 %attr(755,root,root) %{_libdir}/mod_expire.so
1173
1174 %files mod_extforward
1175 %defattr(644,root,root,755)
1176 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_extforward.conf
1177 %attr(755,root,root) %{_libdir}/mod_extforward.so
1178
1179 %files mod_fastcgi
1180 %defattr(644,root,root,755)
1181 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_fastcgi.conf
1182 %attr(755,root,root) %{_libdir}/mod_fastcgi.so
1183
1184 %files mod_flv_streaming
1185 %defattr(644,root,root,755)
1186 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_flv_streaming.conf
1187 %attr(755,root,root) %{_libdir}/mod_flv_streaming.so
1188
1189 %files mod_h264_streaming
1190 %defattr(644,root,root,755)
1191 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_h264_streaming.conf
1192 %attr(755,root,root) %{_libdir}/mod_h264_streaming.so
1193
1194 %files mod_indexfile
1195 %defattr(644,root,root,755)
1196 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_indexfile.conf
1197 %attr(755,root,root) %{_libdir}/mod_indexfile.so
1198
1199 %files mod_magnet
1200 %defattr(644,root,root,755)
1201 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_magnet.conf
1202 %attr(755,root,root) %{_libdir}/mod_magnet.so
1203
1204 %if %{with mysql}
1205 %files mod_mysql_vhost
1206 %defattr(644,root,root,755)
1207 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_mysql_vhost.conf
1208 %attr(755,root,root) %{_libdir}/mod_mysql_vhost.so
1209 %endif
1210
1211 %files mod_proxy
1212 %defattr(644,root,root,755)
1213 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_proxy.conf
1214 %attr(755,root,root) %{_libdir}/mod_proxy.so
1215
1216 %files mod_redirect
1217 %defattr(644,root,root,755)
1218 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_redirect.conf
1219 %attr(755,root,root) %{_libdir}/mod_redirect.so
1220
1221 %files mod_rewrite
1222 %defattr(644,root,root,755)
1223 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_rewrite.conf
1224 %attr(755,root,root) %{_libdir}/mod_rewrite.so
1225
1226 %files mod_rrdtool
1227 %defattr(644,root,root,755)
1228 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_rrdtool.conf
1229 %attr(755,root,root) %{_libdir}/mod_rrdtool.so
1230 %attr(640,lighttpd,stats) %ghost /var/lib/lighttpd/lighttpd.rrd
1231
1232 %files mod_scgi
1233 %defattr(644,root,root,755)
1234 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_scgi.conf
1235 %attr(755,root,root) %{_libdir}/mod_scgi.so
1236
1237 %files mod_secdownload
1238 %defattr(644,root,root,755)
1239 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_secdownload.conf
1240 %attr(755,root,root) %{_libdir}/mod_secdownload.so
1241
1242 %files mod_setenv
1243 %defattr(644,root,root,755)
1244 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_setenv.conf
1245 %attr(755,root,root) %{_libdir}/mod_setenv.so
1246
1247 %files mod_simple_vhost
1248 %defattr(644,root,root,755)
1249 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_simple_vhost.conf
1250 %attr(755,root,root) %{_libdir}/mod_simple_vhost.so
1251
1252 %files mod_ssi
1253 %defattr(644,root,root,755)
1254 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_ssi.conf
1255 %attr(755,root,root) %{_libdir}/mod_ssi.so
1256
1257 %files mod_staticfile
1258 %defattr(644,root,root,755)
1259 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_staticfile.conf
1260 %attr(755,root,root) %{_libdir}/mod_staticfile.so
1261
1262 %files mod_status
1263 %defattr(644,root,root,755)
1264 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_status.conf
1265 %attr(755,root,root) %{_libdir}/mod_status.so
1266
1267 %files mod_trigger_b4_dl
1268 %defattr(644,root,root,755)
1269 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_trigger_b4_dl.conf
1270 %attr(755,root,root) %{_libdir}/mod_trigger_b4_dl.so
1271
1272 %files mod_userdir
1273 %defattr(644,root,root,755)
1274 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_userdir.conf
1275 %attr(755,root,root) %{_libdir}/mod_userdir.so
1276
1277 %files mod_usertrack
1278 %defattr(644,root,root,755)
1279 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_usertrack.conf
1280 %attr(755,root,root) %{_libdir}/mod_usertrack.so
1281
1282 %files mod_webdav
1283 %defattr(644,root,root,755)
1284 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_webdav.conf
1285 %attr(755,root,root) %{_libdir}/mod_webdav.so
1286
1287 %files php-spawned
1288 %defattr(644,root,root,755)
1289 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/php-spawned.conf
1290
1291 %files php-external
1292 %defattr(644,root,root,755)
1293 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/php-external.conf
1294
1295 %files ssl
1296 %defattr(644,root,root,755)
1297 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ssl.conf
1298
1299 %files -n monit-rc-lighttpd
1300 %defattr(644,root,root,755)
1301 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc
This page took 0.149123 seconds and 4 git commands to generate.