[pacman-dev] [PATCH] Add --with-sudo configure option
Allan McRae
allan at archlinux.org
Wed Apr 12 03:20:30 UTC 2017
On 13/03/17 10:49, Drew DeVault wrote:
> Allows you to specify an alternate command for running things as root,
> such as OpenBSD's doas.
>
> Signed-off-by: Drew DeVault <sir at cmpwn.com>
> ---
> configure.ac | 9 +++++++++
> scripts/Makefile.am | 1 +
> scripts/makepkg.sh.in | 8 ++++----
> 3 files changed, 14 insertions(+), 4 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 10e4415c..825b29b9 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -114,6 +114,12 @@ AC_ARG_WITH(scriptlet-shell,
> [set the full path to the shell used to run install scriptlets]),
> [SCRIPTLET_SHELL=$withval], [SCRIPTLET_SHELL=/bin/sh])
>
> +# Help line for changing sudo command
> +AC_ARG_WITH(sudo,
> + AS_HELP_STRING([--with-sudo=sudo],
> + [set the command used to run pacman as root]),
> + [SUDOCMD=$withval], [SUDOCMD=sudo])
> +
I find the help string a bit vague. How about:
[command used to elevate privileges for pacman using within makepkg]
I'm also not convinced with the name. --with-root-command?
Allan
More information about the pacman-dev
mailing list