Changeset View
Changeset View
Standalone View
Standalone View
net/nss_ldap/Makefile
# Created by: Jacques Vidrine <nectar@FreeBSD.org> | # Created by: Jacques Vidrine <nectar@FreeBSD.org> | ||||
PORTNAME= nss_ldap | PORTNAME= nss_ldap | ||||
PORTVERSION= 1.${NSS_LDAP_VERSION} | PORTVERSION= 1.${NSS_LDAP_VERSION} | ||||
PORTREVISION= 13 | PORTREVISION= 14 | ||||
CATEGORIES= net | CATEGORIES= net | ||||
MASTER_SITES= http://www.padl.com/download/ \ | MASTER_SITES= http://www.padl.com/download/ \ | ||||
LOCAL/martymac | LOCAL/martymac | ||||
DISTNAME= ${PORTNAME}-${NSS_LDAP_VERSION} | DISTNAME= ${PORTNAME}-${NSS_LDAP_VERSION} | ||||
MAINTAINER= des@FreeBSD.org | MAINTAINER= des@FreeBSD.org | ||||
COMMENT= RFC 2307 NSS module | COMMENT= RFC 2307 NSS module | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
NSS_LDAP_VERSION=265 | NSS_LDAP_VERSION=265 | ||||
USES= autoreconf gmake perl5 | USES= autoreconf gmake perl5 | ||||
USE_PERL5= build | USE_PERL5= build | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
USE_OPENLDAP= yes | USE_OPENLDAP= yes | ||||
OPTIONS_DEFINE= LCLASS KERBEROS SASL | OPTIONS_DEFINE= LCLASS KERBEROS | ||||
OPTIONS_DEFAULT=LCLASS KERBEROS | OPTIONS_DEFAULT=LCLASS KERBEROS | ||||
LCLASS_DESC= Enable login classes via the loginClass attribute | LCLASS_DESC= Enable login classes via the loginClass attribute | ||||
SASL_DESC= Use the SASL-enabled version of OpenLDAP | |||||
CPPFLAGS+= -I${LOCALBASE}/include | CPPFLAGS+= -I${LOCALBASE}/include | ||||
LDFLAGS+= -L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib | ||||
CONFIGURE_ARGS= --with-ldap-conf-file=${PREFIX}/etc/nss_ldap.conf \ | CONFIGURE_ARGS= --with-ldap-conf-file=${PREFIX}/etc/nss_ldap.conf \ | ||||
--with-ldap-secret-file=${PREFIX}/etc/nss_ldap.secret \ | --with-ldap-secret-file=${PREFIX}/etc/nss_ldap.secret \ | ||||
--enable-rfc2307bis \ | --enable-rfc2307bis \ | ||||
--enable-paged-results | --enable-paged-results | ||||
SUB_FILES= pkg-message | SUB_FILES= pkg-message | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${PORT_OPTIONS:MKERBEROS} | .if ${PORT_OPTIONS:MKERBEROS} | ||||
CONFIGURE_ARGS+=--enable-configurable-krb5-ccname-gssapi \ | CONFIGURE_ARGS+=--enable-configurable-krb5-ccname-gssapi \ | ||||
--enable-configurable-krb5-keytab | --enable-configurable-krb5-keytab | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MLCLASS} | .if ${PORT_OPTIONS:MLCLASS} | ||||
CFLAGS+="-DHAVE_LOGIN_CLASSES" | CFLAGS+="-DHAVE_LOGIN_CLASSES" | ||||
.endif | |||||
.if ${PORT_OPTIONS:MSASL} | |||||
WANT_OPENLDAP_SASL= yes | |||||
.endif | .endif | ||||
post-extract: | post-extract: | ||||
${CP} ${FILESDIR}/bsdnss.c ${WRKSRC} | ${CP} ${FILESDIR}/bsdnss.c ${WRKSRC} | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's,/etc/ldap\.,${PREFIX}/etc/nss_ldap.,g' \ | @${REINPLACE_CMD} -e 's,/etc/ldap\.,${PREFIX}/etc/nss_ldap.,g' \ | ||||
-e 's,/etc/openldap/ldap\.,${PREFIX}/etc/openldap/ldap.,g' \ | -e 's,/etc/openldap/ldap\.,${PREFIX}/etc/openldap/ldap.,g' \ | ||||
Show All 20 Lines |