Pemaketan di BlankOn Linux

Pemaketan di BlankOn Linux

Materi Pelatihan Pemaketan oleh Mahyuddin | @dotovr

Ee46bbf272bc790cbdd9723e2273a9ba?s=128

Estu Fardani

July 11, 2014
Tweet

Transcript

  1. Pengenalan Pemaketan BlankOn Mahyuddin Idram Ahmad Mahyuddin Idram Ahmad Koordinator

    Tim Pemaket BlankOn dotovr@di.blankon.in @dotovr
  2. – Membuat paket khas yang tidak ada di Upstream –

    Menangani paket impor – Membuat dan mengelola paket hingga akhir masa dukungan Apa Itu Pemaketan BlankOn ?
  3. Proses Pemaketan

  4. Peralatan • Devscripts • Build-essential • Fakeroot • Debhelper •

    Gnupg • Pbuilder • Dh-make • Dpkg-dev • ubuntu-dev-tools
  5. Identitas Pemaket • .bashrc export DEBFULLNAME="Mahyuddin Idram Ahmad" export DEBEMAIL=”dotovr@di.blankon.in”

    • Kunci GPG gpg --gen-key
  6. Dalam direktori Debian minimal terdapat berkas: – changelog – control

    – rules – copyright Direktori Debian
  7. BERKAS CONTROL: Mendefinisikan berkas sumber dan berkas binari dari sebuah

    paket Source: ed Section: unknown Priority: optional Maintainer: Mahyuddin Idram Ahmad <dotovr@di.blankon.in> Build-Depends: debhelper (>= 9), autotools-dev Standards-Version: 3.9.5 Homepage: <insert the upstream URL, if relevant> #Vcs-Git: git://anonscm.debian.org/collab-maint/ed.git #Vcs-Browser: http://anonscm.debian.org/?p=collab-maint/ed.git;a=summary Package: ed Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: <insert up to 60 chars description> <insert long description, indented with spaces> Direktori Debian
  8. Source : nama paket kode sumber Section : admin, comm,

    devel, doc, editors, electronics, embedded, games, gnome, graphics, hamradio, interpreters, kde, libs, libdevel, mail, math, misc, net, news, oldlibs, otherosfs, perl, python, science, shells, sound, tex, text, utils, web, x11. Priority : required, important, standard, optional, extra. Maintainer : nama pengelola paket Build-Depends : daftar paket-paket development yang dibutuhkan untuk membangun paket binary. Standards-Version : versi dari debian policy Direktori Debian
  9. BERKAS CHANGELOG : Catatan perubahan yang terjadi pada paket ed

    (1.6-1) unstable; urgency=low * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP> -- Mahyuddin Idram Ahmad <dotovr@di.blankon.in> Fri, 11 Jul 2014 00:34:18 +0700 Direktori Debian
  10. Direktori Debian BERKAS COPYRIGHT : Informasi copyright paket Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

    Upstream-Name: ed Source: <url://example.com> Files: * Copyright: <years> <put author's name and email here> <years> <likewise for another author> License: <special license> <Put the license of the package here indented by 1 space> <This follows the format of Description: lines in control file> . <Including paragraphs> # If you want to use GPL v2 or later for the /debian/* files use # the following clauses, or change it to suit. Delete these two lines Files: debian/* Copyright: 2014 Mahyuddin Idram Ahmad <dotovr@di.blankon.in> License: GPL-2+
  11. Direktori Debian • Perintah untuk meng-compile kode sumber dan membangun

    paket • Dimulai dengan #!/usr/bin/make -f http://www.gnu.org/software/make/manual/m ake.html • Required targets: build, binary, binary- arch, binary-indep, clean • Bebrapa metode untuk debian/rules: manual, dephelper, cdbs
  12. Direktori Debian

  13. Direktori Debian BERKAS RULES: #!/usr/bin/make -f # See debhelper(7) (uncomment

    to enable) # output every command that modifies files on the build system. #DH_VERBOSE = 1 # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk # see FEATURE AREAS in dpkg-buildflags(1) #export DEB_BUILD_MAINT_OPTIONS = hardening=+all # see ENVIRONMENT in dpkg-buildflags(1) # package maintainers to append CFLAGS #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic # package maintainers to append LDFLAGS #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed # main packaging script based on dh7 syntax %: dh $@ --with autotools-dev
  14. Terdapat beberapa cara : • Jalankan debian/rules binari secara manual

    • dpkg-buildpackages -rfakeroot • sudo pbuilder build foo_1.0-1.dsc Membangun Paket
  15. Terima Kasih