diff --git a/build/debian/README.howto b/build/debian/README.howto index 1ecd3b41388..0e572f7d483 100644 --- a/build/debian/README.howto +++ b/build/debian/README.howto @@ -9,9 +9,9 @@ with format .DEB (for Debian, Ubuntu, ...). # To build a debian package, you need first # With Ubuntu 12.04 -# apt-get install debhelper dpkg-source gpg lintian git-buildpackage pkg-php-tools +# apt-get install debhelper dpkg-source gpg lintian git-buildpackage pkg-php-tools schroot sbuild # With Debian 7 -# apt-get install debhelper dpkg gnupg lintian git-buildpackage pkg-php-tools +# apt-get install debhelper dpkg gnupg lintian git-buildpackage pkg-php-tools schroot sbuild # This is standard command to work on Debian packaging: @@ -63,12 +63,19 @@ http://bugs.debian.org/package ########################################################## +Create a chroot called "unstable-amd64-sbuild" +> sudo sbuild-createchroot --keyring= unstable /srv/chroot/unstable http://ftp.uk.debian.org/debian + +Puis pour se connecter +> schroot + + To create a gpg key for email used into changelog Check your existing keys/emails -* gpg --list-key +> gpg --list-key Generate a new one -* gpg --gen-key - +> gpg --gen-key +Files are saved int .gnupg directory To use Alioth.debian.org * Create a login @@ -79,13 +86,13 @@ To use Alioth.debian.org To update tcpdf package: * You can git clone tcpdf -git clone git.debian.org:/git/collab-maint/tcpdf.git [tcpdf-debian] +> git clone git.debian.org:/git/collab-maint/tcpdf.git [tcpdf-debian] * Into root dir, launch: -debian/get-orig-source.sh +> debian/get-orig-source.sh * Créer un fichier ~/.gpb.conf par -cat >~/.gbp.conf < cat >~/.gbp.conf < git-import-orig -vv ../tcpdf_6.0.020+dfsg.orig.tar.xz Note: If there was errors managed manually, you may need to make a git commit * Add an entry into debian/changelog -date -R will return formated string date to use into changelog +> date -R will return formated string date to use into changelog -Warning: Entry added here is used by next step. +Warning: Entry added here is used by next step. Name and email must match value into debian/control file. * We try to build package -git-buildpackage -us -uc +> git-buildpackage -us -uc * If package .deb is ok: Note: If there was errors managed manually, you may need to make a git commit but do not use option "amend" previous commit -git-buildpackage --git-tag -git push -git push --tags +> git-buildpackage --git-tag +> git push +> git push --tags * Compilation par un développeur debian et envoi par -sbuild ... -dput ... +> sbuild ... +> dput ... * Go into page. You should see new package into unstable. http://packages.qa.debian.org/t/tcpdf.html @@ -131,4 +138,5 @@ http://packages.qa.debian.org/t/tcpdf.html To update dolibarr debian package * You can git clone debian git repo -git.debian.org:/git/collab-maint/dolibarr.git \ No newline at end of file +git.debian.org:/git/collab-maint/dolibarr.git +