[Kolab-devel] new build mechanism for perl-kolab
Marcus aka }-Tux-{
suse-tux at gmx.de
Mon May 2 22:17:50 CEST 2005
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: perl-kolab.configurable.tar.gz
Type: application/x-tgz
Size: 80660 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20050502/c053a734/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: perl-kolab-variables.diff
Type: text/x-diff
Size: 27052 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20050502/c053a734/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.am.diff
Type: text/x-diff
Size: 756 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20050502/c053a734/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure
Type: application/x-perl
Size: 66173 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20050502/c053a734/attachment.pl>
More information about the devel
mailing list