git: 68af7b3d319e - main - security/sudo: Add sssd flavor

From: Xavier Beaudouin <kiwi_at_FreeBSD.org>
Date: Fri, 10 Jan 2025 15:04:54 UTC
The branch main has been updated by kiwi:

URL: https://cgit.FreeBSD.org/ports/commit/?id=68af7b3d319e28e0c33de21d9dfbf9f3371b397e

commit 68af7b3d319e28e0c33de21d9dfbf9f3371b397e
Author:     Xavier Beaudouin <kiwi@FreeBSD.org>
AuthorDate: 2025-01-10 13:24:03 +0000
Commit:     Xavier Beaudouin <kiwi@FreeBSD.org>
CommitDate: 2025-01-10 14:59:43 +0000

    security/sudo: Add sssd flavor
    
    Sudo with sssd support is a good candidate
    for a flavor because it is a fairly common requirement
    in some deployments.
    
    Sponsored by:   Klara, Inc.
    Approved by:    0mp (mentor)
    Approved by:    garga (maintainer)
    Differential Revision:  https://reviews.freebsd.org/D48147
---
 security/sudo/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/security/sudo/Makefile b/security/sudo/Makefile
index b288cd0850c6..0548654a1210 100644
--- a/security/sudo/Makefile
+++ b/security/sudo/Makefile
@@ -13,6 +13,10 @@ LICENSE_NAME=	Sudo license
 LICENSE_FILE=	${WRKSRC}/LICENSE.md
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
+FLAVORS=	default sssd
+FLAVOR?=	${FLAVORS:[1]}
+sssd_PKGNAMESUFFIX=	-sssd
+
 USES=		cpe libtool pkgconfig
 CPE_VENDOR=	todd_miller
 USE_LDCONFIG=	yes
@@ -86,6 +90,10 @@ PYTHON_CONFIGURE_ENABLE=python
 SSL_USES=		ssl
 SSL_CONFIGURE_ON=	--enable-openssl=${OPENSSLBASE}
 
+.if ${FLAVOR:U} == sssd
+OPTIONS_DEFAULTS+=	SSSD2
+.endif
+
 SSSD2_RUN_DEPENDS=	sssd:security/sssd2
 SSSD2_CONFIGURE_ON=	--with-sssd