summaryrefslogtreecommitdiffstats
path: root/packaging/wscript_build
blob: 217bd996348409e82ddcd74b739bd67f98971bf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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')