From 91597f08929ddf1bc3a90a7122f9e23ea96d6e11 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 7 Sep 2022 13:45:53 +0000 Subject: meson: support -Dos_type=lfs and /etc/lfs-release autodetection --- meson.build | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 8ffc2ce..8bab9ce 100644 --- a/meson.build +++ b/meson.build @@ -276,6 +276,7 @@ if os_type == '' ['debian', '/etc/debian_version'], ['gentoo', '/etc/gentoo-release'], ['pardus', '/etc/pardus-release'], + ['lfs', '/etc/lfs-release'], ] foreach os_path: os_paths @@ -306,6 +307,13 @@ if pam_include == '' 'PAM_FILE_INCLUDE_PASSWORD': 'system', 'PAM_FILE_INCLUDE_SESSION': 'system', } + elif os_type == 'lfs' + pam_conf = { + 'PAM_FILE_INCLUDE_AUTH': 'system-auth', + 'PAM_FILE_INCLUDE_ACCOUNT': 'system-account', + 'PAM_FILE_INCLUDE_PASSWORD': 'system-password', + 'PAM_FILE_INCLUDE_SESSION': 'system-session', + } #if ['redhat', 'gentoo', 'pardus'].contains(os_type) else pam_conf = { -- cgit v1.2.1