Criando pacote debian

De MochilaWiki
Revisão de 21h55min de 2 de janeiro de 2010 por Banto Palmarino (discussão | contribs)
Ir para navegaçãoIr para pesquisar

primeiro instalei as ferramentas necessárias para criar o pacote debian

# apt-get install dpkg-dev debhelper devscripts fakeroot dh-make

depois segui os seguintes passos

$ wget -c http://www.somasuite.org/src/somax-1.1.tar.gz
$ tar zxvf somax-1.1.tar.gz
$ cd somax-1.1
$ dh_make -n -s -e banto@nkosi.org
$ rm debian/*.ex debian/*.EX
$ rm debian/README debian/README.Debian
$ fakeroot debian/rules clean
$ debian/rules build
$ fakeroot debian/rules binary

e gerou o pacote somax_1.1_i386.deb um nível acima da onde estava.

agora basta "dpkg -i somax_1.1_i386.deb"

dentro de contral.tar.gz tem dois arquivo: control e md5sums para gerar o arquivo md5sums use:

find usr -exec md5sum {} >> md5sums \;

exemplo:

Package: lmms
Version: 0.1.4
Section: sound
Priority: optional
Architecture: i386
Depends: libc6 (>= 2.3.2.ds1-21), libgcc1 (>= 1:3.4.1-3), libice6 
| xlibs (>> 4.1.0), libjpeg62, libqt3c102-mt (>= 3:3.$
Installed-Size: 10624
Maintainer: banto <banto@riseup.net>
Description: Linux Multimedia Studio
  LMMS aims to be a free alternative to popular (but commercial and
  closed-source) programs such as FruityLoops, Cubase and Logic. LMMS combines
  the features of a tracker/sequencer-program
  (pattern-/channel-/sample-/song-/effect-management) and those of powerful
  synthesizers in a modern, user-friendly and easy to use graphical
  user-interface. Although Techno/Trance is the music that can be written with
  LMMS best, you can write your own music of any genre, because it's no problem
  to use your own samples or just the typical wave-shape of an instrument. Of
  course there're (let's better say "will be"!) many effects, you can apply to
  your instruments/channels, like reverb, delay, distortion and many more.
  .
  Homepage: http://lmms.sf.net