]> git.pld-linux.org Git - packages/lighttpd.git/blob - lighttpd.spec
f4877dd7d4c189fa3ddb58fa77528453b45649e9
[packages/lighttpd.git] / lighttpd.spec
1 #
2 # Conditional build:
3 %bcond_with     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.26
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:  a682c8efce47a2f4263a247ba0813c9b
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 Patch6:         etag-32bit-overflow.patch
97 #Patch8:                %{name}-errorlog-before-fork.patch
98 URL:            http://www.lighttpd.net/
99 %{?with_xattr:BuildRequires:    attr-devel}
100 BuildRequires:  autoconf >= 2.57
101 BuildRequires:  automake
102 BuildRequires:  bzip2-devel
103 BuildRequires:  fcgi-devel
104 %{?with_gamin:BuildRequires:    gamin-devel}
105 %{?with_gdbm:BuildRequires:     gdbm-devel}
106 %{?with_memcache:BuildRequires: libmemcache-devel}
107 BuildRequires:  libtool
108 BuildRequires:  libuuid-devel
109 %{?with_webdav_props:BuildRequires:     libxml2-devel}
110 %{?with_lua:BuildRequires:      lua51-devel}
111 BuildRequires:  mailcap >= 2.1.14-4.4
112 %{?with_mysql:BuildRequires:    mysql-devel}
113 %{?with_ldap:BuildRequires:     openldap-devel}
114 %{?with_ssl:BuildRequires:      openssl-devel}
115 BuildRequires:  pcre-devel
116 BuildRequires:  pkgconfig
117 BuildRequires:  rpmbuild(macros) >= 1.268
118 %{?with_webdav_props:BuildRequires:     sqlite3-devel}
119 %{?with_valgrind:BuildRequires: valgrind}
120 BuildRequires:  which
121 BuildRequires:  zlib-devel
122 Requires(post,preun):   /sbin/chkconfig
123 Requires(postun):       /usr/sbin/groupdel
124 Requires(postun):       /usr/sbin/userdel
125 Requires(pre):  /bin/id
126 Requires(pre):  /usr/bin/getgid
127 Requires(pre):  /usr/lib/rpm/user_group.sh
128 Requires(pre):  /usr/sbin/groupadd
129 Requires(pre):  /usr/sbin/useradd
130 Requires(pre):  /usr/sbin/usermod
131 Requires:       %{name}-mod_dirlisting = %{version}-%{release}
132 Requires:       %{name}-mod_indexfile = %{version}-%{release}
133 Requires:       %{name}-mod_staticfile = %{version}-%{release}
134 Requires:       rc-scripts >= 0.4.1.26-2
135 Requires:       rpm-whiteout >= 1.5
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 %patch6 -p1
825
826 rm -f src/mod_ssi_exprparser.h # bad patching: should be removed by is emptied instead
827
828 # build mime.types.conf
829 sh %{SOURCE6} /etc/mime.types
830 cp -a %{SOURCE14} PLD-TODO
831
832 %build
833 ver=$(awk '/AC_INIT/{a=$2;gsub(/[\[\],]/, "", a); print a}' configure.ac)
834 if [ "$ver" != "%{version}" ]; then
835         : configure.ac specifies wrong version
836         exit 1
837 fi
838
839 %{__libtoolize}
840 %{__aclocal}
841 %{__autoconf}
842 %{__automake}
843
844 %configure \
845         --enable-maintainer-mode \
846         --with-distribution="PLD Linux" \
847         %{!?with_ipv6:--disable-ipv6} \
848         %{!?with_largefile:--disable-lfs} \
849         %{?with_valgrind:--with-valgrind} \
850         %{?with_xattr:--with-attr} \
851         %{?with_mysql:--with-mysql} \
852         %{?with_ldap:--with-ldap} \
853         %{?with_ssl:--with-openssl} \
854         %{?with_lua:--with-lua=lua51} \
855         %{?with_memcache:--with-memcache} \
856         %{?with_webdav_props:--with-webdav-props} \
857         %{?with_webdav_locks:--with-webdav-locks} \
858         %{?with_gamin:--with-gamin} \
859         %{?with_gdbm:--with-gdbm}
860
861 # -j1 as src/mod_ssi_exprparser.h regeneration deps are broken
862 %{__make} -j1
863
864 %if %{with tests}
865 %{__make} check
866 %endif
867
868 %install
869 rm -rf $RPM_BUILD_ROOT
870 install -d $RPM_BUILD_ROOT{%{_lighttpddir}/{cgi-bin,html},/etc/{logrotate.d,rc.d/init.d,sysconfig,monit}} \
871         $RPM_BUILD_ROOT%{_sysconfdir}/{conf,vhosts,webapps}.d \
872         $RPM_BUILD_ROOT{/var/log/{%{name},archive/%{name}},/var/run/%{name}} \
873         $RPM_BUILD_ROOT%{_datadir}/lighttpd/errordocs \
874         $RPM_BUILD_ROOT/var/lib/lighttpd \
875         $RPM_BUILD_ROOT/var/cache/lighttpd/mod_compress
876
877 %{__make} install \
878         DESTDIR=$RPM_BUILD_ROOT
879
880 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
881 install %{SOURCE2} %{SOURCE3} mime.types.conf $RPM_BUILD_ROOT%{_sysconfdir}
882 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
883 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
884 install %{SOURCE12} $RPM_BUILD_ROOT/etc/monit/%{name}.monitrc
885
886 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
887
888 # Install lighttpd images
889 install %{SOURCE7} %{SOURCE8} %{SOURCE9} $RPM_BUILD_ROOT%{_lighttpddir}/html
890 install %{SOURCE10} $RPM_BUILD_ROOT%{_lighttpddir}/html/pld_button.png
891 install %{SOURCE11} $RPM_BUILD_ROOT%{_lighttpddir}/html/index.html
892
893 # NOTE: the order of the modules is somewhat important as the modules are
894 # handled in the way they are specified. mod_rewrite should always be the first
895 # module, mod_accesslog always the last.
896
897 install %{SOURCE117} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/10_mod_rewrite.conf
898 install %{SOURCE116} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/11_mod_redirect.conf
899
900 install %{SOURCE100} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_access.conf
901 install %{SOURCE102} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_alias.conf
902 install %{SOURCE103} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_auth.conf
903 install %{SOURCE104} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_cgi.conf
904 install %{SOURCE137} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_cgi_php.conf
905 install %{SOURCE105} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_cml.conf
906 install %{SOURCE107} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_deflate.conf
907 install %{SOURCE108} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_dirlisting.conf
908 install %{SOURCE109} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evasive.conf
909 install %{SOURCE110} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evhost.conf
910 install %{SOURCE112} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_fastcgi.conf
911 install %{SOURCE113} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_flv_streaming.conf
912 install %{SOURCE136} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_h264_streaming.conf
913 install %{SOURCE114} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_indexfile.conf
914 install %{SOURCE115} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_proxy.conf
915 install %{SOURCE118} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_rrdtool.conf
916 install %{SOURCE119} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_scgi.conf
917 install %{SOURCE120} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_secdownload.conf
918 install %{SOURCE121} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_setenv.conf
919 install %{SOURCE122} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_simple_vhost.conf
920 install %{SOURCE123} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_ssi.conf
921 install %{SOURCE124} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_staticfile.conf
922 install %{SOURCE125} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_status.conf
923 install %{SOURCE126} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_trigger_b4_dl.conf
924 install %{SOURCE127} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_userdir.conf
925 install %{SOURCE128} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_usertrack.conf
926 install %{SOURCE129} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_webdav.conf
927 install %{SOURCE133} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_mysql_vhost.conf
928
929 install %{SOURCE134} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/55_mod_magnet.conf
930 install %{SOURCE111} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/55_mod_expire.conf
931
932 install %{SOURCE106} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/60_mod_compress.conf
933
934 install %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_accesslog.conf
935 install %{SOURCE135} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/91_mod_extforward.conf
936
937 install %{SOURCE130} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/php-spawned.conf
938 install %{SOURCE131} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/php-external.conf
939 install %{SOURCE132} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/ssl.conf
940
941 touch $RPM_BUILD_ROOT/var/lib/lighttpd/lighttpd.rrd
942
943 %if %{without mysql}
944 # avoid packaging dummy module
945 rm -f $RPM_BUILD_ROOT%{_libdir}/mod_mysql_vhost.so
946 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/*_mod_mysql_vhost.conf
947 %endif
948 %if %{without deflate}
949 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/*_mod_deflate.conf
950 %endif
951
952 touch $RPM_BUILD_ROOT/var/log/%{name}/{access,error,breakage}.log
953
954 %clean
955 rm -rf $RPM_BUILD_ROOT
956
957 %pre
958 %groupadd -g 109 lighttpd
959 %groupadd -g 51 http
960 %useradd -u 116 -d %{_lighttpddir} -c "Lighttpd User" -g lighttpd lighttpd
961 %addusertogroup lighttpd http
962
963 %post
964 for a in access.log error.log breakage.log; do
965         if [ ! -f /var/log/%{name}/$a ]; then
966                 touch /var/log/%{name}/$a
967                 chown lighttpd:lighttpd /var/log/%{name}/$a
968                 chmod 644 /var/log/%{name}/$a
969         fi
970 done
971 /sbin/chkconfig --add %{name}
972
973 %preun
974 if [ "$1" = "0" ]; then
975         %service %{name} stop
976         /sbin/chkconfig --del %{name}
977 fi
978
979 %postun
980 if [ "$1" = "0" ]; then
981         %userremove lighttpd
982         %groupremove lighttpd
983         %groupremove http
984 fi
985
986 %posttrans
987 # minimizing lighttpd restarts logics. we restart webserver:
988 #
989 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
990 # 2. first install of module (post: $1 = 1)
991 # 2. uninstall of module (postun: $1 == 0)
992 #
993 # the strict internal deps between lighttpd modules and
994 # main package are very important for all this to work.
995 %service %{name} restart "Lighttpd webserver"
996 exit 0
997
998 # macro called at module post scriptlet
999 %define module_post \
1000 if [ "$1" = "1" ]; then \
1001         %service -q lighttpd restart \
1002 fi
1003
1004 # macro called at module postun scriptlet
1005 %define module_postun \
1006 if [ "$1" = "0" ]; then \
1007         %service -q lighttpd restart \
1008 fi
1009
1010 # it's sooo annoying to write them
1011 %define module_scripts() \
1012 %post %1 \
1013 %module_post \
1014 \
1015 %postun %1 \
1016 %module_postun
1017
1018 %module_scripts mod_access
1019 %module_scripts mod_accesslog
1020 %module_scripts mod_alias
1021 %module_scripts mod_auth
1022 %module_scripts mod_cgi
1023 %module_scripts mod_cml
1024 %module_scripts mod_compress
1025 %module_scripts mod_deflate
1026 %module_scripts mod_dirlisting
1027 %module_scripts mod_evasive
1028 %module_scripts mod_evhost
1029 %module_scripts mod_expire
1030 %module_scripts mod_extforward
1031 %module_scripts mod_fastcgi
1032 %module_scripts mod_flv_streaming
1033 %module_scripts mod_h264_streaming
1034 %module_scripts mod_indexfile
1035 %module_scripts mod_magnet
1036 %module_scripts mod_mysql_vhost
1037 %module_scripts mod_proxy
1038 %module_scripts mod_redirect
1039 %module_scripts mod_rewrite
1040
1041 %post mod_rrdtool
1042 if [ ! -f /var/lib/lighttpd/lighttpd.rrd ]; then
1043         touch /var/lib/lighttpd/lighttpd.rrd
1044         chown lighttpd:stats /var/lib/lighttpd/lighttpd.rrd
1045         chmod 640 /var/lib/lighttpd/lighttpd.rrd
1046 fi
1047 %module_post
1048
1049 %postun mod_rrdtool
1050 %module_postun
1051
1052 %module_scripts mod_scgi
1053 %module_scripts mod_secdownload
1054 %module_scripts mod_setenv
1055 %module_scripts mod_simple_vhost
1056 %module_scripts mod_ssi
1057 %module_scripts mod_staticfile
1058 %module_scripts mod_status
1059 %module_scripts mod_trigger_b4_dl
1060 %module_scripts mod_userdir
1061 %module_scripts mod_usertrack
1062 %module_scripts mod_webdav
1063
1064 %module_scripts php-spawned
1065 %module_scripts php-external
1066
1067 %triggerpostun -- %{name} < 1.4.18-10.1
1068 if [ -f /etc/lighttpd/conf.d/50_mod_extforward.conf.rpmsave ]; then
1069         cp -f /etc/lighttpd/conf.d/91_mod_extforward.conf{,.rpmnew}
1070         mv -f /etc/lighttpd/conf.d/{50_mod_extforward.conf.rpmsave,91_mod_extforward.conf}
1071 fi
1072
1073 %files
1074 %defattr(644,root,root,755)
1075 %doc NEWS README doc/lighttpd.conf doc/*.txt doc/rrdtool-graph.sh PLD-TODO
1076 %dir %attr(751,root,lighttpd) %{_sysconfdir}
1077 %dir %attr(750,root,root) %{_sysconfdir}/conf.d
1078 %dir %attr(750,root,root) %{_sysconfdir}/vhosts.d
1079 %dir %attr(750,root,root) %{_sysconfdir}/webapps.d
1080 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
1081 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.types.conf
1082 %attr(640,root,lighttpd) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.user
1083
1084 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
1085 %attr(750,root,root) %dir /var/log/archive/%{name}
1086 %dir %attr(751,root,root) /var/log/%{name}
1087 %attr(644,lighttpd,lighttpd) %ghost /var/log/%{name}/access.log
1088 %attr(644,lighttpd,lighttpd) %ghost /var/log/%{name}/error.log
1089 %attr(644,lighttpd,lighttpd) %ghost /var/log/%{name}/breakage.log
1090 %dir %attr(770,root,lighttpd) /var/run/%{name}
1091 %attr(754,root,root) /etc/rc.d/init.d/%{name}
1092 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
1093 %attr(755,root,root) %{_sbindir}/lighttpd
1094 %attr(755,root,root) %{_sbindir}/lighttpd-angel
1095 %dir %{_libdir}
1096 %{_mandir}/man8/lighttpd.8*
1097 %dir %{_lighttpddir}
1098 %dir %{_lighttpddir}/cgi-bin
1099 %dir %{_lighttpddir}/html
1100 %config(noreplace,missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/index.html
1101 %config(missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/*.png
1102 %config(missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/*.ico
1103
1104 %dir %{_datadir}/lighttpd
1105 %dir %{_datadir}/lighttpd/errordocs
1106
1107 # rrdtool database is stored there
1108 %dir %attr(771,root,lighttpd) /var/lib/lighttpd
1109
1110 # mod_compress can put cached files there
1111 %dir /var/cache/lighttpd
1112
1113 %files mod_access
1114 %defattr(644,root,root,755)
1115 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_access.conf
1116 %attr(755,root,root) %{_libdir}/mod_access.so
1117
1118 %files mod_accesslog
1119 %defattr(644,root,root,755)
1120 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_accesslog.conf
1121 %attr(755,root,root) %{_libdir}/mod_accesslog.so
1122
1123 %files mod_alias
1124 %defattr(644,root,root,755)
1125 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_alias.conf
1126 %attr(755,root,root) %{_libdir}/mod_alias.so
1127
1128 %files mod_auth
1129 %defattr(644,root,root,755)
1130 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_auth.conf
1131 %attr(755,root,root) %{_libdir}/mod_auth.so
1132
1133 %files mod_cgi
1134 %defattr(644,root,root,755)
1135 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_cgi.conf
1136 %attr(755,root,root) %{_libdir}/mod_cgi.so
1137
1138 %files mod_cgi_php
1139 %defattr(644,root,root,755)
1140 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_cgi_php.conf
1141
1142 %files mod_cml
1143 %defattr(644,root,root,755)
1144 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_cml.conf
1145 %attr(755,root,root) %{_libdir}/mod_cml.so
1146
1147 %files mod_compress
1148 %defattr(644,root,root,755)
1149 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_compress.conf
1150 %attr(755,root,root) %{_libdir}/mod_compress.so
1151 %dir %attr(775,root,lighttpd) /var/cache/lighttpd/mod_compress
1152
1153 %if %{with deflate}
1154 %files mod_deflate
1155 %defattr(644,root,root,755)
1156 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_deflate.conf
1157 %attr(755,root,root) %{_libdir}/mod_deflate.so
1158 %endif
1159
1160 %files mod_dirlisting
1161 %defattr(644,root,root,755)
1162 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_dirlisting.conf
1163 %attr(755,root,root) %{_libdir}/mod_dirlisting.so
1164
1165 %files mod_evasive
1166 %defattr(644,root,root,755)
1167 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_evasive.conf
1168 %attr(755,root,root) %{_libdir}/mod_evasive.so
1169
1170 %files mod_evhost
1171 %defattr(644,root,root,755)
1172 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_evhost.conf
1173 %attr(755,root,root) %{_libdir}/mod_evhost.so
1174
1175 %files mod_expire
1176 %defattr(644,root,root,755)
1177 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_expire.conf
1178 %attr(755,root,root) %{_libdir}/mod_expire.so
1179
1180 %files mod_extforward
1181 %defattr(644,root,root,755)
1182 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_extforward.conf
1183 %attr(755,root,root) %{_libdir}/mod_extforward.so
1184
1185 %files mod_fastcgi
1186 %defattr(644,root,root,755)
1187 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_fastcgi.conf
1188 %attr(755,root,root) %{_libdir}/mod_fastcgi.so
1189
1190 %files mod_flv_streaming
1191 %defattr(644,root,root,755)
1192 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_flv_streaming.conf
1193 %attr(755,root,root) %{_libdir}/mod_flv_streaming.so
1194
1195 %files mod_h264_streaming
1196 %defattr(644,root,root,755)
1197 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_h264_streaming.conf
1198 %attr(755,root,root) %{_libdir}/mod_h264_streaming.so
1199
1200 %files mod_indexfile
1201 %defattr(644,root,root,755)
1202 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_indexfile.conf
1203 %attr(755,root,root) %{_libdir}/mod_indexfile.so
1204
1205 %files mod_magnet
1206 %defattr(644,root,root,755)
1207 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_magnet.conf
1208 %attr(755,root,root) %{_libdir}/mod_magnet.so
1209
1210 %if %{with mysql}
1211 %files mod_mysql_vhost
1212 %defattr(644,root,root,755)
1213 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_mysql_vhost.conf
1214 %attr(755,root,root) %{_libdir}/mod_mysql_vhost.so
1215 %endif
1216
1217 %files mod_proxy
1218 %defattr(644,root,root,755)
1219 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_proxy.conf
1220 %attr(755,root,root) %{_libdir}/mod_proxy.so
1221
1222 %files mod_redirect
1223 %defattr(644,root,root,755)
1224 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_redirect.conf
1225 %attr(755,root,root) %{_libdir}/mod_redirect.so
1226
1227 %files mod_rewrite
1228 %defattr(644,root,root,755)
1229 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_rewrite.conf
1230 %attr(755,root,root) %{_libdir}/mod_rewrite.so
1231
1232 %files mod_rrdtool
1233 %defattr(644,root,root,755)
1234 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_rrdtool.conf
1235 %attr(755,root,root) %{_libdir}/mod_rrdtool.so
1236 %attr(640,lighttpd,stats) %ghost /var/lib/lighttpd/lighttpd.rrd
1237
1238 %files mod_scgi
1239 %defattr(644,root,root,755)
1240 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_scgi.conf
1241 %attr(755,root,root) %{_libdir}/mod_scgi.so
1242
1243 %files mod_secdownload
1244 %defattr(644,root,root,755)
1245 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_secdownload.conf
1246 %attr(755,root,root) %{_libdir}/mod_secdownload.so
1247
1248 %files mod_setenv
1249 %defattr(644,root,root,755)
1250 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_setenv.conf
1251 %attr(755,root,root) %{_libdir}/mod_setenv.so
1252
1253 %files mod_simple_vhost
1254 %defattr(644,root,root,755)
1255 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_simple_vhost.conf
1256 %attr(755,root,root) %{_libdir}/mod_simple_vhost.so
1257
1258 %files mod_ssi
1259 %defattr(644,root,root,755)
1260 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_ssi.conf
1261 %attr(755,root,root) %{_libdir}/mod_ssi.so
1262
1263 %files mod_staticfile
1264 %defattr(644,root,root,755)
1265 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_staticfile.conf
1266 %attr(755,root,root) %{_libdir}/mod_staticfile.so
1267
1268 %files mod_status
1269 %defattr(644,root,root,755)
1270 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_status.conf
1271 %attr(755,root,root) %{_libdir}/mod_status.so
1272
1273 %files mod_trigger_b4_dl
1274 %defattr(644,root,root,755)
1275 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_trigger_b4_dl.conf
1276 %attr(755,root,root) %{_libdir}/mod_trigger_b4_dl.so
1277
1278 %files mod_userdir
1279 %defattr(644,root,root,755)
1280 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_userdir.conf
1281 %attr(755,root,root) %{_libdir}/mod_userdir.so
1282
1283 %files mod_usertrack
1284 %defattr(644,root,root,755)
1285 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_usertrack.conf
1286 %attr(755,root,root) %{_libdir}/mod_usertrack.so
1287
1288 %files mod_webdav
1289 %defattr(644,root,root,755)
1290 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_webdav.conf
1291 %attr(755,root,root) %{_libdir}/mod_webdav.so
1292
1293 %files php-spawned
1294 %defattr(644,root,root,755)
1295 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/php-spawned.conf
1296
1297 %files php-external
1298 %defattr(644,root,root,755)
1299 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/php-external.conf
1300
1301 %files ssl
1302 %defattr(644,root,root,755)
1303 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ssl.conf
1304
1305 %files -n monit-rc-lighttpd
1306 %defattr(644,root,root,755)
1307 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc
This page took 0.117326 seconds and 2 git commands to generate.