diff options
Diffstat (limited to 'packaging/wscript_build')
-rw-r--r-- | packaging/wscript_build | 22 |
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') |