mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
services: add fallback systemd unitdir if systemd is not available
Allows building the service files without a systemd dependency by defining a default systemd user unit directory. Relevant in Alpine, where we can package the service files in a subpackage without having systemd in Alpine. Addresses feedback of https://github.com/linux-speakup/espeakup/pull/64, therefore superseeds it.
This commit is contained in:
parent
cc1447b16a
commit
c3c7c6a007
2 changed files with 7 additions and 3 deletions
|
|
@ -1,4 +1,8 @@
|
|||
unitdir = systemd.get_variable(pkgconfig: 'systemdsystemunitdir')
|
||||
if systemd.found()
|
||||
unitdir = systemd.get_variable(pkgconfig: 'systemdsystemunitdir')
|
||||
else
|
||||
unitdir = join_paths(prefixdir, get_option('libdir'), 'systemd', 'system')
|
||||
endif
|
||||
prefixdir = get_option('prefix')
|
||||
bindir = join_paths(prefixdir, get_option('bindir'))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue