Skip to content

meson: Install all systemd units #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions conf/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
systemd = dependency('systemd')

if systemd.found()
servicedir = systemd.get_variable('systemdsystemunitdir')
unit_files = [
'mctp-local.target',
'mctp.target',
'mctpd.service',
]

foreach unit : unit_files
configure_file(input: unit,
output: unit,
copy: true,
install_dir: servicedir)
endforeach
endif

4 changes: 3 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
project(
'mctp', 'c',
meson_version: '>= 0.47.0',
meson_version: '>= 0.58.0',
version: 'v1.1',
license: 'GPLv2',
default_options: [
Expand Down Expand Up @@ -52,3 +52,5 @@ if libsystemd.found()
install_dir: get_option('sbindir'),
)
endif

subdir('conf')