[Kolab-devel] Re: new build mechanism for perl-kolab
Marcus aka }-Tux-{
suse-tux at gmx.de
Tue May 24 14:26:23 CEST 2005
Hello,
Richard and I updated the new build mechanism:
Now it's possible to include the dist_conf/kolab file to the buildprocess.
That's good because the variables from dist_conf/kolab can be used in the
perl-modules.
Another important thing (we think so) is the spec file. With this new updated
version it's possible to create an RPM easily. The spec file will be created
from the "perl-kolab.spec.in" during the ./configure process.
The third new thing is that `make dist` works without any problems
changes (in brief):
- dist_conf/kolab file is included to the build process
- a spec file will be automatically generated
- `make dist` is possible now
you can download the complete tarball at
http://ftp.gwdg.de/pub/linux/misc/suser-tux/kolab/perl-kolab/perl-kolab.new.tar.gz
and the new dist_conf/kolab file at
http://ftp.gwdg.de/pub/linux/misc/suser-tux/kolab/perl-kolab/dist_conf-new.tar.gz
(I defined new variables there)
usage:
- untar the dist_conf-new.tar.gz and perl-kolab.new.tar.gz tarballs
- change into the perl-kolab.new directory
- run ./configure --prefix=/foo --and-some-other-options (see ./configure
--help)
- run make or `make dist`
- run make install (you have to be root or use the DESTDIR option)
(if you're interested we can try to make an rpm: target in the Makefile to
build the rpm with `make rpm`).
you can find other stuff (for example the patch for the perl-modules, the
Makefile.am, the perl-kolab.spec.in.......) here
http://ftp.gwdg.de/pub/linux/misc/suser-tux/kolab/perl-kolab
Greets Marcus
Am Montag, 2. Mai 2005 22:17 schrieben Sie:
> Hello,
>
> Richard Bos and I have made a patch, that makes the perl-kolab module more
> portable to other distributions because in the modules are some hardcoded
> paths like:
> /sbin/sendmail
> /etc/apache2
> ... and so on
>
> We used Mark Heily's great program autoperl
> ( http://heily.com/~mark/projects/autoperl/ ) to make it portable. Autoperl
> is similar to autoconf/automake but it is for perl-modules.
> With that program we created a configure script and replaced the hardcoded
> paths with variables.
>
> If it's interesting for you you can test it:
> -untar perl-kolab
> -remove the Makefile.PL from all subdirectorys
> -remove Makefile
> -untar perl-kolab-autoperlized.tgz into the perl-kolab/ directory
> -remove the configure.in and Makefile.in
> -replace the existing configure file with the new (see attachment)
> -apply the perl-kolab-variables.diff (it contains the new variables for the
> hardcoded paths)
> -apply the Makefile.am.diff
>
> -now it's the time to run configure
> for example:
> ./configure --sysrundir=/var/run --webserver_confdir=/etc/apache2
> -make dist
> -make install
>
>
> I add a complete tarball (perl-kolab.configurable.tar.gz) wich is ready
> for ./configure... so you needn't anything to patch - See attachment :)
>
> Maybe this new build mechanism for perl-kolab can be included in the kolab
> project?
>
>
> Greets Marcus
More information about the devel
mailing list