| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | <!-- $NetBSD: components.xml,v 1.48 2014/10/09 13:44:46 wiz Exp $ --> | | 1 | <!-- $NetBSD: components.xml,v 1.49 2014/10/09 13:46:57 wiz Exp $ --> |
2 | | | 2 | |
3 | <chapter id="components"> <?dbhtml filename="components.html"?> | | 3 | <chapter id="components"> <?dbhtml filename="components.html"?> |
4 | <title>Package components - files, directories and contents</title> | | 4 | <title>Package components - files, directories and contents</title> |
5 | | | 5 | |
6 | <para>Whenever you're preparing a package, there are a number of | | 6 | <para>Whenever you're preparing a package, there are a number of |
7 | files involved which are described in the following | | 7 | files involved which are described in the following |
8 | sections.</para> | | 8 | sections.</para> |
9 | | | 9 | |
10 | <sect1 id="components.Makefile"> | | 10 | <sect1 id="components.Makefile"> |
11 | <title><filename>Makefile</filename></title> | | 11 | <title><filename>Makefile</filename></title> |
12 | | | 12 | |
13 | <para>Building, installation and creation of a binary package are all | | 13 | <para>Building, installation and creation of a binary package are all |
14 | controlled by the package's <filename>Makefile</filename>. | | 14 | controlled by the package's <filename>Makefile</filename>. |
| @@ -30,33 +30,26 @@ sections. | | | @@ -30,33 +30,26 @@ sections. |
30 | website.</para></listitem> | | 30 | website.</para></listitem> |
31 | | | 31 | |
32 | <listitem><para><varname>PKGNAME</varname> is the name of the | | 32 | <listitem><para><varname>PKGNAME</varname> is the name of the |
33 | package, as used by pkgsrc. You need to provide it if | | 33 | package, as used by pkgsrc. You need to provide it if |
34 | <varname>DISTNAME</varname> (which is the default) is not a good | | 34 | <varname>DISTNAME</varname> (which is the default) is not a good |
35 | name for the package in pkgsrc or <varname>DISTNAME</varname> is not | | 35 | name for the package in pkgsrc or <varname>DISTNAME</varname> is not |
36 | provided (no distribution file is required). Usually it is the pkgsrc | | 36 | provided (no distribution file is required). Usually it is the pkgsrc |
37 | directory name together with the version number. It must match the | | 37 | directory name together with the version number. It must match the |
38 | regular expression | | 38 | regular expression |
39 | <varname>^[A-Za-z0-9][A-Za-z0-9-_.+]*$</varname>, that is, it | | 39 | <varname>^[A-Za-z0-9][A-Za-z0-9-_.+]*$</varname>, that is, it |
40 | starts with a letter or digit, and contains only letters, digits, | | 40 | starts with a letter or digit, and contains only letters, digits, |
41 | dashes, underscores, dots and plus signs.</para></listitem> | | 41 | dashes, underscores, dots and plus signs.</para></listitem> |
42 | | | 42 | |
43 | the package file to create if the <varname>PKGNAME</varname> | | | |
44 | isn't unique on a SVR4 system. The default is | | | |
45 | <varname>PKGNAME</varname>, which may be shortened when you use | | | |
46 | <filename role="pkg">pkgtools/gensolpkg</filename>. Only add | | | |
47 | does not produce an unique package name on a SVR4 system. | | | |
48 | characters.</para></listitem> | | | |
49 | | | | |
50 | <listitem><para><varname>CATEGORIES</varname> is a list of categories | | 43 | <listitem><para><varname>CATEGORIES</varname> is a list of categories |
51 | which the package fits in. You can choose any of the top-level | | 44 | which the package fits in. You can choose any of the top-level |
52 | directories of pkgsrc for it.</para> | | 45 | directories of pkgsrc for it.</para> |
53 | | | 46 | |
54 | <para>Currently the following values are available for | | 47 | <para>Currently the following values are available for |
55 | <varname>CATEGORIES</varname>. If more than | | 48 | <varname>CATEGORIES</varname>. If more than |
56 | one is used, they need to be separated by spaces:</para> | | 49 | one is used, they need to be separated by spaces:</para> |
57 | | | 50 | |
58 | <programlisting> | | 51 | <programlisting> |
59 | archivers cross geography meta-pkgs security | | 52 | archivers cross geography meta-pkgs security |
60 | audio databases graphics misc shells | | 53 | audio databases graphics misc shells |
61 | benchmarks devel ham multimedia sysutils | | 54 | benchmarks devel ham multimedia sysutils |
62 | biology editors inputmethod net textproc | | 55 | biology editors inputmethod net textproc |