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