%define webdav_progs 1
%endif
-%define _rel 6.2
+%define _rel 3
Summary: Fast and light HTTP server
-Summary(pl.UTF-8): Szybki i lekki serwer HTTP
+Summary(pl.UTF-8): Szybki i lekki serwer HTTP
Name: lighttpd
-Version: 1.4.13
+Version: 1.4.17
Release: %{_rel}%{?_snap:.%(echo %{_snap}|tr - _)}%{?_svn:.%{_svn}}
License: BSD
Group: Networking/Daemons
-Source0: http://www.lighttpd.net/download/%{name}-%{version}.tar.gz
-# Source0-md5: d775d6478391b95d841a1018c8db0b95
+Source0: http://www.lighttpd.net/download/%{name}-%{version}.tar.bz2
+# Source0-md5: 85c99c2d6baf8ad9e38e6267efe7d9aa
Source1: %{name}.init
Source2: %{name}.conf
Source3: %{name}.user
Source133: %{name}-mod_mysql_vhost.conf
Source134: %{name}-mod_magnet.conf
Source135: %{name}-mod_extforward.conf
-#Patch100: %{name}-branch.diff
+#Patch100: %{name}-branch.diff
Patch0: %{name}-use_bin_sh.patch
Patch1: %{name}-mod_evasive-status_code.patch
-Patch2: %{name}-mod_deflate.patch
-Patch3: %{name}-mod_extforward-v2.patch
-Patch4: %{name}-mod_expire-weeks.patch
+#Patchx: %{name}-mod_deflate.patch
URL: http://www.lighttpd.net/
%{?with_xattr:BuildRequires: attr-devel}
BuildRequires: autoconf
%package mod_access
Summary: lighttpd module for making access restrictions
-Summary(pl.UTF-8): Moduł lighttpd ograniczający dostęp
+Summary(pl.UTF-8): Moduł lighttpd ograniczający dostęp
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
Provides: webserver(access)
%package mod_accesslog
Summary: lighttpd module to record access logs
-Summary(pl.UTF-8): Moduł lighttpd do zapisu logów dostępu
+Summary(pl.UTF-8): Moduł lighttpd do zapisu logów dostępu
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_alias
Summary: lighttpd module for making URL aliasing
-Summary(pl.UTF-8): Moduł lighttpd odpowiadający za aliasy URL-i
+Summary(pl.UTF-8): Moduł lighttpd odpowiadający za aliasy URL-i
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
Provides: webserver(alias)
%package mod_auth
Summary: lighttpd module for authentication support
-Summary(pl.UTF-8): Moduł lighttpd do obsługi uwierzytelniania
+Summary(pl.UTF-8): Moduł lighttpd do obsługi uwierzytelniania
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
Provides: webserver(auth)
%package mod_cgi
Summary: lighttpd module for CGI handling
-Summary(pl.UTF-8): Moduł lighttpd do obsługi CGI
+Summary(pl.UTF-8): Moduł lighttpd do obsługi CGI
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
Requires: %{name}-mod_alias = %{version}-%{release}
%package mod_cml
Summary: lighttpd module for Cache Meta Language
-Summary(pl.UTF-8): Moduł Cache Meta Language
+Summary(pl.UTF-8): Moduł Cache Meta Language
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_compress
Summary: lighttpd module for output compression
-Summary(pl.UTF-8): Moduł lighttpd do kompresji wyjścia
+Summary(pl.UTF-8): Moduł lighttpd do kompresji wyjścia
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_deflate
Summary: lighttpd module for output compression using deflate method
-Summary(pl.UTF-8): Moduł lighttpd do kompresji wyjścia metodą deflate
+Summary(pl.UTF-8): Moduł lighttpd do kompresji wyjścia metodą deflate
Group: Networking/Daemons
URL: http://trac.lighttpd.net/trac/wiki/Mod_Deflate
Requires: %{name} = %{version}-%{release}
%package mod_dirlisting
Summary: lighttpd module for directory listings
-Summary(pl.UTF-8): Moduł lighttpd do tworzenia listingów katalogów
+Summary(pl.UTF-8): Moduł lighttpd do tworzenia listingów katalogów
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_evasive
Summary: lighttpd evasive module
-Summary(pl.UTF-8): Moduł evasive dla lighttpd
+Summary(pl.UTF-8): Moduł evasive dla lighttpd
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_evhost
Summary: lighttpd module for enhanced virtual-hosting
-Summary(pl.UTF-8): Moduł lighttpd rozszerzający obsługę hostów wirtualnych
+Summary(pl.UTF-8): Moduł lighttpd rozszerzający obsługę hostów wirtualnych
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_expire
Summary: lighttpd module for controlling the expiration of content in caches
-Summary(pl.UTF-8): Moduł lighttpd sterujący wygasaniem treści w cache'ach
+Summary(pl.UTF-8): Moduł lighttpd sterujący wygasaniem treści w cache'ach
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_extforward
Summary: lighttpd module to extract the client's "real" IP from X-Forwarded-For header
-Summary(pl.UTF-8): Moduł lighttpd wyciągający "prawdziwy" IP klienta z nagłówka X-Forwarded-For
+Summary(pl.UTF-8): Moduł lighttpd wyciągający "prawdziwy" IP klienta z nagłówka X-Forwarded-For
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_fastcgi
Summary: lighttpd module for FastCGI interface
-Summary(pl.UTF-8): Moduł lighttpd do interfejsu FastCGI
+Summary(pl.UTF-8): Moduł lighttpd do interfejsu FastCGI
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_flv_streaming
Summary: lighttpd module for flv streaming
-Summary(pl.UTF-8): Moduł lighttpd do streamingu flv
+Summary(pl.UTF-8): Moduł lighttpd do streamingu flv
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_indexfile
Summary: lighttpd indexfile module
-Summary(pl.UTF-8): Moduł indexfile dla lighttpd
+Summary(pl.UTF-8): Moduł indexfile dla lighttpd
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
Provides: webserver(indexfile)
%package mod_magnet
Summary: lighttpd powermagnet module
-Summary(pl.UTF-8): Moduł powermagnet dla lighttpd
+Summary(pl.UTF-8): Moduł powermagnet dla lighttpd
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_mysql_vhost
Summary: lighttpd module for MySQL based vhosting
-Summary(pl.UTF-8): Moduł lighttpd obsługujący vhosty oparte na MySQL-u
+Summary(pl.UTF-8): Moduł lighttpd obsługujący vhosty oparte na MySQL-u
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
Conflicts: %{name}-mod_simple_vhost
%package mod_proxy
Summary: lighttpd module for proxying requests
-Summary(pl.UTF-8): Moduł lighttpd do przekazywania żądań
+Summary(pl.UTF-8): Moduł lighttpd do przekazywania żądań
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_proxy_core
Summary: lighttpd module for proxying requests
-Summary(pl.UTF-8): Moduł lighttpd do przekazywania żądań
+Summary(pl.UTF-8): Moduł lighttpd do przekazywania żądań
Group: Networking/Daemons
URL: http://blog.lighttpd.net/articles/2006/07/18/mod_proxy_core-commited-to-svn
Requires: %{name} = %{version}-%{release}
%package mod_redirect
Summary: lighttpd module for URL redirects
-Summary(pl.UTF-8): Moduł lighttpd do przekierowań URL-i
+Summary(pl.UTF-8): Moduł lighttpd do przekierowań URL-i
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_rewrite
Summary: lighttpd module for internal redirects, URL rewrite
-Summary(pl.UTF-8): Moduł lighttpd do wewnętrznych przekierowań i przepisywania URL-i
+Summary(pl.UTF-8): Moduł lighttpd do wewnętrznych przekierowań i przepisywania URL-i
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_rrdtool
Summary: lighttpd module for monitoring traffic and server load
-Summary(pl.UTF-8): Moduł lighttpd do monitorowania ruchu i obciążenia serwera
+Summary(pl.UTF-8): Moduł lighttpd do monitorowania ruchu i obciążenia serwera
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
Requires: rrdtool
%package mod_scgi
Summary: lighttpd module for SCGI interface
-Summary(pl.UTF-8): Moduł lighttpd do interfejsu SCGI
+Summary(pl.UTF-8): Moduł lighttpd do interfejsu SCGI
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_secdownload
Summary: lighttpd module for secure and fast downloading
-Summary(pl.UTF-8): Moduł lighttpd do bezpiecznego i szybkiego ściągania danych
+Summary(pl.UTF-8): Moduł lighttpd do bezpiecznego i szybkiego ściągania danych
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_setenv
Summary: lighttpd module for setting conditional request headers
-Summary(pl.UTF-8): Moduł lighttpd do ustawiania warunkowych nagłówków żądań
+Summary(pl.UTF-8): Moduł lighttpd do ustawiania warunkowych nagłówków żądań
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_simple_vhost
Summary: lighttpd module for simple virtual-hosting
-Summary(pl.UTF-8): Moduł lighttpd do prostych hostów wirtualnych
+Summary(pl.UTF-8): Moduł lighttpd do prostych hostów wirtualnych
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
Conflicts: %{name}-mod_mysql_vhost
%package mod_ssi
Summary: lighttpd module for server-side includes
-Summary(pl.UTF-8): Moduł lighttpd do SSI (server-side includes)
+Summary(pl.UTF-8): Moduł lighttpd do SSI (server-side includes)
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_staticfile
Summary: lighttpd module for static file serving
-Summary(pl.UTF-8): Moduł lighttpd do serwowania statycznych plików
+Summary(pl.UTF-8): Moduł lighttpd do serwowania statycznych plików
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_status
Summary: lighttpd module for displaying server status
-Summary(pl.UTF-8): Moduł lighttpd do wyświetlania stanu serwera
+Summary(pl.UTF-8): Moduł lighttpd do wyświetlania stanu serwera
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_trigger_b4_dl
Summary: Trigger before Download
-Summary(pl.UTF-8): Wyzwalacz przed ściąganiem
+Summary(pl.UTF-8): Wyzwalacz przed ściąganiem
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_userdir
Summary: lighttpd module for user homedirs
-Summary(pl.UTF-8): Moduł lighttpd obsługujący katalogi domowe użytkowników
+Summary(pl.UTF-8): Moduł lighttpd obsługujący katalogi domowe użytkowników
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_usertrack
Summary: lighttpd usertrack module
-Summary(pl.UTF-8): Moduł usertrack dla lighttpd
+Summary(pl.UTF-8): Moduł usertrack dla lighttpd
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package mod_webdav
Summary: WebDAV module for lighttpd
-Summary(pl.UTF-8): Moduł WebDAV dla libghttpd
+Summary(pl.UTF-8): Moduł WebDAV dla libghttpd
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%package -n spawn-fcgi
Summary: Spawn fcgi-process directly
-Summary(pl.UTF-8): Bezpośrednie uruchamianie procesów fcgi
+Summary(pl.UTF-8): Bezpośrednie uruchamianie procesów fcgi
Group: Applications
%description -n spawn-fcgi
%package php-spawned
Summary: PHP support via FastCGI, spawned by lighttpd
-Summary(pl.UTF-8): Obsługa PHP przez FastCGI, uruchamiane przez lighttpd
+Summary(pl.UTF-8): Obsługa PHP przez FastCGI, uruchamiane przez lighttpd
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
Requires: %{name}-mod_fastcgi = %{version}-%{release}
%package php-external
Summary: PHP support via FastCGI, spawning controlled externally
-Summary(pl.UTF-8): Obsługa PHP przez FastCGI, uruchamianie sterowane zewnętrznie
+Summary(pl.UTF-8): Obsługa PHP przez FastCGI, uruchamianie sterowane zewnętrznie
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
Requires: %{name}-mod_fastcgi = %{version}-%{release}
%package ssl
Summary: lighttpd support for SSLv2 and SSLv3
-Summary(pl.UTF-8): Obsługa SSLv2 i SSLv3 dla lighttpd
+Summary(pl.UTF-8): Obsługa SSLv2 i SSLv3 dla lighttpd
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
%description ssl -l pl.UTF-8
Obsługa SSLv2 i SSLv3 dla lighttpd.
+%package -n monit-rc-lighttpd
+Summary: lighttpd support for monit
+Summary(pl.UTF-8): Wsparcie lighttpd dla monit
+Group: Applications/System
+Requires: %{name} = %{version}-%{release}
+Requires: monit
+
+%description -n monit-rc-lighttpd
+monitrc file for monitoring MySQL database server.
+
+%description -n monit-rc-lighttpd -l pl.UTF-8
+Plik monitrc do monitorowania serwera baz danych MySQL.
+
%prep
%setup -q
-#%patch100 -p1
+#%patch100 -p0
%patch0 -p1
%patch1 -p1
-%patch3 -p1
-%patch4 -p1
# build mime.types.conf
sh %{SOURCE6} /etc/mime.types
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_lighttpddir}/{cgi-bin,html},/etc/{logrotate.d,rc.d/init.d,sysconfig,monit}} \
$RPM_BUILD_ROOT%{_sysconfdir}/{conf,webapps}.d \
- $RPM_BUILD_ROOT{/var/log/{%{name},archiv/%{name}},/var/run/%{name}} \
+ $RPM_BUILD_ROOT{/var/log/{%{name},archive/%{name}},/var/run/%{name}} \
$RPM_BUILD_ROOT%{_datadir}/lighttpd/errordocs \
- $RPM_BUILD_ROOT/var/lib/lighttpd
+ $RPM_BUILD_ROOT/var/lib/lighttpd \
+ $RPM_BUILD_ROOT/var/cache/lighttpd/mod_compress
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%attr(640,root,lighttpd) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.user
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc
-%attr(750,root,root) %dir /var/log/archiv/%{name}
+%attr(750,root,root) %dir /var/log/archive/%{name}
%dir %attr(751,root,root) /var/log/%{name}
%ghost %attr(644,lighttpd,lighttpd) /var/log/%{name}/access.log
%ghost %attr(644,lighttpd,lighttpd) /var/log/%{name}/error.log
# rrdtool database is stored there
%dir %attr(771,root,lighttpd) /var/lib/lighttpd
+# mod_compress can put cached files there
+%dir /var/cache/lighttpd
+
%files mod_access
%defattr(644,root,root,755)
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_access.conf
%defattr(644,root,root,755)
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_compress.conf
%attr(755,root,root) %{_libdir}/mod_compress.so
+%dir %attr(775,root,lighttpd) /var/cache/lighttpd/mod_compress
%if %{with deflate}
%files mod_deflate
%files ssl
%defattr(644,root,root,755)
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ssl.conf
+
+%files -n monit-rc-lighttpd
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc