Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xi Ruoyao
polkit
Commits
500f7321
Commit
500f7321
authored
Jun 29, 2020
by
Xi Ruoyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support --with-os-type=lfs and /etc/lfs-release autodetection
parent
cd96f833
Pipeline
#168572
passed with stage
in 3 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
configure.ac
configure.ac
+9
-1
No files found.
configure.ac
View file @
500f7321
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment