mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
openldap: convert to PACKAGECONFIGs, explicitly disable openssl
* some options like ldbm weren't supported by current version * when gnutls and openssl were both available it was picking openssl because default --with-tls is auto Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Eric Bénard
parent
9f4bf249dc
commit
b0692905dd
@@ -28,16 +28,6 @@ SRC_URI += "file://install-strip.patch"
|
|||||||
|
|
||||||
inherit autotools
|
inherit autotools
|
||||||
|
|
||||||
# OPTIONS
|
|
||||||
# The following two variables can be set in a distro or local.conf
|
|
||||||
# to switch features on. Each feature foo defines OPENLDAP_OPTION_foo
|
|
||||||
# and OPENLDAP_DEPENDS_foo in this file - to include feature foo add
|
|
||||||
# the two variables into the setting of the options below (please use
|
|
||||||
# += because that means this can be done in *both* distro.conf and
|
|
||||||
# local.conf!
|
|
||||||
OPENLDAP_OPTIONS ?= ""
|
|
||||||
OPENLDAP_DEPENDS ?= ""
|
|
||||||
|
|
||||||
# CV SETTINGS
|
# CV SETTINGS
|
||||||
# Required to work round AC_FUNC_MEMCMP which gets the wrong answer
|
# Required to work round AC_FUNC_MEMCMP which gets the wrong answer
|
||||||
# when cross compiling (should be in site?)
|
# when cross compiling (should be in site?)
|
||||||
@@ -50,33 +40,21 @@ EXTRA_OECONF += "ac_cv_func_memcmp_working=yes"
|
|||||||
EXTRA_OECONF += "--with-yielding-select=yes"
|
EXTRA_OECONF += "--with-yielding-select=yes"
|
||||||
# Shared libraries are nice...
|
# Shared libraries are nice...
|
||||||
EXTRA_OECONF += "--enable-dynamic"
|
EXTRA_OECONF += "--enable-dynamic"
|
||||||
#
|
|
||||||
# Disable TLS to remove the need for openssl/libcrypto
|
PACKAGECONFIG ??= "gnutls modules \
|
||||||
OPENLDAP_OPTION_tls ?= "--with-tls"
|
ldap meta monitor null passwd shell proxycache dnssrv \
|
||||||
# set the following to "openssl" to build tls support
|
"
|
||||||
OPENLDAP_DEPENDS_tls ?= "gnutls"
|
#--with-tls with TLS/SSL support auto|openssl|gnutls [auto]
|
||||||
EXTRA_OECONF += "${OPENLDAP_OPTION_tls}"
|
PACKAGECONFIG[gnutls] = "--with-tls=gnutls,,gnutls"
|
||||||
DEPENDS += "${OPENLDAP_DEPENDS_tls}"
|
PACKAGECONFIG[openssl] = "--with-tls=openssl,,openssl"
|
||||||
#
|
|
||||||
# Disable Cyrus SASL, which may or may not be working at present...
|
PACKAGECONFIG[sasl] = "--with-cyrus-sasl,--without-cyrus-sasl,cyrus-sasl"
|
||||||
OPENLDAP_OPTION_sasl ?= "--without-cyrus-sasl"
|
PACKAGECONFIG[modules] = "lt_cv_dlopen_self=yes --enable-modules,--disable-modules,libtool"
|
||||||
# set the following to "cyrus-sasl" to build SASL support
|
|
||||||
OPENLDAP_DEPENDS_sasl ?= ""
|
|
||||||
EXTRA_OECONF += "${OPENLDAP_OPTION_sasl}"
|
|
||||||
DEPENDS += "${OPENLDAP_DEPENDS_sasl}"
|
|
||||||
|
|
||||||
# SLAPD options
|
# SLAPD options
|
||||||
#
|
#
|
||||||
# UNIX crypt(3) passwd support:
|
# UNIX crypt(3) passwd support:
|
||||||
EXTRA_OECONF += "--enable-crypt"
|
EXTRA_OECONF += "--enable-crypt"
|
||||||
#
|
|
||||||
# Enable dynamic module loading. If this is *disabled* the
|
|
||||||
# dependency on libtool is removed (to disable set the following
|
|
||||||
# to variables to "" in a .conf file).
|
|
||||||
OPENLDAP_OPTION_modules += "lt_cv_dlopen_self=yes --enable-modules"
|
|
||||||
OPENLDAP_DEPENDS_modules += "libtool"
|
|
||||||
EXTRA_OECONF += " ${OPENLDAP_OPTION_modules}"
|
|
||||||
DEPENDS += "${OPENLDAP_DEPENDS_modules}"
|
|
||||||
|
|
||||||
# SLAPD BACKEND
|
# SLAPD BACKEND
|
||||||
#
|
#
|
||||||
@@ -99,92 +77,64 @@ md = "${libexecdir}/openldap"
|
|||||||
#--enable-bdb enable Berkeley DB backend no|yes|mod yes
|
#--enable-bdb enable Berkeley DB backend no|yes|mod yes
|
||||||
# The Berkely DB is the standard choice. This version of OpenLDAP requires
|
# The Berkely DB is the standard choice. This version of OpenLDAP requires
|
||||||
# the version 4 implementation or better.
|
# the version 4 implementation or better.
|
||||||
# To disable this set all three of the following variables to <empty> in
|
PACKAGECONFIG[bdb] = "--enable-bdb=mod,--enable-bdb=no,db"
|
||||||
# a .conf file (this will allow ldbm to be build with gdbm).
|
|
||||||
#OPENLDAP_OPTION_bdb ?= "--enable-bdb=mod"
|
|
||||||
OPENLDAP_DEPENDS_bdb ?= "db"
|
|
||||||
EXTRA_OECONF += "${OPENLDAP_OPTION_bdb}"
|
|
||||||
DEPENDS += "${OPENLDAP_DEPENDS_bdb}"
|
|
||||||
#
|
|
||||||
#--enable-dnssrv enable dnssrv backend no|yes|mod no
|
#--enable-dnssrv enable dnssrv backend no|yes|mod no
|
||||||
# This has no dependencies.
|
PACKAGECONFIG[dnssrv] = "--enable-dnssrv=mod,--enable-dnssrv=no"
|
||||||
EXTRA_OECONF += "--enable-dnssrv=mod"
|
|
||||||
#
|
|
||||||
#--enable-hdb enable Hierarchical DB backend no|yes|mod no
|
#--enable-hdb enable Hierarchical DB backend no|yes|mod no
|
||||||
# This forces ldbm to use Berkeley too, remove to use gdbm
|
# This forces ldbm to use Berkeley too, remove to use gdbm
|
||||||
#OPENLDAP_OPTION_hdb ?= "--enable-hdb=mod"
|
PACKAGECONFIG[hdb] = "--enable-hdb=mod,--enable-hdb=no,db"
|
||||||
OPENLDAP_DEPENDS_hdb ?= "db"
|
|
||||||
OPENLDAP_PACKAGE_hdb ?= "${PN}-backend-hdb"
|
|
||||||
EXTRA_OECONF += "${OPENLDAP_OPTION_hdb}"
|
|
||||||
DEPENDS += "${OPENLDAP_DEPENDS_hdb}"
|
|
||||||
#
|
|
||||||
#--enable-ldap enable ldap backend no|yes|mod no
|
#--enable-ldap enable ldap backend no|yes|mod no
|
||||||
# This has no dependencies
|
PACKAGECONFIG[ldap] = "--enable-ldap=mod,--enable-ldap=no,"
|
||||||
EXTRA_OECONF += "--enable-ldap=mod"
|
|
||||||
#
|
|
||||||
#--enable-ldbm enable ldbm backend no|yes|mod no
|
#--enable-ldbm enable ldbm backend no|yes|mod no
|
||||||
# ldbm requires further specification of the underlying database API, because
|
# ldbm requires further specification of the underlying database API, because
|
||||||
# bdb is enabled above this must be set to berkeley, however the config
|
# bdb is enabled above this must be set to berkeley, however the config
|
||||||
# defaults this correctly so --with-ldbm-api is *not* set. The build will
|
# defaults this correctly so --with-ldbm-api is *not* set. The build will
|
||||||
# fail if bdb is removed (above) but not database is built to provide the
|
# fail if bdb is removed, but no database is built to provide the
|
||||||
# support for ldbm (because the 'DEPENDS_ldbm' is empty below.)
|
# support for ldbm
|
||||||
#
|
# guide.html:<P>back-ldbm was both slow and unreliable. Its byzantine indexing code was prone to spontaneous corruption, as were the underlying database libraries that were commonly used (e.g. GDBM or NDBM). back-bdb and back-hdb are superior in every aspect, with simplified indexing to avoid index corruption, fine-grained locking for greater concurrency, hierarchical caching for greater performance, streamlined on-disk format for greater efficiency and portability, and full transaction support for greater reliability.</P>
|
||||||
# So to use gdbm set:
|
# configure: WARNING: unrecognized options: --disable-silent-rules, --enable-ldbm, --with-ldbm-api
|
||||||
OPENLDAP_OPTION_ldbm = "--enable-ldbm=mod --with-ldbm-api=gdbm"
|
#PACKAGECONFIG[ldbm] = "--enable-ldbm=mod --with-ldbm-api=gdbm,--enable-ldbm-no,gdbm"
|
||||||
OPENLDAP_DEPENDS_ldbm = "gdbm"
|
|
||||||
# And clear the bdb and hdb settings.
|
|
||||||
OPENLDAP_OPTION_ldbm ?= "--enable-ldbm=mod"
|
|
||||||
OPENLDAP_DEPENDS_ldbm ?= ""
|
|
||||||
EXTRA_OECONF += "${OPENLDAP_OPTION_ldbm}"
|
|
||||||
DEPENDS += "${OPENLDAP_DEPENDS_ldbm}"
|
|
||||||
#
|
|
||||||
#--enable-meta enable metadirectory backend no|yes|mod no
|
#--enable-meta enable metadirectory backend no|yes|mod no
|
||||||
# No dependencies
|
PACKAGECONFIG[meta] = "--enable-meta=mod,--enable-meta=no,"
|
||||||
EXTRA_OECONF += "--enable-meta=mod"
|
|
||||||
#
|
|
||||||
#--enable-monitor enable monitor backend no|yes|mod yes
|
#--enable-monitor enable monitor backend no|yes|mod yes
|
||||||
EXTRA_OECONF += "--enable-monitor=mod"
|
PACKAGECONFIG[monitor] = "--enable-monitor=mod,--enable-monitor=no,"
|
||||||
#
|
|
||||||
#--enable-null enable null backend no|yes|mod no
|
#--enable-null enable null backend no|yes|mod no
|
||||||
EXTRA_OECONF += "--enable-null=mod"
|
PACKAGECONFIG[null] = "--enable-null=mod,--enable-null=no,"
|
||||||
#
|
|
||||||
#--enable-passwd enable passwd backend no|yes|mod no
|
#--enable-passwd enable passwd backend no|yes|mod no
|
||||||
EXTRA_OECONF += " --enable-passwd=mod"
|
PACKAGECONFIG[passwd] = "--enable-passwd=mod,--enable-passwd=no,"
|
||||||
#
|
|
||||||
#--enable-perl enable perl backend no|yes|mod no
|
#--enable-perl enable perl backend no|yes|mod no
|
||||||
# This requires a loadable perl dynamic library, if enabled without
|
# This requires a loadable perl dynamic library, if enabled without
|
||||||
# doing something appropriate (building perl?) the build will pick
|
# doing something appropriate (building perl?) the build will pick
|
||||||
# up the build machine perl - not good.
|
# up the build machine perl - not good (inherit perlnative?)
|
||||||
OPENLDAP_OPTION_perl ?= "--enable-perl=mod"
|
PACKAGECONFIG[perl] = "--enable-perl=mod,--enable-perl=no,perl"
|
||||||
OPENLDAP_DEPENDS_perl ?= "perl"
|
|
||||||
#EXTRA_OECONF += "${OPENLDAP_OPTION_perl}"
|
|
||||||
#DEPENDS += "${OPENLDAP_DEPENDS_perl}"
|
|
||||||
#
|
|
||||||
#--enable-shell enable shell backend no|yes|mod no
|
#--enable-shell enable shell backend no|yes|mod no
|
||||||
EXTRA_OECONF += "--enable-shell=mod"
|
# configure: WARNING: Use of --without-threads is recommended with back-shell
|
||||||
#
|
PACKAGECONFIG[shell] = "--enable-shell=mod --without-threads,--enable-shell=no,"
|
||||||
|
|
||||||
#--enable-sql enable sql backend no|yes|mod no
|
#--enable-sql enable sql backend no|yes|mod no
|
||||||
# sql requires some sql backend which provides sql.h, sqlite* provides
|
# sql requires some sql backend which provides sql.h, sqlite* provides
|
||||||
# sqlite.h (which may be compatible but hasn't been tried.)
|
# sqlite.h (which may be compatible but hasn't been tried.)
|
||||||
OPENLDAP_OPTION_sql ?= "--enable-sql=mod"
|
PACKAGECONFIG[sql] = "--enable-sql=mod,--enable-sql=no,sqlite3"
|
||||||
OPENLDAP_DEPENDS_sql ?= "sql"
|
|
||||||
#EXTRA_OECONF += "${OPENLDAP_OPTION_sql}"
|
|
||||||
#DEPENDS += "${OPENLDAP_DEPENDS_sql}"
|
|
||||||
#
|
|
||||||
#--enable-dyngroup Dynamic Group overlay no|yes|mod no
|
#--enable-dyngroup Dynamic Group overlay no|yes|mod no
|
||||||
# This is a demo, Proxy Cache defines init_module which conflicts with the
|
# This is a demo, Proxy Cache defines init_module which conflicts with the
|
||||||
# same symbol in dyngroup
|
# same symbol in dyngroup
|
||||||
#EXTRA_OECONF += "--enable-dyngroup=mod"
|
PACKAGECONFIG[dyngroup] = "--enable-dyngroup=mod,--enable-dyngroup=no,"
|
||||||
#
|
|
||||||
#--enable-proxycache Proxy Cache overlay no|yes|mod no
|
#--enable-proxycache Proxy Cache overlay no|yes|mod no
|
||||||
EXTRA_OECONF += "--enable-proxycache=mod"
|
PACKAGECONFIG[proxycache] = "--enable-proxycache=mod,--enable-proxycache=no,"
|
||||||
FILES_${PN}-overlay-proxycache = "${md}/pcache-*.so.*"
|
FILES_${PN}-overlay-proxycache = "${md}/pcache-*.so.*"
|
||||||
PACKAGES += "${PN}-overlay-proxycache"
|
PACKAGES += "${PN}-overlay-proxycache"
|
||||||
#
|
|
||||||
# LOCAL OPTION OVERRIDES
|
|
||||||
# The distro/lcoal options must be added in *last*
|
|
||||||
EXTRA_OECONF += "${OPENLDAP_OPTIONS}"
|
|
||||||
DEPENDS += "${OPENLDAP_DEPENDS}"
|
|
||||||
|
|
||||||
CPPFLAGS_append = " -D_GNU_SOURCE"
|
CPPFLAGS_append = " -D_GNU_SOURCE"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user