Создание пакета 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 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]
Команда debmake имеет следующие возможности:
современный стиль создания пакетов
гибкость
разумные действия по умолчанию
дополнительные обслуживающие программы
The debmake command delegates most of the heavy lifting to its back-end packages: debhelper, dpkg-dev, devscripts, sbuild, schroot, etc.
![]() | Подсказка |
---|---|
Ensure that you properly quote the arguments of the -b, -f, -l, and -w options to protect them from shell interference. |
![]() | Подсказка |
---|---|
Неродной пакет Debian — обычный пакет Debian. |
![]() | Подсказка |
---|---|
Подробный журнал всех примеров сборки пакетов из данной документации можно получить, следуя инструкциям из «Раздел 14.14, «Детали»». |
![]() | Примечание |
---|---|
The generation of the debian/copyright file, and the outputs from the -c (see «Раздел 16.3, «debmake -cc»») and -k (see «Раздел 16.6, «debmake -k»») options involve heuristic operations on the copyright and license information. They may produce some erroneous results. |
[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.