summaryrefslogtreecommitdiff
path: root/www/ap-auth-mysql
diff options
context:
space:
mode:
authorjoerg <joerg>2008-06-12 02:14:13 +0000
committerjoerg <joerg>2008-06-12 02:14:13 +0000
commit39d7fb93432416d872ed34e0025741cc93068c06 (patch)
treec12b9c282e2706cb6bac87456615dfdf2b256e55 /www/ap-auth-mysql
parentcce8b72ae5b66d3a54ac565ef8ac6780597301bc (diff)
downloadpkgsrc-39d7fb93432416d872ed34e0025741cc93068c06.tar.gz
Add DESTDIR support.
Diffstat (limited to 'www/ap-auth-mysql')
-rw-r--r--www/ap-auth-mysql/Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/www/ap-auth-mysql/Makefile b/www/ap-auth-mysql/Makefile
index e9b36b424f8..accc8230b89 100644
--- a/www/ap-auth-mysql/Makefile
+++ b/www/ap-auth-mysql/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2007/02/22 19:01:26 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2008/06/12 02:14:54 joerg Exp $
#
DISTNAME= libapache-mod-auth-mysql_4.3.1
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://packages.debian.org/unstable/net/libapache-mod-auth-mysql.html
COMMENT= Module to allow apache authentication against a MySQL database
+PKG_DESTDIR_SUPPORT= user-destdir
+
CONFLICTS= ap-auth-mysql-[0-9]*
GNU_CONFIGURE= yes
@@ -31,23 +33,24 @@ CONFIGURE_ARGS+= --disable-apache13 --enable-apache2
APACHE_MODULE= YES
APACHE_MODULE_NAME= mod_auth_mysql.so
+INSTALLATION_DIRS= lib/httpd share/doc/mod_auth_mysql
+
do-install:
if [ -f ${WRKSRC}/.libs/${PKG_APACHE}_mod_auth_mysql.so ]; then \
${INSTALL_DATA} \
${WRKSRC}/.libs/${PKG_APACHE}_mod_auth_mysql.so \
- ${PREFIX}/lib/httpd/mod_auth_mysql.so; \
+ ${DESTDIR}${PREFIX}/lib/httpd/mod_auth_mysql.so; \
elif [ -f ${WRKSRC}/libs/${PKG_APACHE}_mod_auth_mysql.so ]; then \
${INSTALL_DATA} \
${WRKSRC}/libs/${PKG_APACHE}_mod_auth_mysql.so \
- ${PREFIX}/lib/httpd/mod_auth_mysql.so; \
+ ${DESTDIR}${PREFIX}/lib/httpd/mod_auth_mysql.so; \
elif [ -f ${WRKSRC}/${PKG_APACHE}_mod_auth_mysql.so ]; then \
${INSTALL_DATA} \
${WRKSRC}/${PKG_APACHE}_mod_auth_mysql.so \
- ${PREFIX}/lib/httpd/mod_auth_mysql.so; \
+ ${DESTDIR}${PREFIX}/lib/httpd/mod_auth_mysql.so; \
fi
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_auth_mysql
- ${INSTALL_DATA} ${WRKSRC}/DIRECTIVES ${PREFIX}/share/doc/mod_auth_mysql
- ${INSTALL_DATA} ${WRKSRC}/USAGE ${PREFIX}/share/doc/mod_auth_mysql
+ ${INSTALL_DATA} ${WRKSRC}/DIRECTIVES ${DESTDIR}${PREFIX}/share/doc/mod_auth_mysql
+ ${INSTALL_DATA} ${WRKSRC}/USAGE ${DESTDIR}${PREFIX}/share/doc/mod_auth_mysql
.include "../../mk/mysql.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"