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