[ zurück ] [ Inhalt ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ A ] [ weiter ]


Anleitung für zukünftige Debian-Maintainer
Anhang A - Beispiele


Jetzt paketieren Sie den Quellcode-Tarball gentoo-1.0.2.tar.gz und laden alle Pakete nach NM_Ziel hoch.


A.1 Einfaches Beispielpaket

     $ mkdir -p /Pfad/zu # neues leeres Verzeichnis
     $ cd /Pfad/zu
     $ tar -xvzf /Pfad/von/gentoo-1.0.2.tar.gz # Quellcode auspacken
     $ cd gentoo-1.0.2
     $ dh_make -e Name@Domain.com -f /Pfad/von/gentoo-1.0.2.tar.gz
     ... Fragen beantworten
     ... Quellcode anpassen
     ... Wenn es ein Skript-Paket ist, in der Datei debian/control
         "Architecture: all" eintragen.
     ... Die Datei ../gentoo_1.0.2.orig.tar.gz nicht löschen.
     $ debuild
     ... Darauf achten, dass keine Warnungen auftreten.
     $ cd ..
     $ dupload -t NM_Ziel gentoo_1.0.2-1_i386.changes

A.2 Beispielpaket mit dpatch und pbuilder

     $ mkdir -p /path/to # neues leeres Verzeichnis
     $ cd /Pfad/zu
     $ tar -xvzf /Pfad/von/gentoo-1.0.2.tar.gz
     $ cp -a  gentoo-1.0.2 gentoo-1.0.2-orig
     $ cd gentoo-1.0.2
     $ dh_make -e Name@Domain.com -f /Pfad/von/gentoo-1.0.2.tar.gz
     ... Fragen beantworten
     ... Quellcode anpassen
     ... Erstellen Sie das Paket mit "dpkg-buildpackage -rfakeroot -us -uc"
     ... Quellcode anpassen bis das Paket richtig baut.
     ... Die Datei ../gentoo_1.0.2.orig.tar.gz nicht löschen.
     $ cd ..
     $ cp -a gentoo-1.0.2 gentoo-1.0.2-keep # Sicherheitskopie
     $ mv gentoo-1.0.2/debian debian
     $ diff -Nru  gentoo-1.0.2-orig gentoo-1.0.2 \
        > patch-file
     ... Sie könnten damit das Verzeichnis gentoo-1.0.2 überschreiben.
     ... Behalten Sie unbedingt gentoo-1.0.2-keep zur Sicherheit.
     $ mkdir -p debian/patches
     $ dpatch patch-template patch-file \
        -p "01_patchname" "patch-file description" \
        < patch-file > debian/patches/01_patchname.dpatch
     $ cd debian/patches
     $ echo 01_patchname.dpatch >00list
     $ cd ../.. # zurück zu /Pfad/zu
     $ rm -rf gentoo-1.0.2
     $ editor debian/rules

Die Datei debian/rules sieht original so aus:

     config.status: configure
          ./configure --prefix=/usr --mandir=/usr/share
     
     build: config.status
          ${MAKE}
     
     clean:
          $(testdir)
          $(testroot)
          ${MAKE} distclean
          rm -rf debian/imaginary-package debian/files debian/substvars

Ändern Sie die Datei debian/rules folgendermaßen, um dpatch nutzen zu können:

     config.status: patch configure
          ./configure --prefix=/usr --mandir=/usr/share
     
     build: config.status
          ${MAKE}
     
     clean: clean-patched unpatch
     
     clean-patched:
          $(testdir)
          $(testroot)
          ${MAKE} distclean
          rm -rf debian/imaginary-package debian/files debian/substvars
     
     patch: patch-stamp
     
     patch-stamp:
          dpatch apply-all
          dpatch call-all -a=pkg-info >patch-stamp
     
     unpatch:
          dpatch deapply-all
          rm -rf patch-stamp debian/patched

Jetzt sind Sie so weit, den Quellcode mit dem dpatch-System neu zu packen.

     $ tar -xvzf gentoo_1.0.2.orig.tar.gz
     $ cp -a debian/ gentoo-1.0.2/debian
     $ cd gentoo-1.0.2
     $ sudo pbuilder update
     $ pdebuild
     $ cd /var/cache/pbuilder/result/
     $ dupload -t nm_target gentoo_1.0.2-1_i386.changes

[ zurück ] [ Inhalt ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ A ] [ weiter ]


Anleitung für zukünftige Debian-Maintainer

Version 1.2.3, 18. Januar 2005.

Josip Rodin joy-mg@debian.org
Übersetzer: Erik Schanze mail@erikschanze.de
Übersetzer: Eduard Bloch blade@debian.org