How to compile Debian packages

  • Install needed tools:
    apt-get install devscripts dpkg-dev
  • Install packages needed to compile the package:
    sudo apt-get update
    sudo apt-get build-dep PAKET

    (This only works if the package is available via apt-src entries in sour apt-sources)
  • If the package is available via ‘deb-src’ the sources can be downloaded and compiled directly:
    sudo apt-get update
    fakeroot apt-get -b source PAKET
  • Alternatively you can download the three source files (*.orig.tar.gz, *.diff.gz or *.debian.tar.gz and *.dsc) with ‘dget’:
    dget http://somurl/package.dsc
  • Unpack it:
    dpkg-source -x paket*.dsc
  • Change to the package dir:
    cd paket*
  • Compile it with
    debuild
    Parameters:
    -S only build the source package
    -b only compile a prepared source package
    -sa add orig.tar.gz to the *.dsc file
    -sd not add orig.tar.gz to the *.dsc file
    -us not sign the source
    -uc not sign the chnages
    -b no sources
    -B no architecture-independent
    ‘debuild’ is a wrapper for ‘dpkg-buildpackage’ which could also be called directly
Advertisements

Debian Sources

Unter Debian gibt es die /etc/apt/sources.list ,\\
sie bestimmt wo apt, synaptic, kpackage und andere ihre ihre daten her beziehen.

Mit “apt-get update” aktualisiert man die lokale Datenbank mit allen in der sources.list eingetragenen servern.

Danach kann man dort vorhandene Packete (Programme und Bibliotheken) herunterladen:
# apt-get install kde

oder nach bestimmten sachen suchen
# apt-get search icq

Zum durchsuchen kann man auch online.\\
Debian: http://packages.debian.org/\\
Ubuntu: http://packages.ubuntu.com/\\
Alternative Packete: http://www.apt-get.org/search.php

Nun folgt eine kleine Auswahl nützlicher Quellen:

# scorched3d
#deb ftp://progn.org/debian unstable main

# torcs – http://torcs.sourceforge.net/
#deb http://www.falassion.de/unstable/ ./

# some unofficial packages for debian/stable
#deb http://ftp.debian-unofficial.org/debian sarge main contrib non-free restricted

# some unofficial sourcepackages for debian
#deb-src http://mentors.debian.net/debian unstable main contrib non-free

# freenx – graphical remote control
#deb http://debian.tu-bs.de/project/kanotix/unstable/ sid nx

# mplayer, w32codecs, libdvdcss2 and others
#deb ftp://ftp.nerim.net/debian-marillat sid main

# wine cvs-snapshots
#deb http://wine.sourceforge.net/apt/sid/ ./

# kdetv bootsplash-tools ccd2iso – tvtool source only
#deb-src http://mentors.debian.net/debian unstable main contrib non-free

# sancho jboss – mlnet client
#deb http://debian.cli.unipi.it/4sid/ sid sherpya

# freevo – Python based PVR/DVR
#deb http://freevo.sourceforge.net/debian unstable main

# gnome-bluetooth bluez-utils gnome-phone-manager – bluetoothtools
#deb http://people.ubuntu.com/~jdub/warty/ ./

# bluez – Linux Bluetooth Protocol Stack
#deb http://bluez.sourceforge.net/download/debian/ ./

# loop-aes cdtool aespipe cryptofs-root libaudit-source-perl (kanotix default)
#deb http://debian.hinterhof.net/ unstable/

# hibernate – suspend to disk script – http://www.suspend2.net/
#deb http://cp.yi.org/apt/hibernate ./

# dc-qt valknut and others – Direct Connect client
#deb http://debian.xmixahlx.com/packages/unstable/ ./

# opera – Web Browser
#deb http://deb.opera.com/opera/ unstable non-free