aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2020-01-23 15:05:45 +0100
committerJakub Jirutka <jakub@jirutka.cz>2020-01-23 15:04:30 +0100
commit93605472e4aa1bb31ceedd51297d117f419d9aa4 (patch)
treedc8422651089ccf72fc2f59d4f572d5a43a0396f
parente7a9ca904d95edd9b1cc448bbc779ee1f0e96176 (diff)
downloadaports-93605472e4aa1bb31ceedd51297d117f419d9aa4.tar.bz2
aports-93605472e4aa1bb31ceedd51297d117f419d9aa4.tar.xz
main/openldap: build ldapcpp library
-rw-r--r--main/openldap/APKBUILD25
1 files changed, 23 insertions, 2 deletions
diff --git a/main/openldap/APKBUILD b/main/openldap/APKBUILD
index 77b0146d08..9da6aa0fa2 100644
--- a/main/openldap/APKBUILD
+++ b/main/openldap/APKBUILD
@@ -13,7 +13,7 @@
#
pkgname=openldap
pkgver=2.4.48
-pkgrel=2
+pkgrel=3
pkgdesc="LDAP Server"
url="http://www.openldap.org/"
arch="all"
@@ -23,7 +23,7 @@ pkggroups="ldap"
depends_dev="openssl-dev cyrus-sasl-dev util-linux-dev"
makedepends="$depends_dev db-dev groff unixodbc-dev libtool mosquitto-dev
autoconf automake"
-subpackages="$pkgname-dev $pkgname-doc libldap
+subpackages="$pkgname-dev $pkgname-doc libldapcpp libldap
$pkgname-clients $pkgname-mqtt $pkgname-passwd-pbkdf2:passwd_pbkdf2
$pkgname-backend-all:_backend_all:noarch
$pkgname-overlay-all:_overlay_all:noarch
@@ -110,6 +110,16 @@ build() {
# Build passwd pbkdf2.
make prefix=/usr libexecdir=/usr/lib \
-C contrib/slapd-modules/passwd/pbkdf2
+
+ # Build C++ library.
+ cd contrib/ldapc++
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --with-libldap="$builddir/libraries/libldap/.libs -L$builddir/libraries/liblber/.libs" \
+ --with-ldap-includes="$builddir/include"
+ make
}
package() {
@@ -125,6 +135,9 @@ package() {
make DESTDIR="$pkgdir" prefix=/usr libexecdir=/usr/lib \
-C contrib/slapd-modules/passwd/pbkdf2 install
+ make DESTDIR="$pkgdir" \
+ -C contrib/ldapc++ install
+
cd "$pkgdir"
rmdir var/lib/openldap/run
@@ -152,6 +165,14 @@ package() {
install -D -m 644 "$srcdir"/slapd.confd etc/conf.d/slapd
}
+libldapcpp() {
+ pkgdesc="LDAPv3 C++ Class Library"
+ depends=""
+ install=""
+
+ _submv "usr/lib/libldapcpp.so*"
+}
+
libldap() {
pkgdesc="OpenLDAP libraries"
depends=""