[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#322483: apt-utils: please include an example for apt-ftparchive generate

Package: apt-utils
Severity: wishlist


when I first found apt-ftparchive and it's generate command I hade a
quite hard time to figure out how the conf-file needs to look like so
that it works. Now this would have been much easier if there were an
example, so I took my apt-ftparchive.conf polished it a bit (included
the contrib section) and wrote this bugreport. The config is attached
and I hope it will make it into one of the next releases. 


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-cherry+noradeon+8139c+
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages apt-utils depends on:
ii  apt [libapt-pkg-libc6.3-6-3.1   Advanced front-end for dpkg
ii  libc6                         2.3.5-3    GNU C Library: Shared libraries an
ii  libdb4.2                      4.2.52-19  Berkeley v4.2 Database Libraries [
ii  libgcc1                       1:4.0.1-3  GCC support library
ii  libstdc++6                    4.0.1-3    The GNU Standard C++ Library v3

apt-utils recommends no packages.

-- no debconf information
// This config is for use with the pool-structure for the packages, thus we
// don't use a Tree Section in here

// The debian archive should be in the current working dir
Dir {
	ArchiveDir ".";
	CacheDir ".";

// Create Packages, Packages.gz and Packages.bz2, remove what you don't need
Default {
	Packages::Compress ". gzip bzip2";
	Sources::Compress ". gzip bzip2";
	Contents::Compress ". gzip bzip2";

// Includes the main section. You can structure the directory tree under
// ./pool/main any way you like, apt-ftparchive will take any deb (and
// source package) it can find. This creates a Packages a Sources and a
// Contents file for these in the main section of the sid release
BinDirectory "pool/main" {
	Packages "dists/sid/main/binary-i386/Packages";
	SrcPackages "dists/sid/main/source/Sources";
	Contents "dists/sid/Contents-i386";

// This is the same for the contrib section
BinDirectory "pool/contrib" {
	Packages "dists/sid/contrib/binary-i386/Packages";
	SrcPackages "dists/sid/contrib/source/Sources";
	Contents "dists/sid/Contents-i386";

// This is the same for the non-free section
BinDirectory "pool/non-free" {
	Packages "dists/sid/non-free/binary-i386/Packages";
	SrcPackages "dists/sid/non-free/source/Sources";
	Contents "dists/sid/Contents-i386";

// By default all Packages should have the extension ".deb"
Default {
	Packages {
		Extensions ".deb";

Reply to: