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