summaryrefslogtreecommitdiff
path: root/security/pam-mysql
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-06-12 02:14:13 +0000
committerjoerg <joerg@pkgsrc.org>2008-06-12 02:14:13 +0000
commitba171a91fab519f587b027c1a2888cb6e3fce049 (patch)
treec12b9c282e2706cb6bac87456615dfdf2b256e55 /security/pam-mysql
parent3ba79d294eb62e9c75cc32d37b4af7759af8c9d6 (diff)
downloadpkgsrc-ba171a91fab519f587b027c1a2888cb6e3fce049.tar.gz
Add DESTDIR support.
Diffstat (limited to 'security/pam-mysql')
-rw-r--r--security/pam-mysql/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/security/pam-mysql/Makefile b/security/pam-mysql/Makefile
index a2a02b82838..8a8a9f441fd 100644
--- a/security/pam-mysql/Makefile
+++ b/security/pam-mysql/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2008/01/18 05:09:40 tnn Exp $
+# $NetBSD: Makefile,v 1.10 2008/06/12 02:14:44 joerg Exp $
DISTNAME= pam_mysql-0.7RC1
PKGNAME= ${DISTNAME:S/_/-/:S/RC/rc/}
@@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://pam-mysql.sourceforge.net/
COMMENT= PAM module for authenticating with MySQL
+PKG_DESTDIR_SUPPORT= user-destdir
+
DOCDIR= ${PREFIX}/share/doc/pam-mysql
GNU_CONFIGURE= yes
@@ -21,9 +23,10 @@ CONFIGURE_ARGS+= --with-pam-mods-dir=${PREFIX:Q}/lib/security
CONFIGURE_ARGS+= --with-pam=${PAMBASE:Q}
CONFIGURE_ARGS+= --disable-static
+INSTALLATION_DIRS= ${DOCDIR}
+
post-install:
- ${INSTALL_DATA_DIR} ${DOCDIR:Q}
- cd ${WRKSRC:Q} && ${INSTALL_DATA} CREDITS ChangeLog README ${DOCDIR:Q}
+ cd ${WRKSRC:Q} && ${INSTALL_DATA} CREDITS ChangeLog README ${DESTDIR}${DOCDIR}
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/mysql.buildlink3.mk"