mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
build: Make pam module installation dir configurable
And avoid treating "libdir" as an absolute path, the documentation clearly states that it is "relative to the prefix". Based on patch by Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
@ -12,6 +12,9 @@ option('systemd_system_unit_dir',
|
|||||||
option('dbus_service_dir',
|
option('dbus_service_dir',
|
||||||
description: 'Directory for dbus service files',
|
description: 'Directory for dbus service files',
|
||||||
type: 'string')
|
type: 'string')
|
||||||
|
option('pam_modules_dir',
|
||||||
|
description: 'Directory for PAM modules',
|
||||||
|
type: 'string')
|
||||||
option('gtk_doc',
|
option('gtk_doc',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
value: false,
|
value: false,
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
mapfile = files('pam_fprintd.ver')
|
mapfile = files('pam_fprintd.ver')
|
||||||
pam_modules_dir = '/' + get_option('libdir') / 'security'
|
pam_modules_dir = get_option('pam_modules_dir')
|
||||||
|
if pam_modules_dir == ''
|
||||||
|
pam_modules_dir = '/' / get_option('libdir') / 'security'
|
||||||
|
endif
|
||||||
|
|
||||||
pam_fprintd = shared_module('pam_fprintd',
|
pam_fprintd = shared_module('pam_fprintd',
|
||||||
name_prefix: '',
|
name_prefix: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user