I got some kind of solution that doesn't need a patch! Use apt-ftparchive with the attached configuration file. It also generates checksums, don't know how to disable that, but I suppose it's not a problem.
Just use it like this: ruby/mnt/scratch/work# apt-ftparchive generate apt-ftparchive.conf pool/main: 183 files 15.9MB 1s pool/restricted: 2 files 1259kB 0s Done Packages, Starting contents. Done. 17.2MB in 185 archives. Took 1s Wilmer van der Gaast. -- +-------- .''`. - -- ---+ + - -- --- ---- ----- ------+ | wilmer : :' : gaast.net | | OSS Programmer www.bitlbee.org | | lintux `. `~' debian.org | | Full-time geek wilmer.gaast.net | +--- -- - ` ---------------+ +------ ----- ---- --- -- - +
// 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 "iso";
CacheDir ".";
};
// Create Packages, Packages.gz and Packages.bz2, remove what you don't need
Default {
Packages::Compress ". gzip";
};
// 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/stable/main/debian-installer/binary-i386/Packages";
}
// This is the same for the contrib section
BinDirectory "pool/restricted" {
Packages
"dists/stable/restricted/debian-installer/binary-i386/Packages";
}
// By default all Packages should have the extension ".deb"
Default {
Packages {
Extensions ".udeb";
};
};
APT {
FTPArchive {
MD5 "off";
SHA "off";
SHA1 "off";
SHA256 "off";
};
};
signature.asc
Description: OpenPGP digital signature

