%define webdav_progs 1
%endif
-%define _rel 5
+%define _rel 1
Summary: Fast and light HTTP server
Summary(pl.UTF-8): Szybki i lekki serwer HTTP
Name: lighttpd
-Version: 1.4.16
+Version: 1.4.18
Release: %{_rel}%{?_snap:.%(echo %{_snap}|tr - _)}%{?_svn:.%{_svn}}
License: BSD
Group: Networking/Daemons
Source0: http://www.lighttpd.net/download/%{name}-%{version}.tar.bz2
-# Source0-md5: ea671997591f772417b7e540d325f8cc
+# Source0-md5: 26f98dddf9d8c0775221b800986003ee
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
#Patchx: %{name}-mod_deflate.patch
Provides: group(lighttpd)
Provides: user(lighttpd)
Provides: webserver
+Conflicts: logrotate < 3.7-4
# for the posttrans scriptlet, conflicts because in vserver environment rpm package is not installed.
Conflicts: rpm < 4.4.2-0.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Requires: monit
%description -n monit-rc-lighttpd
-monitrc file for monitoring MySQL database server.
+monitrc file for monitoring lighttpd web server.
%description -n monit-rc-lighttpd -l pl.UTF-8
-Plik monitrc do monitorowania serwera baz danych MySQL.
+Plik monitrc do monitorowania serwera www lighttpd.
%prep
%setup -q
-%patch100 -p0
+#%patch100 -p0
%patch0 -p1
%patch1 -p1
$RPM_BUILD_ROOT%{_sysconfdir}/{conf,webapps}.d \
$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
# 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