1 Summary: Boa high speed HTTP server
2 Summary(pl): Boa - szybki serwer HTTP
7 Group: Networking/Daemons
8 Group(de): Netzwerkwesen/Server
9 Group(pl): Sieciowe/Serwery
10 Source0: http://www.boa.org/%{name}-%{version}.tar.gz
12 Patch0: %{name}-PLD.patch
13 Patch1: %{name}-SA_LEN.patch
14 URL: http://www.boa.org/
18 Prereq: %{_sbindir}/groupadd
19 Prereq: %{_sbindir}/groupdel
20 Prereq: %{_sbindir}/useradd
21 Prereq: %{_sbindir}/userdel
23 Prereq: /sbin/chkconfig
25 BuildRequires: sgml-tools
26 BuildRequires: autoconf
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _sysconfdir /etc/httpd
36 A high speed, lightweight web server (HTTP protocol). Based on direct
37 use of the select(2) system call, it internally multiplexes all
38 connections without forking, for maximum speed and minimum system
42 Niezwykle szybki i wysoko wydajny serwer WWW (protokó³ HTTP). Bazuje
43 na bezpo¶rednim u¿yciu funkcji systemowej select(2) dziêki czemu mo¿e
44 obs³ugiwaæ wiele po³±czeñ równocze¶nie bez fork()owania co w efekcie
45 znacznie zwiêksza szybko¶æ dzia³ania oraz zmniejsza zu¿ycie zasobów
55 CFLAGS="%{rpmcflags} -DINET6"
59 (cd ../docs; make boa.html )
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d/ \
64 $RPM_BUILD_ROOT/var/log/httpd \
65 $RPM_BUILD_ROOT/home/httpd/{cgi-bin,html} \
66 $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/conf,%{_mandir}/man8} \
67 $RPM_BUILD_ROOT/etc/logrotate.d
70 install src/{boa,boa_indexer} $RPM_BUILD_ROOT%{_sbindir}/
72 install src/*.pl $RPM_BUILD_ROOT/home/httpd/cgi-bin/
73 install examples/* $RPM_BUILD_ROOT/home/httpd/cgi-bin/
74 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
76 install boa.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
77 install redhat/boa.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
79 install docs/boa.8 $RPM_BUILD_ROOT%{_mandir}/man8/
81 touch $RPM_BUILD_ROOT/var/log/httpd/{access_log,agent_log,error_log,referer_log}
83 gzip -9nf README src/ChangeLog
86 rm -rf $RPM_BUILD_ROOT
89 if [ -n "`getgid http`" ]; then
90 if [ "`getgid http`" != "51" ]; then
91 echo "Warning:group http haven't gid=51. Correct this before install boa" 1>&2
95 echo "Creating group http GID=51"
96 /usr/sbin/groupadd -g 51 -r -f http
98 if [ -n "`id -u http 2>/dev/null`" ]; then
99 if [ "`id -u http`" != "51" ]; then
100 echo "Warning:user http haven't uid=51. Correct this before install boa" 1>&2
104 echo "Creating user http UID=51"
105 /usr/sbin/useradd -u 51 -r -d /home/httpd -s /bin/false -c "HTTP User" -g http http 1>&2
109 if [ "$1" = "0" ]; then
110 echo "Removing user http UID=51"
111 %{_sbindir}/userdel http > /dev/null 2>&1
112 echo "Removing group http GID=51"
113 %{_sbindir}/groupdel http > /dev/null 2>&1
117 /sbin/chkconfig --add %{name}
119 if [ -f /var/lock/subsys/boa ]; then
120 /etc/rc.d/init.d/boa restart 1>&2
122 echo "Run \"/etc/rc.d/init.d/boa start\" to start boa http daemon."
126 if [ "$1" = "0" ]; then
127 if [ -f /var/lock/subsys/boa ]; then
128 /etc/rc.d/init.d/boa stop 1>&2
130 /sbin/chkconfig --del boa
134 %defattr(644,root,root,755)
135 %doc *.gz docs/*.html docs/*.png src/*.gz
136 %attr(750, root,http) %dir %{_sysconfdir}
137 %attr(640, root,http) %config(noreplace) %{_sysconfdir}/*
138 %attr(640, root,http) %config(noreplace) /etc/logrotate.d/%{name}
139 %attr(755, root,http) /home/httpd/html
140 %attr(755, root,http) /home/httpd/cgi-bin
141 %attr(750, root,http) %dir /var/log/httpd/
142 %attr(640, root,http) %ghost /var/log/httpd/*
143 %attr(755, root,root) %{_sbindir}/*
144 %attr(754, root,root) /etc/rc.d/init.d/%{name}