mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
Sudo-specific executables moved to /usr/libexec/sudo starting in
Debian 12 (Bookworm) and Ubuntu 22.04 (Jammy Jellyfish). Previously, they were stored in /usr/lib/sudo.
This commit is contained in:
parent
2845ceafb0
commit
439f0734f5
@ -277,6 +277,12 @@ case "$osversion" in
|
|||||||
make_opts="${make_opts}${make_opts+ }"'docdir=$(datarootdir)/doc/packages/$(PACKAGE_TARNAME)'
|
make_opts="${make_opts}${make_opts+ }"'docdir=$(datarootdir)/doc/packages/$(PACKAGE_TARNAME)'
|
||||||
;;
|
;;
|
||||||
deb*|ubu*)
|
deb*|ubu*)
|
||||||
|
# Sudo-specific executables moved to /usr/libexec/sudo starting in
|
||||||
|
# Debian: Debian 12 (Bookworm)
|
||||||
|
# Ubuntu: Ubuntu 22.04 (Jammy Jellyfish)
|
||||||
|
# Previously, they were stored in /usr/lib/sudo.
|
||||||
|
libexec=lib
|
||||||
|
|
||||||
# AppArmor is enabled by default starting in
|
# AppArmor is enabled by default starting in
|
||||||
# Debian: Debian 10 (Buster)
|
# Debian: Debian 10 (Buster)
|
||||||
# Ubuntu: Ubuntu 12.04 (Precise Pangolin)
|
# Ubuntu: Ubuntu 12.04 (Precise Pangolin)
|
||||||
@ -286,11 +292,17 @@ case "$osversion" in
|
|||||||
if [ -z $osmajor ] || [ $osmajor -ge 10 ]; then
|
if [ -z $osmajor ] || [ $osmajor -ge 10 ]; then
|
||||||
with_apparmor=true
|
with_apparmor=true
|
||||||
fi
|
fi
|
||||||
|
if [ -z $osmajor ] || [ $osmajor -ge 12 ]; then
|
||||||
|
libexec=libexec
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
ubu*)
|
ubu*)
|
||||||
if [ -z $osmajor ] || [ $osmajor -ge 14 ]; then
|
if [ -z $osmajor ] || [ $osmajor -ge 14 ]; then
|
||||||
with_apparmor=true
|
with_apparmor=true
|
||||||
fi
|
fi
|
||||||
|
if [ -z $osmajor ] || [ $osmajor -ge 22 ]; then
|
||||||
|
libexec=libexec
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -338,7 +350,7 @@ case "$osversion" in
|
|||||||
--disable-root-mailer
|
--disable-root-mailer
|
||||||
--with-sendmail=/usr/sbin/sendmail
|
--with-sendmail=/usr/sbin/sendmail
|
||||||
--mandir=/usr/share/man
|
--mandir=/usr/share/man
|
||||||
--libexecdir=/usr/lib
|
--libexecdir=/usr/$libexec
|
||||||
--with-linux-audit
|
--with-linux-audit
|
||||||
$configure_opts"
|
$configure_opts"
|
||||||
# Use correct libaudit dependency
|
# Use correct libaudit dependency
|
||||||
|
Loading…
x
Reference in New Issue
Block a user