summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-05-27 14:10:33 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-05-27 14:10:33 +0100
commit2294b9b3f93fbf5fe6d2684ba466da792c42cdd2 (patch)
tree80e83c023a252cc6da113a97f463f514249853cd
parent0b08318117540f45e87874f000d2aa5eb90bcbee (diff)
build - systemd service files - install fix if systemd not found
so if systemd is not found - installe in PREFIX/lib/systemd/user which allows build to work without disabling systemd.
-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