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 # - mod_deflate brotli support
19 %bcond_with tests # build with tests
20 %bcond_without xattr # support of extended attributes
21 %bcond_without ipv6 # IPv4-only version (doesn't require IPv6 in kernel)
22 %bcond_without largefile # largefile support (see notes above)
23 %bcond_without dbi # libdbi, enables mod_vhostdb_dbi
24 %bcond_without ssl # ssl support
25 %bcond_without mysql # mysql support in mod_mysql_vhost, mod_vhostdb_mysql
26 %bcond_without pgsql # PgSQL, enables mod_vhostdb_pgsql
27 %bcond_without geoip # GeoIP support
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 in mod_cml (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_without mod_trigger_b4_dl # mod_trigger_b4_dl
34 %bcond_with webdav_props # properties in mod_webdav (includes extra sqlite3/libxml deps)
35 %bcond_with webdav_locks # webdav locks with extra efsprogs deps
36 %bcond_with valgrind # compile code with valgrind support.
37 %bcond_with h264_streaming # build h264_streaming module
38 %bcond_without storage_memcached # memcached storage for mod_trigger_b4_dl/mod_cml
39 %bcond_without storage_gdbm # gdbm storage for mod_trigger_b4_dl
41 %if %{with webdav_locks}
42 %define webdav_progs 1
45 # if(WITH_PCRE AND (WITH_MEMCACHED OR WITH_GDBM))
46 %if %{without storage_memcached} && %{without storage_gdbm}
47 %undefine with_mod_trigger_b4_dl
50 Summary: Fast and light HTTP server
51 Summary(pl.UTF-8): Szybki i lekki serwer HTTP
56 Group: Networking/Daemons/HTTP
57 Source0: https://download.lighttpd.net/lighttpd/releases-1.4.x/%{name}-%{version}.tar.xz
58 # Source0-md5: 9d94f68c8106bfcdfe7aafa0a13f45a8
62 Source4: %{name}.logrotate
63 Source5: %{name}.sysconfig
64 Source6: %{name}-mime.types.sh
65 Source7: https://glen.alkohol.ee/pld/lighty/favicon.ico
66 # Source7-md5: 00fcac5b861a54f5eb147a589504d480
67 Source8: light_button.png
68 # Source8-md5: 3e1008ee1d3d6d390cf81fe3072b4f50
69 Source9: light_logo.png
70 # Source9-md5: cbb7f0676e51ee2e26cf004df293fc62
71 Source10: pld_button.png
72 # Source10-md5: 185afa921e81bd726b9f0f9f0909dc6e
73 Source11: %{name}-pld.html
74 Source12: %{name}.monitrc
77 Source16: %{name}.tmpfiles
78 Source100: mod_access.conf
79 Source101: mod_accesslog.conf
80 Source102: mod_alias.conf
81 Source103: mod_auth.conf
82 Source104: mod_cgi.conf
83 Source105: mod_cml.conf
84 Source107: mod_deflate.conf
85 Source108: mod_dirlisting.conf
86 Source109: mod_evasive.conf
87 Source110: mod_evhost.conf
88 Source111: mod_expire.conf
89 Source112: mod_fastcgi.conf
90 Source113: mod_flv_streaming.conf
91 Source114: mod_indexfile.conf
92 Source115: mod_proxy.conf
93 Source116: mod_redirect.conf
94 Source117: mod_rewrite.conf
95 Source118: mod_rrdtool.conf
96 Source119: mod_scgi.conf
97 Source120: mod_secdownload.conf
98 Source121: mod_setenv.conf
99 Source122: mod_simple_vhost.conf
100 Source123: mod_ssi.conf
101 Source124: mod_staticfile.conf
102 Source125: mod_status.conf
103 Source126: mod_trigger_b4_dl.conf
104 Source127: mod_userdir.conf
105 Source128: mod_usertrack.conf
106 Source129: mod_webdav.conf
107 Source130: php-spawned.conf
108 Source131: php-external.conf
110 Source133: mod_mysql_vhost.conf
111 Source134: mod_magnet.conf
112 Source135: mod_extforward.conf
113 Source136: mod_h264_streaming.conf
114 Source137: mod_cgi_php.conf
115 Source139: mod_uploadprogress.conf
116 Source140: mod_geoip.conf
117 Source141: mod_authn_ldap.conf
118 Source142: mod_openssl.conf
119 Source143: mod_vhostdb.conf
120 Source144: mod_wstunnel.conf
121 Source145: mod_authn_mysql.conf
122 Source146: mod_sockproxy.conf
123 Source147: mod_maxminddb.conf
124 # use branch.sh script to create branch.diff
125 #Patch100: %{name}-branch.diff
126 ## Patch100-md5: 7bd09235304c8bcb16f34d49d480c0fb
127 Patch1: %{name}-mod_evasive-status_code.patch
128 Patch2: %{name}-mod_h264_streaming.patch
129 Patch3: %{name}-branding.patch
130 Patch4: systemd.patch
131 Patch5: test-port-setup.patch
132 URL: https://www.lighttpd.net/
133 %{?with_geoip:BuildRequires: GeoIP-devel}
134 %{?with_maxminddb:BuildRequires: libmaxminddb-devel}
135 %{?with_xattr:BuildRequires: attr-devel}
136 BuildRequires: autoconf >= 2.57
137 %if "%{pld_release}" != "ac"
138 BuildRequires: automake >= 1:1.11.2
140 BuildRequires: automake
142 BuildRequires: bzip2-devel
143 BuildRequires: fcgi-devel
144 %{?with_gamin:BuildRequires: gamin-devel}
145 %{?with_storage_gdbm:BuildRequires: gdbm-devel}
146 %{?with_krb5:BuildRequires: krb5-devel}
147 %{?with_dbi:BuildRequires: libdbi-devel}
148 %{?with_storage_memcached:BuildRequires: libmemcached-devel}
149 BuildRequires: libtool
150 BuildRequires: libuuid-devel
151 %{?with_webdav_props:BuildRequires: libxml2-devel}
152 %{?with_lua:BuildRequires: lua51-devel}
153 BuildRequires: mailcap >= 2.1.14-4.4
154 %{?with_mysql:BuildRequires: mysql-devel}
155 %{?with_pgsql:BuildRequires: postgresql-devel}
156 %{?with_ldap:BuildRequires: openldap-devel}
157 %{?with_ssl:BuildRequires: openssl-devel}
158 BuildRequires: pcre-devel
159 BuildRequires: pkgconfig
160 BuildRequires: rpm >= 4.4.9-56
161 BuildRequires: rpmbuild(macros) >= 1.647
162 %{?with_webdav_props:BuildRequires: sqlite3-devel}
163 BuildRequires: tar >= 1:1.22
164 %{?with_valgrind:BuildRequires: valgrind}
167 BuildRequires: zlib-devel
168 Requires(post,preun): /sbin/chkconfig
169 Requires(postun): /usr/sbin/groupdel
170 Requires(postun): /usr/sbin/userdel
171 Requires(pre): /bin/id
172 Requires(pre): /usr/bin/getgid
173 Requires(pre): /usr/lib/rpm/user_group.sh
174 Requires(pre): /usr/sbin/groupadd
175 Requires(pre): /usr/sbin/useradd
176 Requires(pre): /usr/sbin/usermod
177 Requires: %{name}-mod_dirlisting = %{version}-%{release}
178 Requires: %{name}-mod_indexfile = %{version}-%{release}
179 Requires: %{name}-mod_staticfile = %{version}-%{release}
180 Requires: rc-scripts >= 0.4.3.0
181 Requires: rpm-whiteout >= 1.5
182 Requires: systemd-units >= 38
183 Suggests: %{name}-mod_accesslog
184 Provides: group(http)
185 Provides: group(lighttpd)
186 Provides: user(lighttpd)
188 Provides: webserver(headers)
189 Provides: webserver(mime)
190 Conflicts: logrotate < 3.7-4
191 # for the posttrans scriptlet, conflicts because in vserver environment rpm package is not installed.
192 Conflicts: rpm < 4.4.2-0.2
193 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
195 %define pkglibdir %{_libdir}/%{name}
196 %define _lighttpddir /home/services/%{name}
197 %define _sysconfdir /etc/%{name}
200 lighttpd is a secure, fast, compliant and very flexible web-server
201 which has been optimized for high-performance environments. It has a
202 very low memory footprint compared to other webservers and takes care
203 of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth,
204 Output-Compression, URL-Rewriting and many more) make lighttpd the
205 perfect webserver-software for every server that is suffering load
208 %description -l pl.UTF-8
209 lighttpd jest bezpiecznym, szybkim, przyjaznym i bardzo elastycznym
210 serwerem WWW, który został zoptymalizowany pod kątem
211 wysokowydajnościowych środowisk. Zajmuje bardzo małą ilość pamięci w
212 porównaniu do innych serwerów WWW oraz dba o zajętość procesora.
213 Szeroki zestaw opcji (FastCGI, CGI, uwierzytelnianie, kompresja
214 wyjścia, przepisywanie URL-i i wiele innych) czynią z lighttpd
215 doskonałe oprogramowanie web-serwerowe na każdy serwer cierpiący z
216 powodu problemów z obciążeniem.
219 Summary: lighttpd module for making access restrictions
220 Summary(pl.UTF-8): Moduł lighttpd ograniczający dostęp
221 Group: Networking/Daemons/HTTP
222 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModAccess
223 Requires: %{name} = %{version}-%{release}
224 Provides: webserver(access)
226 %description mod_access
227 The access module is used to deny access to files with given trailing
230 %description mod_access -l pl.UTF-8
231 Moduł access służy do ograniczania dostępu do plików o podanych
234 %package mod_accesslog
235 Summary: lighttpd module to record access logs
236 Summary(pl.UTF-8): Moduł lighttpd do zapisu logów dostępu
237 Group: Networking/Daemons/HTTP
238 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModAccessLog
239 Requires: %{name} = %{version}-%{release}
241 %description mod_accesslog
242 CLF like by default, flexible like Apache.
244 %description mod_accesslog -l pl.UTF-8
245 Domyślnie podobny do CLF, elastyczny jak Apache.
248 Summary: lighttpd module for making URL aliasing
249 Summary(pl.UTF-8): Moduł lighttpd odpowiadający za aliasy URL-i
250 Group: Networking/Daemons/HTTP
251 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModAlias
252 Requires: %{name} = %{version}-%{release}
253 Provides: webserver(alias)
255 %description mod_alias
256 The alias module is used to specify a special document-root for a
259 %description mod_alias -l pl.UTF-8
260 Modul alias służy do określania specjalnego drzewa (document-roota)
261 dla podanego podzbioru URL-i.
264 Summary: lighttpd module for authentication support
265 Summary(pl.UTF-8): Moduł lighttpd do obsługi uwierzytelniania
266 Group: Networking/Daemons/HTTP
267 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModAuth
268 Requires: %{name} = %{version}-%{release}
269 Requires: %{name}-mod_authn_file = %{version}-%{release}
271 Suggests: %{name}-mod_authn_ldap = %{version}-%{release}
274 Suggests: %{name}-mod_authn_mysql = %{version}-%{release}
276 Provides: webserver(auth)
278 %description mod_auth
279 lighttpd supportes both authentication method described by RFC 2617:
282 %description mod_auth -l pl.UTF-8
283 lighttpd obsługuje obie metody uwierzytelniania opisane w RFC 2617:
286 %package mod_authn_file
287 Summary: lighttpd authn_file module
288 Group: Networking/Daemons/HTTP
289 Requires: %{name} = %{version}-%{release}
291 %description mod_authn_file
292 lighttpd authn_file module.
294 %package mod_authn_gssapi
295 Summary: lighttpd authn_gssapi module
296 Group: Networking/Daemons/HTTP
297 Requires: %{name} = %{version}-%{release}
299 %description mod_authn_gssapi
300 lighttpd authn_gssapi module.
302 %package mod_authn_ldap
303 Summary: lighttpd authn_ldap module
304 Group: Networking/Daemons/HTTP
305 Requires: %{name} = %{version}-%{release}
307 %description mod_authn_ldap
308 lighttpd authn_ldap module.
310 %package mod_authn_mysql
311 Summary: lighttpd authn_mysql module
312 Group: Networking/Daemons/HTTP
313 Requires: %{name} = %{version}-%{release}
315 %description mod_authn_mysql
316 lighttpd authn_mysql module.
319 Summary: lighttpd module for CGI handling
320 Summary(pl.UTF-8): Moduł lighttpd do obsługi CGI
321 Group: Networking/Daemons/HTTP
322 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModCGI
323 Requires: %{name} = %{version}-%{release}
324 Requires: %{name}-mod_alias = %{version}-%{release}
325 Provides: webserver(cgi)
328 The cgi module provides a CGI-conforming interface.
330 CGI programs allow you to enhance the functionality of the server in a
331 very straight and simple way.
333 %description mod_cgi -l pl.UTF-8
334 Moduł cgi udostępnia interfejs zgodny z CGI.
336 Programy CGI pozwalają rozszerzać funkcjonalność serwera w bardzo
337 prosty i naturalny sposób.
340 Summary: lighttpd module for CGI handling PHP scripts
341 Summary(pl.UTF-8): Moduł lighttpd do obsługi skryptów PHP przez CGI
342 Group: Networking/Daemons/HTTP
343 Requires: %{name}-mod_cgi = %{version}-%{release}
345 Provides: webserver(php)
347 %description mod_cgi_php
348 The cgi module provides a CGI-conforming interface for PHP scripts.
350 CGI programs allow you to enhance the functionality of the server in a
351 very straight and simple way.
353 %description mod_cgi_php -l pl.UTF-8
354 Moduł cgi udostępnia interfejs zgodny z CGI do wywoływania skryptów
357 Programy CGI pozwalają rozszerzać funkcjonalność serwera w bardzo
358 prosty i naturalny sposób.
361 Summary: lighttpd module for Cache Meta Language
362 Summary(pl.UTF-8): Moduł Cache Meta Language
363 Group: Networking/Daemons/HTTP
364 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModCML
365 Requires: %{name} = %{version}-%{release}
368 CML is a Meta language to describe the dependencies of a page at one
369 side and building a page from its fragments on the other side using
372 %description mod_cml -l pl.UTF-8
373 CML to metajęzyk służący z jednej strony do opisu zależności strony i
374 z drugiej strony do budowania strony z fragmentów przy użyciu LUA.
376 %package mod_compress
377 Summary: lighttpd module for output compression
378 Summary(pl.UTF-8): Moduł lighttpd do kompresji wyjścia
379 Group: Networking/Daemons/HTTP
380 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModCompress
381 Requires: %{name} = %{version}-%{release}
383 %description mod_compress
384 Output compression reduces the network load and can improve the
385 overall throughput of the webserver.
387 Only static content is supported up to now.
389 The server negotiates automatically which compression method is used.
390 Supported are gzip, deflate, bzip.
392 %description mod_compress -l pl.UTF-8
393 Kompresja wyjścia zmniejsza obciążenie sieci i może poprawić całkowitą
394 przepustowość serwera WWW.
396 Jak na razie obsługiwana jest tylko statyczna treść.
398 Serwer automatycznie negocjuje, która metoda kompresji jest używana.
399 Obsługiwane są gzip, deflate i bzip.
402 Summary: lighttpd module for output compression using deflate method
403 Summary(pl.UTF-8): Moduł lighttpd do kompresji wyjścia metodą deflate
404 Group: Networking/Daemons/HTTP
405 URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModDeflate
406 Requires: %{name} = %{version}-%{release}
407 Obsoletes: lighttpd-mod_deflate < 1.4.56
409 %description mod_deflate
410 mod_deflate enables output compression of responses
413 Output compression reduces the network load and can improve the
414 overall throughput of the webserver. All major http-clients support
415 compression by announcing it in the Accept-Encoding header. This is
416 used to negotiate the most suitable compression method.
418 Since lighttpd 1.4.56, mod_deflate subsumes and replaces mod_compress.
419 mod_deflate can compress static and dynamic responses, while
420 mod_compress could compress only static files.
422 %description mod_deflate -l pl.UTF-8
423 mod_deflate potrafi kompresować statyczne i dynamiczne wyjście z
424 lighttpd. Nie obsługuje cache'owania wyniku kompresji, jak robi to
427 %package mod_dirlisting
428 Summary: lighttpd module for directory listings
429 Summary(pl.UTF-8): Moduł lighttpd do tworzenia listingów katalogów
430 Group: Networking/Daemons/HTTP
431 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModDirlisting
432 Requires: %{name} = %{version}-%{release}
434 %description mod_dirlisting
435 mod_dirlisting generates HTML based directory listings with full CSS
438 %description mod_dirlisting -l pl.UTF-8
439 mod_dirlisting tworzy listingi katalogów w formacie HTML z pełną
443 Summary: lighttpd evasive module
444 Summary(pl.UTF-8): Moduł evasive dla lighttpd
445 Group: Networking/Daemons/HTTP
446 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModEvasive
447 Requires: %{name} = %{version}-%{release}
449 %description mod_evasive
450 lighttpd evasive module.
452 %description mod_evasive -l pl.UTF-8
453 Moduł evasive dla lighttpd.
456 Summary: lighttpd module for enhanced virtual-hosting
457 Summary(pl.UTF-8): Moduł lighttpd rozszerzający obsługę hostów wirtualnych
458 Group: Networking/Daemons/HTTP
459 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModEVhost
460 Requires: %{name} = %{version}-%{release}
462 %description mod_evhost
463 mod_evhost builds the document-root based on a pattern which contains
464 wildcards. Those wildcards can represent parts of the submitted
467 %description mod_evhost -l pl.UTF-8
468 mod_evhost tworzy document-root w oparciu o wzorzec zawierający znaki
469 wieloznaczne (wildcards). Znaki te reprezentują części przekazanej
473 Summary: lighttpd module for controlling the expiration of content in caches
474 Summary(pl.UTF-8): Moduł lighttpd sterujący wygasaniem treści w cache'ach
475 Group: Networking/Daemons/HTTP
476 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModExpire
477 Requires: %{name} = %{version}-%{release}
478 Provides: webserver(expires)
480 %description mod_expire
481 mod_expire controls the setting of the the Expire response header.
483 %description mod_expire -l pl.UTF-8
484 mod_expire steruje ustawianiem nagłówka odpowiedzi Expire.
486 %package mod_extforward
487 Summary: lighttpd module to extract the client's "real" IP from X-Forwarded-For header
488 Summary(pl.UTF-8): Moduł lighttpd wyciągający "prawdziwy" IP klienta z nagłówka X-Forwarded-For
489 Group: Networking/Daemons/HTTP
490 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/DocsModExtForward
491 Requires: %{name} = %{version}-%{release}
493 %description mod_extforward
494 This module will extract the client's "real" IP from X-Forwarded-For
495 header which is added by Squid or other proxies. It might be useful
496 for servers behind reverse proxy servers.
498 %description mod_extforward -l pl.UTF-8
499 Ten moduł wyciąga "prawdziwy" IP klienta z nagłówka X-Forwarded-For
500 dodawanego przez Squida czy inne proxy. Może być przydatny dla
501 serwerów stojących za odwrotnymi serwerami proxy.
504 Summary: lighttpd module for FastCGI interface
505 Summary(pl.UTF-8): Moduł lighttpd do interfejsu FastCGI
506 Group: Networking/Daemons/HTTP
507 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModFastCGI
508 Requires: %{name} = %{version}-%{release}
510 %description mod_fastcgi
511 The FastCGI interface is the fastest and most secure way to interface
512 external process-handlers like Perl, PHP and your self-written
515 %description mod_fastcgi -l pl.UTF-8
516 Interfejs FastCGI to najszybszy i najbezpieczniejszy sposób
517 komunikacji z zewnętrznymi programami obsługującymi procesy, takimi
518 jak Perl, PHP czy własne aplikacje.
520 %package mod_flv_streaming
521 Summary: lighttpd module for flv streaming
522 Summary(pl.UTF-8): Moduł lighttpd do streamingu flv
523 Group: Networking/Daemons/HTTP
524 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModFLVStreaming
525 Requires: %{name} = %{version}-%{release}
527 %description mod_flv_streaming
528 lighttpd module for flv streaming.
530 %description mod_flv_streaming -l pl.UTF-8
531 Moduł lighttpd do streamingu flv.
534 Summary: lighttpd module for IP Based Geographic Lookups
535 Group: Networking/Daemons/HTTP
536 URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModGeoip
537 Requires: %{name} = %{version}-%{release}
539 %description mod_geoip
540 mod_geoip is a module for fast ip/location lookups. It uses MaxMind
541 GeoIP / GeoCity databases.
543 If the ip was found in the database the module sets the appropriate
544 environment variables to the request, thus making other modules/fcgi
547 %package mod_h264_streaming
548 Summary: lighttpd module for h264 streaming
549 Summary(pl.UTF-8): Moduł lighttpd do emisji strumieni h264
550 License: CC 3.0 BY-NC-SA
551 Group: Networking/Daemons/HTTP
552 URL: http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Lighttpd-Version2
553 Requires: %{name} = %{version}-%{release}
555 %description mod_h264_streaming
556 A lighttpd plugin for pseudo-streaming QuickTime/MPEG-4 files.
558 %description mod_h264_streaming -l pl.UTF-8
559 Moduł lighttpd do pseudostreamingu plików QuickTime/MPEG-4.
561 %package mod_indexfile
562 Summary: lighttpd indexfile module
563 Summary(pl.UTF-8): Moduł indexfile dla lighttpd
564 Group: Networking/Daemons/HTTP
565 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Index-file-names.Details
566 Requires: %{name} = %{version}-%{release}
567 Provides: webserver(indexfile)
569 %description mod_indexfile
572 %description mod_indexfile -l pl.UTF-8
576 Summary: lighttpd powermagnet module
577 Summary(pl.UTF-8): Moduł powermagnet dla lighttpd
578 Group: Networking/Daemons/HTTP
579 URL: http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModMagnet
580 Requires: %{name} = %{version}-%{release}
582 %description mod_magnet
583 mod_magnet is a module to control the request handling in lighty.
585 %description mod_magnet -l pl.UTF-8
586 mod_magnet to moduł sterujący obsługą żądań w lighty.
588 %package mod_maxminddb
589 Summary: lighttpd module
590 Group: Networking/Daemons/HTTP
591 #URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModGeoip
592 Requires: %{name} = %{version}-%{release}
594 %description mod_maxminddb
596 %package mod_mysql_vhost
597 Summary: lighttpd module for MySQL based vhosting
598 Summary(pl.UTF-8): Moduł lighttpd obsługujący vhosty oparte na MySQL-u
599 Group: Networking/Daemons/HTTP
600 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModMySQLVhost
601 Requires: %{name} = %{version}-%{release}
602 Conflicts: %{name}-mod_simple_vhost
604 %description mod_mysql_vhost
605 This module provides virtual hosts (vhosts) based on a MySQL table.
607 %description mod_mysql_vhost -l pl.UTF-8
608 Ten moduł udostępnia wirtualne hosty (vhosty) oparte na tabeli MySQL.
611 Summary: TLS/SSL for lighttpd
612 Group: Networking/Daemons/HTTP
613 URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_SSL
614 Requires: %{name} = %{version}-%{release}
616 %description mod_openssl
617 TLS/SSL for lighttpd.
620 Summary: lighttpd module for proxying requests
621 Summary(pl.UTF-8): Moduł lighttpd do przekazywania żądań
622 Group: Networking/Daemons/HTTP
623 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModProxy
624 Requires: %{name} = %{version}-%{release}
626 %description mod_proxy
627 The proxy module a simplest way to connect lighttpd to Java servers
628 which have a HTTP-interface.
630 %description mod_proxy -l pl.UTF-8
631 Moduł proxy to najprostszy sposób łączenia lighttpd z serwerami Javy
632 mającymi interfejs HTTP.
634 %package mod_proxy_core
635 Summary: lighttpd module for proxying requests
636 Summary(pl.UTF-8): Moduł lighttpd do przekazywania żądań
637 Group: Networking/Daemons/HTTP
638 URL: http://blog.lighttpd.net/articles/2006/07/18/mod_proxy_core-commited-to-svn
639 Requires: %{name} = %{version}-%{release}
641 %description mod_proxy_core
642 The proxy module a simplest way to connect lighttpd to java servers
643 which have a HTTP-interface.
645 This is the new proxy code.
647 %description mod_proxy_core -l pl.UTF-8
648 Moduł proxy to najprostszy sposób łączenia lighttpd z serwerami Javy
649 mającymi interfejs HTTP.
651 Ten pakiet zawiera nowy moduł proxy.
653 %package mod_redirect
654 Summary: lighttpd module for URL redirects
655 Summary(pl.UTF-8): Moduł lighttpd do przekierowań URL-i
656 Group: Networking/Daemons/HTTP
657 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModRedirect
658 Requires: %{name} = %{version}-%{release}
660 %description mod_redirect
661 With mod_redirect module you can redirect a set of URLs externally.
663 %description mod_redirect -l pl.UTF-8
664 Przy użyciu modułu mod_redirect można przekierować zbiór URL-i na
668 Summary: lighttpd module for internal redirects, URL rewrite
669 Summary(pl.UTF-8): Moduł lighttpd do wewnętrznych przekierowań i przepisywania URL-i
670 Group: Networking/Daemons/HTTP
671 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModRewrite
672 Requires: %{name} = %{version}-%{release}
673 Provides: webserver(rewrite)
675 %description mod_rewrite
676 This module allows you rewrite a set of URLs interally in the
677 webserver BEFORE they are handled.
679 %description mod_rewrite -l pl.UTF-8
680 Ten moduł pozwala na przepisywanie zbioru URL-i wewnętrznie w serwerze
681 WWW _przed_ ich obsługą.
684 Summary: lighttpd module for monitoring traffic and server load
685 Summary(pl.UTF-8): Moduł lighttpd do monitorowania ruchu i obciążenia serwera
686 Group: Networking/Daemons/HTTP
687 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModRRDTool
688 Requires: %{name} = %{version}-%{release}
691 %description mod_rrdtool
692 RRD is a system to store and display time-series data (i.e. network
693 bandwidth, machine-room temperature, server load average).
695 With this module you can monitor the traffic and load on the
698 %description mod_rrdtool -l pl.UTF-8
699 RRD to system przechowywania i wyświetlania danych zależnych od czasu
700 (np. obciążenia sieci, temperatury w serwerowni, średniego obciążenia
703 Przy użyciu tego modułu można monitorować ruch i obciążenie serwera
707 Summary: lighttpd module for SCGI interface
708 Summary(pl.UTF-8): Moduł lighttpd do interfejsu SCGI
709 Group: Networking/Daemons/HTTP
710 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSCGI
711 Requires: %{name} = %{version}-%{release}
713 %description mod_scgi
714 SCGI is a fast and simplified CGI interface. It is mostly used by
717 %description mod_scgi -l pl.UTF-8
718 SCGI to szybki i uproszczony interfejs CGI. Jest używany głównie przez
721 %package mod_secdownload
722 Summary: lighttpd module for secure and fast downloading
723 Summary(pl.UTF-8): Moduł lighttpd do bezpiecznego i szybkiego ściągania danych
724 Group: Networking/Daemons/HTTP
725 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSecDownload
726 Requires: %{name} = %{version}-%{release}
728 %description mod_secdownload
729 With this module you can easily achieve authenticated file requests
730 and a countermeasure against deep-linking.
732 %description mod_secdownload -l pl.UTF-8
733 Przy użyciu tego modułu można łatwo umożliwić ściąganie plików z
734 uwierzytelnieniem i zapobiec używaniu bezpośrednich odnośników.
737 Summary: lighttpd module for setting conditional request headers
738 Summary(pl.UTF-8): Moduł lighttpd do ustawiania warunkowych nagłówków żądań
739 Group: Networking/Daemons/HTTP
740 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSetEnv
741 Requires: %{name} = %{version}-%{release}
742 Provides: webserver(setenv)
744 %description mod_setenv
745 mod_setenv is used to add request headers.
747 %description mod_setenv -l pl.UTF-8
748 mod_setenv służy do dodawania nagłówków żądań.
750 %package mod_simple_vhost
751 Summary: lighttpd module for simple virtual-hosting
752 Summary(pl.UTF-8): Moduł lighttpd do prostych hostów wirtualnych
753 Group: Networking/Daemons/HTTP
754 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSimpleVhost
755 Requires: %{name} = %{version}-%{release}
756 Conflicts: %{name}-mod_mysql_vhost
758 %description mod_simple_vhost
759 lighttpd module for simple virtual-hosting.
761 %description mod_simple_vhost -l pl.UTF-8
762 Moduł lighttpd do prostych hostów wirtualnych.
764 %package mod_sockproxy
765 Summary: Transparent socket proxy
766 Group: Networking/Daemons/HTTP
767 URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModSockProxy
768 Requires: %{name} = %{version}-%{release}
770 %description mod_sockproxy
771 mod_sockproxy is a transparent socket proxy. For a given $SERVER["socket"]
772 config, connections will be forwarded to backend(s) without any
773 interpretation of the protocol.
776 Summary: lighttpd module for server-side includes
777 Summary(pl.UTF-8): Moduł lighttpd do SSI (server-side includes)
778 Group: Networking/Daemons/HTTP
779 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModSSI
780 Requires: %{name} = %{version}-%{release}
783 The module for server-side includes provides a compatability layer for
786 %description mod_ssi -l pl.UTF-8
787 Moduł server-side includes udostępnia warstwę kompatybilności z SSI
788 znanym z NSCA/Apache'a.
790 %package mod_staticfile
791 Summary: lighttpd module for static file serving
792 Summary(pl.UTF-8): Moduł lighttpd do serwowania statycznych plików
793 Group: Networking/Daemons/HTTP
794 Requires: %{name} = %{version}-%{release}
796 %description mod_staticfile
797 lighttpd module for static file serving.
799 %description mod_staticfile -l pl.UTF-8
800 Moduł lighttpd do serwowania statycznych plików.
803 Summary: lighttpd module for displaying server status
804 Summary(pl.UTF-8): Moduł lighttpd do wyświetlania stanu serwera
805 Group: Networking/Daemons/HTTP
806 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModStatus
807 Requires: %{name} = %{version}-%{release}
809 %description mod_status
810 mod_status displays the server's status and configuration.
812 %description mod_status -l pl.UTF-8
813 mod_status wyświetla stan i konfigurację serwera.
815 %package mod_trigger_b4_dl
816 Summary: Trigger before Download
817 Summary(pl.UTF-8): Wyzwalacz przed ściąganiem
818 Group: Networking/Daemons/HTTP
819 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModTriggerBeforeDownload
820 Requires: %{name} = %{version}-%{release}
822 %description mod_trigger_b4_dl
823 Another anti hot-linking module.
825 %description mod_trigger_b4_dl -l pl.UTF-8
826 Jeszcze jeden moduł blokujący bezpośrednie linkowanie.
828 %package mod_uploadprogress
829 Summary: lighttpd module for upload progress
830 Group: Networking/Daemons/HTTP
831 URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModUploadProgress
832 Requires: %{name} = %{version}-%{release}
834 %description mod_uploadprogress
835 This module can be used to track the progress of a current upload.
838 Summary: lighttpd module for user homedirs
839 Summary(pl.UTF-8): Moduł lighttpd obsługujący katalogi domowe użytkowników
840 Group: Networking/Daemons/HTTP
841 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModUserDir
842 Requires: %{name} = %{version}-%{release}
844 %description mod_userdir
845 The userdir module provides a simple way to link user-based
846 directories into the global namespace of the webserver.
848 %description mod_userdir -l pl.UTF-8
849 Moduł userdir udostępnia prosty sposób włączenia katalogów
850 użytkowników do globalnej przestrzeni nazw serwera WWW.
852 %package mod_usertrack
853 Summary: lighttpd usertrack module
854 Summary(pl.UTF-8): Moduł usertrack dla lighttpd
855 Group: Networking/Daemons/HTTP
856 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModUserTrack
857 Requires: %{name} = %{version}-%{release}
859 %description mod_usertrack
860 lighttpd usertrack module.
862 %description mod_usertrack -l pl.UTF-8
863 Moduł usertrack dla lighttpd.
866 Summary: Virtual host database to provide vhost docroot
867 Group: Networking/Daemons/HTTP
868 URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModVhostDB
869 Requires: %{name} = %{version}-%{release}
871 %description mod_vhostdb
872 Virtual host database to provide vhost docroot.
875 Summary: WebDAV module for lighttpd
876 Summary(pl.UTF-8): Moduł WebDAV dla libghttpd
877 Group: Networking/Daemons/HTTP
878 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModWebDAV
879 Requires: %{name} = %{version}-%{release}
881 %description mod_webdav
882 The WebDAV module is a very minimalistic implementation of RFC 2518.
883 Minimalistic means that not all operations are implementated yet.
891 - LOCK (experimental)
893 and the usual GET, POST, HEAD from HTTP/1.1.
895 So far mounting a webdav resource into Windows XP works and the basic
896 litmus tests are passed.
898 %description mod_webdav -l pl.UTF-8
899 Moduł WebDAV to bardzo minimalistyczna implementacja RFC 2518.
900 Minimalistyczna oznacza, że jeszcze nie wszystkie operacje są
901 zaimplementowane. Jak na razie są:
907 - LOCK (experimental)
909 oraz zwykłe GET, POST, HEAD z HTTP/1.1.
911 Jak na razie montowanie zasobu webdav pod Windows XP działa i
912 podstawowe testy lakmusowe przechodzą.
914 %package mod_wstunnel
915 Summary: WebSocket tunnel endpoint
916 Group: Networking/Daemons/HTTP
917 URL: https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModWSTunnel
918 Requires: %{name} = %{version}-%{release}
920 %description mod_wstunnel
921 WebSocket tunnel endpoint. This module terminates the websocket tunnel
922 from a client. This module then passes data (without websocket frames)
923 to a backend and encodes responses from backend in websocket frames
924 before sending responses to client.
927 Summary: PHP support via FastCGI, spawned by lighttpd
928 Summary(pl.UTF-8): Obsługa PHP przez FastCGI, uruchamiane przez lighttpd
929 Group: Networking/Daemons/HTTP
930 Requires: %{name} = %{version}-%{release}
931 Requires: %{name}-mod_fastcgi = %{version}-%{release}
933 Provides: webserver(php)
934 Obsoletes: lighttpd-php-external
936 %description php-spawned
937 PHP support via FastCGI, spawned by lighttpd.
939 %description php-spawned -l pl.UTF-8
940 Obsługa PHP przez FastCGI, uruchamiane przez lighttpd.
942 %package php-external
943 Summary: PHP support via FastCGI, spawning controlled externally
944 Summary(pl.UTF-8): Obsługa PHP przez FastCGI, uruchamianie sterowane zewnętrznie
945 Group: Networking/Daemons/HTTP
946 Requires: %{name} = %{version}-%{release}
947 Requires: %{name}-mod_fastcgi = %{version}-%{release}
949 Suggests: php-fcgi-init
950 Obsoletes: lighttpd-php-spawned
952 %description php-external
953 PHP support via FastCGI, spawning controlled externally.
955 %description php-external -l pl.UTF-8
956 Obsługa PHP przez FastCGI, uruchamianie sterowane zewnętrznie.
959 Summary: lighttpd support for SSLv2 and SSLv3
960 Summary(pl.UTF-8): Obsługa SSLv2 i SSLv3 dla lighttpd
961 Group: Networking/Daemons/HTTP
962 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:SSL
963 Requires: %{name} = %{version}-%{release}
964 Requires: %{name}-mod_openssl = %{version}-%{release}
965 Suggests: ca-certificates
968 lighttpd support for SSLv2 and SSLv3.
970 %description ssl -l pl.UTF-8
971 Obsługa SSLv2 i SSLv3 dla lighttpd.
973 %package -n monit-rc-lighttpd
974 Summary: lighttpd support for monit
975 Summary(pl.UTF-8): Wsparcie lighttpd dla monit
976 Group: Applications/System
977 Requires: %{name} = %{version}-%{release}
980 %description -n monit-rc-lighttpd
981 monitrc file for monitoring lighttpd web server.
983 %description -n monit-rc-lighttpd -l pl.UTF-8
984 Plik monitrc do monitorowania serwera www lighttpd.
989 #%patch1 -p1 UPDATE (and submit upstream!) if you need this
990 %{?with_h264_streaming:%patch2 -p1}
995 rm -f src/mod_ssi_exprparser.h # bad patching: should be removed by is emptied instead
997 # build mime.types.conf
998 sh %{SOURCE6} /etc/mime.types
999 cp -p %{SOURCE14} PLD-TODO
1001 %if "%{pld_release}" == "ac"
1002 %{__sed} -i -e 's/ serial_tests//' configure.ac
1003 %{__sed} -i -e 's/dist-xz/dist-bzip2/' configure.ac
1007 ver=$(awk '/AC_INIT/{a=$2;gsub(/[\[\],]/, "", a); print a}' configure.ac)
1008 if [ "$ver" != "%{version}" ]; then
1009 : configure.ac specifies wrong version
1013 %{__aclocal} -I m4 -I scripts/m4
1020 --libdir=%{pkglibdir} \
1021 %{!?with_ipv6:--disable-ipv6} \
1022 %{!?with_largefile:--disable-lfs} \
1023 %{?with_valgrind:--with-valgrind} \
1024 %{?with_xattr:--with-attr} \
1025 %{?with_dbi:--with-dbi} \
1026 %{?with_krb5:--with-krb5} \
1027 %{?with_geoip:--with-geoip} \
1028 %{?with_maxminddb:--with-maxminddb} \
1029 %{?with_mysql:--with-mysql} \
1030 %{?with_ldap:--with-ldap} \
1031 %{?with_ssl:--with-openssl} \
1032 %{?with_pgsql:--with-pgsql} \
1033 %{?with_lua:--with-lua=lua51} \
1034 %{?with_storage_memcached:--with-memcached} \
1035 %{?with_webdav_props:--with-webdav-props} \
1036 %{?with_webdav_locks:--with-webdav-locks} \
1037 %{?with_gamin:--with-gamin} \
1038 %{?with_storage_gdbm:--with-gdbm}
1040 # -j1 as src/mod_ssi_exprparser.h regeneration deps are broken
1044 export LIGHTTPD_TEST_PORT=$((2048 + RANDOM % 10))
1049 rm -rf $RPM_BUILD_ROOT
1050 install -d $RPM_BUILD_ROOT{%{_lighttpddir}/{cgi-bin,html},/etc/{logrotate.d,rc.d/init.d,sysconfig,monit}} \
1051 $RPM_BUILD_ROOT%{_sysconfdir}/{{conf,vhosts,webapps}.d,ssl} \
1052 $RPM_BUILD_ROOT{/var/log/{%{name},archive/%{name}},/var/run/%{name}} \
1053 $RPM_BUILD_ROOT%{_datadir}/lighttpd/errordocs \
1054 $RPM_BUILD_ROOT/var/lib/lighttpd \
1055 $RPM_BUILD_ROOT{%{systemdtmpfilesdir},%{systemdunitdir}}
1058 DESTDIR=$RPM_BUILD_ROOT
1060 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
1061 cp -p %{SOURCE2} %{SOURCE3} mime.types.conf $RPM_BUILD_ROOT%{_sysconfdir}
1062 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
1063 cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
1064 cp -p %{SOURCE12} $RPM_BUILD_ROOT/etc/monit/%{name}.monitrc
1065 cp -p %{SOURCE16} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
1066 cp -p doc/systemd/lighttpd.service $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
1068 rm -f $RPM_BUILD_ROOT%{pkglibdir}/*.la
1070 # Install lighttpd images
1071 cp -p %{SOURCE7} %{SOURCE8} %{SOURCE9} $RPM_BUILD_ROOT%{_lighttpddir}/html
1072 cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_lighttpddir}/html/pld_button.png
1073 cp -p %{SOURCE11} $RPM_BUILD_ROOT%{_lighttpddir}/html/index.html
1075 # NOTE: the order of the modules is somewhat important as the modules are
1076 # handled in the way they are specified. mod_rewrite should always be the first
1077 # module, mod_accesslog always the last.
1079 conf_available=$RPM_BUILD_ROOT%{_sysconfdir}/conf.d
1082 cp -p %{SOURCE117} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/10_mod_rewrite.conf
1083 cp -p %{SOURCE116} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/11_mod_redirect.conf
1085 cp -p %{SOURCE100} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_access.conf
1086 cp -p %{SOURCE102} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_alias.conf
1087 cp -p %{SOURCE103} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_auth.conf
1088 cp -p %{SOURCE104} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_cgi.conf
1089 cp -p %{SOURCE137} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_cgi_php.conf
1090 cp -p %{SOURCE105} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_cml.conf
1091 cp -p %{SOURCE107} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_deflate.conf
1092 cp -p %{SOURCE108} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_dirlisting.conf
1093 cp -p %{SOURCE109} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evasive.conf
1094 cp -p %{SOURCE110} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evhost.conf
1095 cp -p %{SOURCE112} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_fastcgi.conf
1096 cp -p %{SOURCE113} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_flv_streaming.conf
1098 cp -p %{SOURCE140} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_geoip.conf
1100 %if %{with maxminddb}
1101 cp -p %{SOURCE147} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_maxminddb.conf
1104 cp -p %{SOURCE141} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_authn_ldap.conf
1107 cp -p %{SOURCE145} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_authn_mysql.conf
1109 %if %{with h264_streaming}
1110 cp -p %{SOURCE136} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_h264_streaming.conf
1112 cp -p %{SOURCE114} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_indexfile.conf
1113 cp -p %{SOURCE142} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_openssl.conf
1114 cp -p %{SOURCE115} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_proxy.conf
1115 cp -p %{SOURCE118} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_rrdtool.conf
1116 cp -p %{SOURCE119} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_scgi.conf
1117 cp -p %{SOURCE120} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_secdownload.conf
1118 cp -p %{SOURCE121} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_setenv.conf
1119 cp -p %{SOURCE122} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_simple_vhost.conf
1120 cp -p %{SOURCE123} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_ssi.conf
1121 cp -p %{SOURCE124} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_staticfile.conf
1122 cp -p %{SOURCE125} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_status.conf
1123 %if %{with mod_trigger_b4_dl}
1124 cp -p %{SOURCE126} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_trigger_b4_dl.conf
1126 cp -p %{SOURCE139} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_uploadprogress.conf
1127 cp -p %{SOURCE127} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_userdir.conf
1128 cp -p %{SOURCE128} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_usertrack.conf
1129 cp -p %{SOURCE143} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_vhostdb.conf
1130 cp -p %{SOURCE129} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_webdav.conf
1131 cp -p %{SOURCE144} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_wstunnel.conf
1133 cp -p %{SOURCE133} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_mysql_vhost.conf
1135 cp -p %{SOURCE146} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_sockproxy.conf
1137 cp -p %{SOURCE134} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/55_mod_magnet.conf
1138 cp -p %{SOURCE111} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/55_mod_expire.conf
1140 cp -p %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_accesslog.conf
1141 cp -p %{SOURCE135} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/91_mod_extforward.conf
1143 cp -p %{SOURCE130} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/php-spawned.conf
1144 cp -p %{SOURCE131} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/php-external.conf
1145 cp -p %{SOURCE132} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/ssl.conf
1147 touch $RPM_BUILD_ROOT/var/lib/lighttpd/lighttpd.rrd
1149 install -d $RPM_BUILD_ROOT/etc/tmpwatch
1151 touch $RPM_BUILD_ROOT/var/log/%{name}/{access,error,breakage}.log
1154 rm -rf $RPM_BUILD_ROOT
1157 %groupadd -g 109 lighttpd
1158 %groupadd -g 51 http
1159 %useradd -u 116 -d %{_lighttpddir} -c "Lighttpd User" -g lighttpd lighttpd
1160 %addusertogroup lighttpd http
1163 for a in access.log error.log breakage.log; do
1164 if [ ! -f /var/log/%{name}/$a ]; then
1165 touch /var/log/%{name}/$a
1166 chown lighttpd:lighttpd /var/log/%{name}/$a
1167 chmod 644 /var/log/%{name}/$a
1170 /sbin/chkconfig --add %{name}
1171 %systemd_post %{name}.service
1174 if [ "$1" = "0" ]; then
1175 %service %{name} stop
1176 /sbin/chkconfig --del %{name}
1178 %systemd_preun %{name}.service
1181 if [ "$1" = "0" ]; then
1182 %userremove lighttpd
1183 %groupremove lighttpd
1189 # minimizing lighttpd restarts logics. we restart webserver:
1191 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
1192 # 2. first install of module (post: $1 = 1)
1193 # 2. uninstall of module (postun: $1 = 0)
1195 # the strict internal deps between lighttpd modules and
1196 # main package are very important for all this to work.
1197 %service %{name} restart "Lighttpd webserver"
1200 # macro called at module post scriptlet
1201 %define module_post \
1202 if [ "$1" = "1" ]; then \
1203 %service -q lighttpd restart \
1206 # macro called at module postun scriptlet
1207 %define module_postun \
1208 if [ "$1" = "0" ]; then \
1209 %service -q lighttpd restart \
1212 # it's sooo annoying to write them
1213 %define module_scripts() \
1220 %module_scripts mod_access
1221 %module_scripts mod_accesslog
1222 %module_scripts mod_alias
1223 %module_scripts mod_auth
1224 %module_scripts mod_authn_file
1225 %module_scripts mod_authn_gssapi
1226 %module_scripts mod_authn_ldap
1227 %module_scripts mod_authn_mysql
1228 %module_scripts mod_cgi
1229 %module_scripts mod_cml
1230 %module_scripts mod_deflate
1231 %module_scripts mod_dirlisting
1232 %module_scripts mod_evasive
1233 %module_scripts mod_evhost
1234 %module_scripts mod_expire
1235 %module_scripts mod_extforward
1236 %module_scripts mod_fastcgi
1237 %module_scripts mod_flv_streaming
1238 %module_scripts mod_geoip
1239 %module_scripts mod_h264_streaming
1240 %module_scripts mod_indexfile
1241 %module_scripts mod_magnet
1242 %module_scripts mod_maxminddb
1243 %module_scripts mod_mysql_vhost
1244 %module_scripts mod_openssl
1245 %module_scripts mod_proxy
1246 %module_scripts mod_redirect
1247 %module_scripts mod_rewrite
1248 %module_scripts mod_scgi
1249 %module_scripts mod_secdownload
1250 %module_scripts mod_setenv
1251 %module_scripts mod_simple_vhost
1252 %module_scripts mod_sockproxy
1253 %module_scripts mod_ssi
1254 %module_scripts mod_staticfile
1255 %module_scripts mod_status
1256 %module_scripts mod_trigger_b4_dl
1257 %module_scripts mod_uploadprogress
1258 %module_scripts mod_userdir
1259 %module_scripts mod_usertrack
1260 %module_scripts mod_vhostdb
1261 %module_scripts mod_webdav
1262 %module_scripts mod_wstunnel
1264 %module_scripts php-spawned
1265 %module_scripts php-external
1268 if [ ! -f /var/lib/lighttpd/lighttpd.rrd ]; then
1269 touch /var/lib/lighttpd/lighttpd.rrd
1270 chown lighttpd:stats /var/lib/lighttpd/lighttpd.rrd
1271 chmod 640 /var/lib/lighttpd/lighttpd.rrd
1279 %triggerpostun -- %{name} < 1.4.18-10.1
1280 if [ -f /etc/lighttpd/conf.d/50_mod_extforward.conf.rpmsave ]; then
1281 cp -f /etc/lighttpd/conf.d/91_mod_extforward.conf{,.rpmnew}
1282 mv -f /etc/lighttpd/conf.d/{50_mod_extforward.conf.rpmsave,91_mod_extforward.conf}
1286 %defattr(644,root,root,755)
1287 %doc NEWS README PLD-TODO
1288 %dir %attr(751,root,lighttpd) %{_sysconfdir}
1289 %dir %attr(750,root,root) %{_sysconfdir}/conf.d
1290 %dir %attr(750,root,root) %{_sysconfdir}/vhosts.d
1291 %dir %attr(750,root,root) %{_sysconfdir}/webapps.d
1292 %dir %attr(700,root,root) %{_sysconfdir}/ssl
1293 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
1294 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mime.types.conf
1295 %attr(640,root,lighttpd) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.user
1297 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
1298 %attr(750,root,root) %dir /var/log/archive/%{name}
1299 %dir %attr(751,root,root) /var/log/%{name}
1300 %attr(644,lighttpd,lighttpd) %ghost /var/log/%{name}/access.log
1301 %attr(644,lighttpd,lighttpd) %ghost /var/log/%{name}/error.log
1302 %attr(644,lighttpd,lighttpd) %ghost /var/log/%{name}/breakage.log
1303 %dir %attr(770,root,lighttpd) /var/run/%{name}
1304 %{systemdtmpfilesdir}/%{name}.conf
1305 %{systemdunitdir}/%{name}.service
1306 %attr(754,root,root) /etc/rc.d/init.d/%{name}
1307 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
1308 %attr(755,root,root) %{_sbindir}/lighttpd
1309 %attr(755,root,root) %{_sbindir}/lighttpd-angel
1311 %{_mandir}/man8/lighttpd.8*
1312 %{_mandir}/man8/lighttpd-angel.8*
1313 %dir %{_lighttpddir}
1314 %dir %{_lighttpddir}/cgi-bin
1315 %dir %{_lighttpddir}/html
1316 %config(noreplace,missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/index.html
1317 %config(missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/*.png
1318 %config(missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/*.ico
1320 %dir %{_datadir}/lighttpd
1321 %dir %{_datadir}/lighttpd/errordocs
1323 # rrdtool database is stored there
1324 %dir %attr(771,root,lighttpd) /var/lib/lighttpd
1327 %defattr(644,root,root,755)
1328 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_access.conf
1329 %attr(755,root,root) %{pkglibdir}/mod_access.so
1331 %files mod_accesslog
1332 %defattr(644,root,root,755)
1333 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_accesslog.conf
1334 %attr(755,root,root) %{pkglibdir}/mod_accesslog.so
1337 %defattr(644,root,root,755)
1338 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_alias.conf
1339 %attr(755,root,root) %{pkglibdir}/mod_alias.so
1342 %defattr(644,root,root,755)
1343 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_auth.conf
1344 %attr(755,root,root) %{pkglibdir}/mod_auth.so
1346 %files mod_authn_file
1347 %defattr(644,root,root,755)
1348 %attr(755,root,root) %{pkglibdir}/mod_authn_file.so
1351 %files mod_authn_gssapi
1352 %defattr(644,root,root,755)
1353 %attr(755,root,root) %{pkglibdir}/mod_authn_gssapi.so
1357 %files mod_authn_ldap
1358 %defattr(644,root,root,755)
1359 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_authn_ldap.conf
1360 %attr(755,root,root) %{pkglibdir}/mod_authn_ldap.so
1364 %files mod_authn_mysql
1365 %defattr(644,root,root,755)
1366 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_authn_mysql.conf
1367 %attr(755,root,root) %{pkglibdir}/mod_authn_mysql.so
1371 %defattr(644,root,root,755)
1372 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_cgi.conf
1373 %attr(755,root,root) %{pkglibdir}/mod_cgi.so
1376 %defattr(644,root,root,755)
1377 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_cgi_php.conf
1380 %defattr(644,root,root,755)
1381 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_cml.conf
1382 %attr(755,root,root) %{pkglibdir}/mod_cml.so
1385 %defattr(644,root,root,755)
1386 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_deflate.conf
1387 %attr(755,root,root) %{pkglibdir}/mod_deflate.so
1389 %files mod_dirlisting
1390 %defattr(644,root,root,755)
1391 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_dirlisting.conf
1392 %attr(755,root,root) %{pkglibdir}/mod_dirlisting.so
1395 %defattr(644,root,root,755)
1396 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_evasive.conf
1397 %attr(755,root,root) %{pkglibdir}/mod_evasive.so
1400 %defattr(644,root,root,755)
1401 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_evhost.conf
1402 %attr(755,root,root) %{pkglibdir}/mod_evhost.so
1405 %defattr(644,root,root,755)
1406 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_expire.conf
1407 %attr(755,root,root) %{pkglibdir}/mod_expire.so
1409 %files mod_extforward
1410 %defattr(644,root,root,755)
1411 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_extforward.conf
1412 %attr(755,root,root) %{pkglibdir}/mod_extforward.so
1415 %defattr(644,root,root,755)
1416 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_fastcgi.conf
1417 %attr(755,root,root) %{pkglibdir}/mod_fastcgi.so
1419 %files mod_flv_streaming
1420 %defattr(644,root,root,755)
1421 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_flv_streaming.conf
1422 %attr(755,root,root) %{pkglibdir}/mod_flv_streaming.so
1426 %defattr(644,root,root,755)
1427 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_geoip.conf
1428 %attr(755,root,root) %{pkglibdir}/mod_geoip.so
1431 %if %{with h264_streaming}
1432 %files mod_h264_streaming
1433 %defattr(644,root,root,755)
1434 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_h264_streaming.conf
1435 %attr(755,root,root) %{pkglibdir}/mod_h264_streaming.so
1438 %files mod_indexfile
1439 %defattr(644,root,root,755)
1440 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_indexfile.conf
1441 %attr(755,root,root) %{pkglibdir}/mod_indexfile.so
1444 %defattr(644,root,root,755)
1445 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_magnet.conf
1446 %attr(755,root,root) %{pkglibdir}/mod_magnet.so
1448 %if %{with maxminddb}
1449 %files mod_maxminddb
1450 %defattr(644,root,root,755)
1451 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_maxminddb.conf
1452 %attr(755,root,root) %{pkglibdir}/mod_maxminddb.so
1456 %files mod_mysql_vhost
1457 %defattr(644,root,root,755)
1458 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_mysql_vhost.conf
1459 %attr(755,root,root) %{pkglibdir}/mod_mysql_vhost.so
1463 %defattr(644,root,root,755)
1464 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_proxy.conf
1465 %attr(755,root,root) %{pkglibdir}/mod_proxy.so
1468 %defattr(644,root,root,755)
1469 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_openssl.conf
1470 %attr(755,root,root) %{pkglibdir}/mod_openssl.so
1473 %defattr(644,root,root,755)
1474 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_redirect.conf
1475 %attr(755,root,root) %{pkglibdir}/mod_redirect.so
1478 %defattr(644,root,root,755)
1479 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_rewrite.conf
1480 %attr(755,root,root) %{pkglibdir}/mod_rewrite.so
1483 %defattr(644,root,root,755)
1484 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_rrdtool.conf
1485 %attr(755,root,root) %{pkglibdir}/mod_rrdtool.so
1486 %attr(640,lighttpd,stats) %ghost /var/lib/lighttpd/lighttpd.rrd
1489 %defattr(644,root,root,755)
1490 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_scgi.conf
1491 %attr(755,root,root) %{pkglibdir}/mod_scgi.so
1493 %files mod_secdownload
1494 %defattr(644,root,root,755)
1495 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_secdownload.conf
1496 %attr(755,root,root) %{pkglibdir}/mod_secdownload.so
1499 %defattr(644,root,root,755)
1500 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_setenv.conf
1501 %attr(755,root,root) %{pkglibdir}/mod_setenv.so
1503 %files mod_simple_vhost
1504 %defattr(644,root,root,755)
1505 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_simple_vhost.conf
1506 %attr(755,root,root) %{pkglibdir}/mod_simple_vhost.so
1508 %files mod_sockproxy
1509 %defattr(644,root,root,755)
1510 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_sockproxy.conf
1511 %attr(755,root,root) %{pkglibdir}/mod_sockproxy.so
1514 %defattr(644,root,root,755)
1515 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_ssi.conf
1516 %attr(755,root,root) %{pkglibdir}/mod_ssi.so
1518 %files mod_staticfile
1519 %defattr(644,root,root,755)
1520 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_staticfile.conf
1521 %attr(755,root,root) %{pkglibdir}/mod_staticfile.so
1524 %defattr(644,root,root,755)
1525 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_status.conf
1526 %attr(755,root,root) %{pkglibdir}/mod_status.so
1528 %if %{with mod_trigger_b4_dl}
1529 %files mod_trigger_b4_dl
1530 %defattr(644,root,root,755)
1531 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_trigger_b4_dl.conf
1532 %attr(755,root,root) %{pkglibdir}/mod_trigger_b4_dl.so
1535 %files mod_uploadprogress
1536 %defattr(644,root,root,755)
1537 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_uploadprogress.conf
1538 %attr(755,root,root) %{pkglibdir}/mod_uploadprogress.so
1541 %defattr(644,root,root,755)
1542 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_userdir.conf
1543 %attr(755,root,root) %{pkglibdir}/mod_userdir.so
1545 %files mod_usertrack
1546 %defattr(644,root,root,755)
1547 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_usertrack.conf
1548 %attr(755,root,root) %{pkglibdir}/mod_usertrack.so
1551 %defattr(644,root,root,755)
1552 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_vhostdb.conf
1553 %attr(755,root,root) %{pkglibdir}/mod_vhostdb.so
1556 %attr(755,root,root) %{pkglibdir}/mod_vhostdb_dbi.so
1559 %attr(755,root,root) %{pkglibdir}/mod_vhostdb_ldap.so
1562 %attr(755,root,root) %{pkglibdir}/mod_vhostdb_mysql.so
1565 %attr(755,root,root) %{pkglibdir}/mod_vhostdb_pgsql.so
1569 %defattr(644,root,root,755)
1570 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_webdav.conf
1571 %attr(755,root,root) %{pkglibdir}/mod_webdav.so
1574 %defattr(644,root,root,755)
1575 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_wstunnel.conf
1576 %attr(755,root,root) %{pkglibdir}/mod_wstunnel.so
1579 %defattr(644,root,root,755)
1580 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/php-spawned.conf
1583 %defattr(644,root,root,755)
1584 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/php-external.conf
1587 %defattr(644,root,root,755)
1588 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ssl.conf
1590 %files -n monit-rc-lighttpd
1591 %defattr(644,root,root,755)
1592 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc