automatic version update by autodist [release 1.4.35-1mamba;Thu Mar 13 2014]

This commit is contained in:
Automatic Build System 2024-01-06 06:16:54 +01:00
parent ec13527743
commit d2f87fb4ad
3 changed files with 163 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# lighttpd
A light, fast and compliant web server suitable for embedded devices.

17
lighttpd-logrotate Normal file
View File

@ -0,0 +1,17 @@
/var/log/lighttpd/access.log {
monthly
rotate 5
copytruncate
compress
notifempty
missingok
}
/var/log/lighttpd/error.log {
monthly
rotate 5
copytruncate
compress
notifempty
missingok
}

144
lighttpd.spec Normal file
View File

@ -0,0 +1,144 @@
%define groupid 65421
%define userid 65421
%define nobodygroupid 65013
%define nobodyuserid 65013
Name: lighttpd
Version: 1.4.35
Release: 1mamba
Summary: A light, fast and compliant web server suitable for embedded devices
Group: System/Servers
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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/initscripts/rc.lighttpd.redhat %{buildroot}%{_initrddir}/lighttpd
install -D -m0644 doc/initscripts/sysconfig.lighttpd %{buildroot}%{_sysconfdir}/sysconfig/lighttpd
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
<html><body><h1>It works!</h1></body></html>
_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)
%{_sbindir}/lighttpd
%{_sbindir}/lighttpd-angel
%{_initrddir}/lighttpd
%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}/sysconfig/lighttpd
%config(noreplace) %{_sysconfdir}/logrotate.d/lighttpd
%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
* Thu Mar 13 2014 Automatic Build System <autodist@mambasoft.it> 1.4.35-1mamba
- automatic version update by autodist
* Mon Jan 20 2014 Automatic Build System <autodist@mambasoft.it> 1.4.34-1mamba
- automatic version update by autodist
* Sat Sep 28 2013 Automatic Build System <autodist@mambasoft.it> 1.4.33-1mamba
- automatic version update by autodist
* Fri Mar 22 2013 Davide Madrisan <davide.madrisan@gmail.com> 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 <davide.madrisan@gmail.com> 1.4.32-2mamba
- fix typo in the --libdir definition
- provide %{_localstatedir}/lib/lighttpd
* Wed Nov 21 2012 Automatic Build System <autodist@mambasoft.it> 1.4.32-1mamba
- automatic version update by autodist
* Thu May 31 2012 Automatic Build System <autodist@mambasoft.it> 1.4.31-1mamba
- automatic version update by autodist
* Mon Dec 19 2011 Automatic Build System <autodist@mambasoft.it> 1.4.30-1mamba
- automatic version update by autodist
* Sun Jul 03 2011 Automatic Build System <autodist@mambasoft.it> 1.4.29-1mamba
- automatic update by autodist
* Sun Dec 19 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.28-2mamba
- added configuration files and initscripts, user and directories to make the server work
* Fri Dec 17 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.28-1mamba
- package created by autospec