summaryrefslogtreecommitdiff
path: root/doc/guide
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-10-02 16:37:47 +0000
committerrillig <rillig@pkgsrc.org>2006-10-02 16:37:47 +0000
commitf387e4b53ed5786a839b7db3d9652525570e6b64 (patch)
treeb479f54ef9839405d9e3e7f9caca13f20047a0e5 /doc/guide
parentad2df9fe1a38d057dc09184c5ae9b74e3ac3f814 (diff)
downloadpkgsrc-f387e4b53ed5786a839b7db3d9652525570e6b64.tar.gz
Added the default values for the four root directories of pkgsrc.
Diffstat (limited to 'doc/guide')
-rw-r--r--doc/guide/files/files.xml31
1 files changed, 27 insertions, 4 deletions
diff --git a/doc/guide/files/files.xml b/doc/guide/files/files.xml
index fd68ea73217..1a018a3b0ec 100644
--- a/doc/guide/files/files.xml
+++ b/doc/guide/files/files.xml
@@ -1,4 +1,4 @@
-<!-- $NetBSD: files.xml,v 1.1 2006/09/19 17:50:38 rillig Exp $ -->
+<!-- $NetBSD: files.xml,v 1.2 2006/10/02 16:37:47 rillig Exp $ -->
<chapter id="files">
<title>Directory layout of the installed files</title>
@@ -11,7 +11,30 @@ hierarchy. Later it was largely influenced by NetBSD. But no matter
which operating system you are using pkgsrc with, you can expect the
same layout for pkgsrc.</para>
-<para>There are mainly three root directories for pkgsrc:</para>
+<para>There are mainly three root directories for pkgsrc, which are all
+configurable in the <filename>bootstrap/bootstrap</filename> script.
+When pkgsrc has been installed as root, the default locations
+are:</para>
+
+<programlisting>
+ LOCALBASE= /usr/pkg
+ PKG_SYSCONFBASE= /usr/pkg/etc
+ VARBASE= /var
+ PKGDBDIR= /var/db/pkg
+</programlisting>
+
+<para>In unprivileged mode (when pkgsrc has been installed as any other
+user), the default locations are:</para>
+
+<programlisting>
+ LOCALBASE= ${HOME}/pkg
+ PKG_SYSCONFBASE= ${HOME}/pkg/etc
+ VARBASE= ${HOME}/pkg/var
+ PKGDBDIR= ${HOME}/pkg/var/db/pkg
+</programlisting>
+
+<para>What these four directories are for, and what they look like is
+explained below.</para>
<itemizedlist>
@@ -36,10 +59,10 @@ itself.</para></listitem>
</itemizedlist>
<sect1 id="files.localbase">
-<title>File system layout in <literal>${PREFIX}</literal></title>
+<title>File system layout in <literal>${LOCALBASE}</literal></title>
<para>The following directories exist in a typical pkgsrc installation
-in <filename>${PREFIX}</filename>.</para>
+in <filename>${LOCALBASE}</filename>.</para>
<variablelist>