There is an alternative to PKG_PATH env var:

http://man.openbsd.org/OpenBSD-current/man5/pkg.conf.5

echo "installpath = http://your.favorite.mirror/"; > /etc/pkg.conf

.. and enjoy!

Mart


On Thu, May 19, 2016 at 4:32 AM, Ted Unangst <t...@tedunangst.com> wrote:
> Igor Mironov wrote:
>> The packages and ports' FAQ mentions that those using doas need to pass 
>> keepenv { PKG_PATH } in the config file. Is there a way to instruct doas to 
>> take PKG_PATH (or another variable) from the target account's environment 
>> (~/.profile)?
>
> No, but you can easily write a shell wrapper that sets things up and calls
> pkg_add.

Reply via email to