diff options
author | joerg <joerg@pkgsrc.org> | 2010-02-20 14:58:44 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-02-20 14:58:44 +0000 |
commit | 46c34eb371c7c12ec47c770a395c9f311be177f2 (patch) | |
tree | 6e0424dcd7356d3f000cc298d0c68ca14ee350cc /www/ap2-bw | |
parent | c44ffdb6c3066e53ea7bed7a839227a34e220692 (diff) | |
download | pkgsrc-46c34eb371c7c12ec47c770a395c9f311be177f2.tar.gz |
DESTDIR support for various Apache modules.
Diffstat (limited to 'www/ap2-bw')
-rw-r--r-- | www/ap2-bw/Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/www/ap2-bw/Makefile b/www/ap2-bw/Makefile index a9f556f4ddc..4e70fc5e3c1 100644 --- a/www/ap2-bw/Makefile +++ b/www/ap2-bw/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2007/06/30 16:09:08 joerg Exp $ +# $NetBSD: Makefile,v 1.9 2010/02/20 14:58:46 joerg Exp $ # DISTNAME= bw_mod-0.6 @@ -12,18 +12,20 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://ivn.cl/apache/ COMMENT= Class-based bandwidth limiting module for Apache 2 +PKG_DESTDIR_SUPPORT= user-destdir + APACHE_MODULE= # defined INSTALLATION_DIRS= share/doc PKG_APACHE_ACCEPTED= apache2 apache22 -do-build: - @${ECHO} '#include "${DISTNAME}.c"' >${WRKSRC}/mod_bw.c - cd ${WRKSRC} && ${APXS} -c mod_bw.c +APACHE_MODULE_NAME= mod_bw.la + +INSTALLATION_DIRS+= share/doc -do-install: - cd ${WRKSRC} && ${APXS} -n bw_module -i mod_bw.la - ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.txt ${PREFIX}/share/doc/apache_mod_bw.txt +post-install: + ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.txt ${DESTDIR}${PREFIX}/share/doc/apache_mod_bw.txt .include "../../mk/apache.mk" +.include "../../www/apache/module.mk" .include "../../mk/bsd.pkg.mk" |