1 Commits

Author SHA1 Message Date
2e1bd5f0c6 add buffyboard systemd service
this is an optional feature. systemd distributions wishing to deploy
buffyboard may add `WantedBy=default.target` to the Install section.
2024-10-12 05:28:15 +00:00
2 changed files with 9 additions and 17 deletions

View File

@@ -24,20 +24,13 @@ executable('buffyboard',
install_data('buffyboard.conf', install_dir: get_option('sysconfdir')) install_data('buffyboard.conf', install_dir: get_option('sysconfdir'))
systemd = dependency('systemd', required: get_option('systemd-buffyboard-service'))
if systemd.found()
system_unit_dir = systemd.get_variable(
pkgconfig: 'systemd_system_unit_dir',
pkgconfig_define: ['prefix', get_option('prefix')],
)
configure_file( configure_file(
input : 'buffyboard.service.in', input : 'buffyboard.service.in',
output : 'buffyboard.service', output : 'buffyboard.service',
install : true, install : true,
install_dir : system_unit_dir, install_dir : get_option('libdir') / 'systemd/system',
configuration : { configuration : {
'bindir' : get_option('prefix') / get_option('bindir'), 'bindir' : get_option('prefix') / get_option('bindir'),
}, },
) )
endif

View File

@@ -1,3 +1,2 @@
option('with-drm', type: 'feature', value: 'auto', description: 'Enable DRM backend') option('with-drm', type: 'feature', value: 'auto', description: 'Enable DRM backend')
option('man', type: 'boolean', value: true, description: 'Install manual pages') option('man', type: 'boolean', value: true, description: 'Install manual pages')
option('systemd-buffyboard-service', type: 'feature', value: 'auto', description: 'Install systemd service file for buffyboard')