diff options
author | Aurelien Aptel <aaptel@suse.com> | 2017-12-14 16:47:49 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-01-08 03:34:18 +0100 |
commit | 080d590de1ff9f8ebc55aeffaea8d41991466549 (patch) | |
tree | f5474d2ec333c8e99e3659b9b466e893fc4b74b8 /packaging/wscript_build | |
parent | 3089a5660dd75e1396cd29dfb202a1d4ff1b7cfe (diff) | |
download | samba-080d590de1ff9f8ebc55aeffaea8d41991466549.tar.gz |
packaging: add configure option to preprocess and install systemd files
Turn the systemd service files under packaging into template (.in) files
with @VAR@ substitutions and add configure options to install and tweak
them.
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'packaging/wscript_build')
-rw-r--r-- | packaging/wscript_build | 16 |
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') |