From deffb5856b33773119bc19a0be111babb5accddb Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 13 Jun 2012 18:43:31 +0200 Subject: reorg repo --- Makefile | 4 +++ mod_xsendfile-0.12.tar.bz2 | Bin 0 -> 9345 bytes mod_xsendfile.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++ xsendfile.conf | 1 + 4 files changed, 75 insertions(+) create mode 100644 Makefile create mode 100644 mod_xsendfile-0.12.tar.bz2 create mode 100644 mod_xsendfile.spec create mode 100644 xsendfile.conf diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1e65467 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../common/Makefile + diff --git a/mod_xsendfile-0.12.tar.bz2 b/mod_xsendfile-0.12.tar.bz2 new file mode 100644 index 0000000..92259fc Binary files /dev/null and b/mod_xsendfile-0.12.tar.bz2 differ diff --git a/mod_xsendfile.spec b/mod_xsendfile.spec new file mode 100644 index 0000000..207533d --- /dev/null +++ b/mod_xsendfile.spec @@ -0,0 +1,70 @@ +Summary: Apache module to send files efficiently +Name: mod_xsendfile +Version: 0.12 +Release: 5%{?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 = %{_httpd_mmn} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%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 +%{_httpd_apxs} -c %{name}.c + + +%install +rm -rf $%{buildroot} +mkdir -p %{buildroot}/%{_httpd_moddir} +%{_httpd_apxs} -i -S LIBEXECDIR=%{buildroot}/%{_httpd_moddir} -n %{name} %{name}.la +mkdir -p %{buildroot}/%{_httpd_modconfdir} +cp -p %SOURCE1 %{buildroot}/%{_httpd_modconfdir} + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc docs/* +%config(noreplace) %{_httpd_modconfdir}/xsendfile.conf +%{_httpd_moddir}/%{name}.so + + +%changelog +* Wed Mar 28 2012 Remi Collet 0.12-5 +- rebuild for remi repo and httpd 2.4 + +* Tue Mar 27 2012 Orion Poplawski 0.12-5 +- Rebuild for httpd 2.4, update for new module guidelines + +* Fri Jan 13 2012 Fedora Release Engineering - 0.12-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* 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/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 -- cgit