summaryrefslogtreecommitdiff
path: root/sys-auth/fprintd/files/fprintd-1.90.8_0002-add-configure-option-for-libsystemd-provider.patch
blob: a10026f3346641612c5d36b627958d898ee8ff10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- fprintd-v1.90.8/meson.build.orig	2020-12-13 08:08:13.886367478 +0100
+++ fprintd-v1.90.8/meson.build	2020-12-13 08:30:16.056756878 +0100
@@ -84,7 +84,7 @@
 libfprint_dep = dependency('libfprint-2', version: '>=' + libfprint_min_version)
 polkit_gobject_dep = dependency('polkit-gobject-1', version: '>= 0.91')
 dbus_dep = dependency('dbus-1', required: false)
-libsystemd_dep = dependency('libsystemd', required: get_option('pam'))
+libsystemd_dep = dependency(get_option('libsystemd'), required: get_option('pam'))
 pam_dep = cc.find_library('pam',
     required: get_option('pam'),
     has_headers: 'security/pam_modules.h',
--- fprintd-v1.90.8/meson_options.txt.orig	2020-12-13 08:08:13.886367478 +0100
+++ fprintd-v1.90.8/meson_options.txt	2020-12-13 08:26:57.111919403 +0100
@@ -10,6 +10,10 @@
     description: 'Install system service files',
     type: 'boolean',
     value: true)
+option('libsystemd',
+    description: 'Libsystemd provider (libsystemd or libelogind)',
+    type: 'string',
+    value: 'libsystemd')
 option('systemd_system_unit_dir',
     description: 'Directory for systemd service files',
     type: 'string')