diff --git a/conf/meson.build b/conf/meson.build new file mode 100644 index 0000000..14ae84b --- /dev/null +++ b/conf/meson.build @@ -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 + diff --git a/meson.build b/meson.build index 7d605cb..0a0ed67 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,7 @@ # project( 'mctp', 'c', - meson_version: '>= 0.47.0', + meson_version: '>= 0.58.0', version: 'v1.1', license: 'GPLv2', default_options: [ @@ -52,3 +52,5 @@ if libsystemd.found() install_dir: get_option('sbindir'), ) endif + +subdir('conf')