Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 84768f7664fe95306c7f094f799556de > files > 18

boa-0.94.14-0.rc21.1mdv2009.0.i586.rpm

%define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0)

Summary: a single-tasking high performance http server
Name: boa
Version: 0.94.14rc20
Release: 1
Group: System Environment/Daemons
Source: http://www.boa.org/boa-%{version}.tar.gz
Copyright: GNU general public license
Requires: /etc/mime.types
%if is_suse
Prereq: insserv
%else
Prereq: /sbin/chkconfig
Provides: setup
%endif
Prereq: man, gzip
Provides: webserver
Buildroot: /usr/tmp/boa

%description
Boa is a single-tasking HTTP server. That means that
unlike traditional web servers, it does not fork for each
incoming connection, nor does it fork many copies of
itself to handle multiple connections. It internally mulĀ­
tiplexes all of the ongoing HTTP connections, and forks
only for CGI programs (which must be separate processes.)
Preliminary tests show Boa is more than twice as fast as
Apache.

Boa was created in 1991 by Paul Phillips <psp@well.com>. It is now being
maintained and enhanced by Larry Doolittle <ldoolitt@boa.org>
and Jon Nelson <jnelson@boa.org>.

For more information (including installation instructions) examine
the file docs/boa.txt or docs/boa.dvi, point your web browser to docs/boa.html,
or visit the Boa homepage at

    http://www.boa.org/ 
    
%changelog
* Thu Aug 6 2000 Jonathon D Nelson <jnelson@boa.org>
- revamp packaging based upon examples provided by 
  Jules Stuifbergen <jules@zjuul.net> and others

%prep
%setup -T -b 0
%build
%configure
make
(cd docs && gzip -c boa.8 > boa.8.gz)
(cd docs && make boa.html)

%clean
rm -rf $RPM_BUILD_ROOT

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT/usr/sbin
mkdir -p $RPM_BUILD_ROOT/home/httpd/{html,cgi-bin}
mkdir -p $RPM_BUILD_ROOT/var/log/boa
mkdir -p $RPM_BUILD_ROOT/usr/lib/boa
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
mkdir -p $RPM_BUILD_ROOT/etc/init.d
mkdir -p $RPM_BUILD_ROOT/etc/boa

install -m755 src/boa $RPM_BUILD_ROOT/usr/sbin/
install -m755 src/boa_indexer $RPM_BUILD_ROOT/usr/lib/boa/
install -m644 contrib/rpm/boa.conf $RPM_BUILD_ROOT/etc/boa/

%if is_suse
install -m755 contrib/rpm/boa.init-suse $RPM_BUILD_ROOT/etc/init.d/boa
%else
install -m755 contrib/rpm/boa.init-redhat $RPM_BUILD_ROOT/etc/init.d/boa
mkdir -p $RPM_BUILD_ROOT/etc/{boa,logrotate.d}
install -m644 contrib/rpm/boa.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/boa
%endif

mv docs/boa.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8/

touch $RPM_BUILD_ROOT/var/log/boa/{error,access}_log

%post
%if is_suse
/sbin/insserv --default /etc/init.d/boa
%else
/sbin/chkconfig boa reset
%endif

%preun
/etc/init.d/boa stop
%if is_suse
/sbin/insserv --remove  /etc/init.d/boa
%else
/sbin/chkconfig --del boa
%endif

%files
%defattr(-,root,root)
%dir /home/httpd/html
%dir /home/httpd/cgi-bin
%dir /var/log/boa
%doc COPYING CREDITS CHANGES README docs/boa.html docs/boa_banner.png docs/boa.texi
%doc /%{_mandir}/man8/*
%dir /etc/boa
%config /etc/boa/boa.conf
%config /etc/init.d/boa
%if is_suse
%else
%config /etc/logrotate.d/boa
%endif
%ghost %attr(600,nobody,nobody)/var/log/boa/error_log
%ghost %attr(600,nobody,nobody)/var/log/boa/access_log

/usr/sbin/boa
/usr/lib/boa/boa_indexer