ctdb-scripts: Update detect_init_style to use /etc/os-release
[samba.git] / packaging / wscript_build
blob217bd996348409e82ddcd74b739bd67f98971bf3
1 #!/usr/bin/env python
3 systemd_services = [
4 'systemd/smb.service',
5 'systemd/nmb.service',
6 'systemd/winbind.service',
7 'systemd/samba.service'
10 for srv in systemd_services:
11 bld.CONFIGURE_FILE(srv)
12 if bld.env.systemd_install_services:
13 bld.INSTALL_FILES(bld.env.SYSTEMDDIR, srv, flat=True)
15 if bld.env.with_ctdb:
16 srv = 'systemd/ctdb.service'
17 bld.CONFIGURE_FILE(srv)
18 if bld.env.systemd_install_services:
19 bld.INSTALL_FILES(bld.env.SYSTEMDDIR, srv, flat=True)
21 if bld.env.systemd_install_services:
22 bld.INSTALL_FILES('${SYSCONFDIR}/sysconfig', 'systemd/samba.sysconfig', destname='samba')