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