%define groupid 65421 %define userid 65421 %define nobodygroupid 65013 %define nobodyuserid 65013 Name: lighttpd Version: 1.4.59 Release: 1mamba Summary: A light, fast and compliant web server suitable for embedded devices Group: System/Servers Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.lighttpd.net/ Source: http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-%{version}.tar.gz Source1: lighttpd-logrotate License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libbzip2-devel BuildRequires: libopenssl-devel BuildRequires: libpcre-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description A light, fast and compliant web server suitable for embedded devices. %prep %setup -q #sed -i "s|/srv/www|/var/www|" doc/config/lighttpd.conf %build %configure \ --sysconfdir=%{_sysconfdir}/lighttpd \ --libdir=%{_libdir}/lighttpd \ --with-openssl %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall install -D -m0644 doc/config/lighttpd.conf %{buildroot}%{_sysconfdir}/lighttpd/lighttpd.conf install -D -m0644 doc/config/modules.conf %{buildroot}%{_sysconfdir}/lighttpd/modules.conf install -D -m0755 doc/systemd/lighttpd.service %{buildroot}%{_unitdir}/lighttpd.service install -d %{buildroot}%{_sysconfdir}/lighttpd/{conf.d,vhosts.d} install -d -m0755 %{buildroot}/srv/www/htdocs install -d -m0755 %{buildroot}%{_localstatedir}/log/lighttpd install -d -m0755 %{buildroot}%{_localstatedir}/lib/lighttpd cp -a doc/config/conf.d/*.conf %{buildroot}%{_sysconfdir}/lighttpd/conf.d/ cp -a doc/config/vhosts.d/vhosts.template %{buildroot}%{_sysconfdir}/lighttpd/vhosts.d/vhosts.template cat >> %{buildroot}/srv/www/htdocs/index.html << _EOF

It works!

_EOF # logrotate stuff install -D -m 0644 %{S:1} %{buildroot}%{_sysconfdir}/logrotate.d/lighttpd %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %pre if [ $1 -ge 1 ]; then /usr/sbin/groupadd lighttpd -g %{groupid} 2>/dev/null /usr/sbin/useradd -u %{userid} -c 'Lighttpd user' -d /dev/null -g lighttpd \ -s /bin/false lighttpd 2>/dev/null fi exit 0 %post /usr/sbin/groupadd nobody -g %{nobodygroupid} 2>/dev/null /usr/sbin/useradd -c nobody -u %{nobodyuserid} -d /dev/null -g nobody \ -s /bin/false nobody 2>/dev/null exit 0 %preun if [ $1 -eq 0 ]; then /usr/sbin/groupdel lighttpd 2>/dev/null /usr/sbin/userdel lighttpd 2>/dev/null fi exit 0 %files %defattr(-,root,root) %dir %{_sysconfdir}/lighttpd %config(noreplace) %{_sysconfdir}/lighttpd/lighttpd.conf %config(noreplace) %{_sysconfdir}/lighttpd/modules.conf %config(noreplace) %{_sysconfdir}/lighttpd/conf.d/*.conf %config %{_sysconfdir}/lighttpd/vhosts.d/vhosts.template %config(noreplace) %{_sysconfdir}/logrotate.d/lighttpd %{_sbindir}/lighttpd %{_sbindir}/lighttpd-angel %{_unitdir}/lighttpd.service %dir %{_libdir}/lighttpd %{_libdir}/lighttpd/mod*.la %{_libdir}/lighttpd/mod*.so %dir /srv/www/htdocs %config(noreplace) /srv/www/htdocs/index.html %attr(0755,lighttpd,lighttpd) %dir %{_localstatedir}/log/lighttpd %attr(0755,lighttpd,lighttpd) %dir %{_localstatedir}/lib/lighttpd %{_mandir}/man8/lighttpd*.* %doc AUTHORS COPYING #NEWS README %changelog * Tue Feb 02 2021 Automatic Build System 1.4.59-1mamba - automatic version update by autodist * Mon Dec 28 2020 Automatic Build System 1.4.58-1mamba - automatic version update by autodist * Thu Dec 17 2020 Automatic Build System 1.4.57-1mamba - automatic version update by autodist * Tue Dec 01 2020 Automatic Build System 1.4.56-1mamba - automatic version update by autodist * Sun Feb 02 2020 Automatic Build System 1.4.55-1mamba - automatic version update by autodist * Tue May 28 2019 Automatic Build System 1.4.54-1mamba - automatic version update by autodist * Sun Jan 27 2019 Automatic Build System 1.4.53-1mamba - automatic version update by autodist * Tue Dec 04 2018 Automatic Build System 1.4.52-1mamba - automatic version update by autodist * Mon Oct 15 2018 Automatic Build System 1.4.51-1mamba - automatic version update by autodist * Mon Aug 13 2018 Automatic Build System 1.4.50-1mamba - automatic version update by autodist * Mon Mar 12 2018 Automatic Build System 1.4.49-1mamba - automatic version update by autodist * Mon Nov 13 2017 Automatic Build System 1.4.48-1mamba - automatic version update by autodist * Tue Oct 24 2017 Automatic Build System 1.4.47-1mamba - automatic version update by autodist * Sat Jan 14 2017 Automatic Build System 1.4.45-1mamba - automatic version update by autodist * Tue Dec 27 2016 Automatic Build System 1.4.44-1mamba - automatic version update by autodist * Tue Nov 01 2016 Automatic Build System 1.4.43-1mamba - automatic version update by autodist * Sun Oct 16 2016 Automatic Build System 1.4.42-1mamba - automatic version update by autodist * Sun Jul 31 2016 Automatic Build System 1.4.41-1mamba - automatic version update by autodist * Sat Jul 16 2016 Automatic Build System 1.4.40-1mamba - automatic version update by autodist * Sat Jan 02 2016 Automatic Build System 1.4.39-1mamba - automatic version update by autodist * Sat Dec 05 2015 Automatic Build System 1.4.38-1mamba - automatic version update by autodist * Sun Aug 30 2015 Automatic Build System 1.4.37-1mamba - automatic version update by autodist * Sun Jul 26 2015 Automatic Build System 1.4.36-1mamba - automatic version update by autodist * Thu Mar 13 2014 Automatic Build System 1.4.35-1mamba - automatic version update by autodist * Mon Jan 20 2014 Automatic Build System 1.4.34-1mamba - automatic version update by autodist * Sat Sep 28 2013 Automatic Build System 1.4.33-1mamba - automatic version update by autodist * Fri Mar 22 2013 Davide Madrisan 1.4.32-3mamba - do not replace the configuration files located in %{_sysconfdir}/lighttpd/conf.d - make a backup copy of vhosts.template during package update * Wed Mar 20 2013 Davide Madrisan 1.4.32-2mamba - fix typo in the --libdir definition - provide %{_localstatedir}/lib/lighttpd * Wed Nov 21 2012 Automatic Build System 1.4.32-1mamba - automatic version update by autodist * Thu May 31 2012 Automatic Build System 1.4.31-1mamba - automatic version update by autodist * Mon Dec 19 2011 Automatic Build System 1.4.30-1mamba - automatic version update by autodist * Sun Jul 03 2011 Automatic Build System 1.4.29-1mamba - automatic update by autodist * Sun Dec 19 2010 Silvan Calarco 1.4.28-2mamba - added configuration files and initscripts, user and directories to make the server work * Fri Dec 17 2010 Silvan Calarco 1.4.28-1mamba - package created by autospec