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