Ein debian Paket bauen

Am Beispiel von dovecot 2.0.1

Alle notwendigen Pakete installieren:

# aptitude install build-essential make devscripts dh-make

Dovecot 2.0.1 herunterladen und entpacken:

# wget http://dovecot.org/releases/2.0/dovecot-2.0.1.tar.gz
# tar xzf dovecot-2.0.1.tar.gz

Im Paketverzeichnis das folgenden Kommando ausführen:

# dh_make -s -e foo@bar.local -n

Die Datei ./debian/control anpassen (description)

configure Aufruf in der Datei ./debian/rules wie folgt anpassen

# ./configure $(CROSS) –-prefix=/usr  -–mandir=$${prefix}/share/man \
                       –-infodir=$${prefix}/share/info \
                       CFLAGS=”$(CFLAGS)” LDFLAGS=”$(LDFLAGS)”

Paket bauen:

# debuild binary

Weitere Informationen sind im Debian New Maintainers’ Guide zu finden.

Debian

root@h50877:~# aptitude update...Paketlisten werden gelesen... FertigW: There is no public key available for the following key IDs:4D270D06F42584E6W: There is no public key available for the following key IDs:4D270D06F42584E6W: Probieren Sie »apt-get update«, um diese Probleme zu korrigieren.
root@h50877:~# apt-key updategpg: key 2D230C5F: "Debian Archive Automatic Signing Key (2006) " not changedgpg: key 6070D3A1: "Debian Archive Automatic Signing Key (4.0/etch) " not changedgpg: key ADB11277: "Etch Stable Release Key " not changedgpg: key BBE55AB3: "Debian-Volatile Archive Automatic Signing Key (4.0/etch)" not changedgpg: Total number processed: 4gpg:              unchanged: 4
root@h50877:~# apt-key  update 4D270D06F42584E6 4D270D06F42584E6 gpg: key 2D230C5F: "Debian Archive Automatic Signing Key (2006) " not changed gpg: key 6070D3A1: "Debian Archive Automatic Signing Key (4.0/etch) " not changed gpg: key ADB11277: "Etch Stable Release Key " not changed gpg: key BBE55AB3: "Debian-Volatile Archive Automatic Signing Key (4.0/etch)" not changed gpg: Total number processed: 4 gpg:              unchanged: 4 gpg: Total number processed: 4
root@h50877:~# gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 4D270D06F42584E6 4D270D06F42584E6 gpg: requesting key F42584E6 from hkp server wwwkeys.eu.pgp.net gpg: requesting key F42584E6 from hkp server wwwkeys.eu.pgp.net gpg: key F42584E6: public key "Lenny Stable Release Key " imported gpg: key F42584E6: "Lenny Stable Release Key " not changed gpg: 3 marginal(s) needed, 1 complete(s) needed, classic trust model gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u gpg: Total number processed: 2 gpg:               imported: 1 gpg:              unchanged: 1
root@h50877:~# apt-key add /root/.gnupg/pubring.gpg OK