Summary: A fast webserver with minimal memory-footprint (lighttpd) Name: lighttpd Version: 1.4.19 Release: 1ark Source: http://www.lighttpd.net/download/lighttpd-%version.tar.lz License: BSD Group: Networking/Daemons URL: http://www.lighttpd.net/ Requires: pcre >= 3.1 zlib BuildPrereq: libtool zlib-devel BuildRoot: %{_tmppath}/%{name}-root %description lighttpd is intented to be a frontend for ad-servers which have to deliver small files concurrently to many connections. %prep %setup -q %build rm -rf %{buildroot} %configure \ --with-gnu-ld \ --with-mysql \ --with-ldap \ --with-attr \ --with-openssl \ --with-pcre \ --with-bzip2 \ --with-memcache \ --with-lua \ --libdir=%_libdir/%name make %?_smp_mflags %install make install DESTDIR="$RPM_BUILD_ROOT" mkdir -p %{buildroot}%{_sysconfdir}/{init.d,sysconfig,%name} install -m 755 doc/rc.lighttpd.redhat %{buildroot}%{_sysconfdir}/init.d/lighttpd install -m 644 doc/sysconfig.lighttpd %{buildroot}%{_sysconfdir}/sysconfig/lighttpd cat >%buildroot%_sysconfdir/%name/%name.conf <<'EOF' server.modules = ( "mod_access", "mod_fastcgi", "mod_accesslog" ) dir-listing.activate = "enable" server.document-root = "/srv/www/html/" server.errorlog = "/var/log/lighttpd.errors" accesslog.filename = "/var/log/lighttpd.access" index-file.names = ( "index.php", "index.html", "index.fcgi", "index.htm", "default.htm" ) mimetype.assign = ( ".pdf" => "application/pdf", ".sig" => "application/pgp-signature", ".spl" => "application/futuresplash", ".class" => "application/octet-stream", ".ps" => "application/postscript", ".torrent" => "application/x-bittorrent", ".dvi" => "application/x-dvi", ".gz" => "application/x-gzip", ".pac" => "application/x-ns-proxy-autoconfig", ".swf" => "application/x-shockwave-flash", ".tar.gz" => "application/x-tgz", ".tgz" => "application/x-tgz", ".tar" => "application/x-tar", ".zip" => "application/zip", ".mp3" => "audio/mpeg", ".m3u" => "audio/x-mpegurl", ".wma" => "audio/x-ms-wma", ".wax" => "audio/x-ms-wax", ".ogg" => "application/ogg", ".wav" => "audio/x-wav", ".gif" => "image/gif", ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".png" => "image/png", ".xbm" => "image/x-xbitmap", ".xpm" => "image/x-xpixmap", ".xwd" => "image/x-xwindowdump", ".css" => "text/css", ".html" => "text/html", ".htm" => "text/html", ".js" => "text/javascript", ".asc" => "text/plain", ".c" => "text/plain", ".cpp" => "text/plain", ".log" => "text/plain", ".conf" => "text/plain", ".text" => "text/plain", ".txt" => "text/plain", ".dtd" => "text/xml", ".xml" => "text/xml", ".mpeg" => "video/mpeg", ".mpg" => "video/mpeg", ".mov" => "video/quicktime", ".qt" => "video/quicktime", ".avi" => "video/x-msvideo", ".asf" => "video/x-ms-asf", ".asx" => "video/x-ms-asf", ".wmv" => "video/x-ms-wmv", ".bz2" => "application/x-bzip", ".tbz" => "application/x-bzip-compressed-tar", ".tar.bz2" => "application/x-bzip-compressed-tar" ) url.access-deny = ( "~", ".inc" ) $HTTP["url"] =~ "\.pdf$" { server.range-requests = "disable" } static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) EOF %clean rm -rf %{buildroot} %post if test "$1" = "1"; then /sbin/chkconfig --add lighttpd fi %preun if test "$1" = "0"; then /sbin/service lighttpd stop /sbin/chkconfig --del lighttpd fi %files %defattr(-,root,root) %doc doc/lighttpd.conf doc/lighttpd.user README INSTALL ChangeLog COPYING AUTHORS %doc doc/*.txt %config(noreplace) %attr(0755,root,root) %{_sysconfdir}/init.d/lighttpd %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/lighttpd %{_mandir}/*/* %{_libdir}/* %{_sbindir}/* %{_bindir}/* %dir %_sysconfdir/%name %config(noreplace) %_sysconfdir/%name/%name.conf %changelog * Tue Mar 18 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 1.4.19-1ark - 1.4.19 * Tue Oct 31 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 1.4.13-1ark - Initial Ark package, based on Jan Kneschke's src.rpm