pkgsrc/www/ap2-xsendfile/Makefile
fhajny 95cf5f77d7 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.
2013-09-13 11:45:26 +00:00

29 lines
882 B
Makefile

# $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"