diff options
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/meson.build | 5 | ||||
-rw-r--r-- | systemd/system/meson.build | 16 | ||||
-rw-r--r-- | systemd/user/meson.build | 11 |
3 files changed, 32 insertions, 0 deletions
diff --git a/systemd/meson.build b/systemd/meson.build new file mode 100644 index 000000000..b74d76e6c --- /dev/null +++ b/systemd/meson.build @@ -0,0 +1,5 @@ +systemd_unit_conf = configuration_data() +systemd_unit_conf.set('prefix', get_option('prefix')) + +subdir('system') +subdir('user') diff --git a/systemd/system/meson.build b/systemd/system/meson.build new file mode 100644 index 000000000..96e6a219b --- /dev/null +++ b/systemd/system/meson.build @@ -0,0 +1,16 @@ +systemd_system_unit_dir = get_option('systemd_system_unit_dir') +if systemd_system_unit_dir == '' + systemd_system_unit_dir = join_paths(get_option('prefix'), 'lib', 'systemd', 'system') +endif + +install_data( + 'mpd.socket', + install_dir: systemd_system_unit_dir, +) + +configure_file( + input: 'mpd.service.in', + output: 'mpd.service', + configuration: systemd_unit_conf, + install_dir: systemd_system_unit_dir, +) diff --git a/systemd/user/meson.build b/systemd/user/meson.build new file mode 100644 index 000000000..b1e94b14f --- /dev/null +++ b/systemd/user/meson.build @@ -0,0 +1,11 @@ +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 + +configure_file( + input: 'mpd.service.in', + output: 'mpd.service', + configuration: systemd_unit_conf, + install_dir: systemd_user_unit_dir, +) |