diff options
author | cy <cy@FreeBSD.org> | 2013-12-11 11:45:23 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2013-12-11 11:45:23 +0800 |
commit | 371f854fbb0f8c4ee483e28af2ea6fc36a1e8e66 (patch) | |
tree | a5426fa73d08a5aed088454c155439d78663b35e | |
parent | afaf165a645077fbe4521322a172d17ba9acf842 (diff) | |
download | freebsd-ports-gnome-371f854fbb0f8c4ee483e28af2ea6fc36a1e8e66.tar.gz freebsd-ports-gnome-371f854fbb0f8c4ee483e28af2ea6fc36a1e8e66.tar.zst freebsd-ports-gnome-371f854fbb0f8c4ee483e28af2ea6fc36a1e8e66.zip |
Add LDAP support.
PR: 184557
Submitted by: Erick Turnquist <jhujhiti@adjectivism.org>
-rw-r--r-- | security/krb5/Makefile | 13 | ||||
-rw-r--r-- | security/krb5/pkg-plist | 5 |
2 files changed, 15 insertions, 3 deletions
diff --git a/security/krb5/Makefile b/security/krb5/Makefile index 2327179c2252..27730da9fd5b 100644 --- a/security/krb5/Makefile +++ b/security/krb5/Makefile @@ -3,7 +3,7 @@ PORTNAME= krb5 PORTVERSION= 1.11.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= http://web.mit.edu/kerberos/dist/${PORTNAME}/${PORTVERSION:C/^[0-9]*\.[0-9]*/&X/:C/X\.[0-9]*$//:C/X//}/ DISTNAME= ${PORTNAME}-${PORTVERSION}-signed @@ -32,11 +32,12 @@ CONFIGURE_ARGS?= --enable-shared --without-system-verto CONFIGURE_ENV= INSTALL="${INSTALL}" YACC="${YACC}" MAKE_ARGS= INSTALL="${INSTALL}" -OPTIONS_DEFINE= KRB5_PDF KRB5_HTML DNS_FOR_REALM +OPTIONS_DEFINE= KRB5_PDF KRB5_HTML DNS_FOR_REALM LDAP OPTIONS_DEFAULT= KRB5_PDF KRB5_HTML KRB5_PDF_DESC= Install krb5 PDF documentation KRB5_HTML_DESC= Install krb5 HTML documentation DNS_FOR_REALM_DESC= Enable DNS lookups for Kerberos realm names +LDAP= Enable LDAP support .if defined(KRB5_HOME) PREFIX= ${KRB5_HOME} @@ -44,6 +45,7 @@ CFLAGS+= -rpath=${KRB5_HOME}/lib LDFLAGS+= -rpath=${KRB5_HOME}/lib .endif LDFLAGS+= -L${LOCALBASE}/lib +CFLAGS+= -I${LOCALBASE}/include USE_OPENSSL= yes @@ -54,6 +56,11 @@ NO_STAGE= yes CONFIGURE_ARGS+= --enable-dns-for-realm .endif +.if ${PORT_OPTIONS:MLDAP} +USE_OPENLDAP= yes +CONFIGURE_ARGS+= --with-ldap +.endif + .include "${PORTSDIR}/Mk/bsd.openssl.mk" MAN1= k5srvutil.1 kadmin.1 krb5-config.1 krb5-send-pr.1 \ @@ -74,7 +81,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src HTML_DOC_DIR= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/doc/html PDF_DOC_DIR= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/doc/pdf -CONFIGURE_ARGS+= CPPFLAGS="-I${OPENSSLINC} -L${OPENSSLLIB}" +CONFIGURE_ARGS+= CPPFLAGS="-I${OPENSSLINC} -L${OPENSSLLIB} -L${LOCALBASE}/include" post-extract: @${TAR} -C ${WRKDIR} -xzf ${WRKDIR}/${PORTNAME}-${PORTVERSION}.tar.gz diff --git a/security/krb5/pkg-plist b/security/krb5/pkg-plist index 7fad711ed79f..10295cfb0acf 100644 --- a/security/krb5/pkg-plist +++ b/security/krb5/pkg-plist @@ -38,6 +38,7 @@ include/gssrpc/svc_auth.h include/gssrpc/types.h include/gssrpc/xdr.h include/krb5.h +%%LDAP%%include/krb5/ccselect_plugin.h include/krb5/kadm5_hook_plugin.h include/krb5/krb5.h include/krb5/locate_plugin.h @@ -72,12 +73,16 @@ lib/libkrb5.so.3 lib/libkrb5support.so lib/libkrb5support.so.0 lib/krb5/plugins/kdb/db2.so +%%LDAP%%lib/krb5/plugins/kdb/kldap.so lib/krb5/plugins/preauth/pkinit.so +%%LDAP%%lib/libkdb_ldap.so +%%LDAP%%lib/libkdb_ldap.so.1 lib/libverto.so.0 lib/libverto.so sbin/gss-server sbin/kadmin.local sbin/kadmind +%%LDAP%%sbin/kdb5_ldap_util sbin/kdb5_util sbin/kprop sbin/kpropd |