The Debian packaging of the package-1.0.tar.xz, containing a simple C source following the „GNU Coding Standards“ and „FHS“, can be done with the debmake command as follows.
[base_dir] $ tar --xz -xvf package-1.0.tar.xz [base_dir] $ cd package-1.0 [package-1.0] $ debmake ... Make manual adjustments of generated configuration files [package-1.0] $ 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 decent 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, focus on understanding the overall process rather than worrying about the details.
If you are familiar with Debian packaging, you’ll notice that debmake is similar to the dh_make command. This is because debmake is designed to replace the functionality historically provided by dh_make. [3]
Der Befehl debmake wurde mit den folgenden Funktionalitäten gestaltet:
moderner Paketierstil
Flexibilität
vernünftige Standardaktionen
The debmake command delegates most of the heavy lifting to its back-end packages: debhelper, dpkg-dev, devscripts, sbuild, schroot, licensecheck, licenserecon, etc.
![]() | Tipp |
|---|---|
|
Ensure that you properly quote the arguments of the -b, -f, and -w options to protect them from shell interference. |
![]() | Tipp |
|---|---|
|
Das nicht-native Debian-Paket ist das normale Debian-Paket. |
![]() | Tipp |
|---|---|
|
Das detaillierte Protokoll aller Paketbaubeispiele in diesem Dokument kann durch Folgen der Anweisungen in „Abschnitt 14.14, „Details““ erhalten werden. |
[3] Before dh_make, the deb-make command was popular. The current debmake package starts its version from 4.0 to avoid version conflicts with the obsolete debmake package, which provided the „deb-make“ command.