| SGML on Debian GNU/Linux: Implementation of the LSB Specification | ||
|---|---|---|
| << Prev | Chapter 6. Debian docbook Directory Layout | Next >> |
The definition of a customization package needs to be stated before the purpose and layout of this directory can be described.
A package is a customization package if it meets any of the following criteria:
At least one of the stylesheet files is a customization of an installed stylesheet or stylesheet distribution.
At least one of the schema files is a customization of an installed schema.
Customization packages should place their files in a non-versioned subdirectory of custom. Maintainers may create versioned subdirectories of the package directories, but are not required to do so.
For example, the DocBook Website package has a dtd that is a customization of the DocBook XML DTD and also contains stylesheets that are customizations of the DocBook XSL stylesheets. The layout of the package preserves the upstream layout and would look somehting like this:
This policy is consistent with the LSB goal to simplify the packaging of dtd and/or stylesheet customizations.
Note: The above definition implies that dtd-only or stylesheet-only customizations are also defined as customization packages, and are therefore installed into a subdirectory of /usr/share/[DTD-NAME]/custom/[1].
| [1] |
To understand why these packages should be placed in the custom/ directory, consider the result of not putting them there.
|