Empacotamento e backport de aplicações em debian

399 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Empacotamento e backport de aplicações em debian

  1. 1. Empacotamento e Backport de aplicações em DebianAndré Ferraz - @deferraz http://blog.sysadmin.io
  2. 2. Curiosity 101
  3. 3. ?
  4. 4. Debra Lynn +
  5. 5. debian-binaryar(1) control.tar.gz data.tar.gz
  6. 6. debootstrap(8) schroot(1)
  7. 7. dh_make
  8. 8. dh_make DEBFULLNAME=”Andre Ferraz”DEBEMAIL=”myemail@foo.com.br”
  9. 9. alias dquilt="quilt --quiltrc=${HOME}/.quiltrc-dpkg"d=. ; while [ ! -d $d/debian -a `readlink -e $d` != / ]; do d=$d/..; doneif [ -d $d/debian ] && [ -z $QUILT_PATCHES ]; then # if in Debian packaging tree with unset $QUILT_PATCHES QUILT_PATCHES="debian/patches" QUILT_PATCH_OPTS="--reject-format=unified" QUILT_DIFF_ARGS="-p ab --no-timestamps --no-index --color=auto" QUILT_REFRESH_ARGS="-p ab --no-timestamps --no-index"QUILT_COLORS="diff_hdr=1;32:diff_add=1;34:diff_rem=1;31:diff_hunk=1;33:diff_ctx=35:diff_cctx=33" if ! [ -d $d/debian/patches ]; then mkdir $d/debian/patches; fifi https://gist.github.com/deferraz/4973218
  10. 10. $(DESTDIR)
  11. 11. $(CURDIR)/debian/tmp$(CURDIR)/debian/<package_name>
  12. 12. dh_*• dh_installinit override <3• dh_autoconfigure• dh_cron• dh_shlibdeps
  13. 13. Perl Packaging
  14. 14. Perl Packagingdh-make-perl --cpan Mojolicious::Lite
  15. 15. PHP Packaging
  16. 16. PHP Packaging dh-make-pear dh-make-pecl
  17. 17. Ruby Packaging
  18. 18. Ruby Packagingruby-pkg-tools m4 + Shell Script gem2deb Ruby!
  19. 19. Ruby Packaging gem fetch foo gem2tgz foo-1.2gem dh-make-ruby foo-1.2.tar.gz dpkg-buildpackage -uc -us
  20. 20. Ruby Packaging
  21. 21. Python Packaging
  22. 22. Python Packaging Just setup.py !
  23. 23. Backports
  24. 24. *
  25. 25. Unstable Stable userland source + (libs / other apps)
  26. 26. Pacote possui Puxar source datodas deps ? dependencia Nova dependencia Build! gera problemas/conflitos ?
  27. 27. debhelper 9Multi-Arch Supportdpkg 1.16.2 e apt 0.8.13dpkg --add-archtecture i386
  28. 28. http://www.debian.org/doc/manuals/maint-guide http://developer.ubuntu.com/packaging/html/
  29. 29. Perguntas ?

×