summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--systemd-services/meson.build17
1 files changed, 10 insertions, 7 deletions
diff --git a/systemd-services/meson.build b/systemd-services/meson.build
index 18be63c5ef..a17790e857 100644
--- a/systemd-services/meson.build
+++ b/systemd-services/meson.build
@@ -1,13 +1,16 @@
1if get_option('systemd') == true 1if get_option('systemd') == true
2 dep = dependency('systemd') 2 sys_dep = dependency('systemd', required: false)
3 if sys_dep.found()
4 sys_dir = sys_dep.get_pkgconfig_variable('systemduserunitdir')
5 else
6 sys_dir = join_paths(dir_lib, 'systemd', 'user')
7 endif
3 8
4 ethumb_service_config = configuration_data() 9 ethumb_service_config = configuration_data()
5
6 ethumb_service_config.set('prefix', dir_prefix) 10 ethumb_service_config.set('prefix', dir_prefix)
7 11
8 configure_file( 12 configure_file(input : 'ethumb.service.in',
9 input: 'ethumb.service.in', 13 output : 'ethumb.service',
10 output: 'ethumb.service', 14 configuration : ethumb_service_config,
11 configuration: ethumb_service_config, 15 install_dir : sys_dir)
12 install_dir: dep.get_pkgconfig_variable('systemduserunitdir'))
13endif 16endif