OpenSync install

Synchronization

Introduction

Here a documentation about the OpenSync using, a synchronization framework.

OpenSync

Sources

At first, you have to download the project sources and the plugins.

OpenSync is a project under SVN. So, you need to install subversion tool to be able to checkout the sources.

We are going to patch the sources to build packages for our Linux distribution.

Prepare the framework :

[root@Dahlia /root]$ cd /usr/local/src/
[root@Dahlia src]$ mkdir opensync
[root@Dahlia src]$ cd opensync
[root@Dahlia opensync]$ 

Checkout the sources :

[root@Dahlia opensync]$ svn co http://svn.opensync.org/trunk opensync
[root@Dahlia opensync]$ svn co http://svn.opensync.org/osynctool/trunk osynctool
[root@Dahlia opensync]$ svn co http://svn.opensync.org/format-plugins/vformat vformat
[root@Dahlia opensync]$ svn co http://svn.opensync.org/plugins/evolution2 evolution

WARNING : use the same directory name to use my patches.

Build & Install

Follow the steps :

[root@Dahlia opensync]$ pwd
/usr/local/src/opensync
[root@Dahlia opensync]$ cd opensync
[root@Dahlia opensync]$ mkdir build
[root@Dahlia opensync]$ cd build
[root@Dahlia build]$ cmake -DCMAKE_INSTALL_PREFIX="/usr/local" /usr/local/src/opensync/opensync
[root@Dahlia build]$ make
[root@Dahlia build]$ make install
[root@Dahlia build]$ cd ../../osynctool
[root@Dahlia osynctool]$ mkdir build
[root@Dahlia osynctool]$ cd build
[root@Dahlia build]$ cmake -DCMAKE_INSTALL_PREFIX="/usr/local" /usr/local/src/opensync/osynctool
[root@Dahlia build]$ make
[root@Dahlia build]$ make install
[root@Dahlia build]$ cd ../../vformat
[root@Dahlia vformat]$ mkdir build
[root@Dahlia vformat]$ cd build
[root@Dahlia build]$ cmake -DCMAKE_INSTALL_PREFIX="/usr/local" /usr/local/src/opensync/vformat
[root@Dahlia build]$ make
[root@Dahlia build]$ make install
[root@Dahlia build]$ cd ../../evolution
[root@Dahlia evolution]$ mkdir build
[root@Dahlia evolution]$ cd build
[root@Dahlia build]$ cmake -DCMAKE_INSTALL_PREFIX="/usr/local" /usr/local/src/opensync/evolution
[root@Dahlia build]$ make
[root@Dahlia build]$ make install

Debian packaging

As I prefer to use packages, you’ll find in this section the way to build the OpenSync packages for
a Debian (or an Ubuntu distribution).

First, you have to install all packages usefull to build the OpenSync sources.

[root@Dahlia /root]$ aptitude install debianutils cmake \
   libxml2-dev \
   libebook1.2-dev \
   libedata-book1.2-dev \
   libedata-cal1.2-dev \
   libedataserver1.2-dev \
   libedataserverui1.2-dev \
   evolution-data-server-dev

Now, we have to patch the sources so as to build the packages.

Download the patches :

[root@Dahlia opensync]$ wget http://www.progweb.com/modules/blackberry/data/debian.tar.gz
[root@Dahlia opensync]$ tar -zxf debian.tar.gz 

It isn’t some patch files, but new files / directories to add to sources (a debian directory for each module).

Build the main opensync package :

[root@Dahlia /root]$ cd /usr/local/src/opensync/opensync
[root@Dahlia opensync]$ debian/rules binary 

To build the others packages, you have to install this packages :

[root@Dahlia /root]$ cd /usr/local/src/opensync
[root@Dahlia opensync]$ dpkg -i libopensync1exp5_0.40_amd64.deb libopensync1exp5-dev_0.40_amd64.deb opensyncutils_0.40_amd64.deb 

Now, you can build the plugins :

[root@Dahlia /root]$ cd /usr/local/src/opensync/osynctool
[root@Dahlia osynctool]$ debian/rules binary
[root@Dahlia osynctool]$ cd /usr/local/src/opensync/vformat
[root@Dahlia vformat]$ debian/rules binary
[root@Dahlia osynctool]$ cd /usr/local/src/opensync/evolution
[root@Dahlia evolution]$ debian/rules binary

When all is OK, you can install the new packages :

[root@Dahlia /root]$ cd /usr/local/src/opensync
[root@Dahlia opensync]$ dpkg -i osynctool_0.40_amd64.deb opensync-format-vformat_0.40_amd64.deb opensync-plugin-evolution_0.40_amd64.deb
This entry was posted in Debian, Linux and tagged , , . Bookmark the permalink.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>