pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/doc/guide/files Added the default values for the four ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0fb48fa5ffb4
branches:  trunk
changeset: 519382:0fb48fa5ffb4
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Oct 02 16:37:47 2006 +0000

description:
Added the default values for the four root directories of pkgsrc.

diffstat:

 doc/guide/files/files.xml |  31 +++++++++++++++++++++++++++----
 1 files changed, 27 insertions(+), 4 deletions(-)

diffs (54 lines):

diff -r c9747b3fea75 -r 0fb48fa5ffb4 doc/guide/files/files.xml
--- a/doc/guide/files/files.xml Mon Oct 02 16:37:22 2006 +0000
+++ b/doc/guide/files/files.xml Mon Oct 02 16:37:47 2006 +0000
@@ -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 @@
 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 @@
 </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>
 



Home | Main Index | Thread Index | Old Index