Sat Jan 7 17:45:38 2017 UTC ()
Update default PKG_DBDIR directories to match current reality.


(jperkin)
diff -r1.6 -r1.7 pkgsrc/doc/guide/files/files.xml

cvs diff -r1.6 -r1.7 pkgsrc/doc/guide/files/files.xml (expand / switch to unified diff)

--- pkgsrc/doc/guide/files/files.xml 2007/08/15 06:33:45 1.6
+++ pkgsrc/doc/guide/files/files.xml 2017/01/07 17:45:37 1.7
@@ -1,46 +1,46 @@ @@ -1,46 +1,46 @@
1<!-- $NetBSD: files.xml,v 1.6 2007/08/15 06:33:45 rillig Exp $ --> 1<!-- $NetBSD: files.xml,v 1.7 2017/01/07 17:45:37 jperkin Exp $ -->
2 2
3<chapter id="files"> 3<chapter id="files">
4<title>Directory layout of the installed files</title> 4<title>Directory layout of the installed files</title>
5 5
6<para>The files that are installed by pkgsrc are organized in a way that 6<para>The files that are installed by pkgsrc are organized in a way that
7is similar to what you find in the <filename>/usr</filename> directory 7is similar to what you find in the <filename>/usr</filename> directory
8of the base system. But some details are different. This is because 8of the base system. But some details are different. This is because
9pkgsrc initially came from FreeBSD and had adopted its file system 9pkgsrc initially came from FreeBSD and had adopted its file system
10hierarchy. Later it was largely influenced by NetBSD. But no matter 10hierarchy. Later it was largely influenced by NetBSD. But no matter
11which operating system you are using pkgsrc with, you can expect the 11which operating system you are using pkgsrc with, you can expect the
12same layout for pkgsrc.</para> 12same layout for pkgsrc.</para>
13 13
14<para>There are mainly four root directories for pkgsrc, which are all 14<para>There are mainly four root directories for pkgsrc, which are all
15configurable in the <filename>bootstrap/bootstrap</filename> script. 15configurable in the <filename>bootstrap/bootstrap</filename> script.
16When pkgsrc has been installed as root, the default locations 16When pkgsrc has been installed as root, the default locations
17are:</para> 17are:</para>
18 18
19<programlisting> 19<programlisting>
20LOCALBASE= /usr/pkg 20LOCALBASE= /usr/pkg
21PKG_SYSCONFBASE= /usr/pkg/etc 21PKG_SYSCONFBASE= /usr/pkg/etc
22VARBASE= /var 22VARBASE= /var
23PKG_DBDIR= /var/db/pkg 23PKG_DBDIR= /usr/pkg/pkgdb
24</programlisting> 24</programlisting>
25 25
26<para>In unprivileged mode (when pkgsrc has been installed as any other 26<para>In unprivileged mode (when pkgsrc has been installed as any other
27user), the default locations are:</para> 27user), the default locations are:</para>
28 28
29<programlisting> 29<programlisting>
30LOCALBASE= ${HOME}/pkg 30LOCALBASE= ${HOME}/pkg
31PKG_SYSCONFBASE= ${HOME}/pkg/etc 31PKG_SYSCONFBASE= ${HOME}/pkg/etc
32VARBASE= ${HOME}/pkg/var 32VARBASE= ${HOME}/pkg/var
33PKG_DBDIR= ${HOME}/pkg/var/db/pkg 33PKG_DBDIR= ${HOME}/pkg/pkgdb
34</programlisting> 34</programlisting>
35 35
36<para>What these four directories are for, and what they look like is 36<para>What these four directories are for, and what they look like is
37explained below.</para> 37explained below.</para>
38 38
39<itemizedlist> 39<itemizedlist>
40 40
41<listitem><para><varname>LOCALBASE</varname> corresponds to the 41<listitem><para><varname>LOCALBASE</varname> corresponds to the
42<filename>/usr</filename> directory in the base system. It is the 42<filename>/usr</filename> directory in the base system. It is the
43<quote>main</quote> directory where the files are installed and contains 43<quote>main</quote> directory where the files are installed and contains
44the well-known subdirectories like <filename>bin</filename>, 44the well-known subdirectories like <filename>bin</filename>,
45<filename>include</filename>, <filename>lib</filename>, 45<filename>include</filename>, <filename>lib</filename>,
46<filename>share</filename> and 46<filename>share</filename> and