Всё же расписано по шагам:
https://wiki.ubuntu.com/PackagingGuide/Complete
Сегодня попытался собрать пакет как это сделано в примере с "
Hello".
1. создал архив с исходниками
goloslinux_0.1.orig.tar.gz2. папку с именем
goloslinux-0.13. в нее скопировал исходники (не компилированные)
4. выполнил
dh_make
Type of package: single binary, indep binary, multiple binary, library, kernel module, kernel patch or cdbs?
[s/i/m/l/k/n/b] s
Maintainer name : GrandPeter
Email-Address : goloslinux@gmail.com
Date : Tue, 21 Sep 2010 01:10:08 +0400
Package Name : goloslinux
Version : 0.1
License : blank
Using dpatch : no
Using quilt : no
Type of Package : Single
Hit <enter> to confirm:
Skipping creating ../goloslinux_0.1.orig.tar.gz because it already exists
Currently there is no top level Makefile. This may require additional tuning.
Done. Please edit the files in the debian/ subdirectory now. You should also
check that the goloslinux Makefiles install into $DESTDIR and not in /
в результате получаю папку дебиан с файлами, часть удаляю командой
rm *.ex *.EX
редактирую и получаю файлы вида:
changeloggoloslinux (0.1-1) unstable; urgency=low
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
-- peter <peter@unknown> Mon, 20 Sep 2010 20:26:52 +0400
controlSource: goloslinux
Section: devel
Priority: optional
Maintainer: peter
Build-Depends: debhelper (>= 7)
Standards-Version: 3.8.3
Homepage:
http://golos.sourceforge.net/Package: goloslinux
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Easy Qt GUI for TTS Festival
rules#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@
Как я догадываюсь (из
https://forum.ubuntu.ru/index.php?topic=11609.0)
фаил
rules должен быть более содержательный нежели мой. В приведенной мной ссылке есть фраза:
нужно раскомментировать
dh_install
(т.е. убрать # в начале строки)
без этого мы получим пустой пакет.
5. упрямо иду по инструкции, и выполняю
debuild
в отчете в конце получаю подозрительные речи:
Finished running lintian.
Now signing changes and any dsc files...
signfile goloslinux_0.1-1.dsc peter <peter@unknown>
gpg: пропущено "peter <peter@unknown>": секретный ключ не найден
gpg: /tmp/debsign.RxaEyVhP/goloslinux_0.1-1.dsc: clearsign failed: секретный ключ не найден
debsign: gpg error occurred! Aborting....
debuild: fatal error at line 1261:
running debsign failed
А результирующий пакет
goloslinux_0.1-1_amd64.deb оказывается пустым, хотя в папке с исходниками есть скомпилированный файл.
Что же я упускаю?