summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2021-10-24 23:09:48 -0700
committerXin LI <delphij@FreeBSD.org>2021-10-24 23:45:37 -0700
commit018803104cbab00fd901d80ca2829191d7287a28 (patch)
tree2a4da9b58d79aca8a5e34aed551cc4ba0ced7175
parentgraphics/exiv2: update to 0.27.5 (diff)
net/openldap24-client: Install libldap as symlinks to libldap_r.
As of FreeBSD 12.0, OpenSSL is depending on the threading library and it is no longer possible to build a true non-threaded version of libldap. The libldap_r is ABI compatible with libldap and is shipped as the libldap on Solaris and many Linux distributions, so follow the same approach.
-rw-r--r--net/openldap24-server/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/openldap24-server/Makefile b/net/openldap24-server/Makefile
index 55186932c24c..08572e8bc96f 100644
--- a/net/openldap24-server/Makefile
+++ b/net/openldap24-server/Makefile
@@ -49,7 +49,7 @@ WANT_OPENLDAP_VER?= 24
BROKEN= incompatible OpenLDAP version: ${WANT_OPENLDAP_VER}
.endif
-PORTREVISION_CLIENT= 3
+PORTREVISION_CLIENT= 4
PORTREVISION_SERVER= 6
OPENLDAP_SHLIB_MAJOR= 2
OPENLDAP_SHLIB_MINOR= 11.7
@@ -622,9 +622,12 @@ post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/$${prog}; \
done
- for library in lber ldap ldap_r; do \
+ for library in lber ldap_r; do \
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib$${library}-${OPENLDAP_MAJOR}.so.${OPENLDAP_SHLIB_MAJOR}; \
done
+ for suffix in -${OPENLDAP_MAJOR}.so.2 -${OPENLDAP_MAJOR}.so.${OPENLDAP_SHLIB_MAJOR}.${OPENLDAP_SHLIB_MINOR} .a .la .so; do \
+ ${LN} -sf libldap_r$${suffix} ${STAGEDIR}${PREFIX}/lib/libldap$${suffix}; \
+ done
.else
${MKDIR} ${STAGEDIR}${LDAP_RUN_DIR}
.for module in ${CONTRIB_MODULES}