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
16 Prereq: %{_sbindir}/groupadd
17 Prereq: %{_sbindir}/groupdel
18 Prereq: %{_sbindir}/useradd
19 Prereq: %{_sbindir}/userdel
21 BuildRequires: sgml-tools
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _sysconfdir /etc/httpd
29 A high speed, lightweight web server (HTTP protocol). Based on direct
30 use of the select(2) system call, it internally multiplexes all
31 connections without forking, for maximum speed and minimum system
35 Niezwykle szybki i wysoko wydajny serwer WWW (protokó³ HTTP). Bazuje
36 na bezpo¶rednim u¿yciu funkcji systemowej select(2) dziêki czemu mo¿e
37 obs³ugiwaæ wiele po³±czeñ równocze¶nie bez fork()owania co w efekcie
38 znacznie zwiêksza szybko¶æ dzia³ania oraz zmniejsza zu¿ycie zasobów
47 CFLAGS="%{rpmcflags} -DINET6"
50 (cd ../docs; make boa.html )
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d/,/var/log/httpd} \
55 $RPM_BUILD_ROOT/home/httpd/{cgi-bin,html} \
56 $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/conf,%{_mandir}/man8}
58 install src/{boa,boa_indexer} $RPM_BUILD_ROOT%{_sbindir}
60 install src/*.pl $RPM_BUILD_ROOT/home/httpd/cgi-bin
61 install examples/resolver.pl $RPM_BUILD_ROOT/home/httpd/cgi-bin
62 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
64 install boa.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
66 install docs/boa.8 $RPM_BUILD_ROOT%{_mandir}/man8/
68 touch $RPM_BUILD_ROOT/var/log/httpd/{access_log,agent_log,error_log,referer_log}
73 rm -rf $RPM_BUILD_ROOT
76 if [ -n "`getgid http`" ]; then
77 if [ "`getgid http`" != "51" ]; then
78 echo "Warning:group http haven't gid=51. Correct this before install boa" 1>&2
82 /usr/sbin/groupadd -g 51 -r -f http
84 if [ -n "`id -u http 2>/dev/null`" ]; then
85 if [ "`id -u http`" != "51" ]; then
86 echo "Warning:user http haven't uid=51. Correct this before install boa" 1>&2
90 /usr/sbin/useradd -u 51 -r -d /home/httpd -s /bin/false -c "HTTP User" -g http http 1>&2
95 if [ "$1" = "0" ]; then
96 %{_sbindir}/userdel http > /dev/null 2>&1
97 %{_sbindir}/groupdel http > /dev/null 2>&1
101 /sbin/chkconfig --add %{name}
103 if [ -f /var/lock/subsys/httpd ]; then
104 /etc/rc.d/init.d/httpd restart 1>&2
106 echo "Run \"/etc/rc.d/init.d/boa start\" to start boa http daemon."
111 if [ "$1" = "0" ]; then
112 if [ -f /var/lock/subsys/boa ]; then
113 /etc/rc.d/init.d/boa stop 1>&2
115 /sbin/chkconfig --del boa
119 %defattr(644,root,root,755)
120 %doc README.gz docs/*.html docs/*.png docs/boa.{ps,sgml}
121 %attr(750, root,http) %dir %{_sysconfdir}
122 %attr(640, root,http) %config %{_sysconfdir}/*
123 %attr(755, root,http) /home/httpd/html
124 %attr(755, root,http) /home/httpd/cgi-bin
125 %attr(750, root,http) %dir /var/log/httpd/
126 %attr(640, root,http) %ghost /var/log/httpd/*
127 %attr(755, root,root) %{_sbindir}/*
128 %attr(754, root,root) /etc/rc.d/init.d/%{name}