Summary: Throttleable lightweight httpd server Name: thttpd Version: 2.25b Release: 1.1sh Group: Networking URL: http://www.acme.com/software/thttpd Source0: http://www.acme.com/software/thttpd/thttpd-%{PACKAGE_VERSION}.tar.gz Source1: thttpd.throttle Copyright: distributable (BSD) BuildRoot: /tmp/thttpd-root Patch0: thttpd-config.patch Patch1: thttpd-conf-shieldjp.patch Patch2: thttpd-nocache.patch %description Thttpd is a very compact no-frills httpd serving daemon that can handle very high loads. While lacking many of the advanced features of Apache, thttpd operates without forking and is extremely efficient in memory use. Basic support for cgi scripts, authentication, and ssi is provided for. Advanced features include the ability to throttle traffic. %prep %setup %patch0 %patch1 %patch2 ./configure --prefix=%{_prefix} --mandir=$RPM_BUILD_ROOT%{_mandir} %build make \ WEBDIR=/home/httpd/html \ BINDIR=%{_prefix}/sbin prefix=%{_prefix} \ CGIBINDIR=/home/httpd/cgi-bin %install mkdir -p $RPM_BUILD_ROOT/home/httpd/cgi-bin mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d mkdir -p $RPM_BUILD_ROOT%{_mandir}/man{1,8} mkdir -p $RPM_BUILD_ROOT%{_prefix}/sbin mkdir -p -m755 %{_docdir}/%{name}-%{version} install contrib/redhat-rpm/thttpd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/thttpd install contrib/redhat-rpm/thttpd.conf $RPM_BUILD_ROOT/etc/ make -i prefix=$RPM_BUILD_ROOT%{_prefix} install cp %{SOURCE1} $RPM_BUILD_ROOT/etc/ mv $RPM_BUILD_ROOT%{_mandir}/man1/htpasswd.1 $RPM_BUILD_ROOT%{_mandir}/man1/thtpasswd.1 mv $RPM_BUILD_ROOT%{_prefix}/sbin/htpasswd $RPM_BUILD_ROOT%{_prefix}/sbin/thtpasswd %pre grep '^httpd:' /etc/passwd >/dev/null || \ %{_prefix}/sbin/adduser -r httpd %post /sbin/chkconfig --add thttpd %preun /sbin/chkconfig --del thttpd %clean rm -rf $RPM_BUILD_ROOT %files %defattr(0644,root,root) %doc [A-Z]* %attr(2755,httpd,httpd) %{_prefix}/sbin/makeweb %attr(0755,root,root) %{_prefix}/sbin/thtpasswd %attr(0755,root,root) %{_prefix}/sbin/syslogtocern %attr(0755,root,root) %{_prefix}/sbin/thttpd %dir %attr(0755,root,root) /home/httpd %dir %attr(0755,root,root) /home/httpd/cgi-bin %attr(0755,root,root) /etc/rc.d/init.d/thttpd %config /etc/thttpd.conf %config /etc/thttpd.throttle %doc %{_mandir}/man*/* %changelog * Wed Sep 15 2004 Daichi Shinozaki - Throttle definition file added to file list. - config.h modified to enable the directive which is equivalent to Apache's "UserDir public_html". - htpasswd renamed to thtpasswd due to conflict to Apache's htpasswd * Sat Dec 20 2003 Jef Poskanzer - Updated to 2.25b * Mon Oct 27 2003 Jef Poskanzer - Updated to 2.25 * Sat Sep 13 2003 Jef Poskanzer - Updated to 2.24 * Sat May 25 2002 Jef Poskanzer - Updated to 2.23 * Mon Jul 09 2001 Jef Poskanzer - Updated to 2.22 * Thu Apr 26 2001 Jef Poskanzer - Updated to 2.21c * Mon Apr 23 2001 Jef Poskanzer - Updated to 2.21b * Mon Oct 02 2000 Jef Poskanzer - Updated to 2.21 * Wed Sep 13 2000 Jef Poskanzer - Updated to 2.20 * Mon Sep 11 2000 Bennett Todd - added thttpd.conf, took config info out of init script - switched to logging in /var/log, used pidfile * Thu Jun 15 2000 Jef Poskanzer - Updated to 2.19 * Thu May 18 2000 Jef Poskanzer - Updated to 2.18 * Fri Mar 17 2000 Jef Poskanzer - Updated to 2.17 * Mon Feb 28 2000 Jef Poskanzer - Updated to 2.16 * Thu Feb 03 2000 Jef Poskanzer - Updated to 2.15 * Thu Jan 21 2000 Jef Poskanzer - Updated to 2.14 * Thu Jan 6 2000 Jef Poskanzer - Updated to 2.13 * Mon Jan 3 2000 Bennett Todd - updated to 2.12, tweaked to move thttpd.init into tarball * Mon Dec 13 1999 Bennett Todd - Updated to 2.09 * Fri Dec 10 1999 Bennett Todd - Updated to 2.08 * Wed Nov 24 1999 Bennett Todd - updated to 2.06, parameterized Version string in source url - changed to use "make install", simplified %files list * Wed Nov 10 1999 Bennett Todd - Version 2.05, reset release to 1 - dropped bugfix patch since Jef included that - streamlined install * Sun Jul 25 1999 Bennett Todd - Release 4, added mime type swf * Mon May 3 1999 Bennett Todd - Release 2, added patch to set cgi-timelimit up to 10 minutes fm default 30 seconds * Wed Feb 10 1999 Bennett Todd - based on 2.00-2, bumped to 2.04, reset release back to 1 - fixed a couple of broken entries in %install to reference $RPM_BUILD_ROOT - simplified %files to populate /usr/doc/... with just [A-Z]* (TODO had gone away, this simplification makes it liklier to be trivially portable to future releases). - added %doc tags for the man pages