summaryrefslogtreecommitdiff
path: root/www/ap-layout
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-20 14:58:44 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-20 14:58:44 +0000
commitf44a82ffc69adc19dd585fb18edcb8be0bcf7aef (patch)
tree6e0424dcd7356d3f000cc298d0c68ca14ee350cc /www/ap-layout
parente2f0cf964aa5e9bc915b03a1c6df6d29e763f0ee (diff)
downloadpkgsrc-f44a82ffc69adc19dd585fb18edcb8be0bcf7aef.tar.gz
DESTDIR support for various Apache modules.
Diffstat (limited to 'www/ap-layout')
-rw-r--r--www/ap-layout/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/www/ap-layout/Makefile b/www/ap-layout/Makefile
index 2b59564763c..57e7c45ac63 100644
--- a/www/ap-layout/Makefile
+++ b/www/ap-layout/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2009/06/06 22:37:22 zafer Exp $
+# $NetBSD: Makefile,v 1.19 2010/02/20 14:58:45 joerg Exp $
#
DISTNAME= mod_layout-3.2
@@ -10,6 +10,8 @@ MAINTAINER= grant@NetBSD.org
HOMEPAGE= http://tangent.org/
COMMENT= Apache module to wrap static or dynamic content
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= pax
CONFLICTS= ap-layout-[0-9]*
@@ -18,11 +20,11 @@ APACHE_MODULE_NAME= mod_layout.so
LAYOUT_DIR= ${PREFIX}/share/httpd/htdocs/manual/mod/mod_layout
+INSTALLATION_DIRS+= ${LAYOUT_DIR}/directives
+
post-install:
- ${INSTALL_DATA_DIR} ${LAYOUT_DIR}
- ${INSTALL_DATA} ${WRKSRC}/faq.html ${LAYOUT_DIR}
- ${INSTALL_DATA_DIR} ${LAYOUT_DIR}/directives
- cd ${WRKSRC}/directives && pax -rw . ${LAYOUT_DIR}/directives
+ ${INSTALL_DATA} ${WRKSRC}/faq.html ${DESTDIR}${LAYOUT_DIR}
+ cd ${WRKSRC}/directives && pax -rw . ${DESTDIR}${LAYOUT_DIR}/directives
.include "../../www/apache/module.mk"
.include "../../mk/bsd.pkg.mk"