From a2111ba288dfcd0386bac6e4b3bd3f3a15350516 Mon Sep 17 00:00:00 2001 From: rillig Date: Mon, 18 Sep 2006 12:52:20 +0000 Subject: Provided an introduction to configuring pkgsrc. Removed the link to the "undefined reference" section in the developer's guide, since that kind of problem is not expected to be solved in mk.conf. --- doc/guide/files/configuring.xml | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'doc/guide') diff --git a/doc/guide/files/configuring.xml b/doc/guide/files/configuring.xml index 285d57bc796..45d6d2c6763 100644 --- a/doc/guide/files/configuring.xml +++ b/doc/guide/files/configuring.xml @@ -1,17 +1,36 @@ - + Configuring pkgsrc +The whole pkgsrc system is configured in a single file, usually +called mk.conf. In which directory pkgsrc looks for +that file depends on the installation. On NetBSD, when you use +&man.make.1; from the base system, it is in the directory +/etc/. In all other cases the default location is +${PREFIX}/etc/, depending on where you told the +bootstrap program to install the binary packages. + +During the bootstrap, an example configuration file is created. To +use that, you have to create the directory +${PREFIX}/etc and copy the example file +there. + +The format of the configuration file is that of the usual +BSD-style Makefiles. The whole pkgsrc configuration +is done by setting variables in this file. Note that you can define all +kinds of variables, and no special error checking (for example for +spelling mistakes) takes place, so you have to try it out to see if it +works. + General configuration In this section, you can find some variables that apply to all - pkgsrc packages. The preferred method of setting these variables is - by setting them in /etc/mk.conf. A complete - list of the variables that can be configured by the user is - available in mk/defaults/mk.conf, together with - some comments that describe the variable's intent. + pkgsrc packages. A complete list of the variables that can be + configured by the user is available in + mk/defaults/mk.conf, together with some + comments that describe each variable's intent. LOCALBASE: Where @@ -146,7 +165,6 @@ settings, use the += operator: LDFLAGS+= -your -linkerflags -See also . -- cgit v1.2.3