pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/databases/php-ldap Add a SASL option



details:   https://anonhg.NetBSD.org/pkgsrc/rev/035f7a1e2132
branches:  trunk
changeset: 393905:035f7a1e2132
user:      manu <manu%pkgsrc.org@localhost>
date:      Fri May 29 21:23:58 2009 +0000

description:
Add a SASL option

diffstat:

 databases/php-ldap/Makefile   |   5 ++++-
 databases/php-ldap/options.mk |  14 ++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r c3d4b5534c04 -r 035f7a1e2132 databases/php-ldap/Makefile
--- a/databases/php-ldap/Makefile       Fri May 29 15:58:37 2009 +0000
+++ b/databases/php-ldap/Makefile       Fri May 29 21:23:58 2009 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2008/06/12 02:14:19 joerg Exp $
+# $NetBSD: Makefile,v 1.12 2009/05/29 21:23:58 manu Exp $
 
 MODNAME=               ldap
+PKGREVISION=          2
 CATEGORIES+=           databases
 COMMENT=               PHP extension for LDAP database access
 
@@ -10,6 +11,8 @@
 
 USE_PHP_EXT_PATCHES=   yes
 
+.include "options.mk"
+
 CONFIGURE_ARGS+=       --with-${MODNAME}=shared,${BUILDLINK_PREFIX.openldap-client}
 
 .include "../../lang/php/ext.mk"
diff -r c3d4b5534c04 -r 035f7a1e2132 databases/php-ldap/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/php-ldap/options.mk     Fri May 29 21:23:58 2009 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2009/05/29 21:23:58 manu Exp $
+
+PKG_OPTIONS_VAR=        PKG_OPTIONS.php-ldap
+PKG_SUPPORTED_OPTIONS=  sasl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Msasl)
+USE_BUILTIN.openldap-client=no
+.  include "../../databases/openldap-client/builtin.mk"
+.  include "../../databases/openldap-client/buildlink3.mk"
+.  include "../../security/cyrus-sasl/buildlink3.mk"
+CONFIGURE_ARGS+= --with-ldap-sasl=${PREFIX}
+.endif



Home | Main Index | Thread Index | Old Index