Question about fix for ports/77051.

Lewis Thompson lewiz at fajita.org
Sat Feb 12 10:54:15 PST 2005


Hi,

I was just wondering about how to get ports/77051
(http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/77051) closed.  I
think the description is slightly wrong -- he must have compiled
WITH_LDAP defined.

I saw that bsd.port.mk has a WANT_OPENLDAP_SASL flag but this seems
useless.  Would it be best to change:

.if defined(WITH_LDAP) 
USE_OPENLDAP=   yes
LDAP_PREFIX?=   ${LOCALBASE}
.endif

to:

.if defined(WITH_LDAP) 
USE_OPENLDAP=   yes
LDAP_PREFIX?=   ${LOCALBASE}
.if exists(${LOCALBASE}/lib/libsasl2.so)
LDFLAGS+=	-lsasl2
LIB_DEPENDS+=	sasl2.2:${PORTSDIR}/security/cyrus-sasl2
.endif
.endif

Any suggestions?

-Lewis Thompson.

-- 
I was so much older then, I'm younger than that now.  --Bob Dylan, 1964.
-| msn:lewiz at fajita.org | jabber:lewiz at jabber.org | url:www.lewiz.org |-


More information about the freebsd-ports mailing list