[Kolab-devel] zpush Milestone 2

Alain Abbas alain.abbas at libertech.fr
Fri May 7 11:30:52 CEST 2010


hi
Sorry to ask silly questions but i dont know PEAR and i m reading the 
documentation.
Somethings are not clear for me .

>
> What you need to do:
>
>  - Get a PEAR installation (this is provided with the Kolab Server so 
> it should be no problem)
>  - Create a package.xml file in Kolab_Zpush. Refer to 
> http://git.horde.org/co.php/framework/Kolab_Filter/package.xml?r=1.42 
> to get some ideas on how the file should look like - ensure that you 
> switch to the CVS repository there before using the link. The Horde 
> CVS viewer currently has a problem with such external links.
do i have aan account on the horde CVS ?
which tree for the Pear ?
horde/Kolab/Z_push ?
or something like that ?
which licence in the tag Licence ?
what i put in the <lead></lead> fields ?

>  - Ensure the binary scripts have the snippet '<replace 
> from="@php_bin@" to="php_bin" type="pear-config"/>' so that they get 
> the correct binary path (do not hardcode to /kolab/bin/php as people 
> can install in other locations than "/kolab")
how to put scripts in the /kolab/bin location ?
>  - Prepare a package by running "pear package package.xml" in the 
> Kolab_Zpush directory. This should then be installable on another 
> machine with "pear install Kolab_Zpush-0.4.0.tgz"
> The kolabActivesyncData.php "library" belongs into /kolab/lib/php 
> which is in the default include path. PEAR does select that one 
> automatically for the default php files of a package.
>
> If possible you could look into splitting the large single file into 
> its separate parts. Look at the structure Horde packages have for 
> example. All larger PHP projects nowadays follow the "1 class / 1 
> file" policy. This makes it easier to read the code and if you follow 
> the convention that the class Kolab_Zpush_Param_Global is in 
> Kolab_Zpush/lib/Kolab/Zpush/Param/Global.php you will even make the 
> common PHP autoloaders happy.
>
> This is not necessary to make PEAR happy though so you can also leave 
> it for later. You should however split at least the FastJSON class 
> into a separate file as you copied this code from somewhere else, 
> removed the original copyright notice and placed it under the 
> copyright of the Free Software Foundation. Probably just a quick hack 
> but these things have a tendency to live much longer than desired and 
> might lead to confusion later.
this code is just a glue for the old kolab versions who has not json 
enabled
this is code is modified a little because it make an Exit on error case 
that stop the synchronisation
>
>
> Don't hesitate to ask for further details concerning the PEAR 
> packaging in case you need them.
>
> Cheers,
>
> Gunnar
>
>>
>> Regards,
>> Thomas
>>
>> -- 
>> thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 
>> 0x5816791A
>> Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, 
>> HR B 18998
>> Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver 
>> Wagner
>>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kolab-devel mailing list
> Kolab-devel at kolab.org
> https://kolab.org/mailman/listinfo/kolab-devel




More information about the devel mailing list