On Mon, Dec 08, 2003, [EMAIL PROTECTED] wrote:
> I do not understand enouth of rpm build .spec file, but I took a look
> at pure-ftpd.spec where I got:
>
> %build
> if [ ! -f configure ]; then
> CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{prefix} \
> %if %{con_pam}
> --with-pam \
> %endif
>
> [...]
>
Remember that if you change 'with_pam' to 'con_pam' in the spec file, that
you have to use that option on the command line also. So now you have to
build with --define 'con_pam yes'.
> This makes me supose that OpenPKG in fact use ./configure, but just don't
> let me specify the ldap/language option. I suspect that ldap is coverd by
> the --with-everything option.
>
In most OpenPKG there is a './configure' just like this one. In the official
OpenPKG packages (pureftpd and all the others), only a limited number of
options are allowed. It is quite a lot of work to make packages with more
than a few options, so we allow only two options with pureftpd (with_pam and
with_fsl). Many other packages don't have any options at all.
There is both good and bad news for you. If you want to have LDAP support
in pureftpd or any other package that doesn't have it, and if you want a
language or other feature that we have not offered, then you have to do the
work yourself. That's the bad news. Learning how to build UNIX software,
automake, autoconf, libtool, GCC... is interesting and sometimes difficult.
I recommend that you first build pureftpd without OpenPKG at all. That
means download the sources, and read the documentation (README, INSTALL, and
so on) that comes with pureftpd. After your personal build succeeds, then
copy exactly your build commands (configure, make, make install) to the
pureftpd.spec file. Then to finally roll the OpenPKG package:
$ rpm -bs pureftpd.spec
There are some problems you might have along the way, but if you make it to
the end then you will have learned something as well. That's the good news.
> Do I need to instal OpenPKG ldap first, before building pureftpd with ldap support ?
>
If you make your own pureftpd package, then you're really on your own. I've
never build pureftpd with LDAP, so I don't know about that. I suspect it
will work with OpenLDAP, and we have a package for that. So you could make a
dependency there, just like we did with FSL and PAM. Something like:
%if "%{with_ldap}" == "yes"
BuildPreReq: ldap
PreReq: ldap
%endif
Regards,
Michael
--
[EMAIL PROTECTED]
Development Team, Operations Northern Europe
Cable & Wireless Telecommunications Services GmbH
pgp00000.pgp
Description: PGP signature
