Auto-éditer un wikilivre/addappendix/Construction d'un paquet ubuntu
Apparence
Créer l'archive origine
[modifier | modifier le wikicode]- Le répertoire d’origine doit être en caractères minuscules
- Il doit être de la forme <package>-<version>
- Notre répertoire origine aura pour nom addappendix-211219
- Créer l'original
- Entrer dans le répertoire addappendix-211219'
dh_make --createorig
Nous obtenons à l'exécution avec l'option 'i' (indep):
Type of package: (single, indep, library, python) [s/i/l/p]? Maintainer Name : Cardabela Email-Address : cardabela@unknown Date : Sun, 19 Dec 2021 14:57:49 +0100 Package Name : addappendix Version : 211219 License : blank Package Type : indep Are the details correct? [Y/n/q] Please respond with "yes", "no" or "quit" (or "y", "n" or "q") Done. Please edit the files in the debian/ subdirectory now.
- Cette commande va créer
- l'archive /home/cardabela/addappendix_211219.orig.tar.xz
- le répertoire /home/cardabela/addappendix_211219/debian qui contiendra les fichiers standard d'empaquetage:
addappendix.cron.d.ex manpage.sgml.ex README.source addappendix.doc-base.EX manpage.xml.ex rules addappendix-docs.docs postinst.ex salsa-ci.yml.ex changelog postrm.ex source control preinst.ex watch.ex copyright prerm.ex manpage.1.ex README.Debian
On peut supprimer addappendix.doc-base.EX
Mise à jour des fichiers d'empaquetage
[modifier | modifier le wikicode]Note: https://www.debian.org/doc/manuals/maint-guide/dother.en.html#docs
changelog
[modifier | modifier le wikicode]changelog initial
addappendix (211219-1) unstable; urgency=medium * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP> -- Cardabela <cardabela@unknown> Sun, 19 Dec 2021 14:57:49 +0100
- changelog peut être unstable, experimental, unreleased, version de linux ubuntu.
- utiliser unreleased pour éviter l'enregistrement par erreur sur le ppa
addappendix (211219-1) unstable; urgency=medium * Initial Release. -- https://fr.wikibooks.org/wiki/Discussion_utilisateur:Goelette_Cardabela/addappendix Sun, 19 Dec 2021 14:57:49 +0100
control
[modifier | modifier le wikicode]addappendix (211219-1) unstable; urgency=medium * Initial release -- https://fr.wikibooks.org/wiki/Discussion_utilisateur:Goelette_Cardabela/addappendix Sun, 19 Dec 2021 14:57:49 +0100
addappendix-docs.docs
[modifier | modifier le wikicode]- Ces fichiers se trouvent dans le répertoire origine
- Attention README sans extension dans le répertoire origine concerne les versions de Add_appendix indépendantes du paquet
README.Debian README.source SURVEY TRANSLATIONS
copyright
[modifier | modifier le wikicode]Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: addappendix Upstream-Contact: <preferred name and address to reach the upstream project> Source: https://fr.wikibooks.org/wiki/Auto-éditer_un_wikilivre/addappendix Files: * Copyright: 2021 Goelette Cardabela french wikibooks user <years> <likewise for another author> License: <special license> <Put the license of the package here indented by 1 space> <This follows the format of Description: lines in control file> . <Including paragraphs> # If you want to use GPL v2 or later for the /debian/* files use # the following clauses, or change it to suit. Delete these two lines Files: debian/* Copyright: 2021 Cardabela <goelette.cardabela@orange.fr> License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/> . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". # Please also look if there are files or directories which have a # different copyright/license attached and list them here. # Please avoid picking licenses with terms that are more restrictive than the # packaged work, as it may make Debian's contributions unacceptable upstream. # # If you need, there are some extra license texts available in two places: # /usr/share/debhelper/dh_make/licenses/ # /usr/share/common-licenses/
preinst
[modifier | modifier le wikicode]postinst
[modifier | modifier le wikicode]prerm
[modifier | modifier le wikicode]postrm
[modifier | modifier le wikicode]Créer le Makefile original
[modifier | modifier le wikicode]- Ce 'Makefile' est destiné aux tests afin de l'intégrer dans la production d'un 'paquet' ubuntu.
- Il doit être placé dans le répertoire dit 'origine' addappendix_211219 qui contient les sources.
- On entend par sources, toutes les sources, du programme, de la maintenance, des images, etc.
- On se contentera d'adapter le Makefis d'installation
Auto-éditer un wikilivre/Annexer (Version internationalisée)/Makefile