1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/packaging/wscript_build
Aurelien Aptel 080d590de1 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>
2018-01-08 03:34:18 +01:00

17 lines
452 B
Python

#!/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')