meson.build 480 Bytes
Newer Older
1 2 3 4 5
systemd_user_unit_dir = get_option('systemd_user_unit_dir')
if systemd_user_unit_dir == ''
  systemd_user_unit_dir = join_paths(get_option('prefix'), 'lib', 'systemd', 'user')
endif

6 7 8 9 10 11
# copy the system socket unit to the "user" directory
install_data(
  join_paths('..', 'system', 'mpd.socket'),
  install_dir: systemd_user_unit_dir,
)

12 13 14 15 16 17
configure_file(
  input: 'mpd.service.in',
  output: 'mpd.service',
  configuration: systemd_unit_conf,
  install_dir: systemd_user_unit_dir,
)