summaryrefslogtreecommitdiff
path: root/doc/pkgsrc.txt
diff options
context:
space:
mode:
authorhubertf <hubertf>2006-01-10 23:56:02 +0000
committerhubertf <hubertf>2006-01-10 23:56:02 +0000
commit50418df221d58971b7f1ee7c1ba3b983de746181 (patch)
tree64ec78f682c7e53f4d852293e1281b15982498aa /doc/pkgsrc.txt
parent2057e4e0a5a1e887a5c7aabe435c411ccfe07743 (diff)
downloadpkgsrc-50418df221d58971b7f1ee7c1ba3b983de746181.tar.gz
regen
Diffstat (limited to 'doc/pkgsrc.txt')
-rw-r--r--doc/pkgsrc.txt71
1 files changed, 50 insertions, 21 deletions
diff --git a/doc/pkgsrc.txt b/doc/pkgsrc.txt
index 459cec15eb0..97d520f85db 100644
--- a/doc/pkgsrc.txt
+++ b/doc/pkgsrc.txt
@@ -186,7 +186,11 @@ II. The pkgsrc developer's guide
12.4. System users and groups
12.5. System shells
- 12.5.1. Disabling handling of configuration files
+ 12.5.1. Disabling shell registration
+
+ 12.6. Fonts
+
+ 12.6.1. Disabling automatic update of the fonts databases
13. Options handling
@@ -1427,11 +1431,12 @@ option from a required group of options is selected, and building the package
will fail.
Before the options framework was introduced, build options were selected by
-setting a variable in /etc/mk.conf for each option. To ease transition to the
-options framework for the user, these legacy variables are converted to the
-appropriate options setting automatically. A warning is issued to prompt the
-user to update /etc/mk.conf to use the options framework directly. Support for
-these legacy variables will be removed eventually.
+setting a variable (often named USE_FOO) in /etc/mk.conf for each option. To
+ease transition to the options framework for the user, these legacy variables
+are converted to the appropriate options setting (PKG_OPTIONS.pkgbase)
+automatically. A warning is issued to prompt the user to update /etc/mk.conf to
+use the options framework directly. Support for the legacy variables will be
+removed eventually.
Chapter 6. Creating binary packages
@@ -2162,7 +2167,7 @@ packages installed on a system can take place. To do this, install the security
Use of the security/audit-packages package is strongly recommended! After
"audit-packages" is installed, please read the package's message, which you can
-get by running pkg_info -D audit-package.
+get by running pkg_info -D audit-packages.
If this package is installed, pkgsrc builds will use it to perform a security
check before building any package. See Section 5.2, "Variables affecting the
@@ -2241,7 +2246,11 @@ Table of Contents
12.4. System users and groups
12.5. System shells
- 12.5.1. Disabling handling of configuration files
+ 12.5.1. Disabling shell registration
+
+ 12.6. Fonts
+
+ 12.6.1. Disabling automatic update of the fonts databases
13. Options handling
@@ -3411,7 +3420,11 @@ Table of Contents
12.4. System users and groups
12.5. System shells
- 12.5.1. Disabling handling of configuration files
+ 12.5.1. Disabling shell registration
+
+12.6. Fonts
+
+ 12.6.1. Disabling automatic update of the fonts databases
This chapter describes the framework known as pkginstall, whose key features
are:
@@ -3428,11 +3441,9 @@ are:
* Registration of system shells.
-The following sections inspect each of the above points in detail. Note that in
-order to use any of the described functionalities, you must add the following
-to your package's Makefile:
+ * Automatic updating of fonts databases.
- USE_PKGINSTALL= YES
+The following sections inspect each of the above points in detail.
You may be thinking that many of the things described here could be easily done
with simple code in the package's post-installation target (post-install). This
@@ -3685,14 +3696,34 @@ variable to its absolute file name. This will add some hooks to the
installation scripts to handle it. Consider the following example, taken from
shells/zsh:
- USE_PKGINSTALL= YES
PKG_SHELL= ${PREFIX}/bin/zsh
-12.5.1. Disabling handling of configuration files
+12.5.1. Disabling shell registration
The automatic registration of shell interpreters can be disabled by the
administrator by setting the PKG_REGISTER_SHELLS environment variable to NO.
+12.6. Fonts
+
+Packages that install X11 fonts should update the database files that index the
+fonts within each fonts directory. This can easily be accomplished within the
+pkginstall framework.
+
+When a package installs X11 fonts, it must list the directories in which fonts
+are installed in the FONTS_DIRS.type variables, where type can be one of "ttf",
+"type1" or "x11". This will add hooks to the installation scripts to run the
+appropriate commands to update the fonts database files within each of those
+directories. For convenience, if the directory path is relative, it is taken to
+be relative to the package's installation prefix. Consider the following
+example, taken from fonts/dbz-ttf:
+
+ FONTS_DIRS.ttf= ${PREFIX}/lib/X11/fonts/TTF
+
+12.6.1. Disabling automatic update of the fonts databases
+
+The automatic update of fonts databases can be disabled by the administrator by
+setting the PKG_UPDATE_FONTS_DB environment variable to NO.
+
Chapter 13. Options handling
Table of Contents
@@ -5283,13 +5314,11 @@ extra steps to make sure they get registered in the database:
If a package installs font files, you will need to rebuild the fonts database
in the directory where they get installed at installation and deinstallation
-time. This can be automatically done by using mk/fonts.mk, which you need to
-include in your Makefile.
+time. This can be automatically done by using the pkginstall framework.
-When the file is included, you can list the directories where fonts are
-installed in the FONTS_type_DIRS variables, where type can be one of "TTF",
-"TYPE1" or "X11". Also make sure that the database file fonts.dir is not listed
-in the PLIST.
+You can list the directories where fonts are installed in the FONTS_DIRS.type
+variables, where type can be one of "ttf", "type1" or "x11". Also make sure
+that the database file fonts.dir is not listed in the PLIST.
Note that you should not create new directories for fonts; instead use the
standard ones to avoid that the user needs to manually configure his X server