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
--with-paranoidmsg --with-everything --without-capabilities \
--with-virtualchroot \
--mandir=%{_mandir} --sysconfdir=%{sysconfdir}
else
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} \
%if %{con_pam}
--with-pam \
%endif
--with-paranoidmsg --with-everything --without-capabilities \
--with-virtualchroot \
--mandir=%{_mandir} --sysconfdir=%{sysconfdir}
fi
if [ "$SMP" != "" ]; then
(make "MAKE=make -k -j $SMP"; exit 0)
make
else
make
fi
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.
Does I'm understanding this right ?
Do I need to instal OpenPKG ldap first, before building pureftpd with ldap support ?
Alex
C�pia Michael Schloh von Bennewitz <[EMAIL PROTECTED]>:
> On Mon, Dec 08, 2003, [EMAIL PROTECTED] wrote:
> > Looking at the source of pureftpd and issuing ./configure --help I
> got:
> >
> > [EMAIL PROTECTED] pure-ftpd-1.1.0]# ./configure --help
> > `configure' configures this package to adapt to many kinds of
> systems.
> >
> > Usage: ./configure [OPTION]... [VAR=VALUE]...
> >
> > To assign environment variables (e.g., CC, CFLAGS...), specify them
> as
> > VAR=VALUE. See below for descriptions of some of the useful
> variables.
> >
> > Defaults for the options are specified in brackets.
> >
> > Configuration:
> > -h, --help display this help and exit
> > --help=short display options specific to this package
> >
> > [...]
> >
> That's 'configure', a script generated by autoconf. It is different
> than
> the script called 'pureftpd.spec' that is hand written and used by
> RPM.
>
> > SO can I set ANY of this options to openpkg as -Dwith_XXX or just the
> two shown
> > by rpm -qpi ?
> >
> You can just use the options shown by rpm -qpi. Two in this case.
>
> > In particular I whant to enable LDAP auth and brazilian language
> >
> No problem, you have to either
>
> (1) write your own spec file and roll your own package.
>
> or
>
> (2) extract the spec file from the official OpenPKG package,
> modify it with your own options and other logic, and
> finally roll your own package.
>
> I think that #2 is easier than #1, so I'll tell you right away how to
> extract the spec file from an official OpenPKG package.
>
> $ rpm2cpio package.src.rpm | cpio -ivd filename.spec
>
> If you don't know the filename to extract, get a list of packaged
> files:
>
> $ rpm2cpio package.src.rpm | cpio -ivt
>
> The rpm2cpio command is always the same, because it is installed by
> OpenPKG.
> The cpio command itself variers from OS to OS, so the above flags might
> be a
> little different for you. 'ivd' and 'ivt' work just fine for Solaris 8
> and 9
> (both x86 and SPARC) and FreeBSD 4.8 and 4.9.
>
> Good luck,
> Michael
>
> --
> [EMAIL PROTECTED]
> Development Team, Operations Northern Europe
> Cable & Wireless Telecommunications Services GmbH
>
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]