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

The Debian packaging of the package-1.0.tar.gz, containing a simple C source following the «GNU Coding Standards» and «FHS», can be done with the debmake command as follows.

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

Если вы только начинаете создавать пакеты Debian, то не беспокойтесь о деталях и переходите к рассмотрению общей картины.

If you have been exposed to Debian packaging, this looks vgry 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]

Команда debmake имеет следующие возможности:

The debmake command delegates most of the heavy lifting to its back-end packages: debhelper, dpkg-dev, devscripts, sbuild, schroot, etc.

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

Обязательно защитите путём соответствующего включения в кавычки аргументы опций -b, -f, -l и -w от вмешательства командной оболочки.

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

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

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

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

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

The generation of the debian/copyright file, and the outputs from the -c (see «Раздел 15.3, «debmake -cc»») and -k (see «Раздел 15.6, «debmake -k»») options involve heuristic operations on the copyright and license information. They may produce some erroneous results.



[3] Команда deb-make была популярна ещё до команды dh_make. Версии текущего пакета debmake начинаются с 4.0, чтобы исключить совпадения и конфликты версий с устаревшим пакетом debmake, предоставлявшим команду deb-make.