Membuat paket di BlankOn

Posted on Updated on

Assalamu’alaikum warahmatullahi wabarakatuh

Salam sejahtera bagi kita semua.

Pada kesempatan ini, saya akan berbagi bagaimana cara membuat paket untuk distro GNU/Linux BlankOn. Karena BlankOn merupakan distribusi turunan dari debian, maka cara membangun paketnya adalah sama yang membedakan hanya pada versi paket dan nama distro

Lakukan langkah-langkah berikut di Terminal:

1.Siapkan peralatan

sudo apt-get install devscripts build-essential fakeroot debhelper gnupg pbuilder dh-make dpkg-dev ubuntu-dev-tools

2. Kemudian

nano ~/.bashrc

(Tulis pada akhir baris):

export DEBFULLNAME="Anto Samalona" (Sesuaikan dengan nama Anda)
export DEBEMAIL="bebanto@gmail.com" (Sesuaikan dengan e-mail Anda

3. Setelah menyimpan langkah nomor 2,  ketikkan di Terminal:

source ~/.bashrc
export | grep DEB

4. Lanjut membuat gpg key.

gpg --gen-key

(Buat)
 
Real name: Anto Samalona (Nama = Nama Anda)
E-mail address: bebanto@gmail.com (e-mail= e-mail Anda)
Passphrase: inipasswordku mana passwordmu

5.  Tambahkan source

source ~/.bashrc
ls
nano .pbuilderrc

(Tulis) 
COMPONENTS="main restricted extras extras-restricted"

6. Membuat pbuilder

sudo pbuilder create

7. Unduh aplikasi yang akan dijadikan paket BlankOn

wget ftp://ftp.gnu.org/pub/gnu/ed/ed-1.4.tar.gz
tar xzf ed-1.4.tar.gz
cd ed-1.4
ls
dh_make -c gpl -f ../ed-1.4.tar.gz

(Ada pertanyaan berikut):

Type of package: single binary, multiple binary, library, kernel module or cdbs?
[s/m/l/k/b] s

(Pilih "s")

cd debian
ls
rm *.ex *.EX docs info README.*

8.  Sunting versi dan nama distro

(Masih di direktori debian, tulis):

dch -e

(Lalu isi seperti berikut):

ed (1.4-0blankon1) tambora; urgency=low
 * Initial release.

-- Anto Samalona <bebanto@gmail.com>  Fri, 03 Mar 2017 06:34:14 +0800

9. Sunting berkas control

nano control

(Lengkapi seperti berikut):

Source: ed
Section: editors
Priority: optional
Maintainer: Anto Samalona <bebanto@gmail.com>
Build-Depends: debhelper (>=9), autotools-dev
Standards-Version: 3.9.8
Homepage: http://www.gnu.org/software/ed/
#Vcs-Git: git://anonscm.debian.org/collab-maint/ed.git
#Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/ed.git

Package: ed
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: classic UNIX line editor
 The ed is a line-oriented text editor. It is used to
 create, display, modify and otherwise manipulate text
 files

10. Sunting berkas copyright

nano copyright

(Lalu isi sebagai berikut):

Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: ed
Source: http://www.gnu.org/software/ed/

Files: *
Copyright: 1993, 1994, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc
 2006, 2007, 2008, 2009 Backus <ericb@lsid.hp.com>
 1993, Karl Berry <kb@cs.umb.edu>
 1994, 2011 Theo Deraadt <deraadt@newt.fsa.ca>
 2006, 2007 Kaveh R. Ghazi <ghazi@noc.rutgers.edu>
 2010, 2011 Mike Haertel <mike@ichips.intel.com>
 2011 Francois Pinard <pinard@iro.umontreal.ca>
 1993, 1994  Rodney Ruddock <rodney@snowhite.cis.uoguelph.ca>
           
License: GPL-2.0+

Files: debian/*
Copyright: 2017 Anto Samalona <bebanto@gmail.com>
License: GPL-2.0+

License: GPL-2.0+
 This package is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.
 .
 This package is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 .
 You should have received a copy of the GNU General Public License
 along with this program. If not, see <https://www.gnu.org/licenses/>
 .
 On Debian systems, the complete text of the GNU General
 Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".

# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid picking licenses with terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.

11. Mulai membangun paket:

cd ..
debuild -S 
(Akan ditanya passphrase): isikan password yang tadi dibuat

cd 

(Kembali ke direktori file dsc ditempatkan)

sudo pbuilder build ed_1.4-0blankon1.dsc
less /home/antosamalona/pbuilder/tambora-amd64/result/ed_1.4-0blankon1_amd64.deb

12. Coba hasilnya:

sudo dpkg -i /home/antosamalona/pbuilder/tambora-amd64/result/ed_1.4-0blankon1_amd64.deb

Selamat! Anda berhasil membuat paket untuk distribusi BlankOn GNU/Linux.
Catatan: Jika tidak ada konfigurasi tambahan pada pbuilder, hasil pemaketan biasanya berada di direktori /var/cache/pbuilder/result/

Terima kasih dan mohon maaf jika ada kesalahan.

Sumber: http://dev.blankonlinux.or.id/wiki/Pemaket

Iklan

3 thoughts on “Membuat paket di BlankOn

    hahn said:
    Maret 3, 2017 pukul 2:17 am

    kok saya nggak ditanya password ya? pas debuild -S jadi error

    Kiflie said:
    Maret 3, 2017 pukul 6:53 am

    Good job, Pak Anto.
    Segera coba dipraktekkan.

    Tuan Pembual said:
    Maret 8, 2017 pukul 12:32 pm

    mari kita cobain

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s