forked from centralnic/mod_whoisng
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mod_whoisng.spec
60 lines (48 loc) · 1.55 KB
/
mod_whoisng.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# $Id$
Name: mod_whoisng
Version: 0.1
Release: 2
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}
Obsoletes: mod_whois
%description
mod_whoisng 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, CGIs, PHP, tomcat, whatever).
%prep
%setup
%build
apxs -c %{name}.c
%install
mkdir -p %{buildroot}%{_libdir}/httpd/modules %{buildroot}/etc/httpd/conf.d
install -m 0755 .libs/%{name}.so %{buildroot}%{_libdir}/httpd/modules/
cat <<END > httpd.conf.example
LoadModule whois_module modules/%{name}.so
Listen 43
# example whois virtualhost, assumes a PHP-based setup:
<VirtualHost *:43>
WhoisProtocol On
Alias /whois /usr/local/whois
WhoisPrefix "GET /whois/whois.php?domain="
</VirtualHost>
END
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,0755)
%doc LICENSE README.md httpd.conf.example
%{_libdir}/httpd/modules/%{name}.so
%changelog
* Fri Apr 5 2013 Gavin Brown <epp@centralnic.com> 0.2-1
- Updated %install section so that install works properly on x86_64
- don't put a config file in /etc/httpd/conf.d
* Mon Mar 4 2013 Gavin Brown <epp@centralnic.com> 0.2-1
- Updated for mod_whoisng
* Fri Oct 13 2006 Gavin Brown <epp@centralnic.com> 0.1-1
- Initial package