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: d775d6478391b95d841a1018c8db0b95
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}-use_bin_sh.patch
99 Patch1: %{name}-mod_evasive-status_code.patch
100 Patch2: %{name}-mod_deflate.patch
101 URL: http://www.lighttpd.net/
102 %{?with_xattr:BuildRequires: attr-devel}
103 BuildRequires: autoconf
104 BuildRequires: automake
105 BuildRequires: bzip2-devel
106 %{?with_gamin:BuildRequires: gamin-devel}
107 %{?with_gdbm:BuildRequires: gdbm-devel}
108 %{?with_memcache:BuildRequires: libmemcache-devel}
109 BuildRequires: libtool
110 BuildRequires: libuuid-devel
111 %{?with_webdav_props:BuildRequires: libxml2-devel}
112 %{?with_lua:BuildRequires: lua51-devel >= 5.1}
113 BuildRequires: mailcap >= 2.1.14-4.4
114 %{?with_mysql:BuildRequires: mysql-devel}
115 %{?with_ldap:BuildRequires: openldap-devel}
116 %{?with_ssl:BuildRequires: openssl-devel}
117 BuildRequires: pcre-devel
118 BuildRequires: pkgconfig
119 BuildRequires: rpmbuild(macros) >= 1.268
120 %{?with_webdav_props:BuildRequires: sqlite3-devel}
121 %{?with_valgrind:BuildRequires: valgrind}
122 BuildRequires: zlib-devel
123 Requires(post,preun): /sbin/chkconfig
124 Requires(postun): /usr/sbin/groupdel
125 Requires(postun): /usr/sbin/userdel
126 Requires(pre): /bin/id
127 Requires(pre): /usr/bin/getgid
128 Requires(pre): /usr/lib/rpm/user_group.sh
129 Requires(pre): /usr/sbin/groupadd
130 Requires(pre): /usr/sbin/useradd
131 Requires(pre): /usr/sbin/usermod
132 Requires: %{name}-mod_dirlisting
133 Requires: %{name}-mod_indexfile
134 Requires: %{name}-mod_staticfile
136 Provides: group(http)
137 Provides: group(lighttpd)
138 Provides: user(lighttpd)
140 # for the posttrans scriptlet, conflicts because in vserver environment rpm package is not installed.
141 Conflicts: rpm < 4.4.2-0.2
142 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
144 %define _libdir %{_prefix}/%{_lib}/%{name}
145 %define _lighttpddir /home/services/%{name}
146 %define _sysconfdir /etc/%{name}
149 lighttpd is a secure, fast, compliant and very flexible web-server
150 which has been optimized for high-performance environments. It has a
151 very low memory footprint compared to other webservers and takes care
152 of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth,
153 Output-Compression, URL-Rewriting and many more) make lighttpd the
154 perfect webserver-software for every server that is suffering load
158 lighttpd jest bezpiecznym, szybkim, przyjaznym i bardzo elastycznym
159 serwerem WWW, który zosta³ zoptymalizowany pod k±tem
160 wysokowydajno¶ciowych ¶rodowisk. Zajmuje bardzo ma³± ilo¶æ pamiêci w
161 porównaniu do innych serwerów WWW oraz dba o zajêto¶æ procesora.
162 Szeroki zestaw opcji (FastCGI, CGI, uwierzytelnianie, kompresja
163 wyj¶cia, przepisywanie URL-i i wiele innych) czyni± z lighttpd
164 doskona³e oprogramowanie web-serwerowe na ka¿dy serwer cierpi±cy z
165 powodu problemów z obci±¿eniem.
168 Summary: lighttpd module for making access restrictions
169 Summary(pl): Modu³ lighttpd ograniczaj±cy dostêp
170 Group: Networking/Daemons
171 Requires: %{name} = %{version}-%{release}
172 Provides: webserver(access)
174 %description mod_access
175 The access module is used to deny access to files with given trailing
178 %description mod_access -l pl
179 Modu³ access s³u¿y do ograniczania dostêpu do plików o podanych
182 %package mod_accesslog
183 Summary: lighttpd module to record access logs
184 Summary(pl): Modu³ lighttpd do zapisu logów dostêpu
185 Group: Networking/Daemons
186 Requires: %{name} = %{version}-%{release}
188 %description mod_accesslog
189 CLF like by default, flexible like Apache.
191 %description mod_accesslog -l pl
192 Domy¶lnie podobny do CLF, elastyczny jak Apache.
195 Summary: lighttpd module for making URL aliasing
196 Summary(pl): Modu³ lighttpd odpowiadaj±cy za aliasy URL-i
197 Group: Networking/Daemons
198 Requires: %{name} = %{version}-%{release}
199 Provides: webserver(alias)
201 %description mod_alias
202 The alias module is used to specify a special document-root for a
205 %description mod_alias -l pl
206 Modul alias s³u¿y do okre¶lania specjalnego drzewa (document-roota)
207 dla podanego podzbioru URL-i.
210 Summary: lighttpd module for authentication support
211 Summary(pl): Modu³ lighttpd do obs³ugi uwierzytelniania
212 Group: Networking/Daemons
213 Requires: %{name} = %{version}-%{release}
214 Provides: webserver(auth)
216 %description mod_auth
217 lighttpd supportes both authentication method described by RFC 2617:
220 %description mod_auth -l pl
221 lighttpd obs³uguje obie metody uwierzytelniania opisane w RFC 2617:
225 Summary: lighttpd module for CGI handling
226 Summary(pl): Modu³ lighttpd do obs³ugi CGI
227 Group: Networking/Daemons
228 Requires: %{name} = %{version}-%{release}
229 Provides: webserver(cgi)
232 The cgi module provides a CGI-conforming interface.
234 CGI programs allow you to enhance the functionality of the server in a
235 very straight and simple way.
237 %description mod_cgi -l pl
238 Modu³ cgi udostêpnia interfejs zgodny z CGI.
240 Programy CGI pozwalaj± rozszerzaæ funkcjonalno¶æ serwera w bardzo
241 prosty i naturalny sposób.
244 Summary: lighttpd module for Cache Meta Language
245 Summary(pl): Modu³ Cache Meta Language
246 Group: Networking/Daemons
247 Requires: %{name} = %{version}-%{release}
250 CML is a Meta language to describe the dependencies of a page at one
251 side and building a page from its fragments on the other side using
254 %description mod_cml -l pl
255 CML to metajêzyk s³u¿±cy z jednej strony do opisu zale¿no¶ci strony i
256 z drugiej strony do budowania strony z fragmentów przy u¿yciu LUA.
258 %package mod_compress
259 Summary: lighttpd module for output compression
260 Summary(pl): Modu³ lighttpd do kompresji wyj¶cia
261 Group: Networking/Daemons
262 Requires: %{name} = %{version}-%{release}
264 %description mod_compress
265 Output compression reduces the network load and can improve the
266 overall throughput of the webserver.
268 Only static content is supported up to now.
270 The server negotiates automatically which compression method is used.
271 Supported are gzip, deflate, bzip.
273 %description mod_compress -l pl
274 Kompresja wyj¶cia zmniejsza obci±¿enie sieci i mo¿e poprawiæ ca³kowit±
275 przepustowo¶æ serwera WWW.
277 Jak na razie obs³ugiwana jest tylko statyczna tre¶æ.
279 Serwer automatycznie negocjuje, która metoda kompresji jest u¿ywana.
280 Obs³ugiwane s± gzip, deflate i bzip.
283 Summary: lighttpd module for output compression using deflate method
284 Summary(pl): Modu³ lighttpd do kompresji wyj¶cia metod± deflate
285 Group: Networking/Daemons
286 URL: http://trac.lighttpd.net/trac/wiki/Mod_Deflate
287 Requires: %{name} = %{version}-%{release}
289 %description mod_deflate
290 mod_deflate can compress any output from lighttpd static or dynamic.
291 It doesn't support caching compressed output like mod_compress.
293 %description mod_deflate -l pl
294 mod_deflate potrafi kompresowaæ statyczne i dynamiczne wyj¶cie z
295 lighttpd. Nie obs³uguje cache'owania wyniku kompresji, jak robi to
298 %package mod_dirlisting
299 Summary: lighttpd module for directory listings
300 Summary(pl): Modu³ lighttpd do tworzenia listingów katalogów
301 Group: Networking/Daemons
302 Requires: %{name} = %{version}-%{release}
304 %description mod_dirlisting
305 mod_dirlisting generates HTML based directory listings with full CSS
308 %description mod_dirlisting -l pl
309 mod_dirlisting tworzy listingi katalogów w formacie HTML z pe³n±
313 Summary: lighttpd evasive module
314 Summary(pl): Modu³ evasive dla lighttpd
315 Group: Networking/Daemons
316 Requires: %{name} = %{version}-%{release}
318 %description mod_evasive
319 lighttpd evasive module.
321 %description mod_evasive -l pl
322 Modu³ evasive dla lighttpd.
325 Summary: lighttpd module for enhanced virtual-hosting
326 Summary(pl): Modu³ lighttpd rozszerzaj±cy obs³ugê hostów wirtualnych
327 Group: Networking/Daemons
328 Requires: %{name} = %{version}-%{release}
330 %description mod_evhost
331 mod_evhost builds the document-root based on a pattern which contains
332 wildcards. Those wildcards can represent parts of the submitted
335 %description mod_evhost -l pl
336 mod_evhost tworzy document-root w oparciu o wzorzec zawieraj±cy znaki
337 wieloznaczne (wildcards). Znaki te reprezentuj± czê¶ci przekazanej
341 Summary: lighttpd module for controlling the expiration of content in caches
342 Summary(pl): Modu³ lighttpd steruj±cy wygasaniem tre¶ci w cache'ach
343 Group: Networking/Daemons
344 Requires: %{name} = %{version}-%{release}
346 %description mod_expire
347 mod_expire controls the setting of the the Expire response header.
349 %description mod_expire -l pl
350 mod_expire steruje ustawianiem nag³ówka odpowiedzi Expire.
353 Summary: lighttpd module for FastCGI interface
354 Summary(pl): Modu³ lighttpd do interfejsu FastCGI
355 Group: Networking/Daemons
356 Requires: %{name} = %{version}-%{release}
358 %description mod_fastcgi
359 The FastCGI interface is the fastest and most secure way to interface
360 external process-handlers like Perl, PHP and your self-written
363 %description mod_fastcgi -l pl
364 Interfejs FastCGI to najszybszy i najbezpieczniejszy sposób
365 komunikacji z zewnêtrznymi programami obs³uguj±cymi procesy, takimi
366 jak Perl, PHP czy w³asne aplikacje.
368 %package mod_flv_streaming
369 Summary: lighttpd module for flv streaming
370 Summary(pl): Modu³ lighttpd do streamingu flv
371 Group: Networking/Daemons
372 Requires: %{name} = %{version}-%{release}
374 %description mod_flv_streaming
375 lighttpd module for flv streaming.
377 %description mod_flv_streaming -l pl
378 Modu³ lighttpd do streamingu flv.
380 %package mod_indexfile
381 Summary: lighttpd indexfile module
382 Summary(pl): Modu³ indexfile dla lighttpd
383 Group: Networking/Daemons
384 Requires: %{name} = %{version}-%{release}
385 Provides: webserver(indexfile)
387 %description mod_indexfile
390 %description mod_indexfile -l pl
394 Summary: lighttpd powermagnet module
395 Summary(pl): Modu³ powermagnet dla lighttpd
396 Group: Networking/Daemons
397 Requires: %{name} = %{version}-%{release}
399 %description mod_magnet
400 mod_magnet is a module to control the request handling in lighty.
402 %description mod_magnet -l pl
403 mod_magnet to modu³ steruj±cy obs³ug± ¿±dañ w lighty.
405 %package mod_mysql_vhost
406 Summary: lighttpd module for MySQL based vhosting
407 Summary(pl): Modu³ lighttpd obs³uguj±cy vhosty oparte na MySQL-u
408 Group: Networking/Daemons
409 Requires: %{name} = %{version}-%{release}
410 Conflicts: %{name}-mod_simple_vhost
412 %description mod_mysql_vhost
413 This module provides virtual hosts (vhosts) based on a MySQL table.
415 %description mod_mysql_vhost -l pl
416 Ten modu³ udostêpnia wirtualne hosty (vhosty) oparte na tabeli MySQL.
419 Summary: lighttpd module for proxying requests
420 Summary(pl): Modu³ lighttpd do przekazywania ¿±dañ
421 Group: Networking/Daemons
422 Requires: %{name} = %{version}-%{release}
424 %description mod_proxy
425 The proxy module a simplest way to connect lighttpd to Java servers
426 which have a HTTP-interface.
428 %description mod_proxy -l pl
429 Modu³ proxy to najprostszy sposób ³±czenia lighttpd z serwerami Javy
430 maj±cymi interfejs HTTP.
432 %package mod_proxy_core
433 Summary: lighttpd module for proxying requests
434 Summary(pl): Modu³ lighttpd do przekazywania ¿±dañ
435 Group: Networking/Daemons
436 URL: http://blog.lighttpd.net/articles/2006/07/18/mod_proxy_core-commited-to-svn
437 Requires: %{name} = %{version}-%{release}
439 %description mod_proxy_core
440 The proxy module a simplest way to connect lighttpd to java servers
441 which have a HTTP-interface.
443 This is the new proxy code.
445 %description mod_proxy_core -l pl
446 Modu³ proxy to najprostszy sposób ³±czenia lighttpd z serwerami Javy
447 maj±cymi interfejs HTTP.
449 Ten pakiet zawiera nowy modu³ proxy.
451 %package mod_redirect
452 Summary: lighttpd module for URL redirects
453 Summary(pl): Modu³ lighttpd do przekierowañ URL-i
454 Group: Networking/Daemons
455 Requires: %{name} = %{version}-%{release}
457 %description mod_redirect
458 With mod_redirect module you can redirect a set of URLs externally.
460 %description mod_redirect -l pl
461 Przy u¿yciu modu³u mod_redirect mo¿na przekierowaæ zbiór URL-i na
465 Summary: lighttpd module for internal redirects, URL rewrite
466 Summary(pl): Modu³ lighttpd do wewnêtrznych przekierowañ i przepisywania URL-i
467 Group: Networking/Daemons
468 Requires: %{name} = %{version}-%{release}
470 %description mod_rewrite
471 This module allows you rewrite a set of URLs interally in the
472 webserver BEFORE they are handled.
474 %description mod_rewrite -l pl
475 Ten modu³ pozwala na przepisywanie zbioru URL-i wewnêtrznie w serwerze
476 WWW _przed_ ich obs³ug±.
479 Summary: lighttpd module for monitoring traffic and server load
480 Summary(pl): Modu³ lighttpd do monitorowania ruchu i obci±¿enia serwera
481 Group: Networking/Daemons
482 Requires: %{name} = %{version}-%{release}
485 %description mod_rrdtool
486 RRD is a system to store and display time-series data (i.e. network
487 bandwidth, machine-room temperature, server load average).
489 With this module you can monitor the traffic and load on the
492 %description mod_rrdtool -l pl
493 RRD to system przechowywania i wy¶wietlania danych zale¿nych od czasu
494 (np. obci±¿enia sieci, temperatury w serwerowni, ¶redniego obci±¿enia
497 Przy u¿yciu tego modu³u mo¿na monitorowaæ ruch i obci±¿enie serwera
501 Summary: lighttpd module for SCGI interface
502 Summary(pl): Modu³ lighttpd do interfejsu SCGI
503 Group: Networking/Daemons
504 Requires: %{name} = %{version}-%{release}
506 %description mod_scgi
507 SCGI is a fast and simplified CGI interface. It is mostly used by
510 %description mod_scgi -l pl
511 SCGI to szybki i uproszczony interfejs CGI. Jest u¿ywany g³ównie przez
514 %package mod_secdownload
515 Summary: lighttpd module for secure and fast downloading
516 Summary(pl): Modu³ lighttpd do bezpiecznego i szybkiego ¶ci±gania danych
517 Group: Networking/Daemons
518 Requires: %{name} = %{version}-%{release}
520 %description mod_secdownload
521 With this module you can easily achieve authenticated file requests
522 and a countermeasure against deep-linking.
524 %description mod_secdownload -l pl
525 Przy u¿yciu tego modu³u mo¿na ³atwo umo¿liwiæ ¶ci±ganie plików z
526 uwierzytelnieniem i zapobiec u¿ywaniu bezpo¶rednich odno¶ników.
529 Summary: lighttpd module for setting conditional request headers
530 Summary(pl): Modu³ lighttpd do ustawiania warunkowych nag³ówków ¿±dañ
531 Group: Networking/Daemons
532 Requires: %{name} = %{version}-%{release}
534 %description mod_setenv
535 mod_setenv is used to add request headers.
537 %description mod_setenv -l pl
538 mod_setenv s³u¿y do dodawania nag³ówków ¿±dañ.
540 %package mod_simple_vhost
541 Summary: lighttpd module for simple virtual-hosting
542 Summary(pl): Modu³ lighttpd do prostych hostów wirtualnych
543 Group: Networking/Daemons
544 Requires: %{name} = %{version}-%{release}
545 Conflicts: %{name}-mod_mysql_vhost
547 %description mod_simple_vhost
548 lighttpd module for simple virtual-hosting.
550 %description mod_simple_vhost -l pl
551 Modu³ lighttpd do prostych hostów wirtualnych.
554 Summary: lighttpd module for server-side includes
555 Summary(pl): Modu³ lighttpd do SSI (server-side includes)
556 Group: Networking/Daemons
557 Requires: %{name} = %{version}-%{release}
560 The module for server-side includes provides a compatability layer for
563 %description mod_ssi -l pl
564 Modu³ server-side includes udostêpnia warstwê kompatybilno¶ci z SSI
565 znanym z NSCA/Apache'a.
567 %package mod_staticfile
568 Summary: lighttpd module for static file serving
569 Summary(pl): Modu³ lighttpd do serwowania statycznych plików
570 Group: Networking/Daemons
571 Requires: %{name} = %{version}-%{release}
573 %description mod_staticfile
574 lighttpd module for static file serving.
576 %description mod_staticfile -l pl
577 Modu³ lighttpd do serwowania statycznych plików.
580 Summary: lighttpd module for displaying server status
581 Summary(pl): Modu³ lighttpd do wy¶wietlania stanu serwera
582 Group: Networking/Daemons
583 Requires: %{name} = %{version}-%{release}
585 %description mod_status
586 mod_status displays the server's status and configuration.
588 %description mod_status -l pl
589 mod_status wy¶wietla stan i konfiguracjê serwera.
591 %package mod_trigger_b4_dl
592 Summary: Trigger before Download
593 Summary(pl): Wyzwalacz przed ¶ci±ganiem
594 Group: Networking/Daemons
595 Requires: %{name} = %{version}-%{release}
597 %description mod_trigger_b4_dl
598 Another anti hot-linking module.
600 %description mod_trigger_b4_dl -l pl
601 Jeszcze jeden modu³ blokuj±cy bezpo¶rednie linkowanie.
604 Summary: lighttpd module for user homedirs
605 Summary(pl): Modu³ lighttpd obs³uguj±cy katalogi domowe u¿ytkowników
606 Group: Networking/Daemons
607 Requires: %{name} = %{version}-%{release}
609 %description mod_userdir
610 The userdir module provides a simple way to link user-based
611 directories into the global namespace of the webserver.
613 %description mod_userdir -l pl
614 Modu³ userdir udostêpnia prosty sposób w³±czenia katalogów
615 u¿ytkowników do globalnej przestrzeni nazw serwera WWW.
617 %package mod_usertrack
618 Summary: lighttpd usertrack module
619 Summary(pl): Modu³ usertrack dla lighttpd
620 Group: Networking/Daemons
621 Requires: %{name} = %{version}-%{release}
623 %description mod_usertrack
624 lighttpd usertrack module.
626 %description mod_usertrack -l pl
627 Modu³ usertrack dla lighttpd.
630 Summary: WebDAV module for lighttpd
631 Summary(pl): Modu³ WebDAV dla libghttpd
632 Group: Networking/Daemons
633 Requires: %{name} = %{version}-%{release}
635 %description mod_webdav
636 The WebDAV module is a very minimalistic implementation of RFC 2518.
637 Minimalistic means that not all operations are implementated yet.
646 and the usual GET, POST, HEAD from HTTP/1.1.
648 So far mounting a webdav resource into Windows XP works and the basic
649 litmus tests are passed.
651 %description mod_webdav -l pl
652 Modu³ WebDAV to bardzo minimalistyczna implementacja RFC 2518.
653 Minimalistyczna oznacza, ¿e jeszcze nie wszystkie operacje s±
654 zaimplementowane. Jak na razie s±:
660 oraz zwyk³e GET, POST, HEAD z HTTP/1.1.
662 Jak na razie montowanie zasobu webdav pod Windows XP dzia³a i
663 podstawowe testy lakmusowe przechodz±.
665 %package -n spawn-fcgi
666 Summary: Spawn fcgi-process directly
667 Summary(pl): Bezpo¶rednie uruchamianie procesów fcgi
670 %description -n spawn-fcgi
671 spawn-fcgi is used to spawn fcgi-process directly without the help of
672 a webserver or the programm itself.
674 %description -n spawn-fcgi -l pl
675 spawn-fcgi s³u¿y do uruchamiania procesów fcgi bezpo¶rednio, bez
676 pomocy serwera WWW ani samego programu.
679 Summary: PHP support via FastCGI, spawned by lighttpd
680 Summary(pl): Obs³uga PHP przez FastCGI, uruchamiane przez lighttpd
681 Group: Networking/Daemons
682 Requires: %{name} = %{version}-%{release}
683 Requires: %{name}-mod_fastcgi = %{version}-%{release}
685 Obsoletes: lighttpd-php-external
687 %description php-spawned
688 PHP support via FastCGI, spawned by lighttpd.
690 %description php-spawned -l pl
691 Obs³uga PHP przez FastCGI, uruchamiane przez lighttpd.
693 %package php-external
694 Summary: PHP support via FastCGI, spawning controlled externally
695 Summary(pl): Obs³uga PHP przez FastCGI, uruchamianie sterowane zewnêtrznie
696 Group: Networking/Daemons
697 Requires: %{name} = %{version}-%{release}
698 Requires: %{name}-mod_fastcgi = %{version}-%{release}
699 Requires: php-fcgi-init
700 Obsoletes: lighttpd-php-spawned
702 %description php-external
703 PHP support via FastCGI, spawning controlled externally.
705 %description php-external -l pl
706 Obs³uga PHP przez FastCGI, uruchamianie sterowane zewnêtrznie.
709 Summary: lighttpd support for SSLv2 and SSLv3
710 Summary(pl): Obs³uga SSLv2 i SSLv3 dla lighttpd
711 Group: Networking/Daemons
712 Requires: %{name} = %{version}-%{release}
715 lighttpd support for SSLv2 and SSLv3.
717 %description ssl -l pl
718 Obs³uga SSLv2 i SSLv3 dla lighttpd.
726 # build mime.types.conf
727 sh %{SOURCE6} /etc/mime.types
736 --enable-maintainer-mode \
737 %{!?with_ipv6:--disable-ipv6} \
738 %{!?with_largefile:--disable-lfs} \
739 %{?with_valgrind:--with-valgrind} \
740 %{?with_xattr:--with-attr} \
741 %{?with_mysql:--with-mysql} \
742 %{?with_ldap:--with-ldap} \
743 %{?with_ssl:--with-openssl} \
744 %{?with_lua:--with-lua} \
745 %{?with_memcache:--with-memcache} \
746 %{?with_webdav_props:--with-webdav-props} \
747 %{?with_gamin:--with-gamin} \
748 %{?with_gdbm:--with-gdbm}
753 rm -rf $RPM_BUILD_ROOT
754 install -d $RPM_BUILD_ROOT{%{_lighttpddir}/{cgi-bin,html},/etc/{logrotate.d,rc.d/init.d,sysconfig,monit}} \
755 $RPM_BUILD_ROOT%{_sysconfdir}/{conf,webapps}.d \
756 $RPM_BUILD_ROOT{/var/log/{%{name},archiv/%{name}},/var/run/%{name}}
759 DESTDIR=$RPM_BUILD_ROOT
761 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
762 install %{SOURCE2} %{SOURCE3} mime.types.conf $RPM_BUILD_ROOT%{_sysconfdir}
763 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
764 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
765 install %{SOURCE12} $RPM_BUILD_ROOT/etc/monit/%{name}.monitrc
767 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
769 # could use automake patch, but automake generation fails...
770 mv $RPM_BUILD_ROOT%{_bindir}/spawn-fcgi $RPM_BUILD_ROOT%{_sbindir}/spawn-fcgi
772 # Install lighttpd images
773 install %{SOURCE7} %{SOURCE8} %{SOURCE9} $RPM_BUILD_ROOT%{_lighttpddir}/html
774 install %{SOURCE10} $RPM_BUILD_ROOT%{_lighttpddir}/html/pld_button.png
775 install %{SOURCE11} $RPM_BUILD_ROOT%{_lighttpddir}/html/index.html
777 # NOTE: the order of the modules is somewhat important as the modules are
778 # handled in the way they are specified. mod_rewrite should always be the first
779 # module, mod_accesslog always the last.
781 install %{SOURCE117} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/10_mod_rewrite.conf
782 install %{SOURCE116} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/11_mod_redirect.conf
784 install %{SOURCE100} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_access.conf
785 install %{SOURCE102} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_alias.conf
786 install %{SOURCE103} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_auth.conf
787 install %{SOURCE104} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_cgi.conf
788 install %{SOURCE105} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_cml.conf
789 install %{SOURCE106} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_compress.conf
790 install %{SOURCE107} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_deflate.conf
791 install %{SOURCE108} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_dirlisting.conf
792 install %{SOURCE109} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evasive.conf
793 install %{SOURCE110} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evhost.conf
794 install %{SOURCE111} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_expire.conf
795 install %{SOURCE112} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_fastcgi.conf
796 install %{SOURCE113} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_flv_streaming.conf
797 install %{SOURCE114} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_indexfile.conf
798 install %{SOURCE134} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_magnet.conf
799 install %{SOURCE115} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_proxy.conf
800 install %{SOURCE118} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_rrdtool.conf
801 install %{SOURCE119} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_scgi.conf
802 install %{SOURCE120} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_secdownload.conf
803 install %{SOURCE121} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_setenv.conf
804 install %{SOURCE122} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_simple_vhost.conf
805 install %{SOURCE123} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_ssi.conf
806 install %{SOURCE124} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_staticfile.conf
807 install %{SOURCE125} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_status.conf
808 install %{SOURCE126} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_trigger_b4_dl.conf
809 install %{SOURCE127} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_userdir.conf
810 install %{SOURCE128} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_usertrack.conf
811 install %{SOURCE129} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_webdav.conf
812 install %{SOURCE133} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_mysql_vhost.conf
814 install %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_accesslog.conf
816 install %{SOURCE130} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/php-spawned.conf
817 install %{SOURCE131} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/php-external.conf
818 install %{SOURCE132} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/ssl.conf
821 # avoid packaging dummy module
822 rm -f $RPM_BUILD_ROOT%{_libdir}/mod_mysql_vhost.so
823 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/*_mod_mysql_vhost.conf
825 %if %{without deflate}
826 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/*_mod_deflate.conf
830 rm -rf $RPM_BUILD_ROOT
833 %groupadd -g 109 lighttpd
835 %useradd -u 116 -d %{_lighttpddir} -c "LigHTTPd User" -g lighttpd lighttpd
836 %addusertogroup lighttpd http
839 /sbin/chkconfig --add %{name}
842 if [ "$1" = "0" ]; then
843 %service %{name} stop
844 /sbin/chkconfig --del %{name}
848 if [ "$1" = "0" ]; then
850 %groupremove lighttpd
855 # minimizing lighttpd restarts logics. we restart webserver:
857 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
858 # 2. first install of module (post: $1 = 1)
859 # 2. uninstall of module (postun: $1 == 0)
861 # the strict internal deps between lighttpd modules and
862 # main package are very important for all this to work.
863 %service %{name} restart "LigHTTPd webserver"
866 # macro called at module post scriptlet
867 %define module_post \
868 if [ "$1" = "1" ]; then \
869 %service -q lighttpd restart \
872 # macro called at module postun scriptlet
873 %define module_postun \
874 if [ "$1" = "0" ]; then \
875 %service -q lighttpd restart \
878 # it's sooo annoying to write them
879 %define module_scripts() \
886 %module_scripts mod_access
887 %module_scripts mod_accesslog
888 %module_scripts mod_alias
889 %module_scripts mod_auth
890 %module_scripts mod_cgi
891 %module_scripts mod_cml
892 %module_scripts mod_compress
893 %module_scripts mod_deflate
894 %module_scripts mod_dirlisting
895 %module_scripts mod_evasive
896 %module_scripts mod_evhost
897 %module_scripts mod_expire
898 %module_scripts mod_fastcgi
899 %module_scripts mod_flv_streaming
900 %module_scripts mod_indexfile
901 %module_scripts mod_magnet
902 %module_scripts mod_mysql_vhost
903 %module_scripts mod_proxy
904 %module_scripts mod_redirect
905 %module_scripts mod_rewrite
906 %module_scripts mod_rrdtool
907 %module_scripts mod_scgi
908 %module_scripts mod_secdownload
909 %module_scripts mod_setenv
910 %module_scripts mod_simple_vhost
911 %module_scripts mod_ssi
912 %module_scripts mod_staticfile
913 %module_scripts mod_status
914 %module_scripts mod_trigger_b4_dl
915 %module_scripts mod_userdir
916 %module_scripts mod_usertrack
917 %module_scripts mod_webdav
919 %module_scripts php-spawned
920 %module_scripts php-external
922 %triggerpostun -- %{name} <= 1.3.6-2
923 %banner %{name} -e <<EOF
924 spawn-fcgi program is now available separately from spawn-fcgi package.
929 %defattr(644,root,root,755)
930 %doc NEWS README ChangeLog doc/lighttpd.conf doc/*.txt doc/rrdtool-graph.sh
931 %dir %attr(750,root,lighttpd) %{_sysconfdir}
932 %dir %attr(750,root,root) %{_sysconfdir}/webapps.d
933 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
934 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.types.conf
935 %attr(640,root,lighttpd) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.user
937 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
938 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc
939 %attr(750,root,root) %dir /var/log/archiv/%{name}
940 %dir %attr(770,root,lighttpd) /var/log/%{name}
941 %dir %attr(770,root,lighttpd) /var/run/%{name}
942 %attr(754,root,root) /etc/rc.d/init.d/%{name}
943 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
944 %attr(755,root,root) %{_sbindir}/*
948 %dir %{_lighttpddir}/cgi-bin
949 %dir %{_lighttpddir}/html
950 %config(noreplace,missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/*
953 %defattr(644,root,root,755)
954 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_access.conf
955 %attr(755,root,root) %{_libdir}/mod_access.so
958 %defattr(644,root,root,755)
959 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_accesslog.conf
960 %attr(755,root,root) %{_libdir}/mod_accesslog.so
963 %defattr(644,root,root,755)
964 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_alias.conf
965 %attr(755,root,root) %{_libdir}/mod_alias.so
968 %defattr(644,root,root,755)
969 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_auth.conf
970 %attr(755,root,root) %{_libdir}/mod_auth.so
973 %defattr(644,root,root,755)
974 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_cgi.conf
975 %attr(755,root,root) %{_libdir}/mod_cgi.so
978 %defattr(644,root,root,755)
979 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_cml.conf
980 %attr(755,root,root) %{_libdir}/mod_cml.so
983 %defattr(644,root,root,755)
984 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_compress.conf
985 %attr(755,root,root) %{_libdir}/mod_compress.so
989 %defattr(644,root,root,755)
990 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_deflate.conf
991 %attr(755,root,root) %{_libdir}/mod_deflate.so
994 %files mod_dirlisting
995 %defattr(644,root,root,755)
996 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_dirlisting.conf
997 %attr(755,root,root) %{_libdir}/mod_dirlisting.so
1000 %defattr(644,root,root,755)
1001 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_evasive.conf
1002 %attr(755,root,root) %{_libdir}/mod_evasive.so
1005 %defattr(644,root,root,755)
1006 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_evhost.conf
1007 %attr(755,root,root) %{_libdir}/mod_evhost.so
1010 %defattr(644,root,root,755)
1011 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_expire.conf
1012 %attr(755,root,root) %{_libdir}/mod_expire.so
1015 %defattr(644,root,root,755)
1016 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_fastcgi.conf
1017 %attr(755,root,root) %{_libdir}/mod_fastcgi.so
1019 %files mod_flv_streaming
1020 %defattr(644,root,root,755)
1021 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_flv_streaming.conf
1022 %attr(755,root,root) %{_libdir}/mod_flv_streaming.so
1024 %files mod_indexfile
1025 %defattr(644,root,root,755)
1026 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_indexfile.conf
1027 %attr(755,root,root) %{_libdir}/mod_indexfile.so
1030 %defattr(644,root,root,755)
1031 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_magnet.conf
1032 %attr(755,root,root) %{_libdir}/mod_magnet.so
1035 %files mod_mysql_vhost
1036 %defattr(644,root,root,755)
1037 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_mysql_vhost.conf
1038 %attr(755,root,root) %{_libdir}/mod_mysql_vhost.so
1042 %defattr(644,root,root,755)
1043 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_proxy.conf
1044 %attr(755,root,root) %{_libdir}/mod_proxy.so
1047 %defattr(644,root,root,755)
1048 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_redirect.conf
1049 %attr(755,root,root) %{_libdir}/mod_redirect.so
1052 %defattr(644,root,root,755)
1053 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_rewrite.conf
1054 %attr(755,root,root) %{_libdir}/mod_rewrite.so
1057 %defattr(644,root,root,755)
1058 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_rrdtool.conf
1059 %attr(755,root,root) %{_libdir}/mod_rrdtool.so
1062 %defattr(644,root,root,755)
1063 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_scgi.conf
1064 %attr(755,root,root) %{_libdir}/mod_scgi.so
1066 %files mod_secdownload
1067 %defattr(644,root,root,755)
1068 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_secdownload.conf
1069 %attr(755,root,root) %{_libdir}/mod_secdownload.so
1072 %defattr(644,root,root,755)
1073 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_setenv.conf
1074 %attr(755,root,root) %{_libdir}/mod_setenv.so
1076 %files mod_simple_vhost
1077 %defattr(644,root,root,755)
1078 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_simple_vhost.conf
1079 %attr(755,root,root) %{_libdir}/mod_simple_vhost.so
1082 %defattr(644,root,root,755)
1083 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_ssi.conf
1084 %attr(755,root,root) %{_libdir}/mod_ssi.so
1086 %files mod_staticfile
1087 %defattr(644,root,root,755)
1088 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_staticfile.conf
1089 %attr(755,root,root) %{_libdir}/mod_staticfile.so
1092 %defattr(644,root,root,755)
1093 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_status.conf
1094 %attr(755,root,root) %{_libdir}/mod_status.so
1096 %files mod_trigger_b4_dl
1097 %defattr(644,root,root,755)
1098 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_trigger_b4_dl.conf
1099 %attr(755,root,root) %{_libdir}/mod_trigger_b4_dl.so
1102 %defattr(644,root,root,755)
1103 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_userdir.conf
1104 %attr(755,root,root) %{_libdir}/mod_userdir.so
1106 %files mod_usertrack
1107 %defattr(644,root,root,755)
1108 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_usertrack.conf
1109 %attr(755,root,root) %{_libdir}/mod_usertrack.so
1112 %defattr(644,root,root,755)
1113 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_webdav.conf
1114 %attr(755,root,root) %{_libdir}/mod_webdav.so
1116 %files -n spawn-fcgi
1117 %defattr(644,root,root,755)
1118 %doc doc/spawn-php.sh
1119 %attr(755,root,root) %{_sbindir}/spawn-fcgi
1122 %defattr(644,root,root,755)
1123 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/php-spawned.conf
1126 %defattr(644,root,root,755)
1127 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/php-external.conf
1130 %defattr(644,root,root,755)
1131 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ssl.conf