diff --git a/security/sudo/Makefile b/security/sudo/Makefile --- a/security/sudo/Makefile +++ b/security/sudo/Makefile @@ -12,6 +12,10 @@ 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,6 +96,10 @@ SSSD_RUN_DEPENDS= sssd:security/sssd SSSD_CONFIGURE_ON= --with-sssd +.if ${FLAVOR:U} == sssd +OPTIONS_DEFAULTS+= SSSD2 +.endif + SSSD2_RUN_DEPENDS= sssd:security/sssd2 SSSD2_CONFIGURE_ON= --with-sssd