summaryrefslogtreecommitdiffstats
path: root/packaging/wscript_build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:20:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:20:00 +0000
commit8daa83a594a2e98f39d764422bfbdbc62c9efd44 (patch)
tree4099e8021376c7d8c05bdf8503093d80e9c7bad0 /packaging/wscript_build
parentInitial commit. (diff)
downloadsamba-8daa83a594a2e98f39d764422bfbdbc62c9efd44.tar.xz
samba-8daa83a594a2e98f39d764422bfbdbc62c9efd44.zip
Adding upstream version 2:4.20.0+dfsg.upstream/2%4.20.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/wscript_build')
-rw-r--r--packaging/wscript_build22
1 files changed, 22 insertions, 0 deletions
diff --git a/packaging/wscript_build b/packaging/wscript_build
new file mode 100644
index 0000000..217bd99
--- /dev/null
+++ b/packaging/wscript_build
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+
+systemd_services = [
+ 'systemd/smb.service',
+ 'systemd/nmb.service',
+ 'systemd/winbind.service',
+ 'systemd/samba.service'
+]
+
+for srv in systemd_services:
+ bld.CONFIGURE_FILE(srv)
+ if bld.env.systemd_install_services:
+ bld.INSTALL_FILES(bld.env.SYSTEMDDIR, srv, flat=True)
+
+if bld.env.with_ctdb:
+ srv = 'systemd/ctdb.service'
+ bld.CONFIGURE_FILE(srv)
+ if bld.env.systemd_install_services:
+ bld.INSTALL_FILES(bld.env.SYSTEMDDIR, srv, flat=True)
+
+if bld.env.systemd_install_services:
+ bld.INSTALL_FILES('${SYSCONFDIR}/sysconfig', 'systemd/samba.sysconfig', destname='samba')