# $Id$ Name: mod_whois Version: 0.1 Release: 1 Summary: Apache WHOIS Server Module Group: System Environment/Daemons URL: http://sourceforge.net/projects/modwhois License: Apache Software License Source: http://prdownloads.sourceforge.net/modwhois/%{name}-%{version}.tar.gz Requires: httpd BuildRequires: httpd-devel BuildRoot: %{_tmppath}/root-%{name}-%{version} %description mod_whois enables Apache (version 2) to receive standard WHOIS queries, and rewrites them to standard HTTP requests. The request can then be processed by the usual means (static content, CGI's, PHP, tomcat, whatever). %prep %setup %build apxs -c %{name}.c %install mkdir -p %{buildroot}/usr/lib/httpd/modules %{buildroot}/etc/httpd/conf.d install -m 0755 .libs/%{name}.so %{buildroot}/usr/lib/httpd/modules/ cat < %{buildroot}/etc/httpd/conf.d/whois.conf LoadModule whois_module modules/%{name}.so Listen 43 # example whois virtualhost, assumes a PHP-based setup: WhoisProtocol On Alias /whois /usr/local/whois WhoisPrefix "GET /whois/whois.php?domain=" %clean rm -rf %{buildroot} %files %defattr(-,root,root,0755) %doc LICENSE README /usr/lib/httpd/modules/%{name}.so /etc/httpd/conf.d/whois.conf %changelog * Fri Oct 13 2006 Gavin Brown 1.3-1 - Initial package