summaryrefslogtreecommitdiff
path: root/packaging/wscript_build
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/wscript_build')
-rw-r--r--packaging/wscript_build16
1 files changed, 16 insertions, 0 deletions
diff --git a/packaging/wscript_build b/packaging/wscript_build
new file mode 100644
index 00000000000..fbcd4e55f8c
--- /dev/null
+++ b/packaging/wscript_build
@@ -0,0 +1,16 @@
+#!/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.systemd_install_services:
+ bld.INSTALL_FILES('${SYSCONFDIR}/sysconfig', 'systemd/samba.sysconfig', destname='samba')