aboutsummaryrefslogtreecommitdiff
path: root/net/openldap26-server
diff options
context:
space:
mode:
authorTom Warnke <tom@toromtomtom.com>2022-02-07 00:35:16 +0000
committerXin LI <delphij@FreeBSD.org>2022-02-07 00:38:11 +0000
commitf677d84c0fd21d5f278c7a56b7e80ecb3b699a7e (patch)
tree91d20e25b20972a83a7f3654e260c066dba1d6b8 /net/openldap26-server
parent2fd022b9943b34a96787861d25add3d3fada8ce8 (diff)
downloadports-f677d84c0fd21d5f278c7a56b7e80ecb3b699a7e.tar.gz
ports-f677d84c0fd21d5f278c7a56b7e80ecb3b699a7e.zip
net/openldap2[456]-server: Fix paths for argsfile and pidfile.
The Makefile patches the slapd.conf file with a changed path for the argsfile and pidfile, but the slapd.ldif file remains unchanged. Fix this by patching the paths in the slapd.ldif file as well. PR: ports/261734
Diffstat (limited to 'net/openldap26-server')
-rw-r--r--net/openldap26-server/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/openldap26-server/Makefile b/net/openldap26-server/Makefile
index 69ee37de9c72..c5a5b0c7f26e 100644
--- a/net/openldap26-server/Makefile
+++ b/net/openldap26-server/Makefile
@@ -46,7 +46,7 @@ CONFLICTS_INSTALL= ${PORTNAME}2[0-57-9]-server ${PORTNAME}-server
GNU_CONFIGURE= yes
PORTREVISION_CLIENT= 0
-PORTREVISION_SERVER= 0
+PORTREVISION_SERVER= 1
OPENLDAP_SHLIB_MAJOR= 2
OPENLDAP_SHLIB_MINOR= 0.200
@@ -374,6 +374,8 @@ CONTRIB_CLEANFILES+= smbk5pwd.a
post-patch:
@${REINPLACE_CMD} -e 's|%LOCALSTATEDIR%/run/|${LDAP_RUN_DIR}/|g' \
${SED_MODULES} ${WRKSRC}/servers/slapd/slapd.conf
+ @${REINPLACE_CMD} -e 's|%LOCALSTATEDIR%/run/|${LDAP_RUN_DIR}/|g' \
+ ${SED_MODULES} ${WRKSRC}/servers/slapd/slapd.ldif
@${REINPLACE_CMD} -e 's|^OPT =.*|OPT = ${CFLAGS}|g' \
-e 's|^CC =.*|CC = ${CC}|g' \
${SED_MODULES} ${WRKSRC}/contrib/slapd-modules/*/Makefile \