227.8. kldap-26.08.2
KDE PIM LDAP client libraries for address lookup, and the ldap:// KIO worker
26.08.2-1 · LGPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND BSD-3-Clause AND CC0-1.0 AND MIT · 1.1 SBU · 896.6 KiB, 75 files · 43_toolkits, 73 of 344 · ports/core/auth/kldap
Homepage: https://invent.kde.org/pim/kldap
KLDAP is KDE PIM’s LDAP client: KPim6LdapCore holds the connection, search and LDIF code over OpenLDAP, KPim6LdapWidgets the server configuration dialog and the address-book lookup KMail’s recipient completion and KAddressBook use, and the ldap:// and ldaps:// KIO worker lets any KDE program browse a directory.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kcoreaddons, kconfig, ki18n, kio, kwidgetsaddons, kdoctools, qtkeychain, openldap, cyrus-sasl.
Required by (7): incidenceeditor, kaddressbook, kdepim-addons, kdepim-runtime, kmail, korganizer, pimcommon.
Sources: kldap-26.08.2.tar.xz (193.6 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install kldap'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D BUILD_TESTING=OFF \
-D KF_SKIP_PO_PROCESSING=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Ldap=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D CMAKE_REQUIRE_FIND_PACKAGE_Ldap=ON— Make openldap a requirement. Upstream finds it as recommended, and without it every LDAP call is compiled out: the libraries and the worker build, and none of them can reach a server.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— Theldapworker’s handbook page, through kdoctools, which upstream looks for as optional.-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations, which kpkg’s English-only rule would remove from the package anyway (see Size and language policy).
Libraries: libKPim6LdapCore.so, libKPim6LdapWidgets.so.
Directories: /usr/include/KPim6/KLDAPCore, /usr/include/KPim6/KLDAPWidgets, /usr/lib/cmake/KPim6LdapCore, /usr/lib/cmake/KPim6LdapWidgets, /usr/share/doc/HTML/en/kioworker6/ldap, /usr/share/licenses/kldap.
A bind password the person asks to keep is stored through qtkeychain, which the configure requires; on KDOS it lands in KWallet’s Secret Service. SASL binds go through cyrus-sasl, also required.
KF_SKIP_PO_PROCESSING stops only ki18n_install(): kdoctools_install() still builds the handbook in every translated language, and kpkg’s language rule removes /usr/share/doc/HTML/<lang>/ from the package.