summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-oe/recipes-support/openldap/openldap_2.4.57.bb
diff options
context:
space:
mode:
authorAndrew Geissler <geissonator@yahoo.com>2021-01-30 00:58:13 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2021-01-30 19:33:11 +0300
commiteef6386ca7c8a62f37fc84a0a5a68842183cdfb0 (patch)
treee6aff1bbab2f0f36edabc31493bcf96e34ce1d6b /meta-openembedded/meta-oe/recipes-support/openldap/openldap_2.4.57.bb
parentc60845c87403beb867c541f4271d05287f38a985 (diff)
downloadopenbmc-eef6386ca7c8a62f37fc84a0a5a68842183cdfb0.tar.xz
meta-openembedded: subtree update:4599fea881..fd123c9bb2
Adrian (1): networkmanager: add missing readline depends Adrian Freihofer (2): nftables: upgrade 0.9.7 -> 0.9.8 firewalld: upgrade 0.9.2 -> 0.9.3 Adrian Herrera (2): cppunit: add support for native version protobuf: apply fix for pkg-config pthread flags Alejandro Enedino Hernandez Samaniego (2): remmina: Update to 1.4.10 imapfilter: Upgrade 2.6.16 -> 2.7.5 Anatol Belski (1): xmlsec1: Fix configure QA error caused by host lookup path Andreas Müller (24): libunique: remove xfce4-screenshooter: replace gtk+ -> gtk+3 in DEPENDS libxfce4ui: Fix sporadic install error poppler: upgrade 20.12.1 -> 21.01.0 dconf: upgrade 0.36.0 -> 0.38.0 dconf-editor: upgrade 3.36.2 -> 3.38.2 amtk: upgrade 5.1.1 -> 5.2.0 evince: upgrade 3.36.7 -> 3.38.0 catfish: upgrade 1.4.13 -> 4.16.0 xfwm4: upgrade 4.16.0 -> 4.16.1 parole: upgrade 1.0.5 -> 4.16.0 garcon: upgrade 0.8.0 -> 4.16.1 xfce4-whiskermenu-plugin: upgrade 2.5.1 -> 2.5.2 thunar: upgrade 4.16.0 -> 4.16.2 jack: upgrade 1.19.16 -> 1.19.17 networkmanager: upgrade 1.22.14 -> 1.28.0 appstream-glib: upgrade 0.7.17 -> 0.7.18 vlc: upgrade 3.0.11.1 -> 3.0.12 python3-mypy-extensions: Initial add 0.4.3 python3-mypy: initial add 0.800 python3-send2trash_ initial add 1.5.0 python3-asttokens: initial add 2.0.4 python3-typed-ast: Initial add 1.4.1 packagegroup-meta-python: Add asttokens/mypy/mypy-extensions/typed-ast/send2trash Andrew Jeffery (2): meta-python: Add hexdump package meta-python: Add jstyleson Armin Kuster (3): wireshark: Several securtiy fixes ipset: add recipe lua: update to 5.3.6 Clément Péron (2): re2: Add recipe for Google RE2 library abseil-cpp: bump to LTS 2020_09_23 Patch Release 3 Daniel Gomez (2): zbar: Add support for mchehab/zbar zbar: Remove support for 0.10 version Diego Santa Cruz (1): net-snmp: control smux via PACKAGECONFIG Gianfranco (2): vboxguestdrivers: upgrade 6.1.16 -> 6.1.18 vboxguestdrivers: Add patch proposed upstream to fix a build failure on i386 Gianfranco Costamagna (1): dlt-daemon: update to new release 2.18.6 Harpritkaur Bhandari (1): rapidjson: Upgrade SRCREV to latest He Zhe (2): lmbench: Fix webpage-lm and manual page typos lmbench: lat_fifo: Fix cleanup sequence Junjie Mao (1): python3-xmlschema: Yocto recipes for validating against XSD 1.1 Kai Kang (4): xfce4-panel-profiles: fix do install failure with dash xfce4-panel-profiles: update remove-bashisms.patch for centos 7 blueman: refresh patch mariadb: add package config zstd Khem Raj (6): influxdb: Fix build on mips packagegroup-meta-oe: Add new package influxdb packagegroup-meta-networking: Add ipset packagegroup-meta-oe: Add re2 autoconf-2.13-native,xserver-xorg-cvt-native: Move inheriting native to the end dfu-util-native: Adjust Inherit order Leon Anavi (75): python3-aiohttp: Upgrade 3.7.2 -> 3.7.3 python3-coloredlogs: Upgrade 14.0 -> 15.0 python3-jsonrpcserver: Upgrade 4.1.3 -> 4.2.0 python3-pymisp: Upgrade 2.4.133 -> 2.4.135.3 python3-parso: Upgrade 0.8.0 -> 0.8.1 python3-pillow: Upgrade 7.2.0 -> 8.1.0 python3-croniter: Upgrade 0.3.37 -> 1.0.1 python3-pychromecast: Upgrade 7.7.1 -> 7.7.2 python3-hyperlink: Upgrade 20.0.1 -> 21.0.0 python3-dnspython: Upgrade 2.0.0 -> 2.1.0 python3-prompt-toolkit: Upgrade 3.0.9 -> 3.0.10 python3-ptyprocess: Upgrade 0.6.0 -> 0.7.0 python3-certifi: Upgrade 2020.11.8 -> 2020.12.5 python3-jedi: Upgrade 0.17.2 -> 0.18.0 python3-mock: Upgrade 4.0.2 -> 4.0.3 python3-pyscaffold: Upgrade 3.2.3 -> 3.3 python3-cffi: Upgrade 1.14.3 -> 1.14.4 python3-rsa: Upgrade 4.6 -> 4.7 python3-pyjwt: Upgrade 1.7.1 -> 2.0.0 python3-isort: Upgrade 5.6.4 -> 5.7.0 python3-lz4: Upgrade 3.1.0 -> 3.1.1 python3-msgpack: Upgrade 1.0.0 -> 1.0.2 python3-pyopenssl: Upgrade 19.1.0 -> 20.0.1 python3-ecdsa: Upgrade 0.16.0 -> 0.16.1 python3-regex: Upgrade 2020.10.28 -> 2020.11.13 python3-cryptography: Upgrade 3.2 -> 3.3.1 python3-cryptography-vectors: Upgrade 3.2 -> 3.3.1 python3-wheel: Upgrade 0.35.1 -> 0.36.2 python3-pyzmq: Upgrade 19.0.2 -> 20.0.0 python3-greenlet: Upgrade 0.4.17 -> 1.0.0 python3-parse: Upgrade 1.18.0 -> 1.19.0 python3-colorlog: Upgrade 4.6.2 -> 4.7.2 python3-pyephem: Upgrade 3.7.7.0 -> 3.7.7.1 python3-pyperf: Upgrade 2.0.0 -> 2.1.0 python3-cheetah: Upgrade 3.2.5 -> 3.2.6 python3-pyscaffold: Upgrade 3.3 -> 3.3.1 python3-lxml: Upgrade 4.6.1 -> 4.6.2 python3-openpyxl: Upgrade 3.0.5 -> 3.0.6 python3-pymysql: Upgrade 0.10.1 -> 1.0.2 python3-dbus-next: Upgrade 0.1.4 -> 0.2.2 python3-yappi: Upgrade 1.3.0 -> 1.3.2 python3-pyyaml: Upgrade 5.3.1 -> 5.4 python3-google-api-python-client: Upgrade 1.12.5 -> 1.12.8 python3-evdev: Upgrade 1.3.0 -> 1.4.0 python3-pyusb: Upgrade 1.1.0 -> 1.1.1 python3-pyserial: Upgrade 3.4 -> 3.5 python3-pandas: Upgrade 1.2.0 -> 1.2.1 python3-alembic: Upgrade 1.4.3 -> 1.5.1 python3-coverage: Upgrade 5.3 -> 5.3.1 python3-lz4: Upgrade 3.1.1 -> 3.1.3 python3-bitarray: Upgrade 1.6.1 -> 1.6.3 python3-pykwalify: Upgrade 1.7.0 -> 1.8.0 python3-croniter: Upgrade 1.0.1 -> 1.0.2 python3-ujson: Upgrade 4.0.1 -> 4.0.2 python3-smbus2: Upgrade 0.4.0 -> 0.4.1 python3-pyzmq: Upgrade 20.0.0 -> 21.0.1 python3-alembic: Upgrade 1.5.1 -> 1.5.2 python3-prompt-toolkit: Upgrade 3.0.10 -> 3.0.11 python3-pyjwt: Upgrade 2.0.0 -> 2.0.1 python3-pyyaml: Upgrade 5.4 -> 5.4.1 python3-natsort: Upgrade 7.1.0 -> 7.1.1 python3-pymisp: Upgrade 2.4.135.3 -> 2.4.137.1 python3-socketio: Upgrade 4.6.0 -> 5.0.4 python3-lazy-object-proxy: Upgrade 1.5.1 -> 1.5.2 python3-custom-inherit: Upgrade 2.3.0 -> 2.3.1 python3-cachetools: Upgrade 4.2.0 -> 4.2.1 python3-coverage: Upgrade 5.3.1 -> 5.4 python3-diskcache: Upgrade 5.1.0 -> 5.2.1 python3-aenum: Upgrade 2.2.6 -> 3.0.0 python3-xmlschema: Upgrade 1.4.1 -> 1.4.2 python3-intervals: Upgrade 1.10.0 -> 1.10.0.post1 python3-portion: Add recipe python3-pako: Upgrade 0.2.3 -> 0.3.0 python3-typed-ast: Upgrade 1.4.1 -> 1.4.2 python3-pyzmq: Upgrade 21.0.1 -> 21.0.2 Luca Boccassi (4): dbus-broker: enable SO_PEERSEC usage by default fsverity: update to 1.3 fsverity: fix MinGW build dbus-broker: update to v26 Mario Schuknecht (1): dnsmasq: Fix systemd service Mikko Rapeli (3): fuse: set CVE_PRODUCT to "fuse_project:fuse" flatbuffers: whitelist CVE-2020-35864 giflib: apply patch for CVE-2019-15133 and set CVE_PRODUCT Mingli Yu (2): mcelog: fix the pfa test hang mariadb: upgrade to 10.5.8 Nicolas Jeker (1): networkmanager: Add Wireless Extensions to PACKAGECONFIG[wifi] Oleksiy Obitotskyy (1): libsmi: set awk as target path Robert Joslyn (1): htop: Update to 3.0.4 Ross Burton (1): libmicrohttpd: allow native/nativesdk builds S. Lockwood-Childs (1): sip3: simplify recipe Shlomi Vaknin (1): python3-sh: remove python3-tests from RDEPENDS Stefano Babic (1): libconfig: split package for C++ Søren Andersen (1): zram: fix sourcing of zram parameters Thomas Perrot (1): influxdb: add new recipe Trevor Gamblin (2): packagegroup-meta-python: sort package names, add notes packagegroup-meta-python: add ptest packages to ptest group Wang Mingyu (1): dovecot: upgrade 2.2.36.4 -> 2.3.13 Yi Zhao (1): nss: upgrade 3.60 -> 3.60.1 Zang Ruochen (9): c-periphery: upgrade 2.3.0 -> 2.3.1 htop: upgrade 3.0.4 -> 3.0.5 hwdata: upgrade 0.342 -> 0.343 spitools: upgrade 0.8.6 -> 0.8.7 librole-tiny-perl: upgrade 2.001004 -> 2.002003 python3-smbus: upgrade 4.1 -> 4.2 python3-snappy: upgrade 0.5.4 -> 0.6.0 python3-zopeinterface: upgrade 5.1.0 -> 5.2.0 python3-nmap: upgrade 1.4.8 -> 1.5.0 Zheng Ruoqin (7): cifs-utils: upgrade 6.11 -> 6.12 firewalld: upgrade 0.9.1 -> 0.9.2 igmpproxy: upgrade 0.2.1 -> 0.3 mdns: upgrade 1096.40.7 -> 1310.40.42 opensc: Fix the wrong version number. python3-djangorestframework: upgrade 3.12.1 -> 3.12.2 python3-ipy: upgrade 1.00 -> 1.01 changqing.li@windriver.com (1): celt051: update SRC_URI zangrc (6): libnftnl: upgrade 1.1.8 -> 1.1.9 czmq: upgrade 4.2.0 -> 4.2.1 dialog: upgrade 1.3-20201126 -> 1.3-20210117 modemanager: upgrade 1.14.8 -> 1.14.10 monit: upgrade 5.27.1 -> 5.27.2 python3-networkmanager: upgrade 2.1 -> 2.2 zhengruoqin (3): openldap: upgrade 2.4.56 -> 2.4.57 satyr: upgrade 0.35 -> 0.36 zeromq: upgrade 4.3.3 -> 4.3.4 Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I2469d162f1db8072fec106f629872618082bbeac
Diffstat (limited to 'meta-openembedded/meta-oe/recipes-support/openldap/openldap_2.4.57.bb')
-rw-r--r--meta-openembedded/meta-oe/recipes-support/openldap/openldap_2.4.57.bb254
1 files changed, 254 insertions, 0 deletions
diff --git a/meta-openembedded/meta-oe/recipes-support/openldap/openldap_2.4.57.bb b/meta-openembedded/meta-oe/recipes-support/openldap/openldap_2.4.57.bb
new file mode 100644
index 0000000000..a282523a3c
--- /dev/null
+++ b/meta-openembedded/meta-oe/recipes-support/openldap/openldap_2.4.57.bb
@@ -0,0 +1,254 @@
+SUMMARY = "OpenLDAP Directory Service"
+DESCRIPTION = "OpenLDAP Software is an open source implementation of the Lightweight Directory Access Protocol."
+HOMEPAGE = "http://www.OpenLDAP.org/license.html"
+# The OpenLDAP Public License - see the HOMEPAGE - defines
+# the license. www.openldap.org claims this is Open Source
+# (see http://www.openldap.org), the license appears to be
+# basically BSD. opensource.org does not record this license
+# at present (so it is apparently not OSI certified).
+LICENSE = "OpenLDAP"
+LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=b6dea6c170362fc46381fe3690c722cb \
+ file://LICENSE;md5=153d07ef052c4a37a8fac23bc6031972 \
+ "
+SECTION = "libs"
+
+LDAP_VER = "${@'.'.join(d.getVar('PV').split('.')[0:2])}"
+
+SRC_URI = "http://www.openldap.org/software/download/OpenLDAP/openldap-release/${BP}.tgz \
+ file://openldap-m4-pthread.patch \
+ file://openldap-2.4.28-gnutls-gcrypt.patch \
+ file://use-urandom.patch \
+ file://initscript \
+ file://slapd.service \
+ file://thread_stub.patch \
+ file://openldap-CVE-2015-3276.patch \
+ file://remove-user-host-pwd-from-version.patch \
+"
+
+SRC_URI[md5sum] = "e3349456c3a66e5e6155be7ddc3f042c"
+SRC_URI[sha256sum] = "c7ba47e1e6ecb5b436f3d43281df57abeffa99262141aec822628bc220f6b45a"
+
+DEPENDS = "util-linux groff-native"
+
+# The original top.mk used INSTALL, not INSTALL_STRIP_PROGRAM when
+# installing .so and executables, this fails in cross compilation
+# environments
+SRC_URI += "file://install-strip.patch"
+
+inherit autotools-brokensep update-rc.d systemd
+
+# CV SETTINGS
+# Required to work round AC_FUNC_MEMCMP which gets the wrong answer
+# when cross compiling (should be in site?)
+EXTRA_OECONF += "ac_cv_func_memcmp_working=yes"
+
+# CONFIG DEFINITIONS
+# The following is necessary because it cannot be determined for a
+# cross compile automagically. Select should yield fine on all OE
+# systems...
+EXTRA_OECONF += "--with-yielding-select=yes"
+# Shared libraries are nice...
+EXTRA_OECONF += "--enable-dynamic"
+
+PACKAGECONFIG ??= "gnutls modules \
+ mdb ldap meta monitor null passwd shell proxycache dnssrv \
+ ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \
+"
+#--with-tls with TLS/SSL support auto|openssl|gnutls [auto]
+PACKAGECONFIG[gnutls] = "--with-tls=gnutls,,gnutls libgcrypt"
+PACKAGECONFIG[openssl] = "--with-tls=openssl,,openssl"
+
+PACKAGECONFIG[sasl] = "--with-cyrus-sasl,--without-cyrus-sasl,cyrus-sasl"
+PACKAGECONFIG[modules] = "lt_cv_dlopen_self=yes --enable-modules,--disable-modules,libtool"
+PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6"
+
+# SLAPD options
+#
+# UNIX crypt(3) passwd support:
+EXTRA_OECONF += "--enable-crypt"
+
+# SLAPD BACKEND
+#
+# The backend must be set by the configuration. This controls the
+# required database.
+#
+# Backends="bdb dnssrv hdb ldap mdb meta monitor ndb null passwd perl relay shell sock sql"
+#
+# Note that multiple backends can be built. The ldbm backend requires a
+# build-time choice of database API. The bdb backend forces this to be
+# DB4. To use the gdbm (or other) API the Berkely database module must
+# be removed from the build.
+md = "${libexecdir}/openldap"
+#
+#--enable-bdb enable Berkeley DB backend no|yes|mod yes
+# The Berkely DB is the standard choice. This version of OpenLDAP requires
+# the version 4 implementation or better.
+PACKAGECONFIG[bdb] = "--enable-bdb=yes,--enable-bdb=no,db"
+
+#--enable-dnssrv enable dnssrv backend no|yes|mod no
+PACKAGECONFIG[dnssrv] = "--enable-dnssrv=mod,--enable-dnssrv=no"
+
+#--enable-hdb enable Hierarchical DB backend no|yes|mod no
+PACKAGECONFIG[hdb] = "--enable-hdb=yes,--enable-hdb=no,db"
+
+#--enable-ldap enable ldap backend no|yes|mod no
+PACKAGECONFIG[ldap] = "--enable-ldap=mod,--enable-ldap=no,"
+
+#--enable-mdb enable mdb database backend no|yes|mod [yes]
+PACKAGECONFIG[mdb] = "--enable-mdb=yes,--enable-mdb=no,"
+
+#--enable-meta enable metadirectory backend no|yes|mod no
+PACKAGECONFIG[meta] = "--enable-meta=mod,--enable-meta=no,"
+
+#--enable-monitor enable monitor backend no|yes|mod yes
+PACKAGECONFIG[monitor] = "--enable-monitor=mod,--enable-monitor=no,"
+
+#--enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
+PACKAGECONFIG[ndb] = "--enable-ndb=mod,--enable-ndb=no,"
+
+#--enable-null enable null backend no|yes|mod no
+PACKAGECONFIG[null] = "--enable-null=mod,--enable-null=no,"
+
+#--enable-passwd enable passwd backend no|yes|mod no
+PACKAGECONFIG[passwd] = "--enable-passwd=mod,--enable-passwd=no,"
+
+#--enable-perl enable perl backend no|yes|mod no
+# This requires a loadable perl dynamic library, if enabled without
+# doing something appropriate (building perl?) the build will pick
+# up the build machine perl - not good (inherit perlnative?)
+PACKAGECONFIG[perl] = "--enable-perl=mod,--enable-perl=no,perl"
+
+#--enable-relay enable relay backend no|yes|mod [yes]
+PACKAGECONFIG[relay] = "--enable-relay=mod,--enable-relay=no,"
+
+#--enable-shell enable shell backend no|yes|mod no
+# configure: WARNING: Use of --without-threads is recommended with back-shell
+PACKAGECONFIG[shell] = "--enable-shell=mod --without-threads,--enable-shell=no,"
+
+#--enable-sock enable sock backend no|yes|mod [no]
+PACKAGECONFIG[sock] = "--enable-sock=mod,--enable-sock=no,"
+
+#--enable-sql enable sql backend no|yes|mod no
+# sql requires some sql backend which provides sql.h, sqlite* provides
+# sqlite.h (which may be compatible but hasn't been tried.)
+PACKAGECONFIG[sql] = "--enable-sql=mod,--enable-sql=no,sqlite3"
+
+#--enable-dyngroup Dynamic Group overlay no|yes|mod no
+# This is a demo, Proxy Cache defines init_module which conflicts with the
+# same symbol in dyngroup
+PACKAGECONFIG[dyngroup] = "--enable-dyngroup=mod,--enable-dyngroup=no,"
+
+#--enable-proxycache Proxy Cache overlay no|yes|mod no
+PACKAGECONFIG[proxycache] = "--enable-proxycache=mod,--enable-proxycache=no,"
+FILES_${PN}-overlay-proxycache = "${md}/pcache-*.so.*"
+PACKAGES += "${PN}-overlay-proxycache"
+
+# Append URANDOM_DEVICE='/dev/urandom' to CPPFLAGS:
+# This allows tls to obtain random bits from /dev/urandom, by default
+# it was disabled for cross-compiling.
+CPPFLAGS_append = " -D_GNU_SOURCE -DURANDOM_DEVICE=\'/dev/urandom\' -fPIC"
+
+LDFLAGS_append = " -pthread"
+
+do_configure() {
+ cp ${STAGING_DATADIR_NATIVE}/libtool/build-aux/ltmain.sh ${S}/build
+ rm -f ${S}/libtool
+ aclocal
+ libtoolize --force --copy
+ gnu-configize
+ autoconf
+ oe_runconf
+}
+
+LEAD_SONAME = "libldap-${LDAP_VER}.so.*"
+
+# The executables go in a separate package. This allows the
+# installation of the libraries with no daemon support.
+# Each module also has its own package - see above.
+PACKAGES += "${PN}-slapd ${PN}-slurpd ${PN}-bin"
+
+# Package contents - shift most standard contents to -bin
+FILES_${PN} = "${libdir}/lib*.so.* ${sysconfdir}/openldap/ldap.* ${localstatedir}/${BPN}/data"
+FILES_${PN}-slapd = "${sysconfdir}/init.d ${libexecdir}/slapd ${sbindir} ${localstatedir}/run ${localstatedir}/volatile/run \
+ ${sysconfdir}/openldap/slapd.* ${sysconfdir}/openldap/schema \
+ ${sysconfdir}/openldap/DB_CONFIG.example ${systemd_unitdir}/system/*"
+FILES_${PN}-slurpd = "${libexecdir}/slurpd ${localstatedir}/openldap-slurp"
+FILES_${PN}-bin = "${bindir}"
+FILES_${PN}-dev = "${includedir} ${libdir}/lib*.so ${libdir}/*.la ${libexecdir}/openldap/*.a ${libexecdir}/openldap/*.la ${libexecdir}/openldap/*.so"
+FILES_${PN}-dbg += "${libexecdir}/openldap/.debug"
+
+do_install_append() {
+ install -d ${D}${sysconfdir}/init.d
+ cat ${WORKDIR}/initscript > ${D}${sysconfdir}/init.d/openldap
+ chmod 755 ${D}${sysconfdir}/init.d/openldap
+ # This is duplicated in /etc/openldap and is for slapd
+ rm -f ${D}${localstatedir}/openldap-data/DB_CONFIG.example
+
+ # Installing slapd under ${sbin} is more FHS and LSB compliance
+ mv ${D}${libexecdir}/slapd ${D}/${sbindir}/slapd
+ rmdir --ignore-fail-on-non-empty ${D}${libexecdir}
+ SLAPTOOLS="slapadd slapcat slapdn slapindex slappasswd slaptest slapauth slapacl slapschema"
+ cd ${D}/${sbindir}/
+ rm -f ${SLAPTOOLS}
+ for i in ${SLAPTOOLS}; do ln -sf slapd $i; done
+
+ rmdir "${D}${localstatedir}/run"
+ rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
+
+ install -d ${D}${systemd_unitdir}/system/
+ install -m 0644 ${WORKDIR}/slapd.service ${D}${systemd_unitdir}/system/
+ sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/*.service
+
+ # Uses mdm as the database
+ # and localstatedir as data directory ...
+ sed -e 's/# modulepath/modulepath/' \
+ -e 's/# moduleload\s*back_bdb.*/moduleload back_mdb/' \
+ -e 's/database\s*bdb/database mdb/' \
+ -e 's%^directory\s*.*%directory ${localstatedir}/${BPN}/data/%' \
+ -i ${D}${sysconfdir}/openldap/slapd.conf
+
+ mkdir -p ${D}${localstatedir}/${BPN}/data
+
+
+}
+
+INITSCRIPT_PACKAGES = "${PN}-slapd"
+INITSCRIPT_NAME_${PN}-slapd = "openldap"
+INITSCRIPT_PARAMS_${PN}-slapd = "defaults"
+SYSTEMD_SERVICE_${PN}-slapd = "hostapd.service"
+SYSTEMD_AUTO_ENABLE_${PN}-slapd ?= "disable"
+
+
+PACKAGES_DYNAMIC += "^${PN}-backends.* ^${PN}-backend-.*"
+
+# The modules require their .so to be dynamicaly loaded
+INSANE_SKIP_${PN}-backend-dnssrv += "dev-so"
+INSANE_SKIP_${PN}-backend-ldap += "dev-so"
+INSANE_SKIP_${PN}-backend-meta += "dev-so"
+INSANE_SKIP_${PN}-backend-mdb += "dev-so"
+INSANE_SKIP_${PN}-backend-monitor += "dev-so"
+INSANE_SKIP_${PN}-backend-null += "dev-so"
+INSANE_SKIP_${PN}-backend-passwd += "dev-so"
+INSANE_SKIP_${PN}-backend-shell += "dev-so"
+
+
+python populate_packages_prepend () {
+ backend_dir = d.expand('${libexecdir}/openldap')
+ do_split_packages(d, backend_dir, 'back_([a-z]*)\.so$', 'openldap-backend-%s', 'OpenLDAP %s backend', prepend=True, extra_depends='', allow_links=True)
+ do_split_packages(d, backend_dir, 'back_([a-z]*)\-.*\.so\..*$', 'openldap-backend-%s', 'OpenLDAP %s backend', extra_depends='', allow_links=True)
+
+ metapkg = "${PN}-backends"
+ d.setVar('ALLOW_EMPTY_' + metapkg, "1")
+ d.setVar('FILES_' + metapkg, "")
+ metapkg_rdepends = []
+ packages = d.getVar('PACKAGES').split()
+ for pkg in packages[1:]:
+ if pkg.count("openldap-backend-") and not pkg in metapkg_rdepends and not pkg.count("-dev") and not pkg.count("-dbg") and not pkg.count("static") and not pkg.count("locale"):
+ metapkg_rdepends.append(pkg)
+ d.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends))
+ d.setVar('DESCRIPTION_' + metapkg, 'OpenLDAP backends meta package')
+ packages.append(metapkg)
+ d.setVar('PACKAGES', ' '.join(packages))
+}
+
+BBCLASSEXTEND = "native"