summaryrefslogtreecommitdiffstats
path: root/doc/examples/apt-ftparchive.conf
blob: f3897ed4060f2a4adbe73ab268bc752b84252566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// 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.xz, remove/add as needed
Default {
	Packages::Compress ". gzip xz";
	Sources::Compress ". gzip xz";
	Contents::Compress ". gzip xz";
};

// 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";
	Sources "dists/sid/main/source/Sources";
	Contents "dists/sid/main/Contents-i386";
}

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

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

// And this is (you guessed it) the same for the non-free-firmware section
BinDirectory "pool/non-free-firmware" {
	Packages "dists/sid/non-free-firmware/binary-i386/Packages";
	Sources "dists/sid/non-free-firmware/source/Sources";
	Contents "dists/sid/non-free-firmware/Contents-i386";
};

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