Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev
lighttpd
lighttpd.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lighttpd.spec of Package lighttpd
%define realname lighttpd %define realver 1.4.64 %define srcext tar.xz %bcond_without systemd %if 0%{?suse_version} %define WEB_USER wwwrun %define WEB_GROUP www %define WEB_USER_HOME /var/lib/lighttpd %else %define WEB_USER apache %define WEB_GROUP apache %define WEB_USER_HOME /var/www %endif %if ! 0%{?_fillupdir:1} %define _fillupdir /var/adm/fillup-templates %endif # Common info Name: %{realname} Version: %{realver} Release: wiz%{?extraver:0.}1%{?dist} License: BSD-3-Clause Group: Productivity/Networking/Web/Servers URL: http://www.lighttpd.net/ Summary: Secure, fast and flexible Web-server # Install-time parameters Provides: httpd http_daemon webserver %{?suse_version:suse_help_viewer} Requires: logrotate # Systemd-specific requirements %if %{with systemd} Requires: systemd BuildRequires: systemd-devel %endif # Build-time parameters BuildRequires: pkg-config xz BuildRequires: pkgconfig(libev) ### BuildRequires: pkgconfig(mysqlclient) BuildRequires: mysql-devel BuildRequires: pkgconfig(libpq) BuildRequires: libdbi-devel BuildRequires: cyrus-sasl-devel BuildRequires: openldap%{?suse_version:2}-devel BuildRequires: libattr-devel BuildRequires: krb5-devel BuildRequires: openssl-devel BuildRequires: pkgconfig(libpcre2-8) BuildRequires: zlib-devel libzstd-devel BuildRequires: pkgconfig(libbrotlienc) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(sqlite3) BuildRequires: libuuid-devel BuildRequires: libmaxminddb-devel BuildRequires: pkgconfig(lua) %if 0%{?suse_version} BuildRequires: libbz2-devel %else BuildRequires: bzip2-devel %endif BuildRoot: %{_tmppath}/%{name}-root Source0: http://download.lighttpd.net/lighttpd/releases-1.4.x/%{realname}-%{realver}.%{srcext} Source1: lighttpd.logrotate Source2: sysconfig.lighttpd Source3: lighttpd.susefirewall Source4: lighttpd.init %description Security, speed, compliance, and flexibility -- all of these describe lighttpd (pron. lighty) which is rapidly redefining efficiency of a webserver; as it is designed and optimized for high performance environments. With a small memory footprint compared to other web-servers, effective management of the cpu-load, and advanced feature set (FastCGI, SCGI, Auth, Output-Compression, URL-Rewriting and many more) lighttpd is the perfect solution for every server that is suffering load problems. And best of all it's Open Source licensed under the revised BSD license. %package dbi Group: Productivity/Networking/Web/Servers Summary: DBI support for %{name} %description dbi Virtual host plugin using DBI for domain to directory lookups %package gssapi Group: Productivity/Networking/Web/Servers Summary: GSSAPI authentication support for %{name} %description gssapi GSSAPI authentication support for %{name} %package ldap Group: Productivity/Networking/Web/Servers Summary: LDAP support for %{name} %description ldap LDAP support for %{name} %package magnet Group: Productivity/Networking/Web/Servers Summary: Request manipulation using Lua for %{name} %description magnet mod_magnet enables programmatic manipulation of lighttpd request handling via Lua (programming language) scripts. %package maxminddb Group: Productivity/Networking/Web/Servers Summary: IP Based Geographic Lookups for %{name} %description maxminddb mod_maxminddb is a module for fast ip/location lookups. It uses MaxMind GeoIP2 databases. If the IP was found in the database, the module sets the appropriate environment variables to the request, thus making this information available to other modules/fcgi. %package mysql Group: Productivity/Networking/Web/Servers Summary: MySQL support for %{name} %description mysql MySQL support for %{name} %package postgresql Group: Productivity/Networking/Web/Servers Summary: PostgreSQL support for %{name} %description postgresql PostgreSQL support for %{name} %package sasl Group: Productivity/Networking/Web/Servers Summary: SASL auth support for %{name} %description sasl SASL authentication support for %{name} %package webdav Group: Productivity/Networking/Web/Servers Summary: The WebDAV module is an implementation for %{name} %description webdav The WebDAV module is an implementation of RFC 4918. (since 1.4.54) Supported methods: * PROPFIND * PROPPATCH * OPTIONS * MKCOL * COPY * MOVE * DELETE * PUT * LOCK * UNLOCK and the usual GET, POST, HEAD from HTTP/1.1. # Preparation step (unpackung and patching if necessary) %prep %setup -q -n %{realname}-%{realver}%{?extraver} %build %configure \ --libdir=%{_libdir}/%{name} \ \ --with-libev \ --with-mysql \ --with-pgsql \ --with-dbi \ --with-sasl \ --with-ldap \ --with-attr \ --with-krb5 \ --with-openssl \ --with-zstd \ --with-bzip2 \ --with-brotli \ --with-webdav-props \ --with-libxml \ --with-sqlite \ --with-webdav-locks \ --with-uuid \ --with-maxminddb \ --with-lua \ \ CFLAGS="%{optflags} -pthread %{?gcc_lto}" \ LDFLAGS="-Wl,--as-needed -Wl,--strip-all -Wl,-z,now -Wl,-z,relro %{?gcc_lto}" \ LIBS="-lrt" %{__make} %{?_smp_mflags} sed -ri "/^server.username/ s/lighttpd/%{WEB_USER}/" doc/config/lighttpd.conf sed -ri "/^server.groupname/ s/lighttpd/%{WEB_GROUP}/" doc/config/lighttpd.conf %install %{__make} install DESTDIR=%{buildroot} %if 0%{?suse_version} %{__install} -D -m644 %{S:2} %{buildroot}%{_fillupdir}/sysconfig.lighttpd %{__install} -D -m644 %{S:3} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/lighttpd %else %{__install} -D -m644 %{S:2} %{buildroot}%{_sysconfdir}/sysconfig/lighttpd %endif %if 0%{?_unitdir:1} %{__install} -D -m644 doc/systemd/lighttpd.service %{buildroot}%{_unitdir}/lighttpd.service %else %{__install} -D -m755 %{S:4} %{buildroot}%{_initrddir}/lighttpd %if 0%{?suse_version} %{__ln_s} -f %{_initrddir}/lighttpd %{buildroot}%{_sbindir}/rclighttpd %endif %endif %{__install} -D -m644 %{S:1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} %{__sed} -ri "s/@user@/%{WEB_USER}/; s/@group@/%{WEB_GROUP}/" %{buildroot}%{_sysconfdir}/logrotate.d/%{name} %{__install} -d -m755 %{buildroot}%{_sysconfdir}/%{name}/conf.d %{__install} -d -m755 %{buildroot}%{_sysconfdir}/%{name}/vhosts.d %{__install} -m644 doc/config/*.conf %{buildroot}%{_sysconfdir}/%{name}/ %{__install} -m644 doc/config/conf.d/*.conf %{buildroot}%{_sysconfdir}/%{name}/conf.d/ %{__install} -m644 doc/config/vhosts.d/vhosts.template %{buildroot}%{_sysconfdir}/%{name}/vhosts.d/ %{__install} -d -m755 %{buildroot}/var/log/lighttpd %{__install} -d -m755 %{buildroot}/var/lib/lighttpd/sockets %{__install} -d -m755 %{buildroot}/var/cache/lighttpd/compress %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc AUTHORS COPYING NEWS README doc/outdated/*.txt %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/* %config %{_sysconfdir}/logrotate.d/%{name} %if 0%{?_unitdir:1} %{_unitdir}/lighttpd.service %else %{_initrddir}/lighttpd %endif %{_sbindir}/* %dir %{_libdir}/%{name} %{_libdir}/%{name}/* %doc %{_mandir}/man8/* %dir %attr(755,%{WEB_USER},%{WEB_GROUP}) /var/log/lighttpd %dir %attr(755,%{WEB_USER},%{WEB_GROUP}) /var/lib/lighttpd %dir %attr(755,%{WEB_USER},%{WEB_GROUP}) /var/lib/lighttpd/sockets %dir %attr(755,%{WEB_USER},%{WEB_GROUP}) /var/cache/lighttpd %dir %attr(755,%{WEB_USER},%{WEB_GROUP}) /var/cache/lighttpd/compress %exclude %{_libdir}/%{name}/*.la %if 0%{?suse_version} %{_fillupdir}/sysconfig.lighttpd %config(noreplace) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/lighttpd %else %{_sysconfdir}/sysconfig/lighttpd %endif %exclude %{_libdir}/%{name}/mod_authn_dbi.so %exclude %{_libdir}/%{name}/mod_authn_gssapi.so %exclude %{_libdir}/%{name}/mod_authn_ldap.so %exclude %{_libdir}/%{name}/mod_authn_sasl.so %exclude %{_libdir}/%{name}/mod_magnet.so %exclude %{_libdir}/%{name}/mod_maxminddb.so %exclude %{_libdir}/%{name}/mod_vhostdb_dbi.so %exclude %{_libdir}/%{name}/mod_vhostdb_ldap.so %exclude %{_libdir}/%{name}/mod_vhostdb_mysql.so %exclude %{_libdir}/%{name}/mod_vhostdb_pgsql.so %exclude %{_libdir}/%{name}/mod_webdav.so %exclude %{_sysconfdir}/%{name}/conf.d/magnet.conf %exclude %{_sysconfdir}/%{name}/conf.d/webdav.conf %files dbi %defattr(-,root,root) %doc AUTHORS COPYING NEWS README %{_libdir}/%{name}/mod_authn_dbi.so %{_libdir}/%{name}/mod_vhostdb_dbi.so %files magnet %defattr(-,root,root) %doc AUTHORS COPYING NEWS README %doc doc/outdated/magnet.txt %{_sysconfdir}/%{name}/conf.d/magnet.conf %{_libdir}/%{name}/mod_magnet.so %files maxminddb %defattr(-,root,root) %doc AUTHORS COPYING NEWS README %{_libdir}/%{name}/mod_maxminddb.so %files gssapi %defattr(-,root,root) %doc AUTHORS COPYING NEWS README %{_libdir}/%{name}/mod_authn_gssapi.so %files ldap %defattr(-,root,root) %doc AUTHORS COPYING NEWS README %{_libdir}/%{name}/mod_authn_ldap.so %{_libdir}/%{name}/mod_vhostdb_ldap.so %files mysql %defattr(-,root,root) %doc AUTHORS COPYING NEWS README %{_libdir}/%{name}/mod_vhostdb_mysql.so %files postgresql %defattr(-,root,root) %doc AUTHORS COPYING NEWS README %{_libdir}/%{name}/mod_vhostdb_pgsql.so %files sasl %defattr(-,root,root) %doc AUTHORS COPYING NEWS README %{_libdir}/%{name}/mod_authn_sasl.so %files webdav %defattr(-,root,root) %doc AUTHORS COPYING NEWS README %doc doc/outdated/webdav.txt %config(noreplace) %{_sysconfdir}/%{name}/conf.d/webdav.conf %{_libdir}/%{name}/mod_webdav.so %if 0%{?suse_version} %pre /usr/sbin/groupadd -r %{WEB_GROUP} &>/dev/null ||: /usr/sbin/useradd -g %{WEB_GROUP} -s /bin/false -r -c "Web-server" -d %{WEB_USER_HOME} %{WEB_USER} &>/dev/null ||: %if 0%{?_unitdir:1} %{service_add_pre %{name}.service} %endif %post %if 0%{?_unitdir:1} %{fillup_only %{name}} %{service_add_post %{name}.service} %else %{fillup_and_insserv %{name}} %endif %preun %if 0%{?_unitdir:1} %{service_del_preun %{name}.service} %else %{stop_on_removal %{name}} %endif %postun %if 0%{?_unitdir:1} %{service_del_postun %{name}.service} %else %{restart_on_update %{name}} %endif %{insserv_cleanup} %else %pre /usr/sbin/groupadd -r %{WEB_GROUP} &>/dev/null ||: /usr/sbin/useradd -g %{WEB_GROUP} -s /bin/false -r -c "Web-server" -d %{WEB_USER_HOME} %{WEB_USER} &>/dev/null ||: %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor