Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Pemaketan di BlankOn Linux

Pemaketan di BlankOn Linux

Materi Pelatihan Pemaketan oleh Mahyuddin | @dotovr

Estu Fardani

July 11, 2014
Tweet

More Decks by Estu Fardani

Other Decks in Research

Transcript

  1. – Membuat paket khas yang tidak ada di Upstream –

    Menangani paket impor – Membuat dan mengelola paket hingga akhir masa dukungan Apa Itu Pemaketan BlankOn ?
  2. Peralatan • Devscripts • Build-essential • Fakeroot • Debhelper •

    Gnupg • Pbuilder • Dh-make • Dpkg-dev • ubuntu-dev-tools
  3. BERKAS CONTROL: Mendefinisikan berkas sumber dan berkas binari dari sebuah

    paket Source: ed Section: unknown Priority: optional Maintainer: Mahyuddin Idram Ahmad <[email protected]> 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
  4. 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
  5. 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 <[email protected]> Fri, 11 Jul 2014 00:34:18 +0700 Direktori Debian
  6. 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 <[email protected]> License: GPL-2+
  7. 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
  8. 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
  9. Terdapat beberapa cara : • Jalankan debian/rules binari secara manual

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