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

From: Larry Rosenman <ler_at_lerctr.org>
Date: Sat, 11 Jan 2025 18:49:01 UTC
On 01/10/2025 9:04 am, Xavier Beaudouin wrote:
> 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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shouldn't this be OPTIONS_DEFAULT?
> +.endif
> +
>  SSSD2_RUN_DEPENDS=	sssd:security/sssd2
>  SSSD2_CONFIGURE_ON=	--with-sssd

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler@lerctr.org
US Mail: 13425 Ranch Road 620 N, Apt 718, Austin, TX 78717-1010