aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Beaudouin <xavier.beaudouin@klarasystems.com>2024-03-12 21:19:04 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2024-03-12 21:37:48 +0000
commiteaec7c2287315c50e79b137d94cee66054e4cec6 (patch)
treeecfb14582a78984073056f9431d4505c84aea600
parent9730ceb1c78f9f0e35cfc6682f44c042c107feb4 (diff)
downloadports-eaec7c2287315c50e79b137d94cee66054e4cec6.tar.gz
ports-eaec7c2287315c50e79b137d94cee66054e4cec6.zip
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>
-rw-r--r--net/samba416/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/samba416/Makefile b/net/samba416/Makefile
index 65536326cbdb..a3518fbafe51 100644
--- a/net/samba416/Makefile
+++ b/net/samba416/Makefile
@@ -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