[Kroupware] proftpd template

Wim Bakker kroupware@mail.kde.org
Sun, 23 Feb 2003 16:33:34 +0000


On Sunday 23 February 2003 19:10, Martin Konold wrote:
> Am Samstag, 22. Februar 2003 10:47 schrieb Wim Bakker:
>
> Hi Wim,
>
> > > >  rpm -bb apache.spec results in the build of apache
> > > > without the necessary modules and generates an error
> > > > on startup like these:
> > >
> > > Which packages did you download?
> > > Please provide a md5 checksum.
> >
> > I downloaded all the packges from
> > ftp.kde.org/pub/kde/unstable/server/kolab/kolab-1.0-beta2.1
> > the apache package is apache-1.3.27-20030125.src.rpm
> > md5 checksum 7643b46ee6617a13cda6196c4b3324a9
>
> The md5 sum is ok.
>
> Anyone else experienced this problem?
>
> Wim: Can you further investigate why the necessary modules have not been
> built?
>
Actually was not hard to find, but assumed without thinking
rpm -bb apache.spec would work like for all other packegs
in the Makefile is defind:
-----------
rpm -ba apache.spec --define 'with_mod_ssl yes' --define 'with_mod_php yes' 
--define 'with_mod_
dav yes' --define 'with_mod_auth_ldap yes' --define 'with_mod_php_openldap 
yes'
-----------
In the apache.spec is that explained:
----------
##  ATTENTION: DO NOT EDIT THE FOLLOWING DEFAULTS DIRECTLY IN THIS FILE!
##  INSTEAD USE --define "with_xxx yes" ON THE COMMAND LINE. THE REASON
##  IS THAT RPM'S MACRO MECHANISM HORSES UP HORRIBLY ELSE!

#   the additionally used Apache modules (can be enabled without thinking)
%{!?with_mod_ssl:            %define  with_mod_ssl            no}
%{!?with_mod_perl:           %define  with_mod_perl           no}
%{!?with_mod_php:            %define  with_mod_php            no}
%{!?with_mod_php3:           %define  with_mod_php3           no}
%{!?with_mod_dav:            %define  with_mod_dav            no}
%{!?with_mod_layout:         %define  with_mod_layout         no}
%{!?with_mod_macro:          %define  with_mod_macro          no}
-------------

Maybe check other spec files too for differences.

Wim