git: 7bd496fbe63e - main - security/sudo: Remove SSSD2 option, replaced by a flavor

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Wed, 26 Feb 2025 17:32:59 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7bd496fbe63e05a2addeb40af67f933022fa28d7

commit 7bd496fbe63e05a2addeb40af67f933022fa28d7
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-01-21 18:51:11 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-02-26 17:32:50 +0000

    security/sudo: Remove SSSD2 option, replaced by a flavor
    
    Approved by: kiwi, garga
    Differential Revision: https://reviews.freebsd.org/D48586
---
 security/sudo/Makefile | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/security/sudo/Makefile b/security/sudo/Makefile
index d354f756b734..8d9e0944a8af 100644
--- a/security/sudo/Makefile
+++ b/security/sudo/Makefile
@@ -36,7 +36,7 @@ LDFLAGS+=	-lgcc
 PORTSCOUT=	ignore:1
 
 OPTIONS_DEFINE=		AUDIT DISABLE_AUTH DISABLE_ROOT_SUDO DOCS EXAMPLES \
-			INSULTS LDAP NLS NOARGS_SHELL OPIE PAM PYTHON SSL SSSD2
+			INSULTS LDAP NLS NOARGS_SHELL OPIE PAM PYTHON SSL
 OPTIONS_DEFAULT=	AUDIT PAM SSL
 OPTIONS_RADIO=		KERBEROS
 OPTIONS_RADIO_KERBEROS=	GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT
@@ -51,7 +51,6 @@ NOARGS_SHELL_DESC=	Run a shell if no arguments are given
 OPIE_DESC=		Enable one-time passwords (no PAM support)
 PYTHON_DESC=		Enable python plugin support
 SSL_DESC=		Use OpenSSL TLS and SHA2 functions
-SSSD2_DESC=		Enable SSSD2 backend support
 
 AUDIT_CONFIGURE_WITH=	bsm-audit
 
@@ -91,12 +90,10 @@ SSL_USES=		ssl
 SSL_CONFIGURE_ON=	--enable-openssl=${OPENSSLBASE}
 
 .if ${FLAVOR:U} == sssd
-OPTIONS_DEFAULT+=	SSSD2
+RUN_DEPENDS+=		sssd:security/sssd2
+CONFIGURE_ARGS+=	--with-sssd
 .endif
 
-SSSD2_RUN_DEPENDS=	sssd:security/sssd2
-SSSD2_CONFIGURE_ON=	--with-sssd
-
 LOGFAC?=		authpriv
 SUDO_LDAP_CONF?=	ldap.conf