summaryrefslogtreecommitdiff
path: root/net/samba416/files/patch-lib_ldb_wscript
diff options
context:
space:
mode:
authorTimur I. Bakeyev <timur@FreeBSD.org>2022-10-17 01:06:57 +0200
committerTimur I. Bakeyev <timur@FreeBSD.org>2022-10-17 01:23:12 +0200
commit2daf87ac19838c9a36f56fb51b0678d193921771 (patch)
tree87a5f4c067f790a80182ab78a91be4695e030b8c /net/samba416/files/patch-lib_ldb_wscript
parentnet/samba413: Fix alignment of the WWW line. (diff)
net/samba416: New port for Samba 4.16
This is an initial attempt to add Samba to the FreeBSD after major rewrite of the VFS code in the upstream. Most of the port development is now carried in: https://gitlab.com/samba-freebsd Due to the way how new Samba VFS code is written there is a constrain that Samba 4.14+ can run only on FreeBSD 13.1+, as it requires support of the `nodup` option for the `fdesc` file system, as well as it's presence in the system in general. https://gitlab.com/samba-freebsd/-/wikis/The-New-VFS I'd like to thank CyberSecure Pty Ltd. company for their supoort of the port development and Andrew Walker from iXsystems Inc. for the patches he created and made available for the Samba4 on TrueNAS. PR: 263874
Diffstat (limited to 'net/samba416/files/patch-lib_ldb_wscript')
-rw-r--r--net/samba416/files/patch-lib_ldb_wscript61
1 files changed, 61 insertions, 0 deletions
diff --git a/net/samba416/files/patch-lib_ldb_wscript b/net/samba416/files/patch-lib_ldb_wscript
new file mode 100644
index 000000000000..62195ac59183
--- /dev/null
+++ b/net/samba416/files/patch-lib_ldb_wscript
@@ -0,0 +1,61 @@
+--- lib/ldb/wscript.orig 2019-07-08 12:47:51 UTC
++++ lib/ldb/wscript
+@@ -207,7 +207,7 @@ def build(bld):
+ if bld.env.standalone_ldb:
+ if not 'PACKAGE_VERSION' in bld.env:
+ bld.env.PACKAGE_VERSION = VERSION
+- bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
++ bld.env.PKGCONFIGDIR = '%%PKGCONFIGDIR%%'
+ private_library = False
+ else:
+ private_library = True
+@@ -284,7 +284,6 @@ def build(bld):
+ pc_files='ldb.pc',
+ vnum=VERSION,
+ private_library=private_library,
+- manpages='man/ldb.3',
+ abi_directory='ABI',
+ abi_match = abi_match)
+
+@@ -437,7 +436,7 @@ def build(bld):
+
+ LDB_TOOLS='ldbadd ldbsearch ldbdel ldbmodify ldbedit ldbrename'
+ for t in LDB_TOOLS.split():
+- bld.SAMBA_BINARY(t, 'tools/%s.c' % t, deps='ldb-cmdline ldb',
++ bld.SAMBA_BINARY('samba-%s' % t, 'tools/%s.c' % t, deps='ldb-cmdline ldb',
+ manpages='man/%s.1' % t)
+
+ # ldbtest doesn't get installed
+@@ -449,10 +448,10 @@ def build(bld):
+ else:
+ lmdb_deps = ''
+ # ldbdump doesn't get installed
+- bld.SAMBA_BINARY('ldbdump',
++ bld.SAMBA_BINARY('samba-ldbdump',
+ 'tools/ldbdump.c',
+ deps='ldb-cmdline ldb' + lmdb_deps,
+- install=False)
++ install=True)
+
+ bld.SAMBA_LIBRARY('ldb-cmdline',
+ source='tools/ldbutil.c tools/cmdline.c',
+@@ -497,11 +496,6 @@ def build(bld):
+ deps='cmocka ldb',
+ install=False)
+
+- bld.SAMBA_BINARY('ldb_match_test',
+- source='tests/ldb_match_test.c',
+- deps='cmocka ldb',
+- install=False)
+-
+ bld.SAMBA_BINARY('ldb_key_value_test',
+ source='tests/ldb_key_value_test.c',
+ deps='cmocka ldb ldb_tdb_err_map',
+@@ -609,7 +603,6 @@ def test(ctx):
+ 'ldb_msg_test',
+ 'ldb_tdb_kv_ops_test',
+ 'ldb_tdb_test',
+- 'ldb_match_test',
+ 'ldb_key_value_test',
+ # we currently don't run ldb_key_value_sub_txn_tdb_test as it
+ # tests the nested/sub transaction handling