Question on port usage

Mathieu Arnold mat at freebsd.org
Wed Jan 7 09:37:56 PST 2004


On Wed, Jan 07, 2004 at 09:32:23AM -0800, Jason Williams wrote:
> Hi Mathieu,
> 
> Thanks for your reply. I do appreciate.
> You bring up a interesting point, regarding cyrus-sasl.
> Since cyrus-sasl is a dependency of cyrus-imapd, if I wanted to add some 
> additional options to have cyrus-sasl configured with, would it be best to 
> edit the Makefile for  that port? I would imagine you could not specify it 
> on the command line since you would be at a different port.

Well, you're lucky, security/cyrus-sasl2 also has a lot of config
variables, here's the output of grep define Makefile :

.if defined(WITH_BDB_VER)
.if defined(WITH_MYSQL_VER)
.if defined(WITH_MYSQL)
.if defined(WITH_PGSQL)
.if defined(WITH_MYSQL) || defined(WITH_PGSQL)
.if defined(WITH_DEV_URANDOM)
.if defined(WITH_ALWAYSTRUE)
.if defined(WITHOUT_OTP)
.if defined(WITHOUT_CRAM)
.if defined(WITHOUT_DIGEST)
.if defined(WITHOUT_NTLM)
.if !defined(WITHOUT_GSSAPI) && defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.a)
.elif !defined(WITHOUT_GSSAPI) && defined(HEIMDAL_HOME) && exists(${HEIMDAL_HOME}/lib/libgssapi.a)
.elif !defined(WITHOUT_GSSAPI) && ( defined(MAKE_KERBEROS5) || ${OSVERSION} > 500105 ) && exists(/usr/lib/libkrb5.a)
.if defined(WITH_KERBEROS4)
.elif exists(/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4) && !defined(WITHOUT_KERBEROS4)
.elif !exists(/usr/lib/libkrb.a) && defined(WITH_KERBEROS4)
.if !defined(NOPORTDOCS)

As you can see, it already support most of the things you may ever need,
if you plan to use sasldb, you can just make cyrus-imapd with the
options you wrote before, and you'll have cyrus-sasl2 built with the
same db version (as you can see, it's the same variables names).

-- 
Mathieu Arnold


More information about the freebsd-questions mailing list