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)
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, mod_authn_dbi
23 %bcond_without ssl # ssl support
24 %bcond_without mysql # mysql support in 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 maxminddb # MaxMind GeoIP2 module
29 %bcond_with krb5 # krb5 support (does not work with heimdal)
30 %bcond_without ldap # ldap support in mod_auth, mod_vhostdb_ldap
31 %bcond_without lua # LUA support (needs LUA >= 5.1)
32 %bcond_with gamin # gamin for reducing number of stat() calls. must be enabled in config: server.stat-cache-engine = "fam"
33 %bcond_with webdav_props # properties in mod_webdav (includes extra sqlite3/libxml deps)
34 %bcond_with webdav_locks # webdav locks with extra efsprogs deps
35 %bcond_with valgrind # compile code with valgrind support.
36 %bcond_with h264_streaming # build h264_streaming module
38 %if %{with webdav_locks}
39 %define webdav_progs 1
42 Summary: Fast and light HTTP server
43 Summary(pl.UTF-8): Szybki i lekki serwer HTTP
48 Group: Networking/Daemons/HTTP
49 Source0: https://download.lighttpd.net/lighttpd/releases-1.4.x/%{name}-%{version}.tar.xz
50 # Source0-md5: 78b43d1dc36e1cf34d4003bc5e97a964
54 Source4: %{name}.logrotate
55 Source5: %{name}.sysconfig
56 Source6: %{name}-mime.types.sh
57 Source7: https://glen.alkohol.ee/pld/lighty/favicon.ico
58 # Source7-md5: 00fcac5b861a54f5eb147a589504d480
59 Source8: light_button.png
60 # Source8-md5: 3e1008ee1d3d6d390cf81fe3072b4f50
61 Source9: light_logo.png
62 # Source9-md5: cbb7f0676e51ee2e26cf004df293fc62
63 Source10: pld_button.png
64 # Source10-md5: 185afa921e81bd726b9f0f9f0909dc6e
65 Source11: %{name}-pld.html
66 Source12: %{name}.monitrc
69 Source16: %{name}.tmpfiles
70 Source100: mod_access.conf
71 Source101: mod_accesslog.conf
72 Source102: mod_alias.conf
73 Source103: mod_auth.conf
74 Source104: mod_cgi.conf
76 Source107: mod_deflate.conf
77 Source108: mod_dirlisting.conf
78 Source109: mod_evasive.conf
79 Source110: mod_evhost.conf
80 Source111: mod_expire.conf
81 Source112: mod_fastcgi.conf
83 Source114: mod_indexfile.conf
84 Source115: mod_proxy.conf
85 Source116: mod_redirect.conf
86 Source117: mod_rewrite.conf
87 Source118: mod_rrdtool.conf
88 Source119: mod_scgi.conf
89 Source120: mod_secdownload.conf
90 Source121: mod_setenv.conf
91 Source122: mod_simple_vhost.conf
92 Source123: mod_ssi.conf
93 Source124: mod_staticfile.conf
94 Source125: mod_status.conf
96 Source127: mod_userdir.conf
97 Source128: mod_usertrack.conf
98 Source129: mod_webdav.conf
99 Source130: php-spawned.conf
100 Source131: php-external.conf
103 Source134: mod_magnet.conf
104 Source135: mod_extforward.conf
105 Source136: mod_h264_streaming.conf
106 Source137: mod_cgi_php.conf
107 Source139: mod_uploadprogress.conf
109 Source141: mod_authn_ldap.conf
110 Source142: mod_openssl.conf
111 Source143: mod_vhostdb.conf
112 Source144: mod_wstunnel.conf
114 Source146: mod_sockproxy.conf
115 Source147: mod_maxminddb.conf
116 # use branch.sh script to create branch.diff
117 #Patch100: %{name}-branch.diff
118 ## Patch100-md5: 7bd09235304c8bcb16f34d49d480c0fb
119 Patch1: %{name}-mod_evasive-status_code.patch
120 Patch2: %{name}-mod_h264_streaming.patch
121 Patch3: %{name}-branding.patch
122 Patch4: systemd.patch
123 URL: https://www.lighttpd.net/
124 %{?with_xattr:BuildRequires: attr-devel}
125 BuildRequires: autoconf >= 2.57
126 %{?with_maxminddb:BuildRequires: libmaxminddb-devel}
127 %if "%{pld_release}" != "ac"
128 BuildRequires: automake >= 1:1.11.2
130 BuildRequires: automake
132 %{?with_bzip2:BuildRequires: bzip2-devel}
133 BuildRequires: fcgi-devel
134 %{?with_gamin:BuildRequires: gamin-devel}
135 %{?with_storage_gdbm:BuildRequires: gdbm-devel}
136 %{?with_krb5:BuildRequires: krb5-devel}
137 %{?with_brotli:BuildRequires: libbrotli-devel}
138 %{?with_dbi:BuildRequires: libdbi-devel}
139 %{?with_storage_memcached:BuildRequires: libmemcached-devel}
140 BuildRequires: libtool
141 BuildRequires: libuuid-devel
142 %{?with_webdav_props:BuildRequires: libxml2-devel}
143 %{?with_lua:BuildRequires: lua51-devel}
144 BuildRequires: mailcap >= 2.1.14-4.4
145 %{?with_mysql:BuildRequires: mysql-devel}
146 %{?with_ldap:BuildRequires: openldap-devel}
147 %{?with_ssl:BuildRequires: openssl-devel}
148 BuildRequires: pcre2-8-devel
149 BuildRequires: pkgconfig
150 %{?with_pgsql:BuildRequires: postgresql-devel}
151 BuildRequires: rpm >= 4.4.9-56
152 BuildRequires: rpmbuild(macros) >= 1.647
153 %{?with_webdav_props:BuildRequires: sqlite3-devel}
154 BuildRequires: tar >= 1:1.22
155 %{?with_valgrind:BuildRequires: valgrind}
158 BuildRequires: zlib-devel
159 Requires(post,preun): /sbin/chkconfig
160 Requires(postun): /usr/sbin/groupdel
161 Requires(postun): /usr/sbin/userdel
162 Requires(pre): /bin/id
163 Requires(pre): /usr/bin/getgid
164 Requires(pre): /usr/lib/rpm/user_group.sh
165 Requires(pre): /usr/sbin/groupadd
166 Requires(pre): /usr/sbin/useradd
167 Requires(pre): /usr/sbin/usermod
168 Requires: %{name}-mod_dirlisting = %{version}-%{release}
169 Requires: %{name}-mod_indexfile = %{version}-%{release}
170 Requires: %{name}-mod_staticfile = %{version}-%{release}
171 Requires: rc-scripts >= 0.4.3.0
172 Requires: rpm-whiteout >= 1.5
173 Requires: systemd-units >= 38
174 Suggests: %{name}-mod_accesslog
175 Provides: group(http)
176 Provides: group(lighttpd)
177 Provides: user(lighttpd)
179 Provides: webserver(headers)
180 Provides: webserver(mime)
181 Conflicts: logrotate < 3.7-4
182 # for the posttrans scriptlet, conflicts because in vserver environment rpm package is not installed.
183 Conflicts: rpm < 4.4.2-0.2
184 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
186 %define pkglibdir %{_libdir}/%{name}
187 %define _lighttpddir /home/services/%{name}
188 %define _sysconfdir /etc/%{name}
191 lighttpd is a secure, fast, compliant and very flexible web-server
192 which has been optimized for high-performance environments. It has a
193 very low memory footprint compared to other webservers and takes care
194 of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth,
195 Output-Compression, URL-Rewriting and many more) make lighttpd the
196 perfect webserver-software for every server that is suffering load
199 %description -l pl.UTF-8
200 lighttpd jest bezpiecznym, szybkim, przyjaznym i bardzo elastycznym
201 serwerem WWW, który został zoptymalizowany pod kątem
202 wysokowydajnościowych środowisk. Zajmuje bardzo małą ilość pamięci w
203 porównaniu do innych serwerów WWW oraz dba o zajętość procesora.
204 Szeroki zestaw opcji (FastCGI, CGI, uwierzytelnianie, kompresja
205 wyjścia, przepisywanie URL-i i wiele innych) czynią z lighttpd
206 doskonałe oprogramowanie web-serwerowe na każdy serwer cierpiący z
207 powodu problemów z obciążeniem.
210 Summary: lighttpd module for making access restrictions
211 Summary(pl.UTF-8): Moduł lighttpd ograniczający dostęp
212 Group: Networking/Daemons/HTTP
213 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModAccess
214 Requires: %{name} = %{version}-%{release}
215 Provides: webserver(access)
217 %description mod_access
218 The access module is used to deny access to files with given trailing
221 %description mod_access -l pl.UTF-8
222 Moduł access służy do ograniczania dostępu do plików o podanych
225 %package mod_accesslog
226 Summary: lighttpd module to record access logs
227 Summary(pl.UTF-8): Moduł lighttpd do zapisu logów dostępu
228 Group: Networking/Daemons/HTTP
229 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModAccessLog
230 Requires: %{name} = %{version}-%{release}
232 %description mod_accesslog
233 CLF like by default, flexible like Apache.
235 %description mod_accesslog -l pl.UTF-8
236 Domyślnie podobny do CLF, elastyczny jak Apache.
239 Summary: lighttpd module for making URL aliasing
240 Summary(pl.UTF-8): Moduł lighttpd odpowiadający za aliasy URL-i
241 Group: Networking/Daemons/HTTP
242 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModAlias
243 Requires: %{name} = %{version}-%{release}
244 Provides: webserver(alias)
246 %description mod_alias
247 The alias module is used to specify a special document-root for a
250 %description mod_alias -l pl.UTF-8
251 Modul alias służy do określania specjalnego drzewa (document-roota)
252 dla podanego podzbioru URL-i.
255 Summary: Apache JServ Protocol version 1.3 (AJP13) gateway
256 Group: Networking/Daemons/HTTP
257 URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModAJP13
258 Requires: %{name} = %{version}-%{release}
260 %description mod_ajp13
261 lighttpd mod_ajp13 is a gateway implementing Apache JServ Protocol
265 Summary: lighttpd module for authentication support
266 Summary(pl.UTF-8): Moduł lighttpd do obsługi uwierzytelniania
267 Group: Networking/Daemons/HTTP
268 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModAuth
269 Requires: %{name} = %{version}-%{release}
270 Requires: %{name}-mod_authn_file = %{version}-%{release}
272 Suggests: %{name}-mod_authn_ldap = %{version}-%{release}
274 Provides: webserver(auth)
276 %description mod_auth
277 lighttpd supportes both authentication method described by RFC 2617:
280 %description mod_auth -l pl.UTF-8
281 lighttpd obsługuje obie metody uwierzytelniania opisane w RFC 2617:
284 %package mod_authn_dbi
285 Summary: lighttpd authn_dbi module
286 Group: Networking/Daemons/HTTP
287 URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModAuth
288 Requires: %{name} = %{version}-%{release}
289 Requires: %{name}-auth = %{version}-%{release}
291 %description mod_authn_dbi
292 lighttpd authn_dbi module.
294 %package mod_authn_file
295 Summary: lighttpd authn_file module
296 Group: Networking/Daemons/HTTP
297 Requires: %{name} = %{version}-%{release}
298 Requires: %{name}-auth = %{version}-%{release}
300 %description mod_authn_file
301 lighttpd authn_file module.
303 %package mod_authn_gssapi
304 Summary: lighttpd authn_gssapi module
305 Group: Networking/Daemons/HTTP
306 Requires: %{name} = %{version}-%{release}
307 Requires: %{name}-auth = %{version}-%{release}
309 %description mod_authn_gssapi
310 lighttpd authn_gssapi module.
312 %package mod_authn_ldap
313 Summary: lighttpd authn_ldap module
314 Group: Networking/Daemons/HTTP
315 Requires: %{name} = %{version}-%{release}
316 Requires: %{name}-auth = %{version}-%{release}
318 %description mod_authn_ldap
319 lighttpd authn_ldap module.
322 Summary: lighttpd module for CGI handling
323 Summary(pl.UTF-8): Moduł lighttpd do obsługi CGI
324 Group: Networking/Daemons/HTTP
325 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModCGI
326 Requires: %{name} = %{version}-%{release}
327 Requires: %{name}-mod_alias = %{version}-%{release}
328 Provides: webserver(cgi)
331 The cgi module provides a CGI-conforming interface.
333 CGI programs allow you to enhance the functionality of the server in a
334 very straight and simple way.
336 %description mod_cgi -l pl.UTF-8
337 Moduł cgi udostępnia interfejs zgodny z CGI.
339 Programy CGI pozwalają rozszerzać funkcjonalność serwera w bardzo
340 prosty i naturalny sposób.
343 Summary: lighttpd module for CGI handling PHP scripts
344 Summary(pl.UTF-8): Moduł lighttpd do obsługi skryptów PHP przez CGI
345 Group: Networking/Daemons/HTTP
346 Requires: %{name}-mod_cgi = %{version}-%{release}
348 Provides: webserver(php)
350 %description mod_cgi_php
351 The cgi module provides a CGI-conforming interface for PHP scripts.
353 CGI programs allow you to enhance the functionality of the server in a
354 very straight and simple way.
356 %description mod_cgi_php -l pl.UTF-8
357 Moduł cgi udostępnia interfejs zgodny z CGI do wywoływania skryptów
360 Programy CGI pozwalają rozszerzać funkcjonalność serwera w bardzo
361 prosty i naturalny sposób.
363 %package mod_compress
364 Summary: lighttpd module for output compression
365 Summary(pl.UTF-8): Moduł lighttpd do kompresji wyjścia
366 Group: Networking/Daemons/HTTP
367 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModCompress
368 Requires: %{name} = %{version}-%{release}
370 %description mod_compress
371 Output compression reduces the network load and can improve the
372 overall throughput of the webserver.
374 Only static content is supported up to now.
376 The server negotiates automatically which compression method is used.
377 Supported are gzip, deflate, bzip.
379 mod_compress is DEPRECATED; use mod_deflate. mod_compress has been
380 subsumed by mod_deflate.
382 Note: mod_compress config options may be removed in a future release.
384 %description mod_compress -l pl.UTF-8
385 Kompresja wyjścia zmniejsza obciążenie sieci i może poprawić całkowitą
386 przepustowość serwera WWW.
388 Jak na razie obsługiwana jest tylko statyczna treść.
390 Serwer automatycznie negocjuje, która metoda kompresji jest używana.
391 Obsługiwane są gzip, deflate i bzip.
394 Summary: lighttpd module for output compression using deflate method
395 Summary(pl.UTF-8): Moduł lighttpd do kompresji wyjścia metodą deflate
396 Group: Networking/Daemons/HTTP
397 URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModDeflate
398 Requires: %{name} = %{version}-%{release}
399 Obsoletes: lighttpd-mod_compress < 1.4.56
401 %define _deflate_encodings deflate gzip %{?with_bzip2:bzip2} %{?with_brotli:brotli}
402 %define deflate_encodings %(echo %_deflate_encodings | sed -e 's/ /, /g')
404 %description mod_deflate
405 mod_deflate enables output compression of responses
408 Output compression reduces the network load and can improve the
409 overall throughput of the webserver. All major http-clients support
410 compression by announcing it in the Accept-Encoding header. This is
411 used to negotiate the most suitable compression method.
413 This module supports %{deflate_encodings} encodings.
415 deflate (RFC1950, RFC1951) and gzip (RFC1952) depend on zlib while
416 bzip2 depends on libbzip2. bzip2 is only supported by lynx and some
417 other console text-browsers. brotli (RFC7932) is supported in most
420 Since lighttpd 1.4.56, mod_deflate subsumes and replaces mod_compress.
421 mod_deflate can compress static and dynamic responses, while
422 mod_compress could compress only static files.
424 %description mod_deflate -l pl.UTF-8
425 mod_deflate potrafi kompresować statyczne i dynamiczne wyjście z
426 lighttpd. Nie obsługuje cache'owania wyniku kompresji, jak robi to
429 %package mod_dirlisting
430 Summary: lighttpd module for directory listings
431 Summary(pl.UTF-8): Moduł lighttpd do tworzenia listingów katalogów
432 Group: Networking/Daemons/HTTP
433 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModDirlisting
434 Requires: %{name} = %{version}-%{release}
436 %description mod_dirlisting
437 mod_dirlisting generates HTML based directory listings with full CSS
440 %description mod_dirlisting -l pl.UTF-8
441 mod_dirlisting tworzy listingi katalogów w formacie HTML z pełną
445 Summary: lighttpd evasive module
446 Summary(pl.UTF-8): Moduł evasive dla lighttpd
447 Group: Networking/Daemons/HTTP
448 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModEvasive
449 Requires: %{name} = %{version}-%{release}
451 %description mod_evasive
452 lighttpd evasive module.
454 %description mod_evasive -l pl.UTF-8
455 Moduł evasive dla lighttpd.
458 Summary: lighttpd module for enhanced virtual-hosting
459 Summary(pl.UTF-8): Moduł lighttpd rozszerzający obsługę hostów wirtualnych
460 Group: Networking/Daemons/HTTP
461 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModEVhost
462 Requires: %{name} = %{version}-%{release}
464 %description mod_evhost
465 mod_evhost builds the document-root based on a pattern which contains
466 wildcards. Those wildcards can represent parts of the submitted
469 %description mod_evhost -l pl.UTF-8
470 mod_evhost tworzy document-root w oparciu o wzorzec zawierający znaki
471 wieloznaczne (wildcards). Znaki te reprezentują części przekazanej
475 Summary: lighttpd module for controlling the expiration of content in caches
476 Summary(pl.UTF-8): Moduł lighttpd sterujący wygasaniem treści w cache'ach
477 Group: Networking/Daemons/HTTP
478 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModExpire
479 Requires: %{name} = %{version}-%{release}
480 Provides: webserver(expires)
482 %description mod_expire
483 mod_expire controls the setting of the the Expire response header.
485 %description mod_expire -l pl.UTF-8
486 mod_expire steruje ustawianiem nagłówka odpowiedzi Expire.
488 %package mod_extforward
489 Summary: lighttpd module to extract the client's "real" IP from X-Forwarded-For header
490 Summary(pl.UTF-8): Moduł lighttpd wyciągający "prawdziwy" IP klienta z nagłówka X-Forwarded-For
491 Group: Networking/Daemons/HTTP
492 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/DocsModExtForward
493 Requires: %{name} = %{version}-%{release}
495 %description mod_extforward
496 This module will extract the client's "real" IP from X-Forwarded-For
497 header which is added by Squid or other proxies. It might be useful
498 for servers behind reverse proxy servers.
500 %description mod_extforward -l pl.UTF-8
501 Ten moduł wyciąga "prawdziwy" IP klienta z nagłówka X-Forwarded-For
502 dodawanego przez Squida czy inne proxy. Może być przydatny dla
503 serwerów stojących za odwrotnymi serwerami proxy.
506 Summary: lighttpd module for FastCGI interface
507 Summary(pl.UTF-8): Moduł lighttpd do interfejsu FastCGI
508 Group: Networking/Daemons/HTTP
509 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModFastCGI
510 Requires: %{name} = %{version}-%{release}
512 %description mod_fastcgi
513 The FastCGI interface is the fastest and most secure way to interface
514 external process-handlers like Perl, PHP and your self-written
517 %description mod_fastcgi -l pl.UTF-8
518 Interfejs FastCGI to najszybszy i najbezpieczniejszy sposób
519 komunikacji z zewnętrznymi programami obsługującymi procesy, takimi
520 jak Perl, PHP czy własne aplikacje.
522 %package mod_h264_streaming
523 Summary: lighttpd module for h264 streaming
524 Summary(pl.UTF-8): Moduł lighttpd do emisji strumieni h264
525 License: CC 3.0 BY-NC-SA
526 Group: Networking/Daemons/HTTP
527 URL: http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Lighttpd-Version2
528 Requires: %{name} = %{version}-%{release}
530 %description mod_h264_streaming
531 A lighttpd plugin for pseudo-streaming QuickTime/MPEG-4 files.
533 %description mod_h264_streaming -l pl.UTF-8
534 Moduł lighttpd do pseudostreamingu plików QuickTime/MPEG-4.
536 %package mod_indexfile
537 Summary: lighttpd indexfile module
538 Summary(pl.UTF-8): Moduł indexfile dla lighttpd
539 Group: Networking/Daemons/HTTP
540 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Index-file-names.Details
541 Requires: %{name} = %{version}-%{release}
542 Provides: webserver(indexfile)
544 %description mod_indexfile
547 %description mod_indexfile -l pl.UTF-8
551 Summary: lighttpd powermagnet module
552 Summary(pl.UTF-8): Moduł powermagnet dla lighttpd
553 Group: Networking/Daemons/HTTP
554 URL: http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModMagnet
555 Requires: %{name} = %{version}-%{release}
557 %description mod_magnet
558 mod_magnet is a module to control the request handling in lighty.
560 %description mod_magnet -l pl.UTF-8
561 mod_magnet to moduł sterujący obsługą żądań w lighty.
563 %package mod_maxminddb
564 Summary: lighttpd module
565 Group: Networking/Daemons/HTTP
566 #URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModGeoip
567 Requires: %{name} = %{version}-%{release}
569 %description mod_maxminddb
572 Summary: TLS/SSL for lighttpd
573 Group: Networking/Daemons/HTTP
574 URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_SSL
575 Requires: %{name} = %{version}-%{release}
577 %description mod_openssl
578 TLS/SSL for lighttpd.
581 Summary: lighttpd module for proxying requests
582 Summary(pl.UTF-8): Moduł lighttpd do przekazywania żądań
583 Group: Networking/Daemons/HTTP
584 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModProxy
585 Requires: %{name} = %{version}-%{release}
587 %description mod_proxy
588 The proxy module a simplest way to connect lighttpd to Java servers
589 which have a HTTP-interface.
591 %description mod_proxy -l pl.UTF-8
592 Moduł proxy to najprostszy sposób łączenia lighttpd z serwerami Javy
593 mającymi interfejs HTTP.
595 %package mod_proxy_core
596 Summary: lighttpd module for proxying requests
597 Summary(pl.UTF-8): Moduł lighttpd do przekazywania żądań
598 Group: Networking/Daemons/HTTP
599 URL: http://blog.lighttpd.net/articles/2006/07/18/mod_proxy_core-commited-to-svn
600 Requires: %{name} = %{version}-%{release}
602 %description mod_proxy_core
603 The proxy module a simplest way to connect lighttpd to java servers
604 which have a HTTP-interface.
606 This is the new proxy code.
608 %description mod_proxy_core -l pl.UTF-8
609 Moduł proxy to najprostszy sposób łączenia lighttpd z serwerami Javy
610 mającymi interfejs HTTP.
612 Ten pakiet zawiera nowy moduł proxy.
614 %package mod_redirect
615 Summary: lighttpd module for URL redirects
616 Summary(pl.UTF-8): Moduł lighttpd do przekierowań URL-i
617 Group: Networking/Daemons/HTTP
618 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModRedirect
619 Requires: %{name} = %{version}-%{release}
621 %description mod_redirect
622 With mod_redirect module you can redirect a set of URLs externally.
624 %description mod_redirect -l pl.UTF-8
625 Przy użyciu modułu mod_redirect można przekierować zbiór URL-i na
629 Summary: lighttpd module for internal redirects, URL rewrite
630 Summary(pl.UTF-8): Moduł lighttpd do wewnętrznych przekierowań i przepisywania URL-i
631 Group: Networking/Daemons/HTTP
632 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModRewrite
633 Requires: %{name} = %{version}-%{release}
634 Provides: webserver(rewrite)
636 %description mod_rewrite
637 This module allows you rewrite a set of URLs interally in the
638 webserver BEFORE they are handled.
640 %description mod_rewrite -l pl.UTF-8
641 Ten moduł pozwala na przepisywanie zbioru URL-i wewnętrznie w serwerze
642 WWW _przed_ ich obsługą.
645 Summary: lighttpd module for monitoring traffic and server load
646 Summary(pl.UTF-8): Moduł lighttpd do monitorowania ruchu i obciążenia serwera
647 Group: Networking/Daemons/HTTP
648 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModRRDTool
649 Requires: %{name} = %{version}-%{release}
652 %description mod_rrdtool
653 RRD is a system to store and display time-series data (i.e. network
654 bandwidth, machine-room temperature, server load average).
656 With this module you can monitor the traffic and load on the
659 %description mod_rrdtool -l pl.UTF-8
660 RRD to system przechowywania i wyświetlania danych zależnych od czasu
661 (np. obciążenia sieci, temperatury w serwerowni, średniego obciążenia
664 Przy użyciu tego modułu można monitorować ruch i obciążenie serwera
668 Summary: lighttpd module for SCGI interface
669 Summary(pl.UTF-8): Moduł lighttpd do interfejsu SCGI
670 Group: Networking/Daemons/HTTP
671 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSCGI
672 Requires: %{name} = %{version}-%{release}
674 %description mod_scgi
675 SCGI is a fast and simplified CGI interface. It is mostly used by
678 %description mod_scgi -l pl.UTF-8
679 SCGI to szybki i uproszczony interfejs CGI. Jest używany głównie przez
682 %package mod_secdownload
683 Summary: lighttpd module for secure and fast downloading
684 Summary(pl.UTF-8): Moduł lighttpd do bezpiecznego i szybkiego ściągania danych
685 Group: Networking/Daemons/HTTP
686 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSecDownload
687 Requires: %{name} = %{version}-%{release}
689 %description mod_secdownload
690 With this module you can easily achieve authenticated file requests
691 and a countermeasure against deep-linking.
693 %description mod_secdownload -l pl.UTF-8
694 Przy użyciu tego modułu można łatwo umożliwić ściąganie plików z
695 uwierzytelnieniem i zapobiec używaniu bezpośrednich odnośników.
698 Summary: lighttpd module for setting conditional request headers
699 Summary(pl.UTF-8): Moduł lighttpd do ustawiania warunkowych nagłówków żądań
700 Group: Networking/Daemons/HTTP
701 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSetEnv
702 Requires: %{name} = %{version}-%{release}
703 Provides: webserver(setenv)
705 %description mod_setenv
706 mod_setenv is used to add request headers.
708 %description mod_setenv -l pl.UTF-8
709 mod_setenv służy do dodawania nagłówków żądań.
711 %package mod_simple_vhost
712 Summary: lighttpd module for simple virtual-hosting
713 Summary(pl.UTF-8): Moduł lighttpd do prostych hostów wirtualnych
714 Group: Networking/Daemons/HTTP
715 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSimpleVhost
716 Requires: %{name} = %{version}-%{release}
717 Conflicts: %{name}-mod_mysql_vhost
719 %description mod_simple_vhost
720 lighttpd module for simple virtual-hosting.
722 %description mod_simple_vhost -l pl.UTF-8
723 Moduł lighttpd do prostych hostów wirtualnych.
725 %package mod_sockproxy
726 Summary: Transparent socket proxy
727 Group: Networking/Daemons/HTTP
728 URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModSockProxy
729 Requires: %{name} = %{version}-%{release}
731 %description mod_sockproxy
732 mod_sockproxy is a transparent socket proxy. For a given $SERVER["socket"]
733 config, connections will be forwarded to backend(s) without any
734 interpretation of the protocol.
737 Summary: lighttpd module for server-side includes
738 Summary(pl.UTF-8): Moduł lighttpd do SSI (server-side includes)
739 Group: Networking/Daemons/HTTP
740 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSSI
741 Requires: %{name} = %{version}-%{release}
744 The module for server-side includes provides a compatability layer for
747 %description mod_ssi -l pl.UTF-8
748 Moduł server-side includes udostępnia warstwę kompatybilności z SSI
749 znanym z NSCA/Apache'a.
751 %package mod_staticfile
752 Summary: lighttpd module for static file serving
753 Summary(pl.UTF-8): Moduł lighttpd do serwowania statycznych plików
754 Group: Networking/Daemons/HTTP
755 Requires: %{name} = %{version}-%{release}
757 %description mod_staticfile
758 lighttpd module for static file serving.
760 %description mod_staticfile -l pl.UTF-8
761 Moduł lighttpd do serwowania statycznych plików.
764 Summary: lighttpd module for displaying server status
765 Summary(pl.UTF-8): Moduł lighttpd do wyświetlania stanu serwera
766 Group: Networking/Daemons/HTTP
767 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModStatus
768 Requires: %{name} = %{version}-%{release}
770 %description mod_status
771 mod_status displays the server's status and configuration.
773 %description mod_status -l pl.UTF-8
774 mod_status wyświetla stan i konfigurację serwera.
776 %package mod_uploadprogress
777 Summary: lighttpd module for upload progress
778 Group: Networking/Daemons/HTTP
779 URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModUploadProgress
780 Requires: %{name} = %{version}-%{release}
782 %description mod_uploadprogress
783 This module can be used to track the progress of a current upload.
786 Summary: lighttpd module for user homedirs
787 Summary(pl.UTF-8): Moduł lighttpd obsługujący katalogi domowe użytkowników
788 Group: Networking/Daemons/HTTP
789 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModUserDir
790 Requires: %{name} = %{version}-%{release}
792 %description mod_userdir
793 The userdir module provides a simple way to link user-based
794 directories into the global namespace of the webserver.
796 %description mod_userdir -l pl.UTF-8
797 Moduł userdir udostępnia prosty sposób włączenia katalogów
798 użytkowników do globalnej przestrzeni nazw serwera WWW.
800 %package mod_usertrack
801 Summary: lighttpd usertrack module
802 Summary(pl.UTF-8): Moduł usertrack dla lighttpd
803 Group: Networking/Daemons/HTTP
804 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModUserTrack
805 Requires: %{name} = %{version}-%{release}
807 %description mod_usertrack
808 lighttpd usertrack module.
810 %description mod_usertrack -l pl.UTF-8
811 Moduł usertrack dla lighttpd.
814 Summary: Virtual host database to provide vhost docroot
815 Group: Networking/Daemons/HTTP
816 URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModVhostDB
817 Requires: %{name} = %{version}-%{release}
819 %description mod_vhostdb
820 Virtual host database to provide vhost docroot.
823 Summary: WebDAV module for lighttpd
824 Summary(pl.UTF-8): Moduł WebDAV dla libghttpd
825 Group: Networking/Daemons/HTTP
826 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModWebDAV
827 Requires: %{name} = %{version}-%{release}
829 %description mod_webdav
830 The WebDAV module is a very minimalistic implementation of RFC 2518.
831 Minimalistic means that not all operations are implementated yet.
839 - LOCK (experimental)
841 and the usual GET, POST, HEAD from HTTP/1.1.
843 So far mounting a webdav resource into Windows XP works and the basic
844 litmus tests are passed.
846 %description mod_webdav -l pl.UTF-8
847 Moduł WebDAV to bardzo minimalistyczna implementacja RFC 2518.
848 Minimalistyczna oznacza, że jeszcze nie wszystkie operacje są
849 zaimplementowane. Jak na razie są:
855 - LOCK (experimental)
857 oraz zwykłe GET, POST, HEAD z HTTP/1.1.
859 Jak na razie montowanie zasobu webdav pod Windows XP działa i
860 podstawowe testy lakmusowe przechodzą.
862 %package mod_wstunnel
863 Summary: WebSocket tunnel endpoint
864 Group: Networking/Daemons/HTTP
865 URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModWSTunnel
866 Requires: %{name} = %{version}-%{release}
868 %description mod_wstunnel
869 WebSocket tunnel endpoint. This module terminates the websocket tunnel
870 from a client. This module then passes data (without websocket frames)
871 to a backend and encodes responses from backend in websocket frames
872 before sending responses to client.
875 Summary: PHP support via FastCGI, spawned by lighttpd
876 Summary(pl.UTF-8): Obsługa PHP przez FastCGI, uruchamiane przez lighttpd
877 Group: Networking/Daemons/HTTP
878 Requires: %{name} = %{version}-%{release}
879 Requires: %{name}-mod_fastcgi = %{version}-%{release}
881 Provides: webserver(php)
882 Obsoletes: lighttpd-php-external
884 %description php-spawned
885 PHP support via FastCGI, spawned by lighttpd.
887 %description php-spawned -l pl.UTF-8
888 Obsługa PHP przez FastCGI, uruchamiane przez lighttpd.
890 %package php-external
891 Summary: PHP support via FastCGI, spawning controlled externally
892 Summary(pl.UTF-8): Obsługa PHP przez FastCGI, uruchamianie sterowane zewnętrznie
893 Group: Networking/Daemons/HTTP
894 Requires: %{name} = %{version}-%{release}
895 Requires: %{name}-mod_fastcgi = %{version}-%{release}
897 Suggests: php-fcgi-init
898 Obsoletes: lighttpd-php-spawned
900 %description php-external
901 PHP support via FastCGI, spawning controlled externally.
903 %description php-external -l pl.UTF-8
904 Obsługa PHP przez FastCGI, uruchamianie sterowane zewnętrznie.
907 Summary: lighttpd support for SSLv2 and SSLv3
908 Summary(pl.UTF-8): Obsługa SSLv2 i SSLv3 dla lighttpd
909 Group: Networking/Daemons/HTTP
910 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:SSL
911 Requires: %{name} = %{version}-%{release}
912 Requires: %{name}-mod_openssl = %{version}-%{release}
913 Suggests: ca-certificates
916 lighttpd support for SSLv2 and SSLv3.
918 %description ssl -l pl.UTF-8
919 Obsługa SSLv2 i SSLv3 dla lighttpd.
921 %package -n monit-rc-lighttpd
922 Summary: lighttpd support for monit
923 Summary(pl.UTF-8): Wsparcie lighttpd dla monit
924 Group: Applications/System
925 Requires: %{name} = %{version}-%{release}
928 %description -n monit-rc-lighttpd
929 monitrc file for monitoring lighttpd web server.
931 %description -n monit-rc-lighttpd -l pl.UTF-8
932 Plik monitrc do monitorowania serwera www lighttpd.
937 #%patch1 -p1 UPDATE (and submit upstream!) if you need this
938 %{?with_h264_streaming:%patch2 -p1}
942 rm -f src/mod_ssi_exprparser.h # bad patching: should be removed by is emptied instead
944 # build mime.types.conf
945 sh %{SOURCE6} /etc/mime.types
946 cp -p %{SOURCE14} PLD-TODO
948 %if "%{pld_release}" == "ac"
949 %{__sed} -i -e 's/ serial_tests//' configure.ac
950 %{__sed} -i -e 's/dist-xz/dist-bzip2/' configure.ac
954 ver=$(awk -F ',' '/AC_INIT/{a=$2;gsub(/[\[\],]/, "", a); print a}' configure.ac)
955 if [ "$ver" != "%{version}" ]; then
956 : configure.ac specifies wrong version
960 %{__aclocal} -I m4 -I scripts/m4
967 %{!?with_ipv6:--disable-ipv6} \
968 %{!?with_largefile:--disable-lfs} \
969 %{?with_brotli:--with-brotli} \
970 %{?with_bzip2:--with-bzip2} \
971 %{?with_dbi:--with-dbi} \
972 %{?with_gamin:--with-gamin} \
973 %{?with_krb5:--with-krb5} \
974 %{?with_ldap:--with-ldap} \
975 %{?with_lua:--with-lua=lua51} \
976 %{?with_maxminddb:--with-maxminddb} \
977 %{?with_mysql:--with-mysql} \
978 %{?with_pgsql:--with-pgsql} \
979 %{?with_ssl:--with-openssl} \
980 %{?with_valgrind:--with-valgrind} \
981 %{?with_webdav_locks:--with-webdav-locks} \
982 %{?with_webdav_props:--with-webdav-props} \
983 %{?with_xattr:--with-attr} \
984 --libdir=%{pkglibdir}
986 # -j1 as src/mod_ssi_exprparser.h regeneration deps are broken
990 export LIGHTTPD_TEST_PORT=$((2048 + RANDOM % 10))
995 rm -rf $RPM_BUILD_ROOT
996 install -d $RPM_BUILD_ROOT{%{_lighttpddir}/{cgi-bin,html},/etc/{logrotate.d,rc.d/init.d,sysconfig,monit}} \
997 $RPM_BUILD_ROOT%{_sysconfdir}/{{conf,vhosts,webapps}.d,ssl} \
998 $RPM_BUILD_ROOT{/var/log/{%{name},archive/%{name}},/var/run/%{name}} \
999 $RPM_BUILD_ROOT%{_datadir}/lighttpd/errordocs \
1000 $RPM_BUILD_ROOT/var/lib/lighttpd \
1001 $RPM_BUILD_ROOT{%{systemdtmpfilesdir},%{systemdunitdir}}
1004 DESTDIR=$RPM_BUILD_ROOT
1006 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
1007 cp -p %{SOURCE2} %{SOURCE3} mime.types.conf $RPM_BUILD_ROOT%{_sysconfdir}
1008 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
1009 cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
1010 cp -p %{SOURCE12} $RPM_BUILD_ROOT/etc/monit/%{name}.monitrc
1011 cp -p %{SOURCE16} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
1012 cp -p doc/systemd/lighttpd.service $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
1014 rm -f $RPM_BUILD_ROOT%{pkglibdir}/*.la
1016 # Install lighttpd images
1017 cp -p %{SOURCE7} %{SOURCE8} %{SOURCE9} $RPM_BUILD_ROOT%{_lighttpddir}/html
1018 cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_lighttpddir}/html/pld_button.png
1019 cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_lighttpddir}/html/index.html
1021 # NOTE: the order of the modules is somewhat important as the modules are
1022 # handled in the way they are specified. mod_rewrite should always be the first
1023 # module, mod_accesslog always the last.
1025 conf_available=$RPM_BUILD_ROOT%{_sysconfdir}/conf.d
1028 cp -p %{SOURCE117} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/10_mod_rewrite.conf
1029 cp -p %{SOURCE116} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/11_mod_redirect.conf
1031 cp -p %{SOURCE100} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_access.conf
1032 cp -p %{SOURCE102} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_alias.conf
1033 cp -p %{SOURCE103} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_auth.conf
1034 cp -p %{SOURCE104} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_cgi.conf
1035 cp -p %{SOURCE137} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_cgi_php.conf
1037 cp -p %{SOURCE107} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_deflate.conf
1038 cp -p %{SOURCE108} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_dirlisting.conf
1039 cp -p %{SOURCE109} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evasive.conf
1040 cp -p %{SOURCE110} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evhost.conf
1041 cp -p %{SOURCE112} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_fastcgi.conf
1042 %if %{with maxminddb}
1043 cp -p %{SOURCE147} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_maxminddb.conf
1046 cp -p %{SOURCE141} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_authn_ldap.conf
1048 %if %{with h264_streaming}
1049 cp -p %{SOURCE136} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_h264_streaming.conf
1051 cp -p %{SOURCE114} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_indexfile.conf
1052 cp -p %{SOURCE142} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_openssl.conf
1053 cp -p %{SOURCE115} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_proxy.conf
1054 cp -p %{SOURCE118} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_rrdtool.conf
1055 cp -p %{SOURCE119} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_scgi.conf
1056 cp -p %{SOURCE120} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_secdownload.conf
1057 cp -p %{SOURCE121} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_setenv.conf
1058 cp -p %{SOURCE122} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_simple_vhost.conf
1059 cp -p %{SOURCE123} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_ssi.conf
1060 cp -p %{SOURCE124} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_staticfile.conf
1061 cp -p %{SOURCE125} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_status.conf
1062 cp -p %{SOURCE139} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_uploadprogress.conf
1063 cp -p %{SOURCE127} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_userdir.conf
1064 cp -p %{SOURCE128} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_usertrack.conf
1065 cp -p %{SOURCE143} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_vhostdb.conf
1066 cp -p %{SOURCE129} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_webdav.conf
1067 cp -p %{SOURCE144} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_wstunnel.conf
1068 cp -p %{SOURCE146} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_sockproxy.conf
1070 cp -p %{SOURCE134} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/55_mod_magnet.conf
1071 cp -p %{SOURCE111} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/55_mod_expire.conf
1073 cp -p %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_accesslog.conf
1074 cp -p %{SOURCE135} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/91_mod_extforward.conf
1076 cp -p %{SOURCE130} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/php-spawned.conf
1077 cp -p %{SOURCE131} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/php-external.conf
1078 cp -p %{SOURCE132} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/ssl.conf
1080 touch $RPM_BUILD_ROOT/var/lib/lighttpd/lighttpd.rrd
1082 install -d $RPM_BUILD_ROOT/etc/tmpwatch
1084 touch $RPM_BUILD_ROOT/var/log/%{name}/{access,error,breakage}.log
1087 rm -rf $RPM_BUILD_ROOT
1090 %groupadd -g 109 lighttpd
1091 %groupadd -g 51 http
1092 %useradd -u 116 -d %{_lighttpddir} -c "Lighttpd User" -g lighttpd lighttpd
1093 %addusertogroup lighttpd http
1096 for a in access.log error.log breakage.log; do
1097 if [ ! -f /var/log/%{name}/$a ]; then
1098 touch /var/log/%{name}/$a
1099 chown lighttpd:lighttpd /var/log/%{name}/$a
1100 chmod 644 /var/log/%{name}/$a
1103 /sbin/chkconfig --add %{name}
1104 %systemd_post %{name}.service
1107 if [ "$1" = "0" ]; then
1108 %service %{name} stop
1109 /sbin/chkconfig --del %{name}
1111 %systemd_preun %{name}.service
1114 if [ "$1" = "0" ]; then
1115 %userremove lighttpd
1116 %groupremove lighttpd
1122 # minimizing lighttpd restarts logics. we restart webserver:
1124 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
1125 # 2. first install of module (post: $1 = 1)
1126 # 2. uninstall of module (postun: $1 = 0)
1128 # the strict internal deps between lighttpd modules and
1129 # main package are very important for all this to work.
1130 %service %{name} restart "Lighttpd webserver"
1133 # macro called at module post scriptlet
1134 %define module_post \
1135 if [ "$1" = "1" ]; then \
1136 %service -q lighttpd restart \
1139 # macro called at module postun scriptlet
1140 %define module_postun \
1141 if [ "$1" = "0" ]; then \
1142 %service -q lighttpd restart \
1145 # it's sooo annoying to write them
1146 %define module_scripts() \
1153 %module_scripts mod_access
1154 %module_scripts mod_accesslog
1155 %module_scripts mod_ajp13
1156 %module_scripts mod_alias
1157 %module_scripts mod_auth
1158 %module_scripts mod_authn_dbi
1159 %module_scripts mod_authn_file
1160 %module_scripts mod_authn_gssapi
1161 %module_scripts mod_authn_ldap
1162 %module_scripts mod_cgi
1163 %module_scripts mod_deflate
1164 %module_scripts mod_dirlisting
1165 %module_scripts mod_evasive
1166 %module_scripts mod_evhost
1167 %module_scripts mod_expire
1168 %module_scripts mod_extforward
1169 %module_scripts mod_fastcgi
1170 %module_scripts mod_h264_streaming
1171 %module_scripts mod_indexfile
1172 %module_scripts mod_magnet
1173 %module_scripts mod_maxminddb
1174 %module_scripts mod_openssl
1175 %module_scripts mod_proxy
1176 %module_scripts mod_redirect
1177 %module_scripts mod_rewrite
1178 %module_scripts mod_scgi
1179 %module_scripts mod_secdownload
1180 %module_scripts mod_setenv
1181 %module_scripts mod_simple_vhost
1182 %module_scripts mod_sockproxy
1183 %module_scripts mod_ssi
1184 %module_scripts mod_staticfile
1185 %module_scripts mod_status
1186 %module_scripts mod_uploadprogress
1187 %module_scripts mod_userdir
1188 %module_scripts mod_usertrack
1189 %module_scripts mod_vhostdb
1190 %module_scripts mod_webdav
1191 %module_scripts mod_wstunnel
1193 %module_scripts php-spawned
1194 %module_scripts php-external
1197 if [ ! -f /var/lib/lighttpd/lighttpd.rrd ]; then
1198 touch /var/lib/lighttpd/lighttpd.rrd
1199 chown lighttpd:stats /var/lib/lighttpd/lighttpd.rrd
1200 chmod 640 /var/lib/lighttpd/lighttpd.rrd
1208 %triggerpostun -- %{name} < 1.4.18-10.1
1209 if [ -f /etc/lighttpd/conf.d/50_mod_extforward.conf.rpmsave ]; then
1210 cp -f /etc/lighttpd/conf.d/91_mod_extforward.conf{,.rpmnew}
1211 mv -f /etc/lighttpd/conf.d/{50_mod_extforward.conf.rpmsave,91_mod_extforward.conf}
1215 %defattr(644,root,root,755)
1216 %doc NEWS README PLD-TODO
1217 %dir %attr(751,root,lighttpd) %{_sysconfdir}
1218 %dir %attr(750,root,root) %{_sysconfdir}/conf.d
1219 %dir %attr(750,root,root) %{_sysconfdir}/vhosts.d
1220 %dir %attr(750,root,root) %{_sysconfdir}/webapps.d
1221 %dir %attr(700,root,root) %{_sysconfdir}/ssl
1222 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
1223 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.types.conf
1224 %attr(640,root,lighttpd) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.user
1226 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
1227 %attr(750,root,root) %dir /var/log/archive/%{name}
1228 %dir %attr(751,root,root) /var/log/%{name}
1229 %attr(644,lighttpd,lighttpd) %ghost /var/log/%{name}/access.log
1230 %attr(644,lighttpd,lighttpd) %ghost /var/log/%{name}/error.log
1231 %attr(644,lighttpd,lighttpd) %ghost /var/log/%{name}/breakage.log
1232 %dir %attr(770,root,lighttpd) /var/run/%{name}
1233 %{systemdtmpfilesdir}/%{name}.conf
1234 %{systemdunitdir}/%{name}.service
1235 %attr(754,root,root) /etc/rc.d/init.d/%{name}
1236 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
1237 %attr(755,root,root) %{_sbindir}/lighttpd
1238 %attr(755,root,root) %{_sbindir}/lighttpd-angel
1240 %{_mandir}/man8/lighttpd.8*
1241 %{_mandir}/man8/lighttpd-angel.8*
1242 %dir %{_lighttpddir}
1243 %dir %{_lighttpddir}/cgi-bin
1244 %dir %{_lighttpddir}/html
1245 %config(noreplace,missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/index.html
1246 %config(missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/*.png
1247 %config(missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/*.ico
1249 %dir %{_datadir}/lighttpd
1250 %dir %{_datadir}/lighttpd/errordocs
1252 # rrdtool database is stored there
1253 %dir %attr(771,root,lighttpd) /var/lib/lighttpd
1256 %defattr(644,root,root,755)
1257 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_access.conf
1258 %attr(755,root,root) %{pkglibdir}/mod_access.so
1260 %files mod_accesslog
1261 %defattr(644,root,root,755)
1262 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_accesslog.conf
1263 %attr(755,root,root) %{pkglibdir}/mod_accesslog.so
1266 %defattr(644,root,root,755)
1267 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_alias.conf
1268 %attr(755,root,root) %{pkglibdir}/mod_alias.so
1271 %defattr(644,root,root,755)
1272 %attr(755,root,root) %{pkglibdir}/mod_ajp13.so
1275 %defattr(644,root,root,755)
1276 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_auth.conf
1277 %attr(755,root,root) %{pkglibdir}/mod_auth.so
1280 %files mod_authn_dbi
1281 %defattr(644,root,root,755)
1282 %attr(755,root,root) %{pkglibdir}/mod_authn_dbi.so
1285 %files mod_authn_file
1286 %defattr(644,root,root,755)
1287 %attr(755,root,root) %{pkglibdir}/mod_authn_file.so
1290 %files mod_authn_gssapi
1291 %defattr(644,root,root,755)
1292 %attr(755,root,root) %{pkglibdir}/mod_authn_gssapi.so
1296 %files mod_authn_ldap
1297 %defattr(644,root,root,755)
1298 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_authn_ldap.conf
1299 %attr(755,root,root) %{pkglibdir}/mod_authn_ldap.so
1303 %defattr(644,root,root,755)
1304 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_cgi.conf
1305 %attr(755,root,root) %{pkglibdir}/mod_cgi.so
1308 %defattr(644,root,root,755)
1309 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_cgi_php.conf
1312 %defattr(644,root,root,755)
1313 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_deflate.conf
1314 %attr(755,root,root) %{pkglibdir}/mod_deflate.so
1316 %files mod_dirlisting
1317 %defattr(644,root,root,755)
1318 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_dirlisting.conf
1319 %attr(755,root,root) %{pkglibdir}/mod_dirlisting.so
1322 %defattr(644,root,root,755)
1323 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_evasive.conf
1324 %attr(755,root,root) %{pkglibdir}/mod_evasive.so
1327 %defattr(644,root,root,755)
1328 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_evhost.conf
1329 %attr(755,root,root) %{pkglibdir}/mod_evhost.so
1332 %defattr(644,root,root,755)
1333 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_expire.conf
1334 %attr(755,root,root) %{pkglibdir}/mod_expire.so
1336 %files mod_extforward
1337 %defattr(644,root,root,755)
1338 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_extforward.conf
1339 %attr(755,root,root) %{pkglibdir}/mod_extforward.so
1342 %defattr(644,root,root,755)
1343 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_fastcgi.conf
1344 %attr(755,root,root) %{pkglibdir}/mod_fastcgi.so
1346 %if %{with h264_streaming}
1347 %files mod_h264_streaming
1348 %defattr(644,root,root,755)
1349 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_h264_streaming.conf
1350 %attr(755,root,root) %{pkglibdir}/mod_h264_streaming.so
1353 %files mod_indexfile
1354 %defattr(644,root,root,755)
1355 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_indexfile.conf
1356 %attr(755,root,root) %{pkglibdir}/mod_indexfile.so
1359 %defattr(644,root,root,755)
1360 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_magnet.conf
1361 %attr(755,root,root) %{pkglibdir}/mod_magnet.so
1363 %if %{with maxminddb}
1364 %files mod_maxminddb
1365 %defattr(644,root,root,755)
1366 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_maxminddb.conf
1367 %attr(755,root,root) %{pkglibdir}/mod_maxminddb.so
1371 %defattr(644,root,root,755)
1372 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_proxy.conf
1373 %attr(755,root,root) %{pkglibdir}/mod_proxy.so
1376 %defattr(644,root,root,755)
1377 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_openssl.conf
1378 %attr(755,root,root) %{pkglibdir}/mod_openssl.so
1381 %defattr(644,root,root,755)
1382 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_redirect.conf
1383 %attr(755,root,root) %{pkglibdir}/mod_redirect.so
1386 %defattr(644,root,root,755)
1387 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_rewrite.conf
1388 %attr(755,root,root) %{pkglibdir}/mod_rewrite.so
1391 %defattr(644,root,root,755)
1392 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_rrdtool.conf
1393 %attr(755,root,root) %{pkglibdir}/mod_rrdtool.so
1394 %attr(640,lighttpd,stats) %ghost /var/lib/lighttpd/lighttpd.rrd
1397 %defattr(644,root,root,755)
1398 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_scgi.conf
1399 %attr(755,root,root) %{pkglibdir}/mod_scgi.so
1401 %files mod_secdownload
1402 %defattr(644,root,root,755)
1403 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_secdownload.conf
1404 %attr(755,root,root) %{pkglibdir}/mod_secdownload.so
1407 %defattr(644,root,root,755)
1408 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_setenv.conf
1409 %attr(755,root,root) %{pkglibdir}/mod_setenv.so
1411 %files mod_simple_vhost
1412 %defattr(644,root,root,755)
1413 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_simple_vhost.conf
1414 %attr(755,root,root) %{pkglibdir}/mod_simple_vhost.so
1416 %files mod_sockproxy
1417 %defattr(644,root,root,755)
1418 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_sockproxy.conf
1419 %attr(755,root,root) %{pkglibdir}/mod_sockproxy.so
1422 %defattr(644,root,root,755)
1423 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_ssi.conf
1424 %attr(755,root,root) %{pkglibdir}/mod_ssi.so
1426 %files mod_staticfile
1427 %defattr(644,root,root,755)
1428 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_staticfile.conf
1429 %attr(755,root,root) %{pkglibdir}/mod_staticfile.so
1432 %defattr(644,root,root,755)
1433 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_status.conf
1434 %attr(755,root,root) %{pkglibdir}/mod_status.so
1436 %files mod_uploadprogress
1437 %defattr(644,root,root,755)
1438 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_uploadprogress.conf
1439 %attr(755,root,root) %{pkglibdir}/mod_uploadprogress.so
1442 %defattr(644,root,root,755)
1443 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_userdir.conf
1444 %attr(755,root,root) %{pkglibdir}/mod_userdir.so
1446 %files mod_usertrack
1447 %defattr(644,root,root,755)
1448 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_usertrack.conf
1449 %attr(755,root,root) %{pkglibdir}/mod_usertrack.so
1452 %defattr(644,root,root,755)
1453 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_vhostdb.conf
1454 %attr(755,root,root) %{pkglibdir}/mod_vhostdb.so
1457 %attr(755,root,root) %{pkglibdir}/mod_vhostdb_dbi.so
1460 %attr(755,root,root) %{pkglibdir}/mod_vhostdb_ldap.so
1463 %attr(755,root,root) %{pkglibdir}/mod_vhostdb_mysql.so
1466 %attr(755,root,root) %{pkglibdir}/mod_vhostdb_pgsql.so
1470 %defattr(644,root,root,755)
1471 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_webdav.conf
1472 %attr(755,root,root) %{pkglibdir}/mod_webdav.so
1475 %defattr(644,root,root,755)
1476 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_wstunnel.conf
1477 %attr(755,root,root) %{pkglibdir}/mod_wstunnel.so
1480 %defattr(644,root,root,755)
1481 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/php-spawned.conf
1484 %defattr(644,root,root,755)
1485 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/php-external.conf
1488 %defattr(644,root,root,755)
1489 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ssl.conf
1491 %files -n monit-rc-lighttpd
1492 %defattr(644,root,root,755)
1493 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc