<para>
<command/apt-ftparchive/ is a superset of the &dpkg-scanpackages; program,
- incorporating it's entire functionality via the <literal/directory/ command.
+ incorporating its entire functionality via the <literal/packages/ command.
It also contains a contents file generator, <literal/contents/, and an
elaborate means to 'script' the generation process for a complete
archive.
The <literal/generate/ command uses a configuration file to describe the
archives that are going to be generated. It follows the typical ISC
configuration format as seen in ISC tools like bind 8 and dhcpd.
- &apt-conf; contains a decsription of the syntax. Note that the generate
+ &apt-conf; contains a description of the syntax. Note that the generate
configuration is parsed in sectional manner, but &apt-conf; is parsed in a
tree manner. This only effects how the scope tag is handled.
<para>
- The generate configuration has 4 separate sections, each decribed below.
+ The generate configuration has 4 separate sections, each described below.
<refsect2><title>Dir Section</>
<Para>
<refsect2><title>TreeDefault Section</>
<para>
- Sets defaults specific to <literal/Tree/ sections. All of these
+ Sets defaults specific to <literal/Tree/ sections. All of these
variables are substitution variables and have the strings $(DIST),
$(SECTION) and $(ARCH) replaced with their respective values.
to be checked without changing. If this limit is passed the mtime of the
contents file is updated. This case can occur if the package file is
changed in such a way that does not result in a new contents file
- [overried edit for instance]. A hold off is allowed in hopes that new
+ [override edit for instance]. A hold off is allowed in hopes that new
.debs will be installed, requiring a new file anyhow. The default is 10,
the units are in days.
</VarListEntry>
<filename>$(DIST)/$(SECTION)/binary-$(ARCH)/</>
</VarListEntry>
+ <VarListEntry><term>SrcDirectory</term>
+ <ListItem><Para>
+ Sets the top of the source package directory tree. Defaults to
+ <filename>$(DIST)/$(SECTION)/source/</>
+ </VarListEntry>
+
<VarListEntry><term>Packages</term>
<ListItem><Para>
Sets the output Packages file. Defaults to
<VarListEntry><term>FileList</term>
<ListItem><Para>
- Specifies that instead of walking the directory tree
- that <command/apt-ftparchive/ should read the list of files from the given
+ Specifies that instead of walking the directory tree,
+ <command/apt-ftparchive/ should read the list of files from the given
file. Relative files names are prefixed with the archive directory.
</VarListEntry>
<VarListEntry><term>SourceFileList</term>
<ListItem><Para>
- Specifies that instead of walking the directory tree
- that <command/apt-ftparchive/ should read the list of files from the given
+ Specifies that instead of walking the directory tree,
+ <command/apt-ftparchive/ should read the list of files from the given
file. Relative files names are prefixed with the archive directory.
This is used when processing source indexs.
</VarListEntry>
<VarListEntry><term>Architectures</term>
<ListItem><Para>
This is a space separated list of all the
- architectures that appear under seach section. The special architecture
+ architectures that appear under search section. The special architecture
'source' is used to indicate that this tree has a source archive.
</VarListEntry>
Sets the binary override file. The override file
contains section, priority and maintainer address information.
</VarListEntry>
-
+
<VarListEntry><term>SrcOverride</term>
<ListItem><Para>
Sets the source override file. The override file
contains section information.
</VarListEntry>
+
+ <VarListEntry><term>ExtraOverride</term>
+ <ListItem><Para>
+ Sets the binary extra override file.
+ </VarListEntry>
+
+ <VarListEntry><term>SrcExtraOverride</term>
+ <ListItem><Para>
+ Sets the source extra override file.
+ </VarListEntry>
</VariableList>
</refsect2>
Sets the Contents file output. (Optional)
</VarListEntry>
- <VarListEntry><term>Binoverride</term>
+ <VarListEntry><term>BinOverride</term>
<ListItem><Para>
Sets the binary override file.
</VarListEntry>
Sets the source override file.
</VarListEntry>
+ <VarListEntry><term>ExtraOverride</term>
+ <ListItem><Para>
+ Sets the binary extra override file.
+ </VarListEntry>
+
+ <VarListEntry><term>SrcExtraOverride</term>
+ <ListItem><Para>
+ Sets the source extra override file.
+ </VarListEntry>
+
<VarListEntry><term>BinCacheDB</term>
<ListItem><Para>
Sets the cache DB.
<RefSect1><Title>The Binary Override File</>
<para>
The binary override file is fully compatible with &dpkg-scanpackages;. It
- contains 4 fields sperated by spaces. The first field is the package name,
+ contains 4 fields separated by spaces. The first field is the package name,
the second is the priority to force that package to, the third is the
the section to force that package to and the final field is the maintainer
permutation field.
package name, the second is the section to assign it.
</RefSect1>
+ <RefSect1><title>The Extra Override File</>
+ <para>
+ The extra override file allows any arbitrary tag to be added or replaced
+ in the output. It has 3 columns, the first is the package, the second is
+ the tag and the remainder of the line is the new value.
+ </RefSect1>
+
<RefSect1><Title>Options</>
&apt-cmdblurb;
</VariableList>
</RefSect1>
+<RefSect1><Title>Examples</>
+
+<para>To create a compressed Packages file for a directory containing
+binary packages (.deb):
+
+<programlisting
+<command/apt-ftparchive/ packages <replaceable/directory/ | <command/gzip/ > <filename/Packages.gz/
+</programlisting>
+
+</RefSect1>
+
<RefSect1><Title>See Also</>
<para>
&apt-conf;