mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
93824b8c33
Signed-off-by: Vinit Agnihotri <vagnihotri@ddn.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
23 lines
639 B
Python
23 lines
639 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.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')
|