Taille: 3974
Commentaire:
|
Taille: 6215
Commentaire:
|
Texte supprimé. | Texte ajouté. |
Ligne 127: | Ligne 127: |
dh-make et devscripts | Nécessite : dh-make et devscripts Je vais créer un paquet qui installe ksnapshot et supprime evolution |
Ligne 131: | Ligne 133: |
{{{ mon-first-paquet-1.0$ dh_make |
cd mon-first-paquet-1.0 {{{ mon-first-paquet-1.0$ dh_make --createorig |
Ligne 139: | Ligne 143: |
Date : Wed, 15 Oct 2008 11:28:45 +0200 | Date : Wed, 15 Oct 2008 11:31:10 +0200 |
Ligne 145: | Ligne 149: |
}}} | 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 mon-first-paquet Makefiles install into $DESTDIR and not in / . }}} {{{ `-- debian |-- README.Debian |-- changelog |-- compat |-- control |-- copyright |-- cron.d.ex |-- dirs |-- docs |-- emacsen-install.ex |-- emacsen-remove.ex |-- emacsen-startup.ex |-- init.d.ex |-- init.d.lsb.ex |-- manpage.1.ex |-- manpage.sgml.ex |-- manpage.xml.ex |-- menu.ex |-- mon-first-paquet-default.ex |-- mon-first-paquet.doc-base.EX |-- postinst.ex |-- postrm.ex |-- preinst.ex |-- prerm.ex |-- rules `-- watch.ex }}} Fichier 'DEBIAN/control' AVANT {{{ Source: mon-first-paquet Section: unknown Priority: extra Maintainer: Alexandre Domont <alexandre.domont@auf.org> Build-Depends: debhelper (>= 5) Standards-Version: 3.7.2 Package: mon-first-paquet Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: <insert up to 60 chars description> <insert long description, indented with spaces> }}} Fichier 'DEBIAN/control' APRES {{{ Source: mon-first-paquet Section: AUF Priority: optional Maintainer: Alexandre Domont <alexandre.domont@auf.org> Build-Depends: debhelper (>= 5) Standards-Version: 3.7.2 Package: mon-first-paquet Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, ksnapshot Conflicts: ksnapshot, evolution Description: Un paquet pour installer ksnapshot et desinstaller evolution !! }}} Version du paquet dans le changelog avec dch {{{ GNU nano 2.0.7 Fichier : debian/changelog.dch Modifié mon-first-paquet (1.0-1) hardy; urgency=low * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP> * Pouette pouette un paquet qui installe ksnapshot et supprime evolution -- Alexandre Domont <alexandre.domont@auf.org> Wed, 15 Oct 2008 11:53:37 +0200 }}} |
Quelques repères...pour m'y retrouver !!!
Le paquet Debian
Exemple d'un paquet pris au hasard : /var/cache/apt/archives/autofs_4.1.4+debian-2.1ubuntu1_i386.deb
Extrait les fichiers du .deb : dpkg -x autofs_4.1.4+debian-2.1ubuntu1_i386.deb autofs
autofs |-- etc | |-- apm | | `-- event.d | | `-- autofs | |-- default | `-- init.d | `-- autofs |-- usr | |-- lib | | `-- autofs | | |-- lookup_file.so | | |-- lookup_multi.so | | |-- lookup_nisplus.so | | |-- lookup_program.so | | |-- lookup_userhome.so | | |-- lookup_yp.so | | |-- mount_afs.so | | |-- mount_autofs.so | | |-- mount_bind.so | | |-- mount_changer.so | | |-- mount_ext2.so | | |-- mount_ext3.so -> mount_ext2.so | | |-- mount_generic.so | | |-- mount_nfs.so | | `-- parse_sun.so | |-- sbin | | `-- automount | `-- share | |-- autofs | | `-- conffiles | | |-- auto.master | | |-- auto.master.md5sum | | |-- auto.misc | | |-- auto.misc.md5sum | | |-- auto.net | | |-- auto.net.md5sum | | |-- auto.smb | | |-- auto.smb.md5sum | | |-- autofs.default | | `-- autofs.default.md5sum | |-- doc | | `-- autofs | | |-- CREDITS | | |-- NEWS.Debian.gz | | |-- README | | |-- README.Debian | | |-- README.changer | | |-- README.direct | | |-- README.ghosting | | |-- README.init | | |-- README.ldap | | |-- README.ncpfs | | |-- README.replicated-server | | |-- README.smbfs | | |-- changelog.Debian.gz | | |-- changelog.gz | | |-- copyright | | `-- examples | | |-- auto.master | | |-- auto.misc | | `-- auto.net | `-- man | |-- man5 | | |-- auto.master.5.gz | | `-- autofs.5.gz | `-- man8 | |-- autofs.8.gz | `-- automount.8.gz `-- var `-- run `-- autofs
Extrait les méta données du paquet : dpkg -e autofs_4.1.4+debian-2.1ubuntu1_i386.deb autofs/DEBIAN
autofs/DEBIAN |-- conffiles |-- control |-- md5sums |-- postinst |-- postrm `-- prerm
Fichier 'DEBIAN/control'
Package: autofs Version: 4.1.4+debian-2.1ubuntu1 Architecture: i386 Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com> Installed-Size: 476 Depends: libc6 (>= 2.4), ucf Recommends: module-init-tools, nfs-common Conflicts: autofs Section: utils Priority: extra Description: kernel-based automounter for Linux Autofs controls the operation of the automount daemons. The automount daemons automatically mount filesystems when they are used and unmount them after a period of inactivity. This is done based on a set of pre-configured maps. . The kernel automounter implements an almost complete SunOS style automounter under Linux. Automounter version 4 (autofs4) has to be enabled when compiling the kernel. Debian packaged kernels have it enabled. Original-Maintainer: Jan Christoph Nordholz <hesso@pool.math.tu-berlin.de>
Création d'un paquet
Nécessite : dh-make et devscripts
Je vais créer un paquet qui installe ksnapshot et supprime evolution
mkdir mon-first-paquet-1.0
cd mon-first-paquet-1.0
mon-first-paquet-1.0$ dh_make --createorig Type of package: single binary, multiple binary, library, kernel module or cdbs? [s/m/l/k/b] s Maintainer name : Alexandre Domont Email-Address : alexandre.domont@auf.org Date : Wed, 15 Oct 2008 11:31:10 +0200 Package Name : mon-first-paquet Version : 1.0 License : blank Type of Package : Single Hit <enter> to confirm: 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 mon-first-paquet Makefiles install into $DESTDIR and not in / .
`-- debian |-- README.Debian |-- changelog |-- compat |-- control |-- copyright |-- cron.d.ex |-- dirs |-- docs |-- emacsen-install.ex |-- emacsen-remove.ex |-- emacsen-startup.ex |-- init.d.ex |-- init.d.lsb.ex |-- manpage.1.ex |-- manpage.sgml.ex |-- manpage.xml.ex |-- menu.ex |-- mon-first-paquet-default.ex |-- mon-first-paquet.doc-base.EX |-- postinst.ex |-- postrm.ex |-- preinst.ex |-- prerm.ex |-- rules `-- watch.ex
Fichier 'DEBIAN/control' AVANT
Source: mon-first-paquet Section: unknown Priority: extra Maintainer: Alexandre Domont <alexandre.domont@auf.org> Build-Depends: debhelper (>= 5) Standards-Version: 3.7.2 Package: mon-first-paquet Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: <insert up to 60 chars description> <insert long description, indented with spaces>
Fichier 'DEBIAN/control' APRES
Source: mon-first-paquet Section: AUF Priority: optional Maintainer: Alexandre Domont <alexandre.domont@auf.org> Build-Depends: debhelper (>= 5) Standards-Version: 3.7.2 Package: mon-first-paquet Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, ksnapshot Conflicts: ksnapshot, evolution Description: Un paquet pour installer ksnapshot et desinstaller evolution !!
Version du paquet dans le changelog avec dch
GNU nano 2.0.7 Fichier : debian/changelog.dch Modifié mon-first-paquet (1.0-1) hardy; urgency=low * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP> * Pouette pouette un paquet qui installe ksnapshot et supprime evolution -- Alexandre Domont <alexandre.domont@auf.org> Wed, 15 Oct 2008 11:53:37 +0200