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