[Kolab-devel] yet another way to build kolab

Richard Bos radoeka at xs4all.nl
Mon Jun 7 12:00:19 CEST 2004


Op zondag 6 juni 2004 14:04, schreef Steffen Hansen:
> > Steffen: Please comment on this. I really would like to hear what you
> > have to say. To me it looks like a good step in the right direction
> > initially.
>
> I am definitely positive about this! Our current way of using RPM as the
> primary install tool has always seemed quite strange to me.
>
> Please send me a patch against current CVS if possible so I can try if
> it works nicely. I know my way around autoconf/automake/libtool etc,
> and it seems like the obvious choice of course and I am comfortable
> with this.
>
> Only caveat is that I can't spend too much time on this, so if it
> doesn't work right away, we might have to postpone it until after mid
> June or something.

I have attached the files that should be included to enable the autotools for 
the module kolab-webadmin only.

The tarball contains the following files:
kolab-webadmin/kolab-webadmin/php/admin/include/mysmarty.php.in
kolab-webadmin/configure.ac
kolab-webadmin/Makefile.am
kolab-webadmin/bootstrap
dist_conf/kolab


The diff between mysmarty.php and mysmarty.php.in is the following:
-- kolab-webadmin/php/admin/include/mysmarty.php       2004-06-07 
11:44:14.000000000 +0200
+++ kolab-webadmin/php/admin/include/mysmarty.php.in    2004-06-07 
11:09:37.000000000 +0200
@@ -32,7 +32,7 @@ class MySmarty extends Smarty {
         global $topdir;
        $this->Smarty();

-       $basedir = '/kolab/var/kolab/php/admin/';
+       $basedir = '@phpdir@/admin/';


The renaming is necessary so the Makefile can replace the @phpdir@ variable.

The dist_conf directory must be located in the kolab top directory as the 
information in that directory (variable definitions) are to be shared by the 
various  kolab modules.

Once the files have been committed into cvs, kolab-webadmin can be build with:
- ./bootstrap
- ./configure --prefix=/kolab
- make
- make DESTDIR=<directory> install
- make distcheck


bootstrap copies the directory ../dist_conf into the module kolab-webadmin and 
it creates the files: NEWS README AUTHORS ChangeLog (by just touching them).
To my opinion it would be bette to actually introduce the files and start 
using them.  Especially the ChangeLog file is a handy one.


-- 
Richard Bos
Without a home the journey is endless
-------------- next part --------------
A non-text attachment was scrubbed...
Name: autotools-addon.tar.bz2
Type: application/x-tbz
Size: 3355 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20040607/a6c5ed45/attachment.bin>


More information about the devel mailing list