summaryrefslogtreecommitdiff
path: root/doc/examples/apt-ftparchive.conf
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-08-11 15:58:05 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-08-11 15:58:05 +0000
commit53cd7e2bb6f1be92a2a8692134bc559b4d9b7c68 (patch)
tree6d392453775bfa74780f28f37c66c3cfeea69853 /doc/examples/apt-ftparchive.conf
parentc3f389d00e8a6b4861ee438053dfcb27da05afe6 (diff)
* added apt-ftparchive.conf example
Diffstat (limited to 'doc/examples/apt-ftparchive.conf')
-rw-r--r--doc/examples/apt-ftparchive.conf46
1 files changed, 46 insertions, 0 deletions
diff --git a/doc/examples/apt-ftparchive.conf b/doc/examples/apt-ftparchive.conf
new file mode 100644
index 000000000..657ec5440
--- /dev/null
+++ b/doc/examples/apt-ftparchive.conf
@@ -0,0 +1,46 @@
+// 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";
+ };
+};