net/samba416: Add externalldb flavor

Why do we need the externalldb flavor? Compiling tools like
security/sssd-devel with Kerberos support often requires a standalone
ldb as a dependency. By adding a externalldb flavor, ports can depend on
a flavor of Samba that does not depend on its bundled version of ldb.

PR:		276835
Approved by:	portmgr (maintainer timeout, 2+ weeks)
Sponsored by:	Klara, Inc.
Co-authored-by:	Mateusz Piotrowski <0mp@FreeBSD.org>
This commit is contained in:
Xavier Beaudouin 2024-03-12 22:19:04 +01:00 committed by Mateusz Piotrowski
parent 9730ceb1c7
commit eaec7c2287
1 changed files with 8 additions and 0 deletions

View File

@ -103,6 +103,10 @@ USE_LDCONFIG= ${SAMBA4_LIBDIR}
WAF_CMD= buildtools/bin/waf
CONFIGURE_LOG= bin/config.log
FLAVORS= default externalldb
FLAVOR?= ${FLAVORS:[1]}
externalldb_PKGNAMESUFFIX= -externalldb
# Make sure that the right version of Python is used by the tools
# https://bugzilla.samba.org/show_bug.cgi?id=7305
SHEBANG_FILES= ${PATCH_WRKSRC}/source4/scripting/bin/* ${PATCH_WRKSRC}/selftest/*
@ -197,7 +201,11 @@ SAMBA4_BUNDLED_CMOCKA?= no
SAMBA4_BUNDLED_TALLOC?= no
SAMBA4_BUNDLED_TEVENT?= no
SAMBA4_BUNDLED_TDB?= no
.if ${FLAVOR:U} != externalldb
SAMBA4_BUNDLED_LDB?= yes
.else
SAMBA4_BUNDLED_LDB?= no
.endif
# cmocka
.if defined(SAMBA4_BUNDLED_CMOCKA) && ${SAMBA4_BUNDLED_CMOCKA} == yes
SAMBA4_BUNDLED_LIBS+= cmocka