summaryrefslogtreecommitdiff
path: root/packaging/wscript_build
blob: fbcd4e55f8c89ff1c4958edd82b0a225b0e72fa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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')