Глава 1. Обзор

Создание пакета Debian из архива package-1.0.tar.gz, содержащего простой исходный код на языке C, следующий Стандарты написания кода GNU и Стандарт иерархии файловой системы, может быть выполнено с помощью команды debmake, что описано ниже.

 $ tar -xvzf package-1.0.tar.gz
 $ cd package-1.0
 $ debmake
   ... Make manual adjustments of generated configuration files
 $ debuild

Если будет пропущена ручная настройка созданных настроечных файлов, то в созданном двоичном пакете будет отсутствовать осмысленное описание, но он будет вполне работоспособоным при использовании команды dpkg для его локального развёртывания.

[Внимание] Внимание

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:

Команда debmake делегирует большинство сложных действий инструментальными пакетам: debhelper, dpkg-dev, devscripts, pbuilder и т. д.

[Подсказка] Подсказка

Make sure to protect the arguments of the -b, -f, -l, and -w options from shell interference by quoting them properly.

[Подсказка] Подсказка

Неродной пакет Debian — обычный пакет Debian.

[Подсказка] Подсказка

The detailed log of all the package build examples in this document can be obtained by following the instructions in Раздел 8.14, «Детали».

[Примечание] Примечание

Создание файла debian/copyright, а также результаты работы опций -c (Раздел 6.3, «debmake -cc») и -k (Раздел 6.4, «debmake -k») предполагают эвристические операции, производимые над информацией об авторском праве и лицензиях. Это может приводить к получению ошибочных результатов.



[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.