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