From c838cd331707e0d8d913a2fdde0fc9498fc29c6f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Tue, 16 Mar 2004 20:36:21 +0000 Subject: [PATCH] - new Changed files: apache-mod_whois.conf -> 1.1 apache-mod_whois.spec -> 1.1 --- apache-mod_whois.conf | 13 +++++++++++++ apache-mod_whois.spec | 45 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 apache-mod_whois.conf create mode 100644 apache-mod_whois.spec diff --git a/apache-mod_whois.conf b/apache-mod_whois.conf new file mode 100644 index 0000000..a95c707 --- /dev/null +++ b/apache-mod_whois.conf @@ -0,0 +1,13 @@ +LoadModule whois_module /usr/lib/apache/mod_whois.so + +#Listen 43 +# +# +#WhoisProtocol On +W#hoisPrefix "GET /whois.php?searchstring=" +#WhoisPrefix "GET /whoisinfo/" +#ErrorDocument 404 /whoisinfo/404hider.txt +#ErrorDocument 500 /whoisinfo/kaputt.txt +# +# + diff --git a/apache-mod_whois.spec b/apache-mod_whois.spec new file mode 100644 index 0000000..d9ee5bc --- /dev/null +++ b/apache-mod_whois.spec @@ -0,0 +1,45 @@ +%define mod_name whois +%define ver 0.1 +%define apxs /usr/sbin/apxs +Summary: Apache module: WHOIS->WEB gateway +Name: apache-mod_%{mod_name} +Version: %{ver} +Release: 0.1 +License: distributable +Group: Networking/Daemons +Source0: http://dl.sourceforge.net/modwhois/mod_%{mod_name}-%{version}.tar.gz +# Source0-md5: 8b4f29868c221b2d54f59b7a0c090698 +Source1: %{name}.conf +URL: http://modwhois.sourceforge.net/ +BuildRequires: %{apxs} +BuildRequires: apache-devel >= 2.0.0 +Requires(post,preun): %{apxs} +Requires: apache +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _pkglibdir %(%{apxs} -q LIBEXECDIR) + +%description +Apache module: WHOIS->WEB gateway + +%prep +%setup -q -n mod_%{mod_name} + +%build +%{apxs} -c mod_%{mod_name}.c + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_sysconfdir}/httpd/httpd.conf,%{_pkglibdir}} + +libtool install mod_%{mod_name}.la $RPM_BUILD_ROOT%{_pkglibdir} +install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf/83_mod-whois.conf + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc LICENSE README +%attr(755,root,root) %{_pkglibdir}/*.so +%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/httpd.conf/*.conf -- 2.44.0