-# TODO:
-# - test mysql (failed at this time)
-# - mysql issue: http://www.freebsd.org/cgi/query-pr.cgi?pr=76866
-# - fam over gamin is possible, just configure doesn't check other than gamin
-# - feature stat-cache-fam (doesn't work)
-# - lighttpd writes early startup messages to stderr, and if started from
-# rc-scripts the stderr is closed which causes lighttpd to abort():
-# 2006-07-20 21:05:52: (server.c.1233) WARNING: unknown config-key: url.rewrite-final (ignored)
-#
-# NOTES:
-# - disable largefile, if you have 2.4 kernel to get sendfile() support, and don't need > 2GB file requests,
-# see http://article.gmane.org/gmane.comp.web.lighttpd:722
-#
# Conditional build for lighttpd:
%bcond_without xattr # support of extended attributes
%bcond_without ipv6 # IPv4-only version (doesn't require IPv6 in kernel)
Summary: Fast and light HTTP server
Summary(pl.UTF-8): Szybki i lekki serwer HTTP
Name: lighttpd
-Version: 1.4.22
-Release: 6
+Version: 1.4.25
+Release: 2
License: BSD
Group: Networking/Daemons/HTTP
-Source0: http://www.lighttpd.net/download/%{name}-%{version}.tar.bz2
-# Source0-md5: ed4ca3897eadf419c893b03fee53c982
+Source0: http://download.lighttpd.net/lighttpd/releases-1.4.x/%{name}-%{version}.tar.bz2
+# Source0-md5: 2027c49fb46530e45338c5e2da13c02f
Source1: %{name}.init
Source2: %{name}.conf
Source3: %{name}.user
Source6: %{name}-mime.types.sh
Source7: http://glen.alkohol.ee/pld/lighty/favicon.ico
# Source7-md5: 00fcac5b861a54f5eb147a589504d480
-Source8: http://www.lighttpd.net/light_button.png
-# Source8-md5: 02330e2313fadc29144edfd6000879f8
-Source9: http://www.lighttpd.net/light_logo.png
-# Source9-md5: ac20784510e420d5cbe5fc1cdb53d7a7
-Source10: http://gdl.hopto.org/~spider/pldstats/gfx/pld1.png
-# Source10-md5: 486ecec3f6f4fe7f9bf7cee757b864f4
+Source8: light_button.png
+# Source8-md5: 3e1008ee1d3d6d390cf81fe3072b4f50
+Source9: light_logo.png
+# Source9-md5: cbb7f0676e51ee2e26cf004df293fc62
+Source10: pld_button.png
+# Source10-md5: 185afa921e81bd726b9f0f9f0909dc6e
Source11: %{name}-pld.html
Source12: %{name}.monitrc
Source13: %{name}-branch.sh
+Source14: TODO
Source100: %{name}-mod_access.conf
Source101: %{name}-mod_accesslog.conf
Source102: %{name}-mod_alias.conf
Patch3: %{name}-branding.patch
Patch4: %{name}-modinit-before-fork.patch
Patch5: %{name}-mod_deflate.patch
-Patch6: %{name}-mod_rrdtool-emptyfile.patch
-Patch7: %{name}-bug-1836.patch
+Patch6: am-old.patch
#Patch8: %{name}-errorlog-before-fork.patch
URL: http://www.lighttpd.net/
%{?with_xattr:BuildRequires: attr-devel}
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.57
BuildRequires: automake
BuildRequires: bzip2-devel
BuildRequires: fcgi-devel
Provides: group(lighttpd)
Provides: user(lighttpd)
Provides: webserver
+Provides: webserver(mime)
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
Summary: lighttpd evasive module
Summary(pl.UTF-8): Moduł evasive dla lighttpd
Group: Networking/Daemons/HTTP
+URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModEvasive
Requires: %{name} = %{version}-%{release}
%description mod_evasive
Summary: lighttpd module for flv streaming
Summary(pl.UTF-8): Moduł lighttpd do streamingu flv
Group: Networking/Daemons/HTTP
-URL: http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd
+URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModFLVStreaming
Requires: %{name} = %{version}-%{release}
%description mod_flv_streaming
Summary: lighttpd indexfile module
Summary(pl.UTF-8): Moduł indexfile dla lighttpd
Group: Networking/Daemons/HTTP
+URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Index-file-names.Details
Requires: %{name} = %{version}-%{release}
Provides: webserver(indexfile)
Summary: lighttpd powermagnet module
Summary(pl.UTF-8): Moduł powermagnet dla lighttpd
Group: Networking/Daemons/HTTP
+URL: http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModMagnet
Requires: %{name} = %{version}-%{release}
%description mod_magnet
Minimalistic means that not all operations are implementated yet.
So far we have
- - PROPFIND
- - OPTIONS
- - MKCOL
- - DELETE
- - PUT
- - LOCK (experimental)
+- PROPFIND
+- OPTIONS
+- MKCOL
+- DELETE
+- PUT
+- LOCK (experimental)
and the usual GET, POST, HEAD from HTTP/1.1.
Moduł WebDAV to bardzo minimalistyczna implementacja RFC 2518.
Minimalistyczna oznacza, że jeszcze nie wszystkie operacje są
zaimplementowane. Jak na razie są:
- - PROPFIND
- - OPTIONS
- - MKCOL
- - DELETE
- - PUT
- - LOCK (experimental)
+- PROPFIND
+- OPTIONS
+- MKCOL
+- DELETE
+- PUT
+- LOCK (experimental)
oraz zwykłe GET, POST, HEAD z HTTP/1.1.
Jak na razie montowanie zasobu webdav pod Windows XP działa i
podstawowe testy lakmusowe przechodzą.
-%package -n spawn-fcgi
-Summary: Spawn fcgi-process directly
-Summary(pl.UTF-8): Bezpośrednie uruchamianie procesów fcgi
-Group: Applications
-
-%description -n spawn-fcgi
-spawn-fcgi is used to spawn fcgi-process directly without the help of
-a webserver or the programm itself.
-
-%description -n spawn-fcgi -l pl.UTF-8
-spawn-fcgi służy do uruchamiania procesów fcgi bezpośrednio, bez
-pomocy serwera WWW ani samego programu.
-
%package php-spawned
Summary: PHP support via FastCGI, spawned by lighttpd
Summary(pl.UTF-8): Obsługa PHP przez FastCGI, uruchamiane przez lighttpd
Group: Networking/Daemons/HTTP
Requires: %{name} = %{version}-%{release}
Requires: %{name}-mod_fastcgi = %{version}-%{release}
-Requires: php-fcgi-init
+Suggests: php-fcgi-init
+Suggests: php-fpm
Obsoletes: lighttpd-php-spawned
%description php-external
Summary: lighttpd support for SSLv2 and SSLv3
Summary(pl.UTF-8): Obsługa SSLv2 i SSLv3 dla lighttpd
Group: Networking/Daemons/HTTP
+URL: http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:SSL
Requires: %{name} = %{version}-%{release}
+Suggests: ca-certificates
%description ssl
lighttpd support for SSLv2 and SSLv3.
%patch3 -p1
%{?with_deflate:%patch5 -p1}
%patch6 -p1
-cd src
-%patch7 -p0 -R
-cd ..
rm -f src/mod_ssi_exprparser.h # bad patching: should be removed by is emptied instead
# build mime.types.conf
sh %{SOURCE6} /etc/mime.types
+cp -a %{SOURCE14} PLD-TODO
%build
+ver=$(awk '/AC_INIT/{a=$2;gsub(/[\[\],]/, "", a); print a}' configure.ac)
+if [ "$ver" != "%{version}" ]; then
+ : configure.ac specifies wrong version
+ exit 1
+fi
+
%{__libtoolize}
%{__aclocal}
%{__autoconf}
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
-# could use automake patch, but automake generation fails...
-mv $RPM_BUILD_ROOT%{_bindir}/spawn-fcgi $RPM_BUILD_ROOT%{_sbindir}/spawn-fcgi
-
# Install lighttpd images
install %{SOURCE7} %{SOURCE8} %{SOURCE9} $RPM_BUILD_ROOT%{_lighttpddir}/html
install %{SOURCE10} $RPM_BUILD_ROOT%{_lighttpddir}/html/pld_button.png
install %{SOURCE108} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_dirlisting.conf
install %{SOURCE109} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evasive.conf
install %{SOURCE110} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_evhost.conf
-install %{SOURCE111} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_expire.conf
install %{SOURCE112} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_fastcgi.conf
install %{SOURCE113} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_flv_streaming.conf
install %{SOURCE136} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_h264_streaming.conf
install %{SOURCE129} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_webdav.conf
install %{SOURCE133} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/50_mod_mysql_vhost.conf
+install %{SOURCE111} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/55_mod_expire.conf
+
install %{SOURCE106} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/60_mod_compress.conf
install %{SOURCE101} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_accesslog.conf
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/*_mod_deflate.conf
%endif
-touch $RPM_BUILD_ROOT/var/log/%{name}/{access,error}.log
+touch $RPM_BUILD_ROOT/var/log/%{name}/{access,error,breakage}.log
%clean
rm -rf $RPM_BUILD_ROOT
%addusertogroup lighttpd http
%post
-for a in access.log error.log; do
+for a in access.log error.log breakage.log; do
if [ ! -f /var/log/%{name}/$a ]; then
touch /var/log/%{name}/$a
chown lighttpd:lighttpd /var/log/%{name}/$a
%files
%defattr(644,root,root,755)
-%doc NEWS README ChangeLog doc/lighttpd.conf doc/*.txt doc/rrdtool-graph.sh
+%doc NEWS README doc/lighttpd.conf doc/*.txt doc/rrdtool-graph.sh PLD-TODO
%dir %attr(751,root,lighttpd) %{_sysconfdir}
%dir %attr(750,root,root) %{_sysconfdir}/webapps.d
%dir %attr(750,root,root) %{_sysconfdir}/conf.d
%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
+%ghost %attr(644,lighttpd,lighttpd) /var/log/%{name}/breakage.log
%dir %attr(770,root,lighttpd) /var/run/%{name}
%attr(754,root,root) /etc/rc.d/init.d/%{name}
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
%attr(755,root,root) %{_sbindir}/lighttpd
%attr(755,root,root) %{_sbindir}/lighttpd-angel
%dir %{_libdir}
-%{_mandir}/man1/lighttpd.1*
+%{_mandir}/man8/lighttpd.8*
%dir %{_lighttpddir}
%dir %{_lighttpddir}/cgi-bin
%dir %{_lighttpddir}/html
-%config(noreplace,missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/*
+%config(noreplace,missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/index.html
+%config(missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/*.png
+%config(missingok) %verify(not md5 mtime size) %{_lighttpddir}/html/*.ico
%dir %{_datadir}/lighttpd
%dir %{_datadir}/lighttpd/errordocs
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*mod_webdav.conf
%attr(755,root,root) %{_libdir}/mod_webdav.so
-%files -n spawn-fcgi
-%defattr(644,root,root,755)
-%doc doc/spawn-php.sh
-%attr(755,root,root) %{_sbindir}/spawn-fcgi
-%{_mandir}/man1/spawn-fcgi.1*
-
%files php-spawned
%defattr(644,root,root,755)
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/php-spawned.conf