From 695d13a6331de82280e7a66c8be58ad83a712649 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Apr 26 2011 19:28:35 +0000 Subject: Initial import --- diff --git a/.gitignore b/.gitignore index e69de29..9a7f47b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/mod_xsendfile-0.12.tar.bz2 diff --git a/mod_xsendfile.spec b/mod_xsendfile.spec new file mode 100644 index 0000000..250ac6a --- /dev/null +++ b/mod_xsendfile.spec @@ -0,0 +1,64 @@ +Summary: Apache module to send files efficiently +Name: mod_xsendfile +Version: 0.12 +Release: 3%{?dist} +Group: System Environment/Daemons +License: ASL 2.0 +URL: https://tn123.org/%{name}/ +Source0: https://tn123.org/%{name}/%{name}-%{version}.tar.bz2 +Source1: xsendfile.conf +BuildRequires: httpd-devel +Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing httpd-devel) +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%global modulesdir %{_libdir}/httpd/modules +%global confdir %{_sysconfdir}/httpd/conf.d + +%description +%{name} is a small Apache2 module that processes X-SENDFILE headers +registered by the original output handler. + +If it encounters the presence of such header it will discard all output and +send the file specified by that header instead using Apache internals +including all optimizations like caching-headers and sendfile or mmap if +configured. + +It is useful for processing script-output of e.g. php, perl or any cgi. + + +%prep +%setup -q + + +%build +%{_sbindir}/apxs -c %{name}.c + + +%install +rm -rf $%{buildroot} +mkdir -p %{buildroot}/%{modulesdir} +%{_sbindir}/apxs -i -S LIBEXECDIR=%{buildroot}/%{modulesdir} -n %{name} %{name}.la +mkdir -p %{buildroot}/%{confdir} +cp -p %SOURCE1 %{buildroot}/%{confdir} + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc docs/* +%config(noreplace) %{confdir}/xsendfile.conf +%{modulesdir}/%{name}.so + + +%changelog +* Mon Apr 25 2011 Orion Poplawski 0.12-3 +- Fix license tag + +* Wed Dec 1 2010 Orion Poplawski 0.12-2 +- Upstream fixed tar ball packaging + +* Mon Oct 25 2010 Orion Poplawski 0.12-1 +- Initial package diff --git a/sources b/sources index e69de29..6db89a3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4b83b0e1a0c043c4e76ee99685c35110 mod_xsendfile-0.12.tar.bz2 diff --git a/xsendfile.conf b/xsendfile.conf new file mode 100644 index 0000000..86a8876 --- /dev/null +++ b/xsendfile.conf @@ -0,0 +1 @@ +LoadModule xsendfile_module modules/mod_xsendfile.so