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