mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-09 09:19:09 +02:00
parent
30ef2145e7
commit
0c09fe5449
14 changed files with 96 additions and 48 deletions
4
services/meson.build
Normal file
4
services/meson.build
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
systemd = dependency('systemd', required: get_option('systemd'))
|
||||
if systemd.found()
|
||||
subdir('systemd')
|
||||
endif
|
||||
|
|
@ -1 +0,0 @@
|
|||
default_voice=
|
||||
|
|
@ -6,10 +6,10 @@ After=systemd-udev-settle.service sound.target
|
|||
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=/etc/conf.d/espeakup
|
||||
PIDFile=/run/espeakup.pid
|
||||
ExecStartPre=+/sbin/modprobe speakup_soft
|
||||
ExecStart=/usr/bin/espeakup --default-voice=${default_voice}
|
||||
Environment="default_voice="
|
||||
ExecStartPre=+modprobe speakup_soft
|
||||
ExecStart=@bindir@/espeakup --default-voice=${default_voice}
|
||||
ExecReload=kill -HUP $MAINPID
|
||||
Restart=always
|
||||
|
||||
17
services/systemd/meson.build
Normal file
17
services/systemd/meson.build
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
unitdir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
|
||||
prefixdir = get_option('prefix')
|
||||
bindir = join_paths(prefixdir, get_option('bindir'))
|
||||
|
||||
unit_conf = configuration_data()
|
||||
|
||||
unit_conf.set('bindir', bindir)
|
||||
|
||||
service_file = configure_file(
|
||||
input : 'espeakup.service.in',
|
||||
output : 'espeakup.service',
|
||||
configuration : unit_conf
|
||||
)
|
||||
|
||||
install_data(service_file,
|
||||
install_dir : unitdir
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue