git: eaec7c228731 - main - net/samba416: Add externalldb flavor
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Mar 2024 21:37:58 UTC
The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/ports/commit/?id=eaec7c2287315c50e79b137d94cee66054e4cec6 commit eaec7c2287315c50e79b137d94cee66054e4cec6 Author: Xavier Beaudouin <xavier.beaudouin@klarasystems.com> AuthorDate: 2024-03-12 21:19:04 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2024-03-12 21:37:48 +0000 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> --- net/samba416/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) 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