Make nss_ldap pull its LDAP configuration from

${PREFIX}/etc/nss_ldap.conf rather than /etc/ldap.conf and the
LDAP secret from ${PREFIX}/etc/nss_ldap.secret rather than
/etc/ldap.secret.

Requested by:	Many.
This commit is contained in:
Jacques Vidrine 2004-01-08 14:28:35 +00:00
parent 8aaf4f712b
commit 44a9fa434a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97678
3 changed files with 28 additions and 2 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= nss_ldap
PORTVERSION= 1.${NSS_LDAP_VERSION}
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= http://www.padl.com/download/
DISTNAME= ${PORTNAME}-${NSS_LDAP_VERSION}
@ -21,15 +21,25 @@ NSS_LDAP_VERSION=204
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-ldap-conf-file=${PREFIX}/etc/nss_ldap.conf \
--with-ldap-secret-file=${PREFIX}/etc/nss_ldap.secret
post-extract:
${CP} ${FILESDIR}/bsdnss.c ${WRKSRC}
post-build:
${SED} -e "s,%%PREFIX%%,${PREFIX},g" ${PKGDIR}/pkg-message > ${PKGMESSAGE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/nss_ldap.so ${LOCALBASE}/lib/nss_ldap.so.1
${INSTALL_PROGRAM} ${WRKSRC}/nss_ldap.so ${PREFIX}/lib/nss_ldap.so.1
${INSTALL_DATA} ${WRKSRC}/ldap.conf ${PREFIX}/etc/nss_ldap.conf.sample
${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500112

15
net/nss_ldap/pkg-message Normal file
View file

@ -0,0 +1,15 @@
=====================================================================
The nss_ldap module expects to find its configuration files at the
following paths:
LDAP configuration: %%PREFIX%%/etc/nss_ldap.conf
LDAP secret (optional): %%PREFIX%%/etc/nss_ldap.secret
WARNING: For users of previous versions of this port:
WARNING:
WARNING: Previous versions of this port expected configuration files
WARNING: to be located at /etc/ldap.conf and /etc/ldap.secret. You
WARNING: may need to move these configuration files to their new
WARNING: location specified above.
=====================================================================

View file

@ -1 +1,2 @@
etc/nss_ldap.conf.sample
lib/nss_ldap.so.1