Search
j0ke.net Open Build Service
>
Projects
>
ha
>
lighttpd
> lighttpd.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File lighttpd.spec of Package lighttpd (Revision 29)
Currently displaying revision
29
,
show latest
# # spec file for package lighttpd (Version 1.4.25) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: lighttpd Version: 1.4.25 Release: 10 # %define pkg_name lighttpd %define pkg_user lighttpd %define pkg_home /var/lib/%{pkg_name} # Group: Productivity/Networking/Web/Servers License: BSD 3-Clause # BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: FastCGI-devel e2fsprogs-devel fam-devel gdbm-devel libattr-devel libmemcache-devel libxml2-devel mysql-devel openldap2-devel pcre-devel pkgconfig pwdutils zlib-devel # %define with_tests 1 %define with_enh_webdav 1 %define with_mod_magnet 1 %if 0%{?sles_version} == 9 || 0%{?sles_version} == 10 %define with_tests 0 %define with_enh_webdav 0 %endif %if 0%{?suse_version} > 1020 %define with_susefirewall_config 1 %endif # %if 0%{?with_enh_webdav} BuildRequires: sqlite-devel >= 3 %endif # %if 0%{?opensuse_bs} %if 0%{?suse_version} < 1030 BuildRequires: lua51-devel %else BuildRequires: lua-devel %endif %define with_geoip 1 %else BuildRequires: lua-devel %if 0%{sles_version} == 9 %define with_mod_magnet 0 %endif %endif # %if 0%{?with_geoip} BuildRequires: GeoIP-devel %endif # %if 0%{?with_tests} BuildRequires: php5-fastcgi %endif # %if 0%{?suse_version} == 930 || 0%{?sles_version} == 9 BuildRequires: libstdc++-devel %endif %if 0%{?suse_version} > 1020 BuildRequires: libbz2-devel %endif PreReq: %insserv_prereq %fillup_prereq /usr/sbin/groupadd /usr/sbin/useradd # URL: http://www.lighttpd.net/ Source: http://www.lighttpd.net/download/%{pkg_name}-%{version}.tar.bz2 Source1: %{pkg_name}.init Source2: %{pkg_name}.sysconfig Source3: config.tar.bz2 Source4: lightytest.sh Source5: lighttpd.SuSEfirewall Source6: lighttpd-ssl.SuSEfirewall #Patch1: lighttpd-1.4.16_testsuite.patch Patch2: lighttpd-1.4.13_geoip.patch ## included in 1.4.23 ##Patch3: log-cronolog2.diff # Summary: A Secure, Fast, Compliant, and Very Flexible Web Server %description Lighttpd a secure, fast, compliant, and very flexible Web server that has been optimized for high-performance environments. It has a very low memory footprint compared to other Web servers and takes care of CPU load. Its advanced feature set (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting, and more) makes lighttpd the perfect Web server software for every server that is suffering load problems. Authors: -------- Jan Kneschke <jan@kneschke.de> %package mod_cml Requires: %{name} = %{version} Group: Productivity/Networking/Web/Servers Summary: CML (Cache Meta Language) module for Lighttpd %description mod_cml CML is a Meta language to describe the dependencies of a page at one side and building a page from its fragments on the oth er side using LUA. CML (Cache Meta Language) wants to solves several problems: * dynamic content needs caching to perform * checking if the content is dirty inside of the application is usually more expensive than sending out the cached data * a dynamic page is usually fragmented and the fragments have different livetimes * the different fragements can be cached independently Authors: -------- Jan Kneschke <jan@kneschke.de> %package mod_magnet Requires: %{name} = %{version} Group: Productivity/Networking/Web/Servers Summary: A module to control the request handling in lighttpd %description mod_magnet A module to control the request handling in lighttpd. It is the successor of mod_cml. Authors: -------- Jan Kneschke <jan@kneschke.de> %package mod_mysql_vhost Requires: %{name} = %{version} Group: Productivity/Networking/Web/Servers Summary: MySQL based virtual hosts (vhosts) module for Lighttpd %description mod_mysql_vhost With MySQL based vhosting you can put the information where to look for a. document-root of a given host into a MySQL database. Authors: -------- Jan Kneschke <jan@kneschke.de> %package mod_trigger_b4_dl Requires: %{name} = %{version} Group: Productivity/Networking/Web/Servers Summary: Another anti hot-linking module for Lighttpd %description mod_trigger_b4_dl Anti Hotlinking: * if user requests download-url directly the request is denied and he is redirected to ''deny-url' * if user visits trigger-url before requesting download-url access is granted * if user visits download-url again after trigger-timeout has run down to the request is denied and he is redirected to deny-url The storage for the trigger information is either stored locally in a gdbm file or remotly in memcached. Authors: -------- Jan Kneschke <jan@kneschke.de> %package mod_rrdtool Requires: %{name} = %{version} Requires: rrdtool Group: Productivity/Networking/Web/Servers Summary: Lighttpd module to feed rrdtool databases %description mod_rrdtool RRD_tool is a system to store and display time-series data (i.e. network bandwidth, machine-room temperature, server load average). This module feeds an rrdtool database with the traffic stats from lighttpd. Authors: -------- Jan Kneschke <jan@kneschke.de> %if 0%{?with_geoip} %package mod_geoip Requires: %{name} = %{version} Group: Productivity/Networking/Web/Servers Summary: Lighttpd module to lookup geoip databases %description mod_geoip mod_geoip is a module for fast ip/location lookups. It uses MaxMind GeoIP / GeoCity databases. If the ip was found in the database the module sets the appropriate environments variables to the request, thus making other modules/fcgi be informed. Authors: -------- duke.amix@gmail.com %endif %package mod_webdav Requires: %{name} = %{version} Group: Productivity/Networking/Web/Servers Summary: WebDAV module for Lighttpd %description mod_webdav The WebDAV module is a very minimalistic implementation of RFC 2518. Minimalistic means that not all operations are implementated yet.. So far we have * PROPFIND * OPTIONS * MKCOL * DELETE * PUT and the usual GET, POST, HEAD from HTTP/1.1.. So far mounting a webdav resource into Windows XP works and the basic litmus tests are passed. Authors: -------- Jan Kneschke <jan@kneschke.de> %debug_package %prep %setup -a 3 #%patch1 %if 0%{?with_geoip} %patch2 %endif ##%patch3 %build %if 0%{?with_geoip} %if 0%{?suse_version} > 1010 autoreconf -fi %else autoheader autoconf %endif %endif export CFLAGS="%{optflags} -DLDAP_DEPRECATED -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -std=gnu99" %if %suse_version > 1000 export CFLAGS="$CFLAGS -fstack-protector" %endif %configure \ --bindir=%{_sbindir} \ --libdir=%{_libdir}/%{pkg_name} \ --enable-lfs \ --enable-ipv6 \ --with-ldap \ --with-mysql \ --with-openssl \ --with-kerberos5 \ --with-gdbm \ --with-lua \ --with-memcache \ --with-bzip2 \ --with-webdav \ %if 0%{?with_enh_webdav} --with-webdav-props \ --with-webdav-locks \ %endif --with-fam \ --with-attr %{__make} %if 0%{?with_tests} sh -x %{S:4} %endif %install %makeinstall %{__install} -d -m 0755 \ %{buildroot}%{pkg_home}/sockets/ \ %{buildroot}%{_var}/cache/%{pkg_name}/compress \ %{buildroot}%{_var}/log/%{pkg_name} \ %{buildroot}%{_sysconfdir}/%{pkg_name} # # init script # %{__install} -D -m 0755 %{S:1} \ %{buildroot}%{_sysconfdir}/init.d/%{pkg_name} %{__ln_s} -f %{_sysconfdir}/init.d/%{pkg_name} %{buildroot}%{_sbindir}/rc%{pkg_name} # # sample config # perl -p -i.orig -e 's|^(server\.tag = ).*$|$1 "%{pkg_name} (%{version}/SuSE)"|' config/lighttpd.conf diff -ur config/lighttpd.conf{.orig,} ||: %{__rm} -vf config/lighttpd.conf.orig ||: %{__cp} -rv config/* %{buildroot}%{_sysconfdir}/%{pkg_name}/ # only needed when build with mod_geoip support %if ! 0%{?with_geoip} %{__rm} -v %{buildroot}%{_sysconfdir}/%{pkg_name}/conf.d/geoip.conf %endif # # sysconfig template # %{__install} -D -m 0644 %{S:2} \ %{buildroot}/var/adm/fillup-templates/sysconfig.%{pkg_name} # # susefirewall config file # %if 0%{?with_susefirewall_config} %{__install} -D -m 0644 %{S:5} \ %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/lighttpd %{__install} -D -m 0644 %{S:6} \ %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/lighttpd-ssl %endif # # remove the .la files. we dont need them. # %{__rm} -vf %{buildroot}%{_libdir}/%{pkg_name}/*.la # remove execute bits from sample files chmod -x doc/spawn-php.sh chmod -x doc/rrdtool-graph.sh %clean %{__rm} -rf %{buildroot}; %pre # # e.g. adding user # /usr/sbin/groupadd -r %{pkg_user} &>/dev/null ||: /usr/sbin/useradd -g %{pkg_user} -s /bin/false -r -c "user for %{pkg_user}" -d %{pkg_home} %{pkg_user} &>/dev/null ||: %post %fillup_and_insserv %{pkg_name} %preun %stop_on_removal %{pkg_name} %postun %restart_on_update %{pkg_name} %{insserv_cleanup} %files %defattr(-,root,root,-) %if 0%{?with_susefirewall_config} /etc/sysconfig/SuSEfirewall2.d/services/lighttpd* %endif %{_sbindir}/* %dir %attr(750,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name} %dir %attr(750,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d %dir %attr(750,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/vhosts.d %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/lighttpd.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/modules.conf # modules config %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/access_log.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/auth.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/cgi.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/compress.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/debug.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/dirlisting.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/evhost.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/expire.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/fastcgi.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/mime.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/mod.template %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/proxy.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/scgi.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/secdownload.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/simple_vhost.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/ssi.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/status.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/userdir.conf %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/vhosts.d/vhosts.template %{_mandir}/man8/lighttpd.8* # modules %dir %{_libdir}/%{pkg_name} %{_libdir}/%{pkg_name}/mod_access.so %{_libdir}/%{pkg_name}/mod_accesslog.so %{_libdir}/%{pkg_name}/mod_alias.so %{_libdir}/%{pkg_name}/mod_auth.so %{_libdir}/%{pkg_name}/mod_cgi.so %{_libdir}/%{pkg_name}/mod_compress.so %{_libdir}/%{pkg_name}/mod_dirlisting.so %{_libdir}/%{pkg_name}/mod_evasive.so %{_libdir}/%{pkg_name}/mod_evhost.so %{_libdir}/%{pkg_name}/mod_expire.so %{_libdir}/%{pkg_name}/mod_extforward.so %{_libdir}/%{pkg_name}/mod_fastcgi.so %{_libdir}/%{pkg_name}/mod_flv_streaming.so %{_libdir}/%{pkg_name}/mod_indexfile.so %{_libdir}/%{pkg_name}/mod_proxy.so %{_libdir}/%{pkg_name}/mod_redirect.so %{_libdir}/%{pkg_name}/mod_rewrite.so %{_libdir}/%{pkg_name}/mod_scgi.so %{_libdir}/%{pkg_name}/mod_secdownload.so %{_libdir}/%{pkg_name}/mod_setenv.so %{_libdir}/%{pkg_name}/mod_simple_vhost.so %{_libdir}/%{pkg_name}/mod_ssi.so %{_libdir}/%{pkg_name}/mod_staticfile.so %{_libdir}/%{pkg_name}/mod_status.so %{_libdir}/%{pkg_name}/mod_userdir.so %{_libdir}/%{pkg_name}/mod_usertrack.so %config(noreplace) %{_sysconfdir}/init.d/%{pkg_name} %doc AUTHORS NEWS README %doc doc/*.dot %doc doc/spawn-php.sh %doc doc/accesslog.txt %doc doc/access.txt %doc doc/alias.txt %doc doc/authentication.txt %doc doc/cgi.txt %doc doc/compress.txt %doc doc/configuration.txt %doc doc/expire.txt %doc doc/fastcgi-state.txt %doc doc/fastcgi.txt %doc doc/features.txt %doc doc/performance.txt %doc doc/plugins.txt %doc doc/proxy.txt %doc doc/redirect.txt %doc doc/rewrite.txt %doc doc/scgi.txt %doc doc/secdownload.txt %doc doc/security.txt %doc doc/setenv.txt %doc doc/simple-vhost.txt %doc doc/skeleton.txt %doc doc/ssi.txt %doc doc/ssl.txt %doc doc/state.txt %doc doc/status.txt %doc doc/traffic-shaping.txt %doc doc/userdir.txt /var/adm/fillup-templates/sysconfig.%{pkg_name} %dir %attr(751,%{pkg_user},%{pkg_user}) %{pkg_home}/ %dir %attr(751,%{pkg_user},%{pkg_user}) %{pkg_home}/sockets/ %attr(751,%{pkg_user},%{pkg_user}) %{_var}/cache/%{pkg_name}/ %dir %attr(750,%{pkg_user},%{pkg_user}) %{_var}/log/%{pkg_name}/ %files mod_rrdtool %defattr(-,root,root,-) %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/rrdtool.conf %doc doc/rrdtool.txt %doc doc/rrdtool-graph.sh %{_libdir}/%{pkg_name}/mod_rrdtool.so %files mod_cml %defattr(-,root,root,-) %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/cml.conf %{_libdir}/%{pkg_name}/mod_cml.so %doc doc/cml.txt %files mod_magnet %defattr(-,root,root,-) %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/magnet.conf %{_libdir}/%{pkg_name}/mod_magnet.so %doc doc/magnet.txt %files mod_mysql_vhost %defattr(-,root,root,-) %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/mysql_vhost.conf %{_libdir}/%{pkg_name}/mod_mysql_vhost.so %doc doc/mysqlvhost.txt %files mod_trigger_b4_dl %defattr(-,root,root,-) %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/trigger_b4_dl.conf %{_libdir}/%{pkg_name}/mod_trigger_b4_dl.so %doc doc/trigger_b4_dl.txt %if 0%{?with_geoip} %files mod_geoip %defattr(-,root,root,-) %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/geoip.conf %doc doc/geoip.txt %{_libdir}/%{pkg_name}/mod_geoip.so %endif %files mod_webdav %defattr(-,root,root,-) %config(noreplace) %attr(640,root,%{pkg_user}) %{_sysconfdir}/%{pkg_name}/conf.d/webdav.conf %{_libdir}/%{pkg_name}/mod_webdav.so %doc doc/webdav.txt %changelog