summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-20 04:07:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-20 04:07:27 +0000
commit31bdcfe4b647c8c783efa32da3c333b5f166a42d (patch)
tree2b868e2a40cde0854fa0f5466ea8990d3d38f93d /wscript
parentAdding upstream version 2:4.20.1+dfsg. (diff)
downloadsamba-upstream.tar.xz
samba-upstream.zip
Adding upstream version 2:4.20.2+dfsg.upstream/2%4.20.2+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wscript')
-rw-r--r--wscript20
1 files changed, 20 insertions, 0 deletions
diff --git a/wscript b/wscript
index 770b9bc..167a3a7 100644
--- a/wscript
+++ b/wscript
@@ -140,7 +140,27 @@ def options(opt):
dest='with_smb1server',
help=("Build smbd with SMB1 support (default=yes)."))
+ opt.add_option('--vendor-name',
+ help=('Specify a vendor (or packager) name to include in the version string'),
+ type="string",
+ dest='SAMBA_VERSION_VENDOR_SUFFIX',
+ default=None)
+
+ opt.add_option('--vendor-patch-revision',
+ help=('Specify a vendor (or packager) patch revision number include in the version string (requires --vendor-name)'),
+ type="int",
+ dest='SAMBA_VERSION_VENDOR_PATCH',
+ default=None)
+
def configure(conf):
+ if Options.options.SAMBA_VERSION_VENDOR_SUFFIX:
+ conf.env.SAMBA_VERSION_VENDOR_SUFFIX = Options.options.SAMBA_VERSION_VENDOR_SUFFIX
+
+ if Options.options.SAMBA_VERSION_VENDOR_PATCH:
+ if not Options.options.SAMBA_VERSION_VENDOR_SUFFIX:
+ raise conf.fatal('--vendor-patch-revision requires --vendor-version')
+ conf.env.SAMBA_VERSION_VENDOR_PATCH = Options.options.SAMBA_VERSION_VENDOR_PATCH
+
version = samba_version.load_version(env=conf.env)
conf.DEFINE('CONFIG_H_IS_FROM_SAMBA', 1)