]> granicus.if.org Git - p11-kit/commitdiff
meson: Install p11-kit-server units
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Tue, 10 Sep 2019 18:08:25 +0000 (18:08 +0000)
committerDaiki Ueno <ueno@gnu.org>
Wed, 11 Sep 2019 08:57:10 +0000 (10:57 +0200)
p11-kit/meson.build

index 18b3d265b76fee3660fececd9541f0b57628bfc6..48a3c7592e641bfba3657008b0ba874759c50f56 100644 (file)
@@ -176,6 +176,17 @@ executable('p11-kit-server-testable',
            dependencies: [libp11_tool_dep] + libsystemd_deps + libffi_deps + dlopen_deps,
            link_with: libp11_kit_testable)
 
+if with_systemd
+  p11_kit_server_service_conf = configuration_data({
+    'bindir': prefix / bindir
+  })
+  p11_kit_server_service = configure_file(input: 'p11-kit-server.service.in',
+                                          output: '@BASENAME@',
+                                          configuration: p11_kit_server_service_conf)
+  install_data([p11_kit_server_service, 'p11-kit-server.socket'],
+               install_dir: systemduserunitdir)
+endif
+
 # Check if compilation succeeds with CRYPTOKI_GNU=1
 
 pkcs11_gnu_headers = [