Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Apr 2000 15:10:20 +0200 (CEST)
From:      mikko@dynas.se
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/18228: Patch to enable LDAP support for Pine4
Message-ID:  <200004261310.PAA54386@m2.dynas.se>

next in thread | raw e-mail | index | archive | help

>Number:         18228
>Category:       ports
>Synopsis:       Patch to enable LDAP support for Pine4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 26 06:10:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Mikko Tyolajarvi
>Release:        FreeBSD 4.0-RELEASE i386
>Organization:
>Environment:

ports/mail/pine4

>Description:

Pine can be built with support for LDAP lookups, which can be useful
(I use it daily).

>How-To-Repeat:
>Fix:

The following hack makes it possible to build pine with optional ldap
support, using the UM Ldap library.

Though it is theoretically possible to supply the "build" script with
arguments that are propagated to "make", the data is "eval"ed by the
shell so many times that it is practically impossible to use. The
sym-link variant works, though.

--- Makefile.org	Wed Apr 26 13:57:36 2000
+++ Makefile	Wed Apr 26 15:09:16 2000
@@ -20,6 +20,20 @@
 
 MAN1=		pine.1 pico.1 pilot.1
 
+# Define "WITH_LDAP" to include ldap support.
+# If the ldap port is installed somewhere other than /usr/local, define
+# LDAP_PREFIX as well.
+#
+.if defined(WITH_LDAP)
+LDAP_PREFIX?=	${PREFIX}
+BUILD_DEPENDS=	${LDAP_PREFIX}/lib/libldap.a:${PORTSDIR}/net/ldap
+
+do-configure:
+	-mkdir ${WRKSRC}/ldap
+	ln -sf ${LDAP_PREFIX}/include ${WRKSRC}/ldap/include
+	ln -sf  ${LDAP_PREFIX}/lib ${WRKSRC}/ldap/libraries
+.endif
+
 post-patch:
 	for i in ${WRKSRC}/doc/pine.1 \
 		${WRKSRC}/pine/init.c \

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004261310.PAA54386>