2 # - don't use lighttpd-angel in systemd. systemd does the respawn/recovery logic itself
3 # - provide or autogenerated self signed cert in post, so after installing
4 # lighttpd-ssl server will still work
5 # - patch with mod_websocket: https://github.com/Juniper/lighttpd-for-juise
6 # - lighttpd-mod_fd_transfer: https://redmine.lighttpd.net/boards/3/topics/4992
7 # - add db specific mod_vhostdb_* sub-packages
8 # - package mod_sockproxy
9 # https://github.com/lighttpd/lighttpd1.4/commit/c4d743bb4d0cc045d41322169a4e36a151e247f1
10 # - TLS library options
11 # - mod_openssl (existing)
12 # - mod_mbedtls (experimental)
13 # - mod_wolfssl (experimental)
14 # - mod_gnutls (experimental)
15 # - mod_nss (experimental)
18 %bcond_with tests # build with tests
19 %bcond_without xattr # support of extended attributes
20 %bcond_without ipv6 # IPv4-only version (doesn't require IPv6 in kernel)
21 %bcond_without largefile # largefile support (see notes above)
22 %bcond_without dbi # libdbi, enables mod_vhostdb_dbi
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
42 %if %{with webdav_locks}
43 %define webdav_progs 1
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
51 Summary: Fast and light HTTP server
52 Summary(pl.UTF-8): Szybki i lekki serwer HTTP
57 Group: Networking/Daemons/HTTP
58 Source0: https://download.lighttpd.net/lighttpd/releases-1.4.x/%{name}-%{version}.tar.xz
59 # Source0-md5: a8838dac90fcddbcc05c0d1877bd8cdf
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
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
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
140 BuildRequires: automake
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}
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)
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)
196 %define pkglibdir %{_libdir}/%{name}
197 %define _lighttpddir /home/services/%{name}
198 %define _sysconfdir /etc/%{name}
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
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.
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)
227 %description mod_access
228 The access module is used to deny access to files with given trailing
231 %description mod_access -l pl.UTF-8
232 Moduł access służy do ograniczania dostępu do plików o podanych
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}
242 %description mod_accesslog
243 CLF like by default, flexible like Apache.
245 %description mod_accesslog -l pl.UTF-8
246 Domyślnie podobny do CLF, elastyczny jak Apache.
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)
256 %description mod_alias
257 The alias module is used to specify a special document-root for a
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.
265 Summary: lighttpd module for authentication support
266 Summary(pl.UTF-8): Moduł lighttpd do obsługi uwierzytelniania
267 Group: Networking/Daemons/HTTP
268 URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModAuth
269 Requires: %{name} = %{version}-%{release}
270 Requires: %{name}-mod_authn_file = %{version}-%{release}
272 Suggests: %{name}-mod_authn_ldap = %{version}-%{release}
275 Suggests: %{name}-mod_authn_mysql = %{version}-%{release}
277 Provides: webserver(auth)
279 %description mod_auth
280 lighttpd supportes both authentication method described by RFC 2617:
283 %description mod_auth -l pl.UTF-8
284 lighttpd obsługuje obie metody uwierzytelniania opisane w RFC 2617:
287 %package mod_authn_file
288 Summary: lighttpd authn_file module
289 Group: Networking/Daemons/HTTP
290 Requires: %{name} = %{version}-%{release}
292 %description mod_authn_file
293 lighttpd authn_file module.
295 %package mod_authn_gssapi
296 Summary: lighttpd authn_gssapi module
297 Group: Networking/Daemons/HTTP
298 Requires: %{name} = %{version}-%{release}
300 %description mod_authn_gssapi
301 lighttpd authn_gssapi module.
303 %package mod_authn_ldap
304 Summary: lighttpd authn_ldap module
305 Group: Networking/Daemons/HTTP
306 Requires: %{name} = %{version}-%{release}
308 %description mod_authn_ldap
309 lighttpd authn_ldap module.
311 %package mod_authn_mysql
312 Summary: lighttpd authn_mysql module
313 Group: Networking/Daemons/HTTP
314 Requires: %{name} = %{version}-%{release}
316 %description mod_authn_mysql
317 lighttpd authn_mysql module.
319 mod_authn_mysql is DEPRECATED; use mod_authn_dbi.
321 Note: mod_authn_mysql will be removed from a future lighttpd release.
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)
333 The cgi module provides a CGI-conforming interface.
335 CGI programs allow you to enhance the functionality of the server in a
336 very straight and simple way.
338 %description mod_cgi -l pl.UTF-8
339 Moduł cgi udostępnia interfejs zgodny z CGI.
341 Programy CGI pozwalają rozszerzać funkcjonalność serwera w bardzo
342 prosty i naturalny sposób.
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}
350 Provides: webserver(php)
352 %description mod_cgi_php
353 The cgi module provides a CGI-conforming interface for PHP scripts.
355 CGI programs allow you to enhance the functionality of the server in a
356 very straight and simple way.
358 %description mod_cgi_php -l pl.UTF-8
359 Moduł cgi udostępnia interfejs zgodny z CGI do wywoływania skryptów
362 Programy CGI pozwalają rozszerzać funkcjonalność serwera w bardzo
363 prosty i naturalny sposób.
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}
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
377 mod_cml is DEPRECATED; use mod_magnet.
379 Note: mod_cml will be removed from a future lighttpd release.
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.
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}
392 %description mod_compress
393 Output compression reduces the network load and can improve the
394 overall throughput of the webserver.
396 Only static content is supported up to now.
398 The server negotiates automatically which compression method is used.
399 Supported are gzip, deflate, bzip.
401 mod_compress is DEPRECATED; use mod_deflate. mod_compress has been
402 subsumed by mod_deflate.
404 Note: mod_compress config options may be removed in a future release.
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.
410 Jak na razie obsługiwana jest tylko statyczna treść.
412 Serwer automatycznie negocjuje, która metoda kompresji jest używana.
413 Obsługiwane są gzip, deflate i bzip.
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
423 %define _deflate_encodings deflate gzip %{?with_bzip2:bzip2} %{?with_brotli:brotli}
424 %define deflate_encodings %(echo %_deflate_encodings | sed -e 's/ /, /g')
426 %description mod_deflate
427 mod_deflate enables output compression of responses
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.
435 This module supports %{deflate_encodings} encodings.
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
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.
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
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}
458 %description mod_dirlisting
459 mod_dirlisting generates HTML based directory listings with full CSS
462 %description mod_dirlisting -l pl.UTF-8
463 mod_dirlisting tworzy listingi katalogów w formacie HTML z pełną
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}
473 %description mod_evasive
474 lighttpd evasive module.
476 %description mod_evasive -l pl.UTF-8
477 Moduł evasive dla lighttpd.
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}
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
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
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)
504 %description mod_expire
505 mod_expire controls the setting of the the Expire response header.
507 %description mod_expire -l pl.UTF-8
508 mod_expire steruje ustawianiem nagłówka odpowiedzi Expire.
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}
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.
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.
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}
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
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.
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}
551 %description mod_flv_streaming
552 lighttpd module for flv streaming.
554 %description mod_flv_streaming -l pl.UTF-8
555 Moduł lighttpd do streamingu flv.
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}
563 %description mod_geoip
564 mod_geoip is a module for fast ip/location lookups. It uses MaxMind
565 GeoIP / GeoCity databases.
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
571 mod_geoip is DEPRECATED; use mod_maxminddb.
573 Note: mod_geoip will be removed from a future lighttpd release.
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}
583 %description mod_h264_streaming
584 A lighttpd plugin for pseudo-streaming QuickTime/MPEG-4 files.
586 %description mod_h264_streaming -l pl.UTF-8
587 Moduł lighttpd do pseudostreamingu plików QuickTime/MPEG-4.
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)
597 %description mod_indexfile
600 %description mod_indexfile -l pl.UTF-8
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}
610 %description mod_magnet
611 mod_magnet is a module to control the request handling in lighty.
613 %description mod_magnet -l pl.UTF-8
614 mod_magnet to moduł sterujący obsługą żądań w lighty.
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}
622 %description mod_maxminddb
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
632 %description mod_mysql_vhost
633 This module provides virtual hosts (vhosts) based on a MySQL table.
635 mod_mysql_vhost is DEPRECATED; use mod_vhostdb_dbi or
638 Note: mod_mysql_vhost will be removed from a future lighttpd release.
640 %description mod_mysql_vhost -l pl.UTF-8
641 Ten moduł udostępnia wirtualne hosty (vhosty) oparte na tabeli MySQL.
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}
649 %description mod_openssl
650 TLS/SSL for lighttpd.
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}
659 %description mod_proxy
660 The proxy module a simplest way to connect lighttpd to Java servers
661 which have a HTTP-interface.
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.
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}
674 %description mod_proxy_core
675 The proxy module a simplest way to connect lighttpd to java servers
676 which have a HTTP-interface.
678 This is the new proxy code.
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.
684 Ten pakiet zawiera nowy moduł proxy.
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}
693 %description mod_redirect
694 With mod_redirect module you can redirect a set of URLs externally.
696 %description mod_redirect -l pl.UTF-8
697 Przy użyciu modułu mod_redirect można przekierować zbiór URL-i na
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)
708 %description mod_rewrite
709 This module allows you rewrite a set of URLs interally in the
710 webserver BEFORE they are handled.
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ą.
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}
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).
728 With this module you can monitor the traffic and load on the
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
736 Przy użyciu tego modułu można monitorować ruch i obciążenie serwera
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}
746 %description mod_scgi
747 SCGI is a fast and simplified CGI interface. It is mostly used by
750 %description mod_scgi -l pl.UTF-8
751 SCGI to szybki i uproszczony interfejs CGI. Jest używany głównie przez
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}
761 %description mod_secdownload
762 With this module you can easily achieve authenticated file requests
763 and a countermeasure against deep-linking.
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.
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)
777 %description mod_setenv
778 mod_setenv is used to add request headers.
780 %description mod_setenv -l pl.UTF-8
781 mod_setenv służy do dodawania nagłówków żądań.
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
791 %description mod_simple_vhost
792 lighttpd module for simple virtual-hosting.
794 %description mod_simple_vhost -l pl.UTF-8
795 Moduł lighttpd do prostych hostów wirtualnych.
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}
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.
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}
816 The module for server-side includes provides a compatability layer for
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.
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}
829 %description mod_staticfile
830 lighttpd module for static file serving.
832 %description mod_staticfile -l pl.UTF-8
833 Moduł lighttpd do serwowania statycznych plików.
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}
842 %description mod_status
843 mod_status displays the server's status and configuration.
845 %description mod_status -l pl.UTF-8
846 mod_status wyświetla stan i konfigurację serwera.
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}
855 %description mod_trigger_b4_dl
856 Another anti hot-linking module.
858 %description mod_trigger_b4_dl -l pl.UTF-8
859 Jeszcze jeden moduł blokujący bezpośrednie linkowanie.
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}
867 %description mod_uploadprogress
868 This module can be used to track the progress of a current upload.
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}
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.
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.
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}
892 %description mod_usertrack
893 lighttpd usertrack module.
895 %description mod_usertrack -l pl.UTF-8
896 Moduł usertrack dla lighttpd.
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}
904 %description mod_vhostdb
905 Virtual host database to provide vhost docroot.
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}
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.
924 - LOCK (experimental)
926 and the usual GET, POST, HEAD from HTTP/1.1.
928 So far mounting a webdav resource into Windows XP works and the basic
929 litmus tests are passed.
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ą:
940 - LOCK (experimental)
942 oraz zwykłe GET, POST, HEAD z HTTP/1.1.
944 Jak na razie montowanie zasobu webdav pod Windows XP działa i
945 podstawowe testy lakmusowe przechodzą.
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}
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.
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}
966 Provides: webserver(php)
967 Obsoletes: lighttpd-php-external
969 %description php-spawned
970 PHP support via FastCGI, spawned by lighttpd.
972 %description php-spawned -l pl.UTF-8
973 Obsługa PHP przez FastCGI, uruchamiane przez lighttpd.
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}
982 Suggests: php-fcgi-init
983 Obsoletes: lighttpd-php-spawned
985 %description php-external
986 PHP support via FastCGI, spawning controlled externally.
988 %description php-external -l pl.UTF-8
989 Obsługa PHP przez FastCGI, uruchamianie sterowane zewnętrznie.
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
1001 lighttpd support for SSLv2 and SSLv3.
1003 %description ssl -l pl.UTF-8
1004 Obsługa SSLv2 i SSLv3 dla lighttpd.
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}
1013 %description -n monit-rc-lighttpd
1014 monitrc file for monitoring lighttpd web server.
1016 %description -n monit-rc-lighttpd -l pl.UTF-8
1017 Plik monitrc do monitorowania serwera www lighttpd.
1022 #%patch1 -p1 UPDATE (and submit upstream!) if you need this
1023 %{?with_h264_streaming:%patch2 -p1}
1027 rm -f src/mod_ssi_exprparser.h # bad patching: should be removed by is emptied instead
1029 # build mime.types.conf
1030 sh %{SOURCE6} /etc/mime.types
1031 cp -p %{SOURCE14} PLD-TODO
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
1039 ver=$(awk '/AC_INIT/{a=$2;gsub(/[\[\],]/, "", a); print a}' configure.ac)
1040 if [ "$ver" != "%{version}" ]; then
1041 : configure.ac specifies wrong version
1045 %{__aclocal} -I m4 -I scripts/m4
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}
1074 # -j1 as src/mod_ssi_exprparser.h regeneration deps are broken
1078 export LIGHTTPD_TEST_PORT=$((2048 + RANDOM % 10))
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}}
1092 DESTDIR=$RPM_BUILD_ROOT
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
1102 rm -f $RPM_BUILD_ROOT%{pkglibdir}/*.la
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
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.
1113 conf_available=$RPM_BUILD_ROOT%{_sysconfdir}/conf.d
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
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
1132 cp -p %{SOURCE140} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_geoip.conf
1134 %if %{with maxminddb}
1135 cp -p %{SOURCE147} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_maxminddb.conf
1138 cp -p %{SOURCE141} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_authn_ldap.conf
1141 cp -p %{SOURCE145} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_authn_mysql.conf
1143 %if %{with h264_streaming}
1144 cp -p %{SOURCE136} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_h264_streaming.conf
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
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
1167 cp -p %{SOURCE133} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_mysql_vhost.conf
1169 cp -p %{SOURCE146} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_sockproxy.conf
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
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
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
1181 touch $RPM_BUILD_ROOT/var/lib/lighttpd/lighttpd.rrd
1183 install -d $RPM_BUILD_ROOT/etc/tmpwatch
1185 touch $RPM_BUILD_ROOT/var/log/%{name}/{access,error,breakage}.log
1188 rm -rf $RPM_BUILD_ROOT
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
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
1204 /sbin/chkconfig --add %{name}
1205 %systemd_post %{name}.service
1208 if [ "$1" = "0" ]; then
1209 %service %{name} stop
1210 /sbin/chkconfig --del %{name}
1212 %systemd_preun %{name}.service
1215 if [ "$1" = "0" ]; then
1216 %userremove lighttpd
1217 %groupremove lighttpd
1223 # minimizing lighttpd restarts logics. we restart webserver:
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)
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"
1234 # macro called at module post scriptlet
1235 %define module_post \
1236 if [ "$1" = "1" ]; then \
1237 %service -q lighttpd restart \
1240 # macro called at module postun scriptlet
1241 %define module_postun \
1242 if [ "$1" = "0" ]; then \
1243 %service -q lighttpd restart \
1246 # it's sooo annoying to write them
1247 %define module_scripts() \
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
1298 %module_scripts php-spawned
1299 %module_scripts php-external
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
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}
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
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
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
1354 %dir %{_datadir}/lighttpd
1355 %dir %{_datadir}/lighttpd/errordocs
1357 # rrdtool database is stored there
1358 %dir %attr(771,root,lighttpd) /var/lib/lighttpd
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
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
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
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
1380 %files mod_authn_file
1381 %defattr(644,root,root,755)
1382 %attr(755,root,root) %{pkglibdir}/mod_authn_file.so
1385 %files mod_authn_gssapi
1386 %defattr(644,root,root,755)
1387 %attr(755,root,root) %{pkglibdir}/mod_authn_gssapi.so
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
1590 %attr(755,root,root) %{pkglibdir}/mod_vhostdb_dbi.so
1593 %attr(755,root,root) %{pkglibdir}/mod_vhostdb_ldap.so
1596 %attr(755,root,root) %{pkglibdir}/mod_vhostdb_mysql.so
1599 %attr(755,root,root) %{pkglibdir}/mod_vhostdb_pgsql.so
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
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
1613 %defattr(644,root,root,755)
1614 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/php-spawned.conf
1617 %defattr(644,root,root,755)
1618 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/php-external.conf
1621 %defattr(644,root,root,755)
1622 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ssl.conf
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