Menu Close

Building debian packages for OpenIMSCore

Based on guide from

Update source.list

Allows in sources.list non free packages to allow java installation

deb squeeze main non-free
deb-src squeeze main non-free

then install packages required for compilation (bison and libcurl4-dev have to be added compare to original guide)

apt-get install subversion bison libcurl4-dev debhelper cdbs lintian build-essential fakeroot devscripts pbuilder dh-make 
debootstrap dpatch flex libxml2-dev libmysqlclient15-dev sun-java6-jdk ant docbook-to-man

Get OpenIMScore sources

go to your preferred folder where the sources will be downloaded

cd /root
mkdir openimscore
svn checkout openimscore 
mkdir openimscore-fhoss 
svn checkout openimscore-fhoss

Copy the debian folder from pkg folder

Browse with a terminal to openimscore (or openimscore-fhoss) folder and use the following command to copy the debian folder. It contain files with definition for pkg package building.

cd openimscore
cp -a pkg/debian ./debian

Update changelog file

Changelog file should be updated in order to build up to date packages (distinguish among many packages version). The following command will update the changelog file in debian folder. Feel free to change svnversion to the SVN revision number and comment.

In debian we using dch

dch -v $(svnversion) "..."

Building packages for imscore

cd openismcore
pkg-buildpackage -rfakeroot

if we have conflicts, install missing packages.

Done! we have following packages (1064 is the svn version).

dpkg-deb: building package `openimscore' in `../openimscore_1064_i386.deb'.
dpkg-deb: building package `openimscore-pcscf' in `../openimscore-pcscf_1064_i386.deb'.
dpkg-deb: building package `openimscore-icscf' in `../openimscore-icscf_1064_i386.deb'.
dpkg-deb: building package `openimscore-scscf' in `../openimscore-scscf_1064_i386.deb'.

The main package is openimscore_1064_i386.deb . Every package depends on this one except for openimscore-dnsconf

Building packages for hss

cd openismcore-fhoss
dch -v $(svnversion) "..."
pkg-buildpackage -rfakeroot

done, openimscore-fhoss_1064_i386.deb


in one folder upper we have all packages

drwxr-xr-x 21 root root    12288 Mar 30 10:36 openimscore
-rw-r--r--  1 root root      622 Mar 30 10:35 openimscore_1064.dsc
-rw-r--r--  1 root root     2543 Mar 30 10:42 openimscore_1064_i386.changes
-rw-r--r--  1 root root  1954078 Mar 30 10:42 openimscore_1064_i386.deb
-rw-r--r--  1 root root 11171488 Mar 30 10:35 openimscore_1064.tar.gz
-rw-r--r--  1 root root     4206 Mar 30 10:42 openimscore-dnsconf_1064_i386.deb
drwxr-xr-x 15 root root     4096 Mar 30 10:46 openimscore-fhoss
-rw-r--r--  1 root root      606 Mar 30 10:46 openimscore-fhoss_1064.dsc
-rw-r--r--  1 root root     1661 Mar 30 10:46 openimscore-fhoss_1064_i386.changes
-rw-r--r--  1 root root 17658664 Mar 30 10:46 openimscore-fhoss_1064_i386.deb
-rw-r--r--  1 root root 36418549 Mar 30 10:46 openimscore-fhoss_1064.tar.gz
-rw-r--r--  1 root root   274682 Mar 30 10:46 openimscore-fhoss-doc_1064_i386.deb
-rw-r--r--  1 root root    87382 Mar 30 10:42 openimscore-icscf_1064_i386.deb
-rw-r--r--  1 root root   256454 Mar 30 10:42 openimscore-pcscf_1064_i386.deb
-rw-r--r--  1 root root   200298 Mar 30 10:42 openimscore-scscf_1064_i386.deb

Rate this post

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.