pkgsrc-Users archive

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

Re: Avoid built-in OpenLDAP



On Fri, 29 May 2009 23:29:00 +0200
manu%netbsd.org@localhost (Emmanuel Dreyfus) wrote:

> Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:
> 
> > I am trying to have SASL support in databases/php-ldap. That require not
> > linking aginast NetBSD builtin OpenLDAP, which does not have SASL
> > support.
> > 
> > Adding the opions.mk there to get it linking against
> > databases/openldap-client (which has an SASL option) is easy. However, I
> > face a more difficult problem later: Apache itself is linked against the
> > built-in OpenLDAP, and the PHP module will therefore use the built-in,
> > SASL-disabled libldap
> 
> I made it working by adding a pkgsrc-ldap option to www/apache22. Is that
> the optimal way?
> 
> Index: options.mk
> ===================================================================
> RCS file: /cvsroot/pkgsrc/www/apache22/options.mk,v
> retrieving revision 1.6
> diff -U 2 -r1.6 options.mk
> --- options.mk  8 Apr 2009 17:03:25 -0000       1.6
> +++ options.mk  29 May 2009 21:24:56 -0000
> @@ -2,5 +2,5 @@
>  
>  PKG_OPTIONS_VAR=       PKG_OPTIONS.apache
> -PKG_SUPPORTED_OPTIONS= apache-shared-modules suexec
> +PKG_SUPPORTED_OPTIONS= apache-shared-modules suexec pkgsrc-ldap
>  
>  .include "../../mk/bsd.options.mk"
> @@ -40,2 +40,8 @@
>  SPECIAL_PERMS+=                sbin/suexec ${REAL_ROOT_USER} ${APACHE_GROUP} 
> 4510
>  .endif
> +
> +.if !empty(PKG_OPTIONS:Mpkgsrc-ldap)
> +USE_BUILTIN.openldap-client=no
> +.  include "../../databases/openldap-client/builtin.mk"
> +.  include "../../databases/openldap-client/buildlink3.mk"
> +.endif
> 
> 
> -- 
> Emmanuel Dreyfus
> http://hcpnet.free.fr/pubz
> manu%netbsd.org@localhost

USE_BUILTIN.openldap-client=NO or so?

-- 
Adam Hoka <adam.hoka%gmail.com@localhost>


Home | Main Index | Thread Index | Old Index