summaryrefslogtreecommitdiff
path: root/Development_Manual/en-US/Packaging_with_APT.xml
blob: cbffc75d3e11076ad8810abe1d9a8a29dd3ebf30 (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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % BOOK_ENTITIES SYSTEM "Development_Manual.ent">
%BOOK_ENTITIES;
]>
<part id="part-Development_Manual-Packaging_with_APT">
    <title>Packaging with APT</title>
    <chapter id="chap-Development_Manual-Packaging_with_APT-Prerequisites">
        <title>Prerequisites</title>
        <para>
            <itemizedlist>
                <listitem>
                    <para>
                        A 64-bit system with Debian Squeeze or later,
                    </para>

                </listitem>
                <listitem>
                    <para>
                        The following packages:
                    </para>
                    <para>
                        <itemizedlist>
                            <listitem>
                                <para>
                                    cowbuilder
                                </para>

                            </listitem>
                            <listitem>
                                <para>
                                    dupload
                                </para>

                            </listitem>
                            <listitem>
                                <para>
                                    git-buildpackage
                                </para>

                            </listitem>
                            <listitem>
                                <para>
                                    git-core
                                </para>

                            </listitem>
                            <listitem>
                                <para>
                                    git-svn
                                </para>

                            </listitem>
                            <listitem>
                                <para>
                                    pbuilder
                                </para>

                            </listitem>
                            <listitem>
                                <para>
                                    quilt
                                </para>

                            </listitem>

                        </itemizedlist>

                    </para>

                </listitem>

            </itemizedlist>

        </para>
        <note>
            <title>Not Including Build Requirements</title>
            <para>
                Note that the list of required packages does not include any build requirements for any of the packages.
            </para>

        </note>
        <para>
            You may install these packages in one go using the following command:
        </para>
        <para>

<screen># <userinput>apt-get -y install cowbuilder dupload fakeroot git-buildpackage \</userinput>
   <userinput> git-core git-svn pbuilder quilt</userinput></screen>

        </para>

    </chapter>
    <chapter id="chap-Development_Manual-Packaging_with_APT-Getting_Started">
        <title>Getting Started</title>
        <para>
            We perform packaging from GIT source code management repositories. Using these repositories, either as a separate remote for an upstream GIT repository, or as a pristine-tar import based exploded tree, patch management as well as Debian APT packaging semantics are maintained in such GIT repository.
        </para>
        <para>
            The upstream source code management for programs for which Kolab itself is the upstream, holds no information relevant to packaging semantics for any given distribution.
        </para>
        <para>
            To clone an APT packaging repository, use:
        </para>
        <para>

<screen>$ <userinput>git clone git://git.kolabsys.com/git/apt/$package</userinput></screen>

        </para>
        <para>
            where <emphasis>$package</emphasis> is one of the packages in <xref linkend="item-Development_Manual-APT_Packaging_GIT_Repositories-APT_Packages" />.
        </para>
        <section id="sect-Development_Manual-Getting_Started-APT_Packaging_GIT_Repositories">
            <title>APT Packaging GIT Repositories</title>
            <para>
                The APT packaging GIT repositories live at: <ulink url="http://git.kolabsys.com/apt/" />. Each source package has its own GIT repository. The following repositories are relevant:
            </para>
            <para>
                <itemizedlist id="item-Development_Manual-APT_Packaging_GIT_Repositories-APT_Packages">
                    <title>APT Packages</title>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-cyrus_imapd">
                            <title><application>cyrus-imapd</application></title>
                            <para>
                                Kolab currently maintains a set of requirements to Cyrus IMAP that is not provided through Debian nor Ubuntu native packages included in the distribution's package repositories, including, but not limited to:
                            </para>

                        </formalpara>
                        <para>
                            <itemizedlist>
                                <listitem>
                                    <para>
                                        Kolab annotation configuration support.
                                    </para>

                                </listitem>
                                <listitem>
                                    <para>
                                        Login with uid and/or mail attribute.
                                    </para>

                                </listitem>

                            </itemizedlist>

                        </para>
                        <para>
                            Additionally, the Kolab version for hosted providers requires Cyrus IMAP 2.4.
                        </para>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-horde3">
                            <title><application>horde3</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-horde4">
                            <title><application>horde4</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-kolab_webadmin">
                            <title><application>kolab-webadmin</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-kolab_webclient">
                            <title><application>kolab-webclient</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-kolabd">
                            <title><application>kolabd</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-libkolab_perl">
                            <title><application>libkolab-perl</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-libnet_ldap_perl">
                            <title><application>libnet-ldap-perl</application></title>
                            <para>
                                Kolab's perl libraries require a more recent version of libnet-ldap-perl then is available in Debian Lenny.
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-php">
                            <title><application>php</application></title>
                            <para>
                                Kolab ships IMAP annotation and myrights patches against PHP.
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-php_kolab_config">
                            <title><application>php-kolab-config</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-php_kolab_filter">
                            <title><application>php-kolab-filter</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-php_kolab_format">
                            <title><application>php-kolab-format</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-php_kolab_freebusy">
                            <title><application>php-kolab-freebusy</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-php_kolab_resource">
                            <title><application>php-kolab-resource</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-php_kolab_server">
                            <title><application>php-kolab-server</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-php_kolab_storage">
                            <title><application>php-kolab-storage</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-php_kolab_zpush">
                            <title><application>php-kolab-zpush</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-php_net_ldap2">
                            <title><application>php-net-ldap2</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>
                    <listitem>
                        <formalpara id="form-Development_Manual-APT_Packages-uw_imap">
                            <title><application>uw-imap</application></title>
                            <para>
                                para
                            </para>

                        </formalpara>

                    </listitem>

                </itemizedlist>

            </para>
            <section id="sect-Development_Manual-APT_Packaging_GIT_Repositories-SCM_Branch_Policy">
                <title>SCM Branch Policy</title>
                <para>
                    A GIT repository has a master branch, which corresponds with the most bleeding edge version of Kolab, and the most bleeding edge version of the distribution (e.g. Debian Sid).
                </para>
                <para>
                    The following naming convention is used for more stabilized distribution version product series:
                </para>
                <para>

<screen>$distribution / [$codename /] $product_name - $product_version_series</screen>

                </para>
                <para>
                    This means that, for example, packaging semantics for Kolab 2.2 specific to Lenny are put in <literal>debian/lenny/kolab-2.2</literal>, such as, for example, is the case with PHP: <ulink url="http://git.kolabsys.com/apt/php/log/?h=debian/lenny/kolab-2.2" /> where Kolab 2.2 shipped a modified version of <application>php5</application>, built against a modified version of <application>uw-imap</application>, to enable IMAP annotation support.
                </para>

            </section>


        </section>


    </chapter>
</part>