diff options
author | joerg <joerg> | 2008-06-12 02:14:13 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-06-12 02:14:13 +0000 |
commit | 168a3246f0e3c46b0ef3b5dcf5d18607cff1583f (patch) | |
tree | c12b9c282e2706cb6bac87456615dfdf2b256e55 /www/ap-auth-mysql | |
parent | 63309a20a533bc79929c9bd5b3bf872561762300 (diff) | |
download | pkgsrc-168a3246f0e3c46b0ef3b5dcf5d18607cff1583f.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'www/ap-auth-mysql')
-rw-r--r-- | www/ap-auth-mysql/Makefile | 17 |
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" |