openldap: fix template building

This commit is contained in:
André Cerqueira 2022-08-11 12:38:46 +01:00 committed by Michal Vasilek
parent 88f9d35ac3
commit b379443647

View file

@ -13,7 +13,7 @@ configure_args="--prefix=/usr
--enable-syslog --enable-slapd --enable-crypt --enable-spasswd
--enable-bdb --enable-hdb --enable-overlays=mod --enable-meta=mod
--disable-static --with-yielding_select=yes --enable-modules"
hostmakedepends="pkg-config groff automake libtool"
hostmakedepends="pkg-config groff"
makedepends="openssl-devel libsasl-devel db-devel libltdl-devel"
depends="openldap-tools>=${version}_${revision}"
conf_files="/etc/openldap/ldap.conf /etc/openldap/slapd.conf"
@ -31,7 +31,6 @@ 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}
sed -i 's|-$(MKDIR) $(DESTDIR)$(localstatedir)/run|-$(MKDIR) $(DESTDIR)/run/openldap|' servers/slapd/Makefile.in
aclocal; autoconf; autoheader; libtoolize -f
}
post_install() {
ln -sf ../libexec/slapd ${DESTDIR}/usr/bin/slapd