2 # - test ldap and mysql (failed at this time)
3 # - mysql issue: http://www.freebsd.org/cgi/query-pr.cgi?pr=76866
4 # - fam over gamin is possible, just configure doesn't check other than gamin
5 # - feature stat-cache-fam (doesn't work)
6 # - lighttpd writes early startup messages to stderr, and if started from
7 # rc-scripts the stderr is closed which causes lighttpd to abort():
8 # 2006-07-20 21:05:52: (server.c.1233) WARNING: unknown config-key: url.rewrite-final (ignored)
11 # - fcgi-devel is only used for the test-scripts
12 # - disable largefile, if you have 2.4 kernel to get sendfile() support, and don't need > 2GB file requests,
13 # see http://article.gmane.org/gmane.comp.web.lighttpd:722
15 # Conditional build for lighttpd:
16 %bcond_without xattr # support of extended attributes
17 %bcond_without ipv6 # IPv4-only version (doesn't require IPv6 in kernel)
18 %bcond_without largefile # largefile support (see notes above)
19 %bcond_without ssl # ssl support
20 %bcond_without mysql # mysql support in mod_mysql_vhost
21 %bcond_with ldap # ldap support in mod_auth
22 %bcond_with lua # LUA support in mod_cml (needs LUA >= 5.1)
23 %bcond_with memcache # memcached support in mod_cml / mod_trigger_b4_dl
24 %bcond_with gamin # gamin for reducing number of stat() calls.
25 # NOTE: must be enabled in config: server.stat-cache-engine = "fam"
26 %bcond_with gdbm # gdbm in mod_trigger_b4_dl
27 %bcond_with webdav_props # properties in mod_webdav (includes extra sqlite3/libxml deps)
28 %bcond_with valgrind # compile code with valgrind support.
29 %bcond_with deflate # build deflate module (needs patch update with current svn)
37 Summary: Fast and light HTTP server
38 Summary(pl): Szybki i lekki serwer HTTP
41 Release: %{_rel}%{?_snap:.%(echo %{_snap}|tr - _)}%{?_svn:.%{_svn}}
43 Group: Networking/Daemons
44 Source0: http://www.lighttpd.net/download/%{name}-%{version}.tar.gz
45 # Source0-md5: 8f6756452138f5da384251f849b329f2
49 Source4: %{name}.logrotate
50 Source5: %{name}.sysconfig
51 Source6: %{name}-mime.types.sh
52 Source7: http://www.lighttpd.net/favicon.ico
53 # Source7-md5: a358994becabd4060393a5454bde505d
54 Source8: http://www.lighttpd.net/light_button.png
55 # Source8-md5: 02330e2313fadc29144edfd6000879f8
56 Source9: http://www.lighttpd.net/light_logo.png
57 # Source9-md5: ac20784510e420d5cbe5fc1cdb53d7a7
58 Source10: http://gdl.hopto.org/~spider/pldstats/gfx/pld1.png
59 # Source10-md5: 486ecec3f6f4fe7f9bf7cee757b864f4
60 Source11: %{name}-pld.html
61 Source12: %{name}.monitrc
62 Source100: %{name}-mod_access.conf
63 Source101: %{name}-mod_accesslog.conf
64 Source102: %{name}-mod_alias.conf
65 Source103: %{name}-mod_auth.conf
66 Source104: %{name}-mod_cgi.conf
67 Source105: %{name}-mod_cml.conf
68 Source106: %{name}-mod_compress.conf
69 Source107: %{name}-mod_deflate.conf
70 Source108: %{name}-mod_dirlisting.conf
71 Source109: %{name}-mod_evasive.conf
72 Source110: %{name}-mod_evhost.conf
73 Source111: %{name}-mod_expire.conf
74 Source112: %{name}-mod_fastcgi.conf
75 Source113: %{name}-mod_flv_streaming.conf
76 Source114: %{name}-mod_indexfile.conf
77 Source115: %{name}-mod_proxy.conf
78 Source116: %{name}-mod_redirect.conf
79 Source117: %{name}-mod_rewrite.conf
80 Source118: %{name}-mod_rrdtool.conf
81 Source119: %{name}-mod_scgi.conf
82 Source120: %{name}-mod_secdownload.conf
83 Source121: %{name}-mod_setenv.conf
84 Source122: %{name}-mod_simple_vhost.conf
85 Source123: %{name}-mod_ssi.conf
86 Source124: %{name}-mod_staticfile.conf
87 Source125: %{name}-mod_status.conf
88 Source126: %{name}-mod_trigger_b4_dl.conf
89 Source127: %{name}-mod_userdir.conf
90 Source128: %{name}-mod_usertrack.conf
91 Source129: %{name}-mod_webdav.conf
92 Source130: %{name}-php-spawned.conf
93 Source131: %{name}-php-external.conf
94 Source132: %{name}-ssl.conf
95 Source133: %{name}-mod_mysql_vhost.conf
96 Source134: %{name}-mod_magnet.conf
97 #Patch100: %{name}-branch.diff
98 Patch0: %{name}-mod_deflate.patch
99 Patch1: %{name}-use_bin_sh.patch
100 Patch2: %{name}-initgroups.patch
101 # http://trac.lighttpd.net/trac/ticket/444
102 Patch3: %{name}-apr1.patch
103 Patch4: %{name}-mod_evasive-status_code.patch
104 URL: http://www.lighttpd.net/
105 %{?with_xattr:BuildRequires: attr-devel}
106 BuildRequires: autoconf
107 BuildRequires: automake
108 BuildRequires: bzip2-devel
109 %{?with_gamin:BuildRequires: gamin-devel}
110 %{?with_gdbm:BuildRequires: gdbm-devel}
111 %{?with_memcache:BuildRequires: libmemcache-devel}
112 BuildRequires: libtool
113 BuildRequires: libuuid-devel
114 %{?with_webdav_props:BuildRequires: libxml2-devel}
115 %{?with_lua:BuildRequires: lua51-devel >= 5.1}
116 BuildRequires: mailcap >= 2.1.14-4.4
117 %{?with_mysql:BuildRequires: mysql-devel}
118 %{?with_ldap:BuildRequires: openldap-devel}
119 %{?with_ssl:BuildRequires: openssl-devel}
120 BuildRequires: pcre-devel
121 BuildRequires: pkgconfig
122 BuildRequires: rpmbuild(macros) >= 1.268
123 %{?with_webdav_props:BuildRequires: sqlite3-devel}
124 %{?with_valgrind:BuildRequires: valgrind}
125 BuildRequires: zlib-devel
126 Requires(post,preun): /sbin/chkconfig
127 Requires(postun): /usr/sbin/groupdel
128 Requires(postun): /usr/sbin/userdel
129 Requires(pre): /bin/id
130 Requires(pre): /usr/bin/getgid
131 Requires(pre): /usr/lib/rpm/user_group.sh
132 Requires(pre): /usr/sbin/groupadd
133 Requires(pre): /usr/sbin/useradd
134 Requires(pre): /usr/sbin/usermod
135 Requires: %{name}-mod_dirlisting
136 Requires: %{name}-mod_indexfile
137 Requires: %{name}-mod_staticfile
139 Provides: group(http)
140 Provides: group(lighttpd)
141 Provides: user(lighttpd)
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)
147 %define _libdir %{_prefix}/%{_lib}/%{name}
148 %define _lighttpddir /home/services/%{name}
149 %define _sysconfdir /etc/%{name}
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
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.
171 Summary: lighttpd module for making access restrictions
172 Summary(pl): Modu³ lighttpd ograniczaj±cy dostêp
173 Group: Networking/Daemons
174 Requires: %{name} = %{version}-%{release}
175 Provides: webserver(access)
177 %description mod_access
178 The access module is used to deny access to files with given trailing
181 %description mod_access -l pl
182 Modu³ access s³u¿y do ograniczania dostêpu do plików o podanych
185 %package mod_accesslog
186 Summary: lighttpd module to record access logs
187 Summary(pl): Modu³ lighttpd do zapisu logów dostêpu
188 Group: Networking/Daemons
189 Requires: %{name} = %{version}-%{release}
191 %description mod_accesslog
192 CLF like by default, flexible like Apache.
194 %description mod_accesslog -l pl
195 Domy¶lnie podobny do CLF, elastyczny jak Apache.
198 Summary: lighttpd module for making URL aliasing
199 Summary(pl): Modu³ lighttpd odpowiadaj±cy za aliasy URL-i
200 Group: Networking/Daemons
201 Requires: %{name} = %{version}-%{release}
202 Provides: webserver(alias)
204 %description mod_alias
205 The alias module is used to specify a special document-root for a
208 %description mod_alias -l pl
209 Modul alias s³u¿y do okre¶lania specjalnego drzewa (document-roota)
210 dla podanego podzbioru URL-i.
213 Summary: lighttpd module for authentication support
214 Summary(pl): Modu³ lighttpd do obs³ugi uwierzytelniania
215 Group: Networking/Daemons
216 Requires: %{name} = %{version}-%{release}
217 Provides: webserver(auth)
219 %description mod_auth
220 lighttpd supportes both authentication method described by RFC 2617:
223 %description mod_auth -l pl
224 lighttpd obs³uguje obie metody uwierzytelniania opisane w RFC 2617:
228 Summary: lighttpd module for CGI handling
229 Summary(pl): Modu³ lighttpd do obs³ugi CGI
230 Group: Networking/Daemons
231 Requires: %{name} = %{version}-%{release}
232 Provides: webserver(cgi)
235 The cgi module provides a CGI-conforming interface.
237 CGI programs allow you to enhance the functionality of the server in a
238 very straight and simple way.
240 %description mod_cgi -l pl
241 Modu³ cgi udostêpnia interfejs zgodny z CGI.
243 Programy CGI pozwalaj± rozszerzaæ funkcjonalno¶æ serwera w bardzo
244 prosty i naturalny sposób.
247 Summary: lighttpd module for Cache Meta Language
248 Summary(pl): Modu³ Cache Meta Language
249 Group: Networking/Daemons
250 Requires: %{name} = %{version}-%{release}
253 CML is a Meta language to describe the dependencies of a page at one
254 side and building a page from its fragments on the other side using
257 %description mod_cml -l pl
258 CML to metajêzyk s³u¿±cy z jednej strony do opisu zale¿no¶ci strony i
259 z drugiej strony do budowania strony z fragmentów przy u¿yciu LUA.
261 %package mod_compress
262 Summary: lighttpd module for output compression
263 Summary(pl): Modu³ lighttpd do kompresji wyj¶cia
264 Group: Networking/Daemons
265 Requires: %{name} = %{version}-%{release}
267 %description mod_compress
268 Output compression reduces the network load and can improve the
269 overall throughput of the webserver.
271 Only static content is supported up to now.
273 The server negotiates automatically which compression method is used.
274 Supported are gzip, deflate, bzip.
276 %description mod_compress -l pl
277 Kompresja wyj¶cia zmniejsza obci±¿enie sieci i mo¿e poprawiæ ca³kowit±
278 przepustowo¶æ serwera WWW.
280 Jak na razie obs³ugiwana jest tylko statyczna tre¶æ.
282 Serwer automatycznie negocjuje, która metoda kompresji jest u¿ywana.
283 Obs³ugiwane s± gzip, deflate i bzip.
286 Summary: lighttpd module for output compression using deflate method
287 Summary(pl): Modu³ lighttpd do kompresji wyj¶cia metod± deflate
288 Group: Networking/Daemons
289 URL: http://trac.lighttpd.net/trac/wiki/Mod_Deflate
290 Requires: %{name} = %{version}-%{release}
292 %description mod_deflate
293 mod_deflate can compress any output from lighttpd static or dynamic.
294 It doesn't support caching compressed output like mod_compress.
296 %description mod_deflate -l pl
297 mod_deflate potrafi kompresowaæ statyczne i dynamiczne wyj¶cie z
298 lighttpd. Nie obs³uguje cache'owania wyniku kompresji, jak robi to
301 %package mod_dirlisting
302 Summary: lighttpd module for directory listings
303 Summary(pl): Modu³ lighttpd do tworzenia listingów katalogów
304 Group: Networking/Daemons
305 Requires: %{name} = %{version}-%{release}
307 %description mod_dirlisting
308 mod_dirlisting generates HTML based directory listings with full CSS
311 %description mod_dirlisting -l pl
312 mod_dirlisting tworzy listingi katalogów w formacie HTML z pe³n±
316 Summary: lighttpd evasive module
317 Summary(pl): Modu³ evasive dla lighttpd
318 Group: Networking/Daemons
319 Requires: %{name} = %{version}-%{release}
321 %description mod_evasive
322 lighttpd evasive module.
324 %description mod_evasive -l pl
325 Modu³ evasive dla lighttpd.
328 Summary: lighttpd module for enhanced virtual-hosting
329 Summary(pl): Modu³ lighttpd rozszerzaj±cy obs³ugê hostów wirtualnych
330 Group: Networking/Daemons
331 Requires: %{name} = %{version}-%{release}
333 %description mod_evhost
334 mod_evhost builds the document-root based on a pattern which contains
335 wildcards. Those wildcards can represent parts of the submitted
338 %description mod_evhost -l pl
339 mod_evhost tworzy document-root w oparciu o wzorzec zawieraj±cy znaki
340 wieloznaczne (wildcards). Znaki te reprezentuj± czê¶ci przekazanej
344 Summary: lighttpd module for controlling the expiration of content in caches
345 Summary(pl): Modu³ lighttpd steruj±cy wygasaniem tre¶ci w cache'ach
346 Group: Networking/Daemons
347 Requires: %{name} = %{version}-%{release}
349 %description mod_expire
350 mod_expire controls the setting of the the Expire response header.
352 %description mod_expire -l pl
353 mod_expire steruje ustawianiem nag³ówka odpowiedzi Expire.
356 Summary: lighttpd module for FastCGI interface
357 Summary(pl): Modu³ lighttpd do interfejsu FastCGI
358 Group: Networking/Daemons
359 Requires: %{name} = %{version}-%{release}
361 %description mod_fastcgi
362 The FastCGI interface is the fastest and most secure way to interface
363 external process-handlers like Perl, PHP and your self-written
366 %description mod_fastcgi -l pl
367 Interfejs FastCGI to najszybszy i najbezpieczniejszy sposób
368 komunikacji z zewnêtrznymi programami obs³uguj±cymi procesy, takimi
369 jak Perl, PHP czy w³asne aplikacje.
371 %package mod_flv_streaming
372 Summary: lighttpd module for flv streaming
373 Summary(pl): Modu³ lighttpd do streamingu flv
374 Group: Networking/Daemons
375 Requires: %{name} = %{version}-%{release}
377 %description mod_flv_streaming
378 lighttpd module for flv streaming.
380 %description mod_flv_streaming -l pl
381 Modu³ lighttpd do streamingu flv.
383 %package mod_indexfile
384 Summary: lighttpd indexfile module
385 Summary(pl): Modu³ indexfile dla lighttpd
386 Group: Networking/Daemons
387 Requires: %{name} = %{version}-%{release}
388 Provides: webserver(indexfile)
390 %description mod_indexfile
393 %description mod_indexfile -l pl
397 Summary: lighttpd powermagnet module
398 Summary(pl): Modu³ powermagnet dla lighttpd
399 Group: Networking/Daemons
400 Requires: %{name} = %{version}-%{release}
402 %description mod_magnet
403 mod_magnet is a module to control the request handling in lighty.
405 %description mod_magnet -l pl
406 mod_magnet to modu³ steruj±cy obs³ug± ¿±dañ w lighty.
408 %package mod_mysql_vhost
409 Summary: lighttpd module for MySQL based vhosting
410 Summary(pl): Modu³ lighttpd obs³uguj±cy vhosty oparte na MySQL-u
411 Group: Networking/Daemons
412 Requires: %{name} = %{version}-%{release}
413 Conflicts: %{name}-mod_simple_vhost
415 %description mod_mysql_vhost
416 This module provides virtual hosts (vhosts) based on a MySQL table.
418 %description mod_mysql_vhost -l pl
419 Ten modu³ udostêpnia wirtualne hosty (vhosty) oparte na tabeli MySQL.
422 Summary: lighttpd module for proxying requests
423 Summary(pl): Modu³ lighttpd do przekazywania ¿±dañ
424 Group: Networking/Daemons
425 Requires: %{name} = %{version}-%{release}
427 %description mod_proxy
428 The proxy module a simplest way to connect lighttpd to Java servers
429 which have a HTTP-interface.
431 %description mod_proxy -l pl
432 Modu³ proxy to najprostszy sposób ³±czenia lighttpd z serwerami Javy
433 maj±cymi interfejs HTTP.
435 %package mod_proxy_core
436 Summary: lighttpd module for proxying requests
437 Summary(pl): Modu³ lighttpd do przekazywania ¿±dañ
438 Group: Networking/Daemons
439 URL: http://blog.lighttpd.net/articles/2006/07/18/mod_proxy_core-commited-to-svn
440 Requires: %{name} = %{version}-%{release}
442 %description mod_proxy_core
443 The proxy module a simplest way to connect lighttpd to java servers
444 which have a HTTP-interface.
446 This is the new proxy code.
448 %description mod_proxy_core -l pl
449 Modu³ proxy to najprostszy sposób ³±czenia lighttpd z serwerami Javy
450 maj±cymi interfejs HTTP.
452 Ten pakiet zawiera nowy modu³ proxy.
454 %package mod_redirect
455 Summary: lighttpd module for URL redirects
456 Summary(pl): Modu³ lighttpd do przekierowañ URL-i
457 Group: Networking/Daemons
458 Requires: %{name} = %{version}-%{release}
460 %description mod_redirect
461 With mod_redirect module you can redirect a set of URLs externally.
463 %description mod_redirect -l pl
464 Przy u¿yciu modu³u mod_redirect mo¿na przekierowaæ zbiór URL-i na
468 Summary: lighttpd module for internal redirects, URL rewrite
469 Summary(pl): Modu³ lighttpd do wewnêtrznych przekierowañ i przepisywania URL-i
470 Group: Networking/Daemons
471 Requires: %{name} = %{version}-%{release}
473 %description mod_rewrite
474 This module allows you rewrite a set of URLs interally in the
475 webserver BEFORE they are handled.
477 %description mod_rewrite -l pl
478 Ten modu³ pozwala na przepisywanie zbioru URL-i wewnêtrznie w serwerze
479 WWW _przed_ ich obs³ug±.
482 Summary: lighttpd module for monitoring traffic and server load
483 Summary(pl): Modu³ lighttpd do monitorowania ruchu i obci±¿enia serwera
484 Group: Networking/Daemons
485 Requires: %{name} = %{version}-%{release}
488 %description mod_rrdtool
489 RRD is a system to store and display time-series data (i.e. network
490 bandwidth, machine-room temperature, server load average).
492 With this module you can monitor the traffic and load on the
495 %description mod_rrdtool -l pl
496 RRD to system przechowywania i wy¶wietlania danych zale¿nych od czasu
497 (np. obci±¿enia sieci, temperatury w serwerowni, ¶redniego obci±¿enia
500 Przy u¿yciu tego modu³u mo¿na monitorowaæ ruch i obci±¿enie serwera
504 Summary: lighttpd module for SCGI interface
505 Summary(pl): Modu³ lighttpd do interfejsu SCGI
506 Group: Networking/Daemons
507 Requires: %{name} = %{version}-%{release}
509 %description mod_scgi
510 SCGI is a fast and simplified CGI interface. It is mostly used by
513 %description mod_scgi -l pl
514 SCGI to szybki i uproszczony interfejs CGI. Jest u¿ywany g³ównie przez
517 %package mod_secdownload
518 Summary: lighttpd module for secure and fast downloading
519 Summary(pl): Modu³ lighttpd do bezpiecznego i szybkiego ¶ci±gania danych
520 Group: Networking/Daemons
521 Requires: %{name} = %{version}-%{release}
523 %description mod_secdownload
524 With this module you can easily achieve authenticated file requests
525 and a countermeasure against deep-linking.
527 %description mod_secdownload -l pl
528 Przy u¿yciu tego modu³u mo¿na ³atwo umo¿liwiæ ¶ci±ganie plików z
529 uwierzytelnieniem i zapobiec u¿ywaniu bezpo¶rednich odno¶ników.
532 Summary: lighttpd module for setting conditional request headers
533 Summary(pl): Modu³ lighttpd do ustawiania warunkowych nag³ówków ¿±dañ
534 Group: Networking/Daemons
535 Requires: %{name} = %{version}-%{release}
537 %description mod_setenv
538 mod_setenv is used to add request headers.
540 %description mod_setenv -l pl
541 mod_setenv s³u¿y do dodawania nag³ówków ¿±dañ.
543 %package mod_simple_vhost
544 Summary: lighttpd module for simple virtual-hosting
545 Summary(pl): Modu³ lighttpd do prostych hostów wirtualnych
546 Group: Networking/Daemons
547 Requires: %{name} = %{version}-%{release}
548 Conflicts: %{name}-mod_mysql_vhost
550 %description mod_simple_vhost
551 lighttpd module for simple virtual-hosting.
553 %description mod_simple_vhost -l pl
554 Modu³ lighttpd do prostych hostów wirtualnych.
557 Summary: lighttpd module for server-side includes
558 Summary(pl): Modu³ lighttpd do SSI (server-side includes)
559 Group: Networking/Daemons
560 Requires: %{name} = %{version}-%{release}
563 The module for server-side includes provides a compatability layer for
566 %description mod_ssi -l pl
567 Modu³ server-side includes udostêpnia warstwê kompatybilno¶ci z SSI
568 znanym z NSCA/Apache'a.
570 %package mod_staticfile
571 Summary: lighttpd module for static file serving
572 Summary(pl): Modu³ lighttpd do serwowania statycznych plików
573 Group: Networking/Daemons
574 Requires: %{name} = %{version}-%{release}
576 %description mod_staticfile
577 lighttpd module for static file serving.
579 %description mod_staticfile -l pl
580 Modu³ lighttpd do serwowania statycznych plików.
583 Summary: lighttpd module for displaying server status
584 Summary(pl): Modu³ lighttpd do wy¶wietlania stanu serwera
585 Group: Networking/Daemons
586 Requires: %{name} = %{version}-%{release}
588 %description mod_status
589 mod_status displays the server's status and configuration.
591 %description mod_status -l pl
592 mod_status wy¶wietla stan i konfiguracjê serwera.
594 %package mod_trigger_b4_dl
595 Summary: Trigger before Download
596 Summary(pl): Wyzwalacz przed ¶ci±ganiem
597 Group: Networking/Daemons
598 Requires: %{name} = %{version}-%{release}
600 %description mod_trigger_b4_dl
601 Another anti hot-linking module.
603 %description mod_trigger_b4_dl -l pl
604 Jeszcze jeden modu³ blokuj±cy bezpo¶rednie linkowanie.
607 Summary: lighttpd module for user homedirs
608 Summary(pl): Modu³ lighttpd obs³uguj±cy katalogi domowe u¿ytkowników
609 Group: Networking/Daemons
610 Requires: %{name} = %{version}-%{release}
612 %description mod_userdir
613 The userdir module provides a simple way to link user-based
614 directories into the global namespace of the webserver.
616 %description mod_userdir -l pl
617 Modu³ userdir udostêpnia prosty sposób w³±czenia katalogów
618 u¿ytkowników do globalnej przestrzeni nazw serwera WWW.
620 %package mod_usertrack
621 Summary: lighttpd usertrack module
622 Summary(pl): Modu³ usertrack dla lighttpd
623 Group: Networking/Daemons
624 Requires: %{name} = %{version}-%{release}
626 %description mod_usertrack
627 lighttpd usertrack module.
629 %description mod_usertrack -l pl
630 Modu³ usertrack dla lighttpd.
633 Summary: WebDAV module for lighttpd
634 Summary(pl): Modu³ WebDAV dla libghttpd
635 Group: Networking/Daemons
636 Requires: %{name} = %{version}-%{release}
638 %description mod_webdav
639 The WebDAV module is a very minimalistic implementation of RFC 2518.
640 Minimalistic means that not all operations are implementated yet.
649 and the usual GET, POST, HEAD from HTTP/1.1.
651 So far mounting a webdav resource into Windows XP works and the basic
652 litmus tests are passed.
654 %description mod_webdav -l pl
655 Modu³ WebDAV to bardzo minimalistyczna implementacja RFC 2518.
656 Minimalistyczna oznacza, ¿e jeszcze nie wszystkie operacje s±
657 zaimplementowane. Jak na razie s±:
663 oraz zwyk³e GET, POST, HEAD z HTTP/1.1.
665 Jak na razie montowanie zasobu webdav pod Windows XP dzia³a i
666 podstawowe testy lakmusowe przechodz±.
668 %package -n spawn-fcgi
669 Summary: Spawn fcgi-process directly
670 Summary(pl): Bezpo¶rednie uruchamianie procesów fcgi
673 %description -n spawn-fcgi
674 spawn-fcgi is used to spawn fcgi-process directly without the help of
675 a webserver or the programm itself.
677 %description -n spawn-fcgi -l pl
678 spawn-fcgi s³u¿y do uruchamiania procesów fcgi bezpo¶rednio, bez
679 pomocy serwera WWW ani samego programu.
682 Summary: PHP support via FastCGI, spawned by lighttpd
683 Summary(pl): Obs³uga PHP przez FastCGI, uruchamiane przez lighttpd
684 Group: Networking/Daemons
685 Requires: %{name} = %{version}-%{release}
686 Requires: %{name}-mod_fastcgi = %{version}-%{release}
688 Obsoletes: lighttpd-php-external
690 %description php-spawned
691 PHP support via FastCGI, spawned by lighttpd.
693 %description php-spawned -l pl
694 Obs³uga PHP przez FastCGI, uruchamiane przez lighttpd.
696 %package php-external
697 Summary: PHP support via FastCGI, spawning controlled externally
698 Summary(pl): Obs³uga PHP przez FastCGI, uruchamianie sterowane zewnêtrznie
699 Group: Networking/Daemons
700 Requires: %{name} = %{version}-%{release}
701 Requires: %{name}-mod_fastcgi = %{version}-%{release}
702 Requires: php-fcgi-init
703 Obsoletes: lighttpd-php-spawned
705 %description php-external
706 PHP support via FastCGI, spawning controlled externally.
708 %description php-external -l pl
709 Obs³uga PHP przez FastCGI, uruchamianie sterowane zewnêtrznie.
712 Summary: lighttpd support for SSLv2 and SSLv3
713 Summary(pl): Obs³uga SSLv2 i SSLv3 dla lighttpd
714 Group: Networking/Daemons
715 Requires: %{name} = %{version}-%{release}
718 lighttpd support for SSLv2 and SSLv3.
720 %description ssl -l pl
721 Obs³uga SSLv2 i SSLv3 dla lighttpd.
732 # build mime.types.conf
733 sh %{SOURCE6} /etc/mime.types
742 --enable-maintainer-mode \
743 %{!?with_ipv6:--disable-ipv6} \
744 %{!?with_largefile:--disable-lfs} \
745 %{?with_valgrind:--with-valgrind} \
746 %{?with_xattr:--with-attr} \
747 %{?with_mysql:--with-mysql} \
748 %{?with_ldap:--with-ldap} \
749 %{?with_ssl:--with-openssl} \
750 %{?with_lua:--with-lua} \
751 %{?with_memcache:--with-memcache} \
752 %{?with_webdav_props:--with-webdav-props} \
753 %{?with_gamin:--with-gamin} \
754 %{?with_gdbm:--with-gdbm}
759 rm -rf $RPM_BUILD_ROOT
760 install -d $RPM_BUILD_ROOT{%{_lighttpddir}/{cgi-bin,html},/etc/{logrotate.d,rc.d/init.d,sysconfig,monit}} \
761 $RPM_BUILD_ROOT%{_sysconfdir}/{conf,webapps}.d \
762 $RPM_BUILD_ROOT{/var/log/{%{name},archiv/%{name}},/var/run/%{name}}
765 DESTDIR=$RPM_BUILD_ROOT
767 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
768 install %{SOURCE2} %{SOURCE3} mime.types.conf $RPM_BUILD_ROOT%{_sysconfdir}
769 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
770 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
771 install %{SOURCE12} $RPM_BUILD_ROOT/etc/monit/%{name}.monitrc
773 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
775 # could use automake patch, but automake generation fails...
776 mv $RPM_BUILD_ROOT%{_bindir}/spawn-fcgi $RPM_BUILD_ROOT%{_sbindir}/spawn-fcgi
778 # Install lighttpd images
779 install %{SOURCE7} %{SOURCE8} %{SOURCE9} $RPM_BUILD_ROOT%{_lighttpddir}/html
780 install %{SOURCE10} $RPM_BUILD_ROOT%{_lighttpddir}/html/pld_button.png
781 install %{SOURCE11} $RPM_BUILD_ROOT%{_lighttpddir}/html/index.html
783 # NOTE: the order of the modules is somewhat important as the modules are
784 # handled in the way they are specified. mod_rewrite should always be the first
785 # module, mod_accesslog always the last.
787 install %{SOURCE117} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/10_mod_rewrite.conf
788 install %{SOURCE116} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/11_mod_redirect.conf
790 install %{SOURCE100} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_access.conf
791 install %{SOURCE102} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_alias.conf
792 install %{SOURCE103} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_auth.conf
793 install %{SOURCE104} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_cgi.conf
794 install %{SOURCE105} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_cml.conf
795 install %{SOURCE106} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_compress.conf
796 install %{SOURCE107} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_deflate.conf
797 install %{SOURCE108} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_dirlisting.conf
798 install %{SOURCE109} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evasive.conf
799 install %{SOURCE110} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evhost.conf
800 install %{SOURCE111} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_expire.conf
801 install %{SOURCE112} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_fastcgi.conf
802 install %{SOURCE113} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_flv_streaming.conf
803 install %{SOURCE114} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_indexfile.conf
804 install %{SOURCE134} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_magnet.conf
805 install %{SOURCE115} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_proxy.conf
806 install %{SOURCE118} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_rrdtool.conf
807 install %{SOURCE119} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_scgi.conf
808 install %{SOURCE120} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_secdownload.conf
809 install %{SOURCE121} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_setenv.conf
810 install %{SOURCE122} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_simple_vhost.conf
811 install %{SOURCE123} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_ssi.conf
812 install %{SOURCE124} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_staticfile.conf
813 install %{SOURCE125} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_status.conf
814 install %{SOURCE126} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_trigger_b4_dl.conf
815 install %{SOURCE127} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_userdir.conf
816 install %{SOURCE128} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_usertrack.conf
817 install %{SOURCE129} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_webdav.conf
818 install %{SOURCE133} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_mysql_vhost.conf
820 install %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_accesslog.conf
822 install %{SOURCE130} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/php-spawned.conf
823 install %{SOURCE131} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/php-external.conf
824 install %{SOURCE132} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/ssl.conf
827 # avoid packaging dummy module
828 rm -f $RPM_BUILD_ROOT%{_libdir}/mod_mysql_vhost.so
829 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/*_mod_mysql_vhost.conf
831 %if %{without deflate}
832 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/*_mod_deflate.conf
836 rm -rf $RPM_BUILD_ROOT
839 %groupadd -g 109 lighttpd
841 %useradd -u 116 -d %{_lighttpddir} -c "LigHTTPd User" -g lighttpd lighttpd
842 %addusertogroup lighttpd http
845 /sbin/chkconfig --add %{name}
848 if [ "$1" = "0" ]; then
849 %service %{name} stop
850 /sbin/chkconfig --del %{name}
854 if [ "$1" = "0" ]; then
856 %groupremove lighttpd
861 # minimizing lighttpd restarts logics. we restart webserver:
863 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
864 # 2. first install of module (post: $1 = 1)
865 # 2. uninstall of module (postun: $1 == 0)
867 # the strict internal deps between lighttpd modules and
868 # main package are very important for all this to work.
869 %service %{name} restart "LigHTTPd webserver"
872 # macro called at module post scriptlet
873 %define module_post \
874 if [ "$1" = "1" ]; then \
875 %service -q lighttpd restart \
878 # macro called at module postun scriptlet
879 %define module_postun \
880 if [ "$1" = "0" ]; then \
881 %service -q lighttpd restart \
884 # it's sooo annoying to write them
885 %define module_scripts() \
892 %module_scripts mod_access
893 %module_scripts mod_accesslog
894 %module_scripts mod_alias
895 %module_scripts mod_auth
896 %module_scripts mod_cgi
897 %module_scripts mod_cml
898 %module_scripts mod_compress
899 %module_scripts mod_deflate
900 %module_scripts mod_dirlisting
901 %module_scripts mod_evasive
902 %module_scripts mod_evhost
903 %module_scripts mod_expire
904 %module_scripts mod_fastcgi
905 %module_scripts mod_flv_streaming
906 %module_scripts mod_indexfile
907 %module_scripts mod_magnet
908 %module_scripts mod_mysql_vhost
909 %module_scripts mod_proxy
910 %module_scripts mod_redirect
911 %module_scripts mod_rewrite
912 %module_scripts mod_rrdtool
913 %module_scripts mod_scgi
914 %module_scripts mod_secdownload
915 %module_scripts mod_setenv
916 %module_scripts mod_simple_vhost
917 %module_scripts mod_ssi
918 %module_scripts mod_staticfile
919 %module_scripts mod_status
920 %module_scripts mod_trigger_b4_dl
921 %module_scripts mod_userdir
922 %module_scripts mod_usertrack
923 %module_scripts mod_webdav
925 %module_scripts php-spawned
926 %module_scripts php-external
928 %triggerpostun -- %{name} <= 1.3.6-2
929 %banner %{name} -e <<EOF
930 spawn-fcgi program is now available separately from spawn-fcgi package.
935 %defattr(644,root,root,755)
936 %doc NEWS README ChangeLog doc/lighttpd.conf doc/*.txt doc/rrdtool-graph.sh
937 %dir %attr(750,root,lighttpd) %{_sysconfdir}
938 %dir %attr(750,root,root) %{_sysconfdir}/webapps.d
939 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
940 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.types.conf
941 %attr(640,root,lighttpd) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.user
943 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
944 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc
945 %attr(750,root,root) %dir /var/log/archiv/%{name}
946 %dir %attr(770,root,lighttpd) /var/log/%{name}
947 %dir %attr(770,root,lighttpd) /var/run/%{name}
948 %attr(754,root,root) /etc/rc.d/init.d/%{name}
949 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
950 %attr(755,root,root) %{_sbindir}/*
954 %dir %{_lighttpddir}/cgi-bin
955 %dir %{_lighttpddir}/html
956 %config(noreplace,missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/*
959 %defattr(644,root,root,755)
960 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_access.conf
961 %attr(755,root,root) %{_libdir}/mod_access.so
964 %defattr(644,root,root,755)
965 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_accesslog.conf
966 %attr(755,root,root) %{_libdir}/mod_accesslog.so
969 %defattr(644,root,root,755)
970 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_alias.conf
971 %attr(755,root,root) %{_libdir}/mod_alias.so
974 %defattr(644,root,root,755)
975 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_auth.conf
976 %attr(755,root,root) %{_libdir}/mod_auth.so
979 %defattr(644,root,root,755)
980 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_cgi.conf
981 %attr(755,root,root) %{_libdir}/mod_cgi.so
984 %defattr(644,root,root,755)
985 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_cml.conf
986 %attr(755,root,root) %{_libdir}/mod_cml.so
989 %defattr(644,root,root,755)
990 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_compress.conf
991 %attr(755,root,root) %{_libdir}/mod_compress.so
995 %defattr(644,root,root,755)
996 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_deflate.conf
997 %attr(755,root,root) %{_libdir}/mod_deflate.so
1000 %files mod_dirlisting
1001 %defattr(644,root,root,755)
1002 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_dirlisting.conf
1003 %attr(755,root,root) %{_libdir}/mod_dirlisting.so
1006 %defattr(644,root,root,755)
1007 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_evasive.conf
1008 %attr(755,root,root) %{_libdir}/mod_evasive.so
1011 %defattr(644,root,root,755)
1012 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_evhost.conf
1013 %attr(755,root,root) %{_libdir}/mod_evhost.so
1016 %defattr(644,root,root,755)
1017 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_expire.conf
1018 %attr(755,root,root) %{_libdir}/mod_expire.so
1021 %defattr(644,root,root,755)
1022 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_fastcgi.conf
1023 %attr(755,root,root) %{_libdir}/mod_fastcgi.so
1025 %files mod_flv_streaming
1026 %defattr(644,root,root,755)
1027 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_flv_streaming.conf
1028 %attr(755,root,root) %{_libdir}/mod_flv_streaming.so
1030 %files mod_indexfile
1031 %defattr(644,root,root,755)
1032 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_indexfile.conf
1033 %attr(755,root,root) %{_libdir}/mod_indexfile.so
1036 %defattr(644,root,root,755)
1037 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_magnet.conf
1038 %attr(755,root,root) %{_libdir}/mod_magnet.so
1041 %files mod_mysql_vhost
1042 %defattr(644,root,root,755)
1043 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_mysql_vhost.conf
1044 %attr(755,root,root) %{_libdir}/mod_mysql_vhost.so
1048 %defattr(644,root,root,755)
1049 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_proxy.conf
1050 %attr(755,root,root) %{_libdir}/mod_proxy.so
1053 %defattr(644,root,root,755)
1054 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_redirect.conf
1055 %attr(755,root,root) %{_libdir}/mod_redirect.so
1058 %defattr(644,root,root,755)
1059 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_rewrite.conf
1060 %attr(755,root,root) %{_libdir}/mod_rewrite.so
1063 %defattr(644,root,root,755)
1064 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_rrdtool.conf
1065 %attr(755,root,root) %{_libdir}/mod_rrdtool.so
1068 %defattr(644,root,root,755)
1069 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_scgi.conf
1070 %attr(755,root,root) %{_libdir}/mod_scgi.so
1072 %files mod_secdownload
1073 %defattr(644,root,root,755)
1074 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_secdownload.conf
1075 %attr(755,root,root) %{_libdir}/mod_secdownload.so
1078 %defattr(644,root,root,755)
1079 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_setenv.conf
1080 %attr(755,root,root) %{_libdir}/mod_setenv.so
1082 %files mod_simple_vhost
1083 %defattr(644,root,root,755)
1084 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_simple_vhost.conf
1085 %attr(755,root,root) %{_libdir}/mod_simple_vhost.so
1088 %defattr(644,root,root,755)
1089 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_ssi.conf
1090 %attr(755,root,root) %{_libdir}/mod_ssi.so
1092 %files mod_staticfile
1093 %defattr(644,root,root,755)
1094 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_staticfile.conf
1095 %attr(755,root,root) %{_libdir}/mod_staticfile.so
1098 %defattr(644,root,root,755)
1099 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_status.conf
1100 %attr(755,root,root) %{_libdir}/mod_status.so
1102 %files mod_trigger_b4_dl
1103 %defattr(644,root,root,755)
1104 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_trigger_b4_dl.conf
1105 %attr(755,root,root) %{_libdir}/mod_trigger_b4_dl.so
1108 %defattr(644,root,root,755)
1109 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_userdir.conf
1110 %attr(755,root,root) %{_libdir}/mod_userdir.so
1112 %files mod_usertrack
1113 %defattr(644,root,root,755)
1114 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_usertrack.conf
1115 %attr(755,root,root) %{_libdir}/mod_usertrack.so
1118 %defattr(644,root,root,755)
1119 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_webdav.conf
1120 %attr(755,root,root) %{_libdir}/mod_webdav.so
1122 %files -n spawn-fcgi
1123 %defattr(644,root,root,755)
1124 %doc doc/spawn-php.sh
1125 %attr(755,root,root) %{_sbindir}/spawn-fcgi
1128 %defattr(644,root,root,755)
1129 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/php-spawned.conf
1132 %defattr(644,root,root,755)
1133 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/php-external.conf
1136 %defattr(644,root,root,755)
1137 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ssl.conf