SPECS: apache-mod_xsendfile.spec (NEW) - new
glen
glen at pld-linux.org
Tue Jun 13 13:56:04 CEST 2006
Author: glen Date: Tue Jun 13 11:56:04 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
apache-mod_xsendfile.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/apache-mod_xsendfile.spec
diff -u /dev/null SPECS/apache-mod_xsendfile.spec:1.1
--- /dev/null Tue Jun 13 13:56:04 2006
+++ SPECS/apache-mod_xsendfile.spec Tue Jun 13 13:55:59 2006
@@ -0,0 +1,72 @@
+# $Revision$, $Date$
+%define mod_name xsendfile
+%define apxs /usr/sbin/apxs
+Summary: Apache module: convert character encoding of request URLs
+Name: apache-mod_%{mod_name}
+Version: 0.8
+Release: 0.1
+License: Apache 2.0
+Group: Networking/Daemons
+Source0: http://celebnamer.celebworld.ws/stuff/mod_xsendfile/mod_xsendfile-%{version}.tar.gz
+# Source0-md5: aa885ed32cce545404f329fdf507e53b
+URL: http://celebnamer.celebworld.ws/stuff/mod_xsendfile/
+BuildRequires: %{apxs}
+BuildRequires: apache-devel >= 2.0.40
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires: apache(modules-api) = %apache_modules_api
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
+%define _pkglogdir %(%{apxs} -q PREFIX 2>/dev/null)/logs
+
+%description
+mod_xsendfile 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 -qc
+
+%build
+%{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.la
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
+
+install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
+ $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/90_mod_%{mod_name}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%service -q httpd restart
+
+%postun
+if [ "$1" = "0" ]; then
+ %service -q httpd restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
+%attr(755,root,root) %{_pkglibdir}/*.so
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2006/06/13 11:55:59 glen
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list