diff options
-rw-r--r-- | net/nss_ldap/Makefile | 14 | ||||
-rw-r--r-- | net/nss_ldap/pkg-message | 15 | ||||
-rw-r--r-- | net/nss_ldap/pkg-plist | 1 |
3 files changed, 28 insertions, 2 deletions
diff --git a/net/nss_ldap/Makefile b/net/nss_ldap/Makefile index 97ebb2a0683f..77cfe4315e01 100644 --- a/net/nss_ldap/Makefile +++ b/net/nss_ldap/Makefile @@ -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 diff --git a/net/nss_ldap/pkg-message b/net/nss_ldap/pkg-message new file mode 100644 index 000000000000..d3948e1d1302 --- /dev/null +++ b/net/nss_ldap/pkg-message @@ -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. +===================================================================== diff --git a/net/nss_ldap/pkg-plist b/net/nss_ldap/pkg-plist index 4f6c839f23f0..4e07a436c7d5 100644 --- a/net/nss_ldap/pkg-plist +++ b/net/nss_ldap/pkg-plist @@ -1 +1,2 @@ +etc/nss_ldap.conf.sample lib/nss_ldap.so.1 |