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