git: 5ba69076c83b - main - sysutils/omnibackup: Avoid hardcoding OpenLDAP version.

From: Xin LI <delphij_at_FreeBSD.org>
Date: Tue, 05 Jul 2022 17:12:12 UTC
The branch main has been updated by delphij:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5ba69076c83b4b360b2f6391f547295c5d01f153

commit 5ba69076c83b4b360b2f6391f547295c5d01f153
Author:     Xin LI <delphij@FreeBSD.org>
AuthorDate: 2022-07-05 17:11:34 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2022-07-05 17:11:35 +0000

    sysutils/omnibackup: Avoid hardcoding OpenLDAP version.
    
    PR:             265038
    Approved by:    maintainer
---
 sysutils/omnibackup/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sysutils/omnibackup/Makefile b/sysutils/omnibackup/Makefile
index ae68d475ed04..2876576b79e8 100644
--- a/sysutils/omnibackup/Makefile
+++ b/sysutils/omnibackup/Makefile
@@ -23,6 +23,7 @@ OPTIONS_DEFAULT=	\
 	MYSQL
 
 OPENLDAP_DESC=	OpenLDAP support
+OPENLDAP_USE=	OPENLDAP=yes
 
 NO_ARCH=	yes
 NO_BUILD=	yes
@@ -49,7 +50,7 @@ PLIST_FILES+=	${DOCSDIR}/README.md
 	|| ${PORT_OPTIONS:MMYSQL}
 RUN_DEPENDS+=	sudo:security/sudo
 .if ${PORT_OPTIONS:MOPENLDAP}
-RUN_DEPENDS+=	slapcat:net/openldap24-server
+RUN_DEPENDS+=	slapcat:net/openldap${OPENLDAP_VER}-server
 .endif
 .if ${PORT_OPTIONS:MPGSQL}
 USES+=	pgsql