Subject: Re: pkgsrc.txt and sudo
To: None <netbsd-docs@netbsd.org, cheusov@tut.by>
From: Roland Illig <rillig@NetBSD.org>
List: netbsd-docs
Date: 05/01/2007 13:41:16
Aleksey Cheusov wrote:
> I'm not sure this mailing list is a right place for reporting bugs(?) 
> in pkgsrc documentation.
> 
> pkgsrc.txt:
> 8.13. Using 'sudo' with pkgsrc
> 
>        When installing packages as non-root user su(1) feature of
>        pkgsrc, it can become annoying to type in the root password for
>        each required package installed. To avoid this, the sudo
>        package can be used, which does password caching over a limited
>        time. To use it, install sudo (either as binary package or from
>        security/sudo) and then put the following into your /etc
>        /mk.conf:
> 
>     .if exists(${LOCALBASE}/bin/sudo)
>     SU_CMD=        ${LOCALBASE}/bin/sudo /bin/sh -c
>     .endif

You need to define LOCALBASE _before_ including this snippet. I'm 
updating the pkgsrc guide to say that.

Roland