From owner-freebsd-ports Wed Apr 26 6:10: 6 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 1C35F37BDCE for ; Wed, 26 Apr 2000 06:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA59707; Wed, 26 Apr 2000 06:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from karon.dynas.se (karon.dynas.se [192.71.43.4]) by hub.freebsd.org (Postfix) with SMTP id 91BD737BD7D for ; Wed, 26 Apr 2000 06:09:43 -0700 (PDT) (envelope-from mikko@m2.dynas.se) Received: (qmail 67752 invoked from network); 26 Apr 2000 13:09:42 -0000 Received: from spirit.sto.dynas.se (HELO spirit.dynas.se) (172.16.1.10) by karon.sto.dynas.se with SMTP; 26 Apr 2000 13:09:42 -0000 Received: (qmail 16870 invoked from network); 26 Apr 2000 13:09:46 -0000 Received: from m2.dynas.se (172.16.1.168) by spirit.dynas.se with SMTP; 26 Apr 2000 13:09:46 -0000 Received: (from mikko@localhost) by m2.dynas.se (8.9.3/8.9.3) id PAA54386; Wed, 26 Apr 2000 15:10:20 +0200 (CEST) (envelope-from mikko) Message-Id: <200004261310.PAA54386@m2.dynas.se> Date: Wed, 26 Apr 2000 15:10:20 +0200 (CEST) From: mikko@dynas.se Reply-To: mikko@dynas.se To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/18228: Patch to enable LDAP support for Pine4 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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