summaryrefslogtreecommitdiff
path: root/src/backends/tdepim/README
blob: e980dc0294e782cf115d1f9d0814472f75461265 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
Getting started with TDM on Debian jessie:
1st install libtdepim1-trinity-dev and tdelibs14-trinity-dev
2nd use this on your own risk - take backups!

# Debugging in TDE:
[x] 5300 libtdepim
[x] 5300 knotes
[x] 5800 libkcal

# Configuring without Evolution, without Akonadi and with TDEPIM
# This is good for testing (static libs)
<path>/syncevolution/configure --with-synthesis-src=<path>/libsynthesis \
	CFLAGS="-g -Wall -Werror -Wno-unknown-pragmas" \
	CXXFLAGS="-g -Wall -Werror -Wno-unknown-pragmas" \
	--disable-shared --enable-static \
	--disable-akonadi \
	--disable-ebook \
	--disable-ecal \
	--disable-goa \
	--disable-kcalextended \
	--disable-kwallet \
	--enable-tdepimabc \
	--enable-tdepimcal \
	--enable-tdewallet 

# Configure to build
 Important: You would most probably set --prefix
======== configure script build-test-syncevo.sh start =======
export PKG_CONFIG_PATH=/opt/trinity/lib/pkgconfig:$PKG_CONFIG_PATH

if [[ $1 == "static" ]]; then
LIBVAR="--disable-shared --enable-static"
else
LIBVAR="--enable-shared"
fi

./configure --prefix=/tmp/test \
	$LIBVAR \
        --enable-maintainer-mode \
        --enable-shared \
        --enable-gui \
        --enable-gtk=3 \
        --enable-core \
        --enable-bluetooth \
        --enable-tdepimabc \
        --enable-tdepimcal \
        --enable-tdepimnotes \
        --disable-tdewallet \
        --enable-sqlite \
        --enable-file \
        --enable-dav \
        --without-gio-gdbus \
        --disable-ssl-certificate-check \
        --disable-akonadi \
        --disable-ebook \
        --disable-ecal \
        --disable-goa \
        --disable-kcalextended \
        --disable-kwallet \
        --disable-maemocal \
        --disable-oauth2 \
        --disable-qtcontacts \
        --disable-gsso \
        --disable-uoa \
        --disable-sign


======== configure script build-test-syncevo.sh end =======

# Now build shared
bash autogen.sh && bash ../build-test-syncevo.sh && make

# or static
bash autogen.sh && bash ../build-test-syncevo.sh static && make

# Static creates src/syncevolution and src/client-test which can be 
# run under a debugger directly.

# Install
 make install

# Set up environment for testing
 export LD_LIBRARY_PATH=/tmp/test/lib/syncevolution/backends:/tmp/test/lib:$LD_LIBRARY_PATH
 export LD_RUN_PATH=$LD_LIBRARY_PATH:$LD_RUN_PATH
 export PATH=/tmp/test/bin:$PATH

# Backup your contacts and calendar file (if you use the standard one)
cp ~/.trinity/share/apps/tdeabc/std.vcf ~/$(date +%Y%m%d)_std.vcf
cp ~/.trinity/share/apps/korganizer/std.ics ~/$(date +%Y%m%d)_std.ics

# You could also make tar.gz of the above directories.
# In this case it is better to clean up first

# Clean up all lock and cache files
rm -rf .cache/syncevolution/ \
	.config/syncevolution/ \
	~/.trinity/share/apps/tdeabc/lock/*.trinity_share_apps_tdeabc_std.vcf* \
	~/.trinity/share/apps/tdeabc/std.vcf__*

# Query databases:
 syncevolution --print-databases

# Configuring syncevolution for contacts with TDEPIM as backend:
 syncevolution --configure --datastore-property sync=none \
              --sync-property username=... \
              --sync-property password=... \
              scheduleworld
 syncevolution --configure --datastore-property sync=two-way \
                addressbook/backend=tdepim-contacts \
                addressbook/database="kxXrRFzP9c" \
                addressbook/databaseFormat="text/vcard" \
              scheduleworld addressbook

# Nokia phone 5530
template=nokia
# Nokia phone N9
template=Nokia_N900
deviceAddress="XX:XX:XX:XX:XX:XX"

# configure local store
syncevolution --configure \
                addressbook/backend=tdepim-contacts \
                addressbook/database="xnCaZWvsal" \
                addressbook/databaseFormat="text/vcard" \
                calendar/backend=tdepim-calendar \
                calendar/database="kOBUWNvG42" \
                calendar/databaseFormat="text/calendar" \
                todo/backend=tdepim-tasks \
                todo/database="kOBUWNvG42" \
                todo/databaseFormat="text/calendar" \
              memo/backend=tdepim-notes \
              memo/database=tdenotes \
              memo/databaseFormat="text/plain" \
       @default addressbook calendar todo memo

# add your phone
# for N9 it is important to set uri to the calendar you want to sync with
# this is equivalent to the database above
syncevolution --configure \
       --template ${template} \
       peerIsClient=1 \
       dumpData=0 \
       printChanges=0 \
       syncURL=obex-bt://${deviceAddress} \
       calendar/uri="PC-SYNC" \
       calendar/databaseFormat="text/x-vcalendar" \
       todo/uri="PC-SYNC" \
       todo/databaseFormat="text/x-vcalendar" \
       memo/uri="notes" \
       memo/databaseFormat="text/plain" \
       nokia_N9


# Initial run:
 syncevolution --sync slow nokia_N9 addressbook
 syncevolution --sync slow nokia_N9 calendar+todo
 syncevolution --sync slow nokia_N9 memo

# All following syncs run:
 syncevolution nokia_N9 addressbook
 syncevolution nokia_N9 calendar+todo
 syncevolution nokia_N9 memo

# Sync all configured 
 syncevolution nokia_N9 addressbook calendar+todo memo

# Useful information
+ https://syncevolution.org/wiki/kde-akonadi
+ https://syncevolution.org/documentation/syncevolution-usage
+ https://syncevolution.org/documentation/getting-started
+ https://syncevolution.org/wiki/howto