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)
30 %define _sysconfdir /etc/httpd
33 A high speed, lightweight web server (HTTP protocol). Based on direct
34 use of the select(2) system call, it internally multiplexes all
35 connections without forking, for maximum speed and minimum system
39 Niezwykle szybki i wysoko wydajny serwer WWW (protokó³ HTTP). Bazuje
40 na bezpo¶rednim u¿yciu funkcji systemowej select(2) dziêki czemu mo¿e
41 obs³ugiwaæ wiele po³±czeñ równocze¶nie bez fork()owania co w efekcie
42 znacznie zwiêksza szybko¶æ dzia³ania oraz zmniejsza zu¿ycie zasobów
52 CFLAGS="%{rpmcflags} -DINET6"
56 (cd ../docs; make boa.html )
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d/ \
61 $RPM_BUILD_ROOT/var/log/httpd \
62 $RPM_BUILD_ROOT/home/httpd/{cgi-bin,html} \
63 $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/conf,%{_mandir}/man8} \
64 $RPM_BUILD_ROOT/etc/logrotate.d
67 install src/{boa,boa_indexer} $RPM_BUILD_ROOT%{_sbindir}/
69 install src/*.pl $RPM_BUILD_ROOT/home/httpd/cgi-bin/
70 install examples/* $RPM_BUILD_ROOT/home/httpd/cgi-bin/
71 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
73 install redhat/boa.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
74 install redhat/boa.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
76 install docs/boa.8 $RPM_BUILD_ROOT%{_mandir}/man8/
78 touch $RPM_BUILD_ROOT/var/log/httpd/{access_log,agent_log,error_log,referer_log}
80 gzip -9nf README src/ChangeLog
83 rm -rf $RPM_BUILD_ROOT
86 if [ -n "`getgid http`" ]; then
87 if [ "`getgid http`" != "51" ]; then
88 echo "Warning:group http haven't gid=51. Correct this before install boa" 1>&2
92 echo "Creating group http GID=51"
93 /usr/sbin/groupadd -g 51 -r -f http
95 if [ -n "`id -u http 2>/dev/null`" ]; then
96 if [ "`id -u http`" != "51" ]; then
97 echo "Warning:user http haven't uid=51. Correct this before install boa" 1>&2
101 echo "Creating user http UID=51"
102 /usr/sbin/useradd -u 51 -r -d /home/httpd -s /bin/false -c "HTTP User" -g http http 1>&2
106 if [ "$1" = "0" ]; then
107 echo "Removing user http UID=51"
108 %{_sbindir}/userdel http > /dev/null 2>&1
109 echo "Removing group http GID=51"
110 %{_sbindir}/groupdel http > /dev/null 2>&1
114 /sbin/chkconfig --add %{name}
116 if [ -f /var/lock/subsys/httpd ]; then
117 /etc/rc.d/init.d/httpd restart 1>&2
119 echo "Run \"/etc/rc.d/init.d/boa start\" to start boa http daemon."
123 if [ "$1" = "0" ]; then
124 if [ -f /var/lock/subsys/boa ]; then
125 /etc/rc.d/init.d/boa stop 1>&2
127 /sbin/chkconfig --del boa
131 %defattr(644,root,root,755)
132 %doc *.gz docs/*.html docs/*.png src/*.gz
133 %attr(750, root,http) %dir %{_sysconfdir}
134 %attr(640, root,http) %config %{_sysconfdir}/*
135 %attr(640, root,http) %config(noreplace) /etc/logrotate.d/%{name}
136 %attr(755, root,http) /home/httpd/html
137 %attr(755, root,http) /home/httpd/cgi-bin
138 %attr(750, root,http) %dir /var/log/httpd/
139 %attr(640, root,http) %ghost /var/log/httpd/*
140 %attr(755, root,root) %{_sbindir}/*
141 %attr(754, root,root) /etc/rc.d/init.d/%{name}