On Sun, Dec 31, 2017 at 07:37:13PM +0100, Kurt Jaeger wrote:
Hi!

'make install' calls pkg, which does su to change to the root account.
su asks for the root password again and again when there are many
packages to install.

Is there any way to configure this to be 'sudo'?


pkg.conf(5) seems to have no info on this.

In Mk/bsd.commands.mk I found SU_CMD, so maybe redefining SU_CMD works ?

# Command to run commands as privileged user
# Example: "/usr/local/bin/sudo -E sh -c" to use "sudo" instead of "su"
SU_CMD?=                /usr/bin/su root -c

Thanks!

I was looking for the same, but was too lazy to go through the mk files. Probably it should be documented in ports(7)?
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to