ports/60390: [patch] Make nss_ldap respect PREFIX for configuration files
Lachlan O'Dea
odela01 at ca.com
Fri Dec 19 07:00:40 UTC 2003
>Number: 60390
>Category: ports
>Synopsis: [patch] Make nss_ldap respect PREFIX for configuration files
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 18 23:00:37 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Lachlan O'Dea
>Release: FreeBSD 5.2-CURRENT i386
>Organization:
Computer Associates
>Environment:
System: FreeBSD nargothrond.ca.com 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Thu Dec 11 17:13:30 EST 2003 odela01 at nargothrond.ca.com:/var/obj/usr/src/sys/NARGOTHROND i386
>Description:
nss_ldap.so always looks for ldap.conf and ldap.secret in /etc.
It could well be that this is simply a matter of taste, but as
the files in question are related to openldap, I'd prefer to put
them in ${PREFIX}/etc/openldap.
>How-To-Repeat:
cd /usr/ports/net/nss_ldap
make install
strings /usr/local/lib/nss_ldap.so.1 | grep etc
You'll currently see:
/etc/ldap.conf
/etc/ldap.secret
>Fix:
Index: Makefile
===================================================================
RCS file: /usr/site/freebsd-ncvs/ports/net/nss_ldap/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile 14 Aug 2003 22:12:22 -0000 1.6
+++ Makefile 19 Dec 2003 06:21:15 -0000
@@ -24,6 +24,8 @@
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib"
+CONFIGURE_ARGS= --with-ldap-conf-file=${PREFIX}/etc/openldap/ldap.conf \
+ --with-ldap-secret-file=${PREFIX}/etc/openldap/ldap.secret
post-extract:
${CP} ${FILESDIR}/bsdnss.c ${WRKSRC}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list