aboutsummaryrefslogtreecommitdiff
path: root/security/krb5
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2013-12-11 03:45:23 +0000
committerCy Schubert <cy@FreeBSD.org>2013-12-11 03:45:23 +0000
commita8a9c98a144a42506052eaf1002a7e4d2c013e98 (patch)
treea5426fa73d08a5aed088454c155439d78663b35e /security/krb5
parentfd2895f05c371fd10a6fe5ee2cbe27d5dd11c209 (diff)
downloadports-a8a9c98a144a42506052eaf1002a7e4d2c013e98.tar.gz
ports-a8a9c98a144a42506052eaf1002a7e4d2c013e98.zip
Notes
Diffstat (limited to 'security/krb5')
-rw-r--r--security/krb5/Makefile13
-rw-r--r--security/krb5/pkg-plist5
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