From owner-freebsd-ports@FreeBSD.ORG Thu Jul 10 06:10:56 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59E3F37B401; Thu, 10 Jul 2003 06:10:56 -0700 (PDT) Received: from mail.caraldi.com (caraldi.com [62.212.102.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DAE443FBD; Thu, 10 Jul 2003 06:10:55 -0700 (PDT) (envelope-from jbq@caraldi.com) Received: from watt.intra.caraldi.com (watt.intra.caraldi.com [192.168.100.101]) by mail.caraldi.com (Postfix) with ESMTP id 46BA3229F; Thu, 10 Jul 2003 15:10:54 +0200 (CEST) Received: by watt.intra.caraldi.com (Postfix, from userid 1001) id E0CC165; Thu, 10 Jul 2003 13:07:53 +0200 (CEST) Date: Thu, 10 Jul 2003 13:07:53 +0200 From: Jean-Baptiste Quenot To: ports@freebsd.org Message-ID: <20030710110751.GA6966@watt.intra.caraldi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i cc: nectar@freebsd.org Subject: Patch port nss_ldap's Makefile for ldap.conf location X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2003 13:10:56 -0000 Please find below a patch that fixes the location of ldap.conf to reflect the location specified by the associated port pam_ldap. The config file should be $(PREFIX)/etc/ldap.conf, not /etc/ldap.conf. -----------------------------------8<----------------------------------- --- Makefile.orig Wed Jul 9 17:59:19 2003 +++ Makefile Wed Jul 9 17:58:50 2003 @@ -25,6 +25,9 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib" +CONFIGURE_ARGS= --with-ldap-conf-file=${PREFIX}/etc/ldap.conf \ + --with-ldap-secret-file=${PREFIX}/etc/ldap.secret + post-extract: ${CP} ${FILESDIR}/bsdnss.c ${WRKSRC} -----------------------------------8<----------------------------------- I've been struggling for hours trying to make nss_ldap work on FreeBSD 5.1 Release, and it was just that damn' file. BTW, it was not clear for me before, but pam_ldap is only used for authentication. Without nss_ldap, pam_ldap is pretty useless, ie it requires user entries in the local password file. Thank you, and keep up the good work! -- Jean-Baptiste Quenot http://caraldi.com/jbq/