summaryrefslogtreecommitdiffstats
path: root/packaging/wscript_build
blob: dc95bebf1c6f636429c59806ae3e6de4b1ee8c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python

systemd_services = [
    'systemd/smb.service',
    'systemd/nmb.service',
    'systemd/winbind.service',
    'systemd/samba.service',
    'systemd/samba-bgqd.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')