From ec7fea8ffb1d5ef9123188f4392a4a53635b70ac Mon Sep 17 00:00:00 2001 From: Xavier Beaudouin Date: Mon, 16 Dec 2024 13:02:16 +0100 Subject: [PATCH] Adding sssd flavor --- security/sudo/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/security/sudo/Makefile b/security/sudo/Makefile index 5ad3690..b1801f9 100644 --- a/security/sudo/Makefile +++ b/security/sudo/Makefile @@ -12,6 +12,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 @@ -92,8 +96,13 @@ SSSD_PREVENTS_MSG= sssd requires MIT kerberos and it conflicts with heimdal SSSD_RUN_DEPENDS= sssd:security/sssd SSSD_CONFIGURE_ON= --with-sssd +.if ${FLAVOR} == sssd +RUN_DEPENDS+= sssd:security/sssd2 +CONFIGURE_ARGS+= --with-sssd +.else SSSD2_RUN_DEPENDS= sssd:security/sssd2 SSSD2_CONFIGURE_ON= --with-sssd +.endif LOGFAC?= authpriv SUDO_LDAP_CONF?= ldap.conf