2017-12-29 17:12:55 +01:00
|
|
|
systemd_unit_conf = configuration_data()
|
|
|
|
systemd_unit_conf.set('prefix', get_option('prefix'))
|
|
|
|
|
2023-09-15 21:27:19 +02:00
|
|
|
address_families = ['AF_INET', 'AF_INET6', 'AF_UNIX']
|
|
|
|
if get_option('smbclient').enabled()
|
|
|
|
# AF_NETLINK is required by libsmbclient, or it will exit() .. *sigh*
|
|
|
|
address_families += 'AF_NETLINK'
|
|
|
|
endif
|
|
|
|
systemd_unit_conf.set('address_families', ' '.join(address_families))
|
|
|
|
|
2023-09-15 21:04:38 +02:00
|
|
|
systemd_socket_conf = configuration_data()
|
|
|
|
listen_streams = []
|
|
|
|
if get_option('local_socket')
|
|
|
|
listen_streams += 'ListenStream=%t/mpd/socket'
|
|
|
|
endif
|
|
|
|
if get_option('tcp')
|
|
|
|
listen_streams += 'ListenStream=6600'
|
|
|
|
endif
|
|
|
|
systemd_socket_conf.set('listen_streams', '\n'.join(listen_streams))
|
|
|
|
|
2017-12-29 17:12:55 +01:00
|
|
|
subdir('system')
|
|
|
|
subdir('user')
|