Commit 500f7321 authored by Xi Ruoyao's avatar Xi Ruoyao

support --with-os-type=lfs and /etc/lfs-release autodetection

parent cd96f833
Pipeline #168572 passed with stage
in 3 minutes and 34 seconds
......@@ -396,7 +396,7 @@ fi
AC_SUBST(PAM_MODULE_DIR)
AC_ARG_WITH(os-type, [ --with-os-type=<os> distribution or OS (redhat/suse/gentoo/pardus/solaris/netbsd)])
AC_ARG_WITH(os-type, [ --with-os-type=<os> distribution or OS (redhat/suse/gentoo/pardus/solaris/netbsd/lfs)])
#### Check our operating system (distro-tweaks required)
if test "z$with_os_type" = "z"; then
......@@ -404,6 +404,7 @@ if test "z$with_os_type" = "z"; then
AC_CHECK_FILE(/etc/SuSE-release,distro_type="suse")
AC_CHECK_FILE(/etc/gentoo-release,distro_type="gentoo")
AC_CHECK_FILE(/etc/pardus-release,distro_type="pardus")
AC_CHECK_FILE(/etc/lfs-release,distro_type="lfs")
if test "z$distro_type" = "z"; then
echo "Linux distribution autodetection failed, specify the distribution to target using --with-os-type="
else
......@@ -427,6 +428,8 @@ if test x$with_os_type = x; then
with_os_type=freebsd
elif test x$operating_system = xnetbsd ; then
with_os_type=netbsd
elif test x$operating_system = xlfs ; then
with_os_type=lfs
else
case "$host_os" in
*netbsd*)
......@@ -471,6 +474,11 @@ elif test x$with_os_type = xfreebsd -o x$with_os_type = xnetbsd; then
PAM_FILE_INCLUDE_ACCOUNT=system
PAM_FILE_INCLUDE_PASSWORD=system
PAM_FILE_INCLUDE_SESSION=system
elif test x$with_os_type = xlfs; then
PAM_FILE_INCLUDE_AUTH=system-auth
PAM_FILE_INCLUDE_ACCOUNT=system-account
PAM_FILE_INCLUDE_PASSWORD=system-password
PAM_FILE_INCLUDE_SESSION=system-session
else
PAM_FILE_INCLUDE_AUTH=system-auth
PAM_FILE_INCLUDE_ACCOUNT=system-auth
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment