treating OPTIONS

Pav Lucistnik pav at FreeBSD.org
Sat Mar 27 17:15:03 PST 2004


V so, 27. 03. 2004 v 21:01, Thomas-Martin Seck píše:

> * SADA Kenji <sada at freebsd.org> [gmane.os.freebsd.devel.ports]:
> 
> > .if exists(${LOCALBASE}/lib/libldap.so)
> > WITH_LDAP=      yes
> > OPTIONS+=       LDAP "Support for LDAP queries" on
> > .else
> > OPTIONS+=       LDAP "Support for LDAP queries" off
> > .endif
> 
> Please do not do this. IMHO, ports that autotune themselves are a bad
> idea and abusing OPTIONS for this is even worse. If you - as the
> maintainer - decide that LDAP support is optional, default the port to
> not include it. Period. If the user wants LDAP she can always say so
> herself, either via the commandline or via 'make config'.

Why not? This is a common practice that port autodetects optional
dependencies and automatically enable/disable them.

-- 
Pav Lucistnik <pav at oook.cz>
              <pav at FreeBSD.org>

Quantum physics was developed in the 1930's, as a result of a bet between
Albert Einstein and Niels Bohr, to see who could come up with the most
ridiculous theory and still have it published.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Toto je =?iso-8859-2?Q?digit=E1ln=EC?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040328/fac606b9/attachment.bin


More information about the freebsd-ports mailing list