#Module-Specific definitions %define mod_name mod_log_data %define mod_conf A13_%{mod_name}.conf %define mod_so %{mod_name}.so Summary: Mod_log_data is a DSO module for the apache web server Name: apache-%{mod_name} Version: 0.0.3 Release: %mkrel 3 Group: System/Servers License: Apache License URL: http://loghttp.sourceforge.net/ Source0: %{mod_name}-%{version}.tar.bz2 Source1: %{mod_conf}.bz2 Source2: README.html.bz2 Patch0: mod_log_data-apr1.diff Requires(pre): rpm-helper Requires(postun): rpm-helper Requires(pre): apache-conf >= 2.2.0 Requires(pre): apache >= 2.2.0 Requires: apache-conf >= 2.2.0 Requires: apache >= 2.2.0 BuildRequires: apache-devel >= 2.2.0 BuildRequires: file Provides: apache2-mod_log_data Obsoletes: apache2-mod_log_data Epoch: 1 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description Mod_log_data is a module for apache, dumping the content for all HTTP/HTTPS request made on the webserver. It can be used for debugging or for security aim. It's done with two filter, easy to configure in httpd.conf. %prep %setup -q -n %{mod_name} %patch0 -p0 bzcat %{SOURCE2} > README.html # strip away annoying ^M find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//' find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//' %build %{_sbindir}/apxs -c %{mod_name}.c %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -d %{buildroot}%{_libdir}/apache-extramodules install -d %{buildroot}%{_sysconfdir}/httpd/modules.d install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/ bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf} install -d %{buildroot}%{_var}/www/html/addon-modules ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version} %post if [ -f %{_var}/lock/subsys/httpd ]; then %{_initrddir}/httpd restart 1>&2; fi %postun if [ "$1" = "0" ]; then if [ -f %{_var}/lock/subsys/httpd ]; then %{_initrddir}/httpd restart 1>&2 fi fi %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc README.html %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf} %attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so} %{_var}/www/html/addon-modules/* %changelog * Sun Aug 06 2006 Oden Eriksson <oeriksson@mandriva.com> 1:0.0.3-3mdv2007.0 - rebuild * Fri Dec 16 2005 Oden Eriksson <oeriksson@mandriva.com> 1:0.0.3-2mdk - rebuilt against apache-2.2.0 (P0) * Mon Nov 28 2005 Oden Eriksson <oeriksson@mandriva.com> 1:0.0.3-1mdk - fix versioning * Sat Jul 30 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54_0.0.3-2mdk - fix deps * Thu Jun 02 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54_0.0.3-1mdk - rename the package - the conf.d directory is renamed to modules.d - use new rpm-4.4.x pre,post magic * Sun Mar 20 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53_0.0.3-4mdk - use the %%mkrel 1 * Mon Feb 28 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53_0.0.3-3mdk - fix %%post and %%postun to prevent double restarts - fix bug #6574 * Wed Feb 16 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53_0.0.3-2mdk - spec file cleanups, remove the ADVX-build stuff * Tue Feb 8 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53_0.0.3-1mdk - rebuilt for apache 2.0.53 * Tue Sep 28 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52_0.0.3-1mdk - built for apache 2.0.52 * Thu Sep 16 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.51_0.0.3-1mdk - built for apache 2.0.51 * Mon Jul 12 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.50_0.0.3-1mdk - built for apache 2.0.50 - remove redundant provides * Mon Jun 14 2004 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.49_0.0.3-1mdk - built for apache 2.0.49 * Wed Nov 05 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.48_0.0.3-1mdk - built for apache 2.0.48 * Tue Sep 09 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.47_0.0.3-1mdk - initial cooker contrib - added S2