Debian : construire un paquet .deb

Boris HUISGEN November 11, 2012

administration système linux debian

bhuisgen@dev:~$ sudo apt-get install build-essential devscripts dh-make autoconf libtool diff patch debhelper cdbs quilt gnupg fakeroot lintian pbuilder piuparts
bhuisgen@dev:~$ tar xzf software-1.0.0.tar.gz
bhuisgen@dev:~$ cd software-1.0.0
bhuisgen@dev:~/software-1.0.0$ dh_make -f ../software-1.0.0.tar.gz -s -b
bhuisgen@dev:~/software-1.0.0$ cd debian/
bhuisgen@dev:~/software-1.0.0/debian$ rm *.ex *.EX README.Debian
bhuisgen@dev:~/software-1.0.0/debian$ vim control

#!/usr/bin/make -f
include /usr/share/cdbs/1/class/autotools.mk   
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk
# Add here any variable or target overrides you need.
makebuilddir/software-1.0.0::
    autoreconf --install

bhuisgen@dev:~/software-1.0.0/debian$ vim rules 
bhuisgen@dev:~/software-1.0.0/debian$ dch -e
bhuisgen@dev:~/software-1.0.0/debian$ vim copyright 
bhuisgen@dev:~/software-1.0.0/debian$ cd ..
bhuisgen@dev:~/software-1.0.0$ debuild -us -uc
bhuisgen@dev:~/software-1.0.0$ cd ..
bhuisgen@dev:~$ ls *.deb

See also

Debian : clean install avec environnement XFCE
Read more
Qt : QGtkStyle was unable to detect the current GTK+ theme
Read more
Debian : installation de Wheezy sur poste Mac
Read more