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

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to