diff options
author | fhajny <fhajny@pkgsrc.org> | 2013-09-13 11:45:26 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2013-09-13 11:45:26 +0000 |
commit | 5877b9f6cfbcde848432aba30db5d1bcfa36b9a1 (patch) | |
tree | 6598e2d2a3ee3744e9f1bce93cdaf68b633d0427 | |
parent | 686289e02def76f011cdb5b913050253eff9a6ee (diff) | |
download | pkgsrc-5877b9f6cfbcde848432aba30db5d1bcfa36b9a1.tar.gz |
Import www/ap2-xsendfile.
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.
-rw-r--r-- | www/ap2-xsendfile/DESCR | 7 | ||||
-rw-r--r-- | www/ap2-xsendfile/MESSAGE | 13 | ||||
-rw-r--r-- | www/ap2-xsendfile/Makefile | 29 | ||||
-rw-r--r-- | www/ap2-xsendfile/PLIST | 2 | ||||
-rw-r--r-- | www/ap2-xsendfile/distinfo | 5 |
5 files changed, 56 insertions, 0 deletions
diff --git a/www/ap2-xsendfile/DESCR b/www/ap2-xsendfile/DESCR new file mode 100644 index 00000000000..4bad7e79bde --- /dev/null +++ b/www/ap2-xsendfile/DESCR @@ -0,0 +1,7 @@ +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. diff --git a/www/ap2-xsendfile/MESSAGE b/www/ap2-xsendfile/MESSAGE new file mode 100644 index 00000000000..ff71d4c6044 --- /dev/null +++ b/www/ap2-xsendfile/MESSAGE @@ -0,0 +1,13 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1 2013/09/13 11:45:26 fhajny Exp $ + +To enable this module, add something like the following lines to +your Apache server configuration file: + + LoadModule xsendfile_module lib/httpd/mod_xsendfile.so + + <IfModule mod_xsendfile.c> + XSendFile on + </IfModule> + +=========================================================================== diff --git a/www/ap2-xsendfile/Makefile b/www/ap2-xsendfile/Makefile new file mode 100644 index 00000000000..47b6e39fd56 --- /dev/null +++ b/www/ap2-xsendfile/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1 2013/09/13 11:45:26 fhajny Exp $ +# + +DISTNAME= mod_xsendfile-0.12 +PKGNAME= ${APACHE_PKG_PREFIX}-${DISTNAME:S/mod_//} +CATEGORIES= www +MASTER_SITES= http://tn123.org/mod_xsendfile/ + +MAINTAINER= filip@joyent.com +HOMEPAGE= http://tn123.org/mod_xsendfile/ +COMMENT= Apache 2 module that processes X-SENDFILE headers +LICENSE= apache-2.0 + +APACHE_MODULE= YES +APACHE_MODULE_NAME= ${DISTNAME:C|-.*||}.so +APACHE_MODULE_SRC= ${DISTNAME:C|-.*||}.c +APACHE_MODULE_LA= ${DISTNAME:C|-.*||}.la + +PKG_APACHE_ACCEPTED= apache2 apache22 apache24 + +do-build: + cd ${WRKSRC} && ${APXS} ${CPPFLAGS} ${LDFLAGS} -c -o ${APACHE_MODULE_NAME} ${APACHE_MODULE_SRC} + +do-install: + ${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/lib/httpd + cd ${WRKSRC} && ${APXS} -i -S LIBEXECDIR=${DESTDIR}${PREFIX}/lib/httpd ${APACHE_MODULE_LA} + +.include "../../mk/apache.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/ap2-xsendfile/PLIST b/www/ap2-xsendfile/PLIST new file mode 100644 index 00000000000..6a20cdf38b0 --- /dev/null +++ b/www/ap2-xsendfile/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2013/09/13 11:45:26 fhajny Exp $ +lib/httpd/mod_xsendfile.so diff --git a/www/ap2-xsendfile/distinfo b/www/ap2-xsendfile/distinfo new file mode 100644 index 00000000000..adc06e85849 --- /dev/null +++ b/www/ap2-xsendfile/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2013/09/13 11:45:26 fhajny Exp $ + +SHA1 (mod_xsendfile-0.12.tar.gz) = 4eda6ff10949186554b2caf7ab322382b6c9806b +RMD160 (mod_xsendfile-0.12.tar.gz) = 392b4249c5d28d175939ee04401c6461f0454d46 +Size (mod_xsendfile-0.12.tar.gz) = 9271 bytes |