openldap: rebuild for libxcrypt

This commit is contained in:
oreo639 2023-08-08 16:53:05 -07:00 committed by classabbyamp
parent 17de9e1222
commit 14a5faa896

View file

@ -1,7 +1,7 @@
# Template file for 'openldap'
pkgname=openldap
version=2.6.6
revision=1
revision=2
build_style=gnu-configure
configure_args="--prefix=/usr
--libexecdir=/usr/libexec
@ -27,6 +27,10 @@ checksum=082e998cf542984d43634442dbe11da860759e510907152ea579bdc42fe39ea0
system_accounts="ldap"
ldap_homedir="/var/lib/openldap"
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
makedepends+=" libxcrypt-devel"
fi
pre_configure() {
sed -i 's|#define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "run" LDAP_DIRSEP "ldapi"|#define LDAPI_SOCK LDAP_DIRSEP "run" LDAP_DIRSEP "openldap" LDAP_DIRSEP "ldapi"|' include/ldap_defaults.h
sed -i 's|%LOCALSTATEDIR%/run|/run/openldap|' servers/slapd/slapd.{conf,ldif}