How to build your custom Debian packages

Back to index

Overview   Packaging   Changelog

Overview

We provide the necessary files to build your own Debian packages for UMIP. It is maintained as a git repository that can directly be cloned as a debian/ folder. The files in the folder are used by dpkg-buildpackage to build the package. It also contain an init scripts for the daemon and dummy configuration files.

Overview   Packaging   Changelog

Create your custom packages

First, install some necessary packages:

$ sudo apt-get install fakeroot build-essential debhelper quilt

Clone our umip.git repository and go to the umip/ directory:

$ git clone git://git.umip.org/umip/umip.git
$ cd umip/

If you want to create a package for a specific UMIP version, you can easily do so. For example, to retrieve version 1.0:

$ git checkout v1.0

Then, still in the umip/ directory, clone our debian.git repository:

$ git clone git://git.umip.org/umip/debian.git

If you want to include our experimental set of patches, you can also clone our patches.git repository in the debian/ folder. In that case, when dpkg-buildpackage is called (later in the document), quilt takes care (as asked in the Debian "rule" file in the debian/ folder) of applying the patches:

$ cd debian/
$ git clone git://git.umip.org/umip/patches.git
$ cd ../

Let's build the package. Verify that you execute the following command in the umip/ folder:

$ dpkg-buildpackage -us -uc -sd -b -i -I.git
[...]
dpkg-deb: building package `umip' in `../umip_1.0-1_i386.deb'.
 dpkg-genchanges -sd -b >../umip_1.0-1_i386.changes
dpkg-genchanges: binary-only upload - not including any source code
 dpkg-source -i -I.git --after-build umip
dpkg-buildpackage: binary only upload (no source included)

You can then install the UMIP package with:

$ sudo dpkg -i ../umip_1.0-1_i386.deb
Overview   Packaging   Changelog

Changelog