Das Debian-Paket für package-1.0.tar.gz, das eine einzige, einfache C-Quelle enthält, die GNU-Programmier-Standard and FHS folgt, kann mit dem Befehl debmake wie folgt erstellt werden:
$ tar -xvzf package-1.0.tar.gz $ cd package-1.0 $ debmake ... Make manual adjustments of generated configuration files $ debuild
Falls die manuellen Anpassungen der erstellten Konfigurationsdateien übersprungen werden, fehlt dem erstellten Binärpaket eine sinnvolle Paketbeschreibung. Es funktioniert aber dennoch unter dem Befehl dpkg gut für Ihren lokalen Einsatz.
![]() |
Achtung |
---|---|
The debmake command only provides good template files. These template files must be manually adjusted to their perfection to comply with the strict quality requirements of the Debian archive, if the generated package is intended for general consumption. |
If you are new to Debian packaging, do not worry about the details and just get the big picture instead.
If you have been exposed to Debian packaging, this looks very much like the dh_make command. This is because the debmake command is intended to replace functions offered historically by the dh_make command. [3]
The debmake command is designed with the following features:
moderner Paketierstil
Flexibilität
vernünftige Standardaktionen
zusätzliche Nützlichkeiten
Der Befehl debmake delegiert den größten Teil der eigentlichen Arbeit an seine Backend-Pakete: debhelper, dpkg-dev, devscripts, pbuilder usw.
![]() |
Tipp |
---|---|
Make sure to protect the arguments of the -b, -f, -l, and -w options from shell interference by quoting them properly. |
![]() |
Tipp |
---|---|
Das nicht-native Debian-Paket ist das normale Debian-Paket. |
![]() |
Tipp |
---|---|
The detailed log of all the package build examples in this document can be obtained by following the instructions in Abschnitt 8.14, „Details“. |
![]() |
Anmerkung |
---|---|
Die Erstellung der Datei debian/copyright und die Ausgabe der Optionen -c (Abschnitt 6.3, „debmake -cc“) und -k (Abschnitt 6.4, „debmake -k“) beinhalten heuristische Aktionen bezüglich der Copyright- und Lizenzinformationen. Sie können fehlerhafte Ausgaben erstellen. |
[3] The deb-make command was popular before the dh_make command. The current debmake package starts its version from 4.0 to avoid version overlaps with the obsolete debmake package, which provided the deb-make command.