forked from enlightenment/efl
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.
This commit is contained in:
parent
7ef58c47d3
commit
b03baef4b5
|
@ -1,13 +1,16 @@
|
||||||
if get_option('systemd') == true
|
if get_option('systemd') == true
|
||||||
dep = dependency('systemd')
|
sys_dep = dependency('systemd', required: false)
|
||||||
|
if sys_dep.found()
|
||||||
|
sys_dir = sys_dep.get_pkgconfig_variable('systemduserunitdir')
|
||||||
|
else
|
||||||
|
sys_dir = join_paths(dir_lib, 'systemd', 'user')
|
||||||
|
endif
|
||||||
|
|
||||||
ethumb_service_config = configuration_data()
|
ethumb_service_config = configuration_data()
|
||||||
|
|
||||||
ethumb_service_config.set('prefix', dir_prefix)
|
ethumb_service_config.set('prefix', dir_prefix)
|
||||||
|
|
||||||
configure_file(
|
configure_file(input : 'ethumb.service.in',
|
||||||
input: 'ethumb.service.in',
|
output : 'ethumb.service',
|
||||||
output: 'ethumb.service',
|
configuration : ethumb_service_config,
|
||||||
configuration: ethumb_service_config,
|
install_dir : sys_dir)
|
||||||
install_dir: dep.get_pkgconfig_variable('systemduserunitdir'))
|
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue