| 1 |
install_data('net.reactivated.Fprint.conf', |
| 2 |
install_dir: dbus_conf_dir) |
| 3 |
|
| 4 |
configure_file( |
| 5 |
configuration: configuration_data({ |
| 6 |
'LIBEXECDIR': fprintd_installdir, |
| 7 |
}), |
| 8 |
input: 'net.reactivated.Fprint.service.in', |
| 9 |
output: 'net.reactivated.Fprint.service', |
| 10 |
install: true, |
| 11 |
install_dir: dbus_service_dir, |
| 12 |
) |
| 13 |
|
| 14 |
if get_option('systemd') |
| 15 |
configure_file( |
| 16 |
configuration: configuration_data({ |
| 17 |
'libexecdir': fprintd_installdir, |
| 18 |
}), |
| 19 |
input: 'fprintd.service.in', |
| 20 |
output: 'fprintd.service', |
| 21 |
install: true, |
| 22 |
install_dir: systemd_unit_dir, |
| 23 |
) |
| 24 |
endif |
| 25 |
|
| 26 |
polkit_policy = 'net.reactivated.fprint.device.policy' |
| 27 |
polkit_policy_target = i18n.merge_file( |
| 28 |
input: '@[email protected]'.format(polkit_policy), |
| 29 |
output: polkit_policy, |
| 30 |
po_dir: meson.project_source_root() / 'po', |
| 31 |
install: true, |
| 32 |
install_dir: polkit_policy_directory, |
| 33 |
) |
| 34 |
|
| 35 |
if xmllint.found() |
| 36 |
test(polkit_policy, |
| 37 |
xmllint, |
| 38 |
depends: polkit_policy_target, |
| 39 |
args: [ |
| 40 |
'--noout', |
| 41 |
polkit_policy_target.full_path(), |
| 42 |
]) |
| 43 |
endif |
| 44 |
|
| 45 |
install_data('fprintd.conf', |
| 46 |
install_dir: sysconfdir) |
| 47 |
|
| 48 |
if get_option('man') |
| 49 |
manfiles = { |
| 50 |
'fprintd': 1, |
| 51 |
'pam_fprintd': 8, |
| 52 |
} |
| 53 |
|
| 54 |
foreach man_name, man_section: manfiles |
| 55 |
custom_target('man_' + man_name + '.' + man_section.to_string(), |
| 56 |
input: man_name + '.pod', |
| 57 |
output: man_name + '.' + man_section.to_string(), |
| 58 |
command: [ |
| 59 |
pod2man, |
| 60 |
'-c', '', |
| 61 |
'-s', man_section.to_string(), |
| 62 |
'-q', 'none', |
| 63 |
'-n', man_name, |
| 64 |
'-r', 'freedesktop', |
| 65 |
'@INPUT@', |
| 66 |
'@OUTPUT@', |
| 67 |
], |
| 68 |
install: true, |
| 69 |
install_dir: datadir / 'man' / 'man' + man_section.to_string(), |
| 70 |
) |
| 71 |
endforeach |
| 72 |
endif |