diff --git a/srcpkgs/openldap/template b/srcpkgs/openldap/template index d10daef834a..b16d8126a74 100644 --- a/srcpkgs/openldap/template +++ b/srcpkgs/openldap/template @@ -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}