//------------------------------------------------------------------------ // This is an apt-ftparchive(1) configuration file used to create // a repository of Debian packages. // // We intend to provide packages to be installed onto a standard Debian // box, so our distributions $(DIST) are named upon official Debian // ones: woody, sarge, etch, ... // // Our sections $(SECTION) are named accordingly to the purpose of the // packages: gis (packages for a GIS workstation), server (packages // suitable for a server), ... // We do not follow the official Debian components (main, non-free, ...) // // Usage: apt-ftparchive generate repository.conf // //------------------------------------------------------------------------ //------------------------------------------------------------------------ // The Dir section defines the standard directories needed to locate // the files required during the generation process. //------------------------------------------------------------------------ Dir { // Specifies the root of the FTP archive, this is the // directory that contains the dist node. ArchiveDir "/home/blueman/blueman-repository"; // Specifies the location of the cache files used by // apt-ftparchive to cache the contents of .deb files. CacheDir "/home/blueman/blueman-repository/ftparchive/"; // Specifies the location of the override files. // There can be override files for binary, source and extra. OverrideDir "/home/blueman/blueman-repository/indices"; // Specifies the location of the file list files, if the // FileList setting is used (see below). FileListDir "/home/blueman/blueman-repository/indices"; // What is an override file? // What is a file list file? }; //------------------------------------------------------------------------ // The Default section specifies default values, and settings that // control the operation of the generator. Other sections may override // these defaults with a per-section setting. //------------------------------------------------------------------------ Default { Packages::Compress ". gzip"; Sources::Compress ". gzip"; Contents::Compress ". gzip"; }; //------------------------------------------------------------------------ // Sets defaults specific to Tree sections. All of these variables are // substitution variables and have the strings $(DIST), $(SECTION) and // $(ARCH) replaced with their respective values. // // DIST Something like stable, testing, ... // SECTION Something like main, non-free, contrib // ARCH Something like i386, m68k, ... //------------------------------------------------------------------------ TreeDefault { // Binary cache database for this section. Creted into CacheDir. BinCacheDB "packages-$(SECTION)-$(ARCH).db"; // Sets the top of the .deb directory tree. Directory "pool/$(DIST)/$(SECTION)"; // Sets the output Packages file. Packages "$(DIST)/$(SECTION)/binary-$(ARCH)/Packages"; // Sets the top of the source package directory tree. SrcDirectory "pool/$(DIST)/$(SECTION)"; // Sets the output Sources file. Sources "$(DIST)/$(SECTION)/source/Sources"; // Sets the output Contents file. Contents "$(DIST)/Contents-$(ARCH)"; // Specifies that instead of walking the directory tree, // apt-ftparchive should read the list of files from the // given file. Relative file names are prefixed with the // FileListDir. //FileList "$(DIST)/$(SECTION).filelist"; }; //------------------------------------------------------------------------ // The Tree section defines a standard Debian file tree which consists // of a base directory, then multiple sections in that base directory // and finally multiple Architectures in each section. //------------------------------------------------------------------------ Tree "dists/hardy" { // This is a space separated list of sections which appear under // the distribution, typically this is something like main // contrib non-free Sections "blueman"; // This is a space separated list of all the architectures that // appear under search section. The special architecture 'source' // is used to indicate that this tree has a source archive. Architectures "i386 amd64 source"; } Tree "dists/gutsy" { // This is a space separated list of sections which appear under // the distribution, typically this is something like main // contrib non-free Sections "blueman"; // This is a space separated list of all the architectures that // appear under search section. The special architecture 'source' // is used to indicate that this tree has a source archive. Architectures "i386 amd64"; }