1 Summary: Fast and light http server
2 Summary(pl): Szybki i lekki serwer http
6 Group: Networking/Daemons
8 # do not remove next two lines because atomic revisions are common in lighttpd
9 %define _rel 20040829-1207
10 Source0: http://jan.kneschke.de/projects/lighttpd/download/%{name}-%{version}-%{_rel}.tar.gz
11 # Source0-md5: 397c698b2d60d3d95e55db785f4de04b
12 #Source0: http://jan.kneschke.de/projects/lighttpd/download/%{name}-%{version}.tar.gz
16 Source4: %{name}.logrotate
17 Patch0: %{name}-xattr.patch
18 URL: http://jan.kneschke.de/projects/lighttpd/
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: bzip2-devel
22 BuildRequires: libtool
23 BuildRequires: openssl-devel
24 BuildRequires: pcre-devel
25 BuildRequires: zlib-devel
27 Requires(pre): sh-utils
28 Requires(pre): /bin/id
29 Requires(pre): /usr/bin/getgid
30 Requires(pre): /usr/sbin/groupadd
31 Requires(pre): /usr/sbin/useradd
32 Requires(post,preun): /sbin/chkconfig
33 Requires(postun): /usr/sbin/userdel
34 Requires(postun): /usr/sbin/groupdel
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define _libdir %{_prefix}/%{_lib}/%{name}
40 %define _sysconfdir /etc/%{name}
43 lighttpd is a secure, fast, compliant and very flexible web-server
44 which has been optimized for high-performance environments. It has
45 a very low memory footprint compared to other webservers and takes
46 care of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth,
47 Output-Compression, URL-Rewriting and many more) make lighttpd the
48 perfect webserver-software for every server that is suffering load
52 lighttpd jest bezpiecznym, szybkim, przyjaznym i bardzo elastycznym
53 serwerem WWW, który zosta³ zoptymalizowany pod k±tem
54 wysokowydajno¶ciowych ¶rodowisk. Zajmuje bardzo ma³± ilo¶æ pamiêci
55 w porównaniu do innych serwerów WWW oraz dba o zajêto¶æ procesora.
56 Szeroki zestaw opcji (FastCGI, CGI, uwierzytelnianie, kompresja
57 wyj¶cia, przepisywanie URL-i i wiele innych) czyni± z lighttpd
58 doskona³e oprogramowanie web-serwerowe na ka¿dy serwer cierpi±cy
59 z powodu problemów z obci±¿eniem.
73 --enable-mod-localizer \
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT{/home/services/%{name}/cgi-bin,/etc/{logrotate.d,rc.d/init.d,%{name}}} \
82 $RPM_BUILD_ROOT/var/log/{%{name},archiv/%{name}}
85 DESTDIR=$RPM_BUILD_ROOT
87 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
88 install %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
89 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
92 rm -rf $RPM_BUILD_ROOT
95 if [ -n "`getgid lighttpd`" ]; then
96 if [ "`getgid lighttpd`" != "109" ]; then
97 echo "Error: group lighttpd doesn't have gid=109. Correct this before installing %{name}." 1>&2
101 /usr/sbin/groupadd -g 109 -r -f lighttpd
103 if [ -n "`id -u lighttpd 2>/dev/null`" ]; then
104 if [ "`id -u lighttpd`" != "116" ]; then
105 echo "Error: user lighhttpd doesn't have uid=116. Correct this before installing %{name}." 1>&2
109 /usr/sbin/useradd -u 116 -r -d /home/services/lighttpd -s /bin/false -c "HTTP User" -g lighttpd lighttpd 1>&2
113 /sbin/chkconfig --add %{name}
114 if [ -f /var/lock/subsys/%{name} ]; then
115 /etc/rc.d/init.d/%{name} restart 1>&2
117 echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
121 if [ "$1" = "0" ]; then
122 if [ -f /var/lock/subsys/%{name} ]; then
123 /etc/rc.d/init.d/%{name} stop 1>&2
125 /sbin/chkconfig --del %{name}
129 if [ "$1" = "0" ]; then
130 /usr/sbin/userdel lighttpd
131 /usr/sbin/groupdel lighttpd
135 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_sbindir}/*
139 %attr(755,root,root) %{_libdir}/*.so
140 %attr(750,root,root) %dir /var/log/archiv/%{name}
141 %dir %attr(750,lighttpd,root) /var/log/%{name}
142 %attr(-, lighttpd, lighttpd) /home/services/%{name}
143 %attr(754,root,root) /etc/rc.d/init.d/%{name}
144 %dir %attr(754,root,root) /etc/%{name}
145 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.*
146 %attr(640,root,root) /etc/logrotate.d/%{name}