diff options
author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-11-15 12:31:07 +0000 |
---|---|---|
committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-11-15 12:31:07 +0000 |
commit | 4d65eb008a4b92153728b4d789095bcf8b68f897 (patch) | |
tree | 5aebb76ee20f0dbf8b78d8cbb44c4d8c7e67037f | |
parent | 669733def213b68bd7ec5d82d00cf5f0b4265bfb (diff) | |
download | src-test2-4d65eb008a4b92153728b4d789095bcf8b68f897.tar.gz src-test2-4d65eb008a4b92153728b4d789095bcf8b68f897.zip |
MFC r367253:
Document how to use sudo for SU_CMD
It is rather common for the ports users to replace su(1) with sudo(8)
within the SU_CMD variable. Let's document it in the manual page (so far
it's been hidden in a comment within bsd.commands.mk).
Notes
Notes:
svn path=/stable/11/; revision=367708
-rw-r--r-- | share/man/man7/ports.7 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/share/man/man7/ports.7 b/share/man/man7/ports.7 index cbc61d11948b..5a654264a212 100644 --- a/share/man/man7/ports.7 +++ b/share/man/man7/ports.7 @@ -25,7 +25,7 @@ .\" .\" $FreeBSD$ .\" -.Dd June 6, 2014 +.Dd November 1, 2020 .Dt PORTS 7 .Os .Sh NAME @@ -372,6 +372,17 @@ Where to find/put distfiles, normally .Pa distfiles/ in .Va PORTSDIR . +.It Va SU_CMD +Command used to elevate privilege to configure and install a port. +The unprivileged user must have write access to +.Va WRKDIRPREFIX +and +.Va DISTDIR . +The default is +.Ql /usr/bin/su root -c . +Many users set it to +.Ql /usr/local/bin/sudo -E sh -c +for convenience. .It Va PACKAGES Used only for the .Cm package |