Draft outline
- Binary packages
- Constructing/unpacking with just ar and tar.
- dpkg-deb --unpack
- DEBIAN - metainfo
- root, containing all files as installed
- Package files database, no overlaps, dpkg-divert
- How to build a binary package: make a folder containnig the root and DEBIAN, then dpkg-deb --build
- Source packages
- (brief note on package formats, we'll get to this later)
- Goal here: Make a DEBIAN+root directory, run dpkg-deb --pack on it.
- debian/rules is a Makefile
- Interface to building: what the autobuilders/policy require:
- debian/rules binary (run with fake or real superuser privileges)
- debian/rules build (run with normal user privileges)
- Other required files
- debian/control
- debian/changelog
- Not build related: debian/{copyright,readme,news,}
- Common packaging tools:
- debhelper
- Tries to automatically install stuff based on common names
- Use debian/package.XXX to add extra stuff to install
- dh vs dh7
- debian/package.{install, docs, xxx}
- Adding more stuff to its makefiles
- cdbs
- yada
- debhelper
- Other tools: shlibs, ... ... ...
- Package formats
- 1.0: .orig.tar.gz + diff to add debian/ directory
- 3.0: .orig.tar.gz + debian.tar.gz + ...
- Some archive related stuff?
- Other useful tools?