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