mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
080d590de1
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>
17 lines
452 B
Python
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')
|