summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2005-05-29 17:16:28 +0000
committerjmmv <jmmv@pkgsrc.org>2005-05-29 17:16:28 +0000
commit1fd81d6b9ad7bae0f0937ca992967296726ce297 (patch)
tree61f6927294beaf7b45656ee4657f4625269f7f02 /doc
parent041d5ecfe048487dd17d8eac79497d479e7dfd4e (diff)
downloadpkgsrc-1fd81d6b9ad7bae0f0937ca992967296726ce297.tar.gz
Change the 'non-root builds' question to reflect recent changes (existence
of the UNPRIVILEGED variable and simplification of bootstrapping).
Diffstat (limited to 'doc')
-rw-r--r--doc/guide/files/faq.xml29
1 files changed, 23 insertions, 6 deletions
diff --git a/doc/guide/files/faq.xml b/doc/guide/files/faq.xml
index a61ef926470..4aa476a23fd 100644
--- a/doc/guide/files/faq.xml
+++ b/doc/guide/files/faq.xml
@@ -1,4 +1,4 @@
-<!-- $NetBSD: faq.xml,v 1.10 2005/05/24 12:14:42 wiz Exp $ -->
+<!-- $NetBSD: faq.xml,v 1.11 2005/05/29 17:16:28 jmmv Exp $ -->
<chapter id="faq"> <?dbhtml filename="faq.html"?>
<title>Frequently Asked Questions</title>
@@ -232,11 +232,28 @@
<sect1 id="non-root-pkgsrc">
<title>How to use pkgsrc as non-root</title>
- <para> If you want to use pkgsrc as non-root user, you can set
- some variables to make pkgsrc work under these
- conditions. Please see <ulink
- url="http://mail-index.NetBSD.org/tech-pkg/2003/09/27/0023.html">this
- message</ulink> for more details. </para>
+ <para>If you want to use pkgsrc as non-root user, you can set some
+ variables to make pkgsrc work under these conditions. At the very
+ least, you need to set <varname>UNPRIVILEGED</varname> to
+ <quote>yes</quote>; this will turn on unprivileged mode and set
+ multiple related variables to allow installation of packages as
+ non-root.</para>
+
+ <para>In case the defaults are not enough, you may want to tune some
+ other variables used. For example, if the automatic user/group
+ detection leads to incorrect values (or not the ones you would like
+ to use), you can change them by setting
+ <varname>UNPRIVILEGED_USER</varname> and
+ <varname>UNPRIVILEGED_GROUP</varname> respectively.</para>
+
+ <para>As regards bootstrapping, please note that the
+ <command>bootstrap</command> script will ease non-root configuration
+ when given the <quote>--ignore-user-check</quote> flag, as it will
+ choose and use multiple default directories under
+ <filename>~/pkg</filename> as the installation targets. These
+ directories can be overriden by the <quote>--prefix</quote> flag
+ provided by the script, as well as some others that allow finer tuning
+ of the tree layout.</para>
</sect1>
<sect1 id="resume-transfers">