pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases DESTDIR support for openldap.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ef346b50f200
branches:  trunk
changeset: 537157:ef346b50f200
user:      ghen <ghen%pkgsrc.org@localhost>
date:      Fri Jan 04 11:42:29 2008 +0000

description:
DESTDIR support for openldap.

diffstat:

 databases/openldap-client/Makefile |   4 +++-
 databases/openldap-doc/Makefile    |  24 +++++++++++++-----------
 databases/openldap-server/Makefile |   4 +++-
 databases/openldap/Makefile        |   4 +++-
 databases/openldap/Makefile.common |   6 +++---
 5 files changed, 25 insertions(+), 17 deletions(-)

diffs (117 lines):

diff -r d1c21242179f -r ef346b50f200 databases/openldap-client/Makefile
--- a/databases/openldap-client/Makefile        Fri Jan 04 10:08:09 2008 +0000
+++ b/databases/openldap-client/Makefile        Fri Jan 04 11:42:29 2008 +0000
@@ -1,10 +1,12 @@
-# $NetBSD: Makefile,v 1.4 2007/01/02 11:29:15 ghen Exp $
+# $NetBSD: Makefile,v 1.5 2008/01/04 11:42:30 ghen Exp $
 
 PKGNAME=               ${DISTNAME:S/-/-client-/}
 COMMENT=               Lightweight Directory Access Protocol libraries and client programs
 
 CONFLICTS+=            openldap<2.3.23nb1
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 CONFIGURE_ARGS+=       --disable-slapd
 CONFIGURE_ARGS+=       --disable-slurpd
 
diff -r d1c21242179f -r ef346b50f200 databases/openldap-doc/Makefile
--- a/databases/openldap-doc/Makefile   Fri Jan 04 10:08:09 2008 +0000
+++ b/databases/openldap-doc/Makefile   Fri Jan 04 11:42:29 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2007/11/18 19:46:16 ghen Exp $
+# $NetBSD: Makefile,v 1.9 2008/01/04 11:42:30 ghen Exp $
 
 DISTNAME=              openldap-2.3.39
 PKGNAME=               ${DISTNAME:S/-/-doc-/}
@@ -24,6 +24,8 @@
 HOMEPAGE=              http://www.openldap.org/
 COMMENT=               Lightweight Directory Access Protocol documentation
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 DISTINFO_FILE=         ${.CURDIR}/../../databases/openldap/distinfo
 
 NO_CONFIGURE=          yes
@@ -35,17 +37,17 @@
 IMAGES+=               intro_dctree.gif intro_tree.gif replication.gif
 
 do-install:
-       ${INSTALL_DATA_DIR} ${DOCDIR}
-       ${INSTALL_DATA_DIR} ${DOCDIR}/admin
-       ${INSTALL_DATA_DIR} ${DOCDIR}/images
-       ${INSTALL_DATA} ${WRKSRC}/doc/guide/COPYRIGHT ${DOCDIR}/
-       ${INSTALL_DATA} ${WRKSRC}/doc/guide/LICENSE ${DOCDIR}/
-       ${INSTALL_DATA} ${WRKSRC}/doc/guide/README ${DOCDIR}/
-       ${INSTALL_DATA} ${WRKSRC}/doc/guide/images/LDAPlogo.gif ${DOCDIR}/images/
-       ${INSTALL_DATA} ${WRKSRC}/doc/guide/images/LDAPwww.gif ${DOCDIR}/images/
-       ${INSTALL_DATA} ${WRKSRC}/doc/guide/admin/guide.html ${DOCDIR}/admin/
+       ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
+       ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}/admin
+       ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}/images
+       ${INSTALL_DATA} ${WRKSRC}/doc/guide/COPYRIGHT ${DESTDIR}${DOCDIR}/
+       ${INSTALL_DATA} ${WRKSRC}/doc/guide/LICENSE ${DESTDIR}${DOCDIR}/
+       ${INSTALL_DATA} ${WRKSRC}/doc/guide/README ${DESTDIR}${DOCDIR}/
+       ${INSTALL_DATA} ${WRKSRC}/doc/guide/images/LDAPlogo.gif ${DESTDIR}${DOCDIR}/images/
+       ${INSTALL_DATA} ${WRKSRC}/doc/guide/images/LDAPwww.gif ${DESTDIR}${DOCDIR}/images/
+       ${INSTALL_DATA} ${WRKSRC}/doc/guide/admin/guide.html ${DESTDIR}${DOCDIR}/admin/
 .for file in ${IMAGES}
-       ${INSTALL_DATA} ${WRKSRC}/doc/guide/admin/${file} ${DOCDIR}/admin/
+       ${INSTALL_DATA} ${WRKSRC}/doc/guide/admin/${file} ${DESTDIR}${DOCDIR}/admin/
 .endfor
 
 .include "../../mk/bsd.pkg.mk"
diff -r d1c21242179f -r ef346b50f200 databases/openldap-server/Makefile
--- a/databases/openldap-server/Makefile        Fri Jan 04 10:08:09 2008 +0000
+++ b/databases/openldap-server/Makefile        Fri Jan 04 11:42:29 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2007/09/02 13:04:38 ghen Exp $
+# $NetBSD: Makefile,v 1.10 2008/01/04 11:42:30 ghen Exp $
 
 PKGNAME=               ${DISTNAME:S/-/-server-/}
 COMMENT=               Lightweight Directory Access Protocol server suite
@@ -7,6 +7,8 @@
 
 DEPENDS+=              openldap-client>=2.3.27nb1:../../databases/openldap-client
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 # slapd options
 CONFIGURE_ARGS+=       --enable-slapd
 CONFIGURE_ARGS+=       --enable-crypt
diff -r d1c21242179f -r ef346b50f200 databases/openldap/Makefile
--- a/databases/openldap/Makefile       Fri Jan 04 10:08:09 2008 +0000
+++ b/databases/openldap/Makefile       Fri Jan 04 11:42:29 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.122 2007/11/18 19:46:15 ghen Exp $
+# $NetBSD: Makefile,v 1.123 2008/01/04 11:42:29 ghen Exp $
 
 DISTNAME=              openldap-${OPENLDAP_VERSION}
 OPENLDAP_VERSION=      2.3.39
@@ -14,6 +14,8 @@
 DEPENDS+=              openldap-server>=${OPENLDAP_VERSION}:../../databases/openldap-server
 DEPENDS+=              openldap-doc>=${OPENLDAP_VERSION}:../../databases/openldap-doc
 
+PKG_DESTDIR_SUPPORT=   user-destdir
+
 EXTRACT_ONLY=          # yes
 NO_CHECKSUM=           yes
 NO_CONFIGURE=          yes
diff -r d1c21242179f -r ef346b50f200 databases/openldap/Makefile.common
--- a/databases/openldap/Makefile.common        Fri Jan 04 10:08:09 2008 +0000
+++ b/databases/openldap/Makefile.common        Fri Jan 04 11:42:29 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.12 2007/11/23 08:38:05 dsainty Exp $
+# $NetBSD: Makefile.common,v 1.13 2008/01/04 11:42:29 ghen Exp $
 
 # please stick to the "stable" releases as much as possible!
 DISTNAME=              openldap-2.3.39
@@ -113,6 +113,6 @@
 # Set the correct file modes for the example config files.
 post-install:
 .for file in ${CNFS} ${CNFS_PERMS} ${DB_CONFIG}
-       ${CHMOD} ${SHAREMODE} ${EGDIR}/${file:Q}
-       ${RM} -f ${EGDIR}/${file:Q}.default
+       ${CHMOD} ${SHAREMODE} ${DESTDIR}${EGDIR}/${file:Q}
+       ${RM} -f ${DESTDIR}${EGDIR}/${file:Q}.default
 .endfor



Home | Main Index | Thread Index | Old Index