aboutsummaryrefslogtreecommitdiffstats
path: root/net/freeradius2
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2006-02-06 22:24:47 +0800
committersem <sem@FreeBSD.org>2006-02-06 22:24:47 +0800
commit0f954b38d3b7ea91f15b968c5ab40e0fde6399c1 (patch)
treed6f0f349ee8d7459d8fa6e3b886a00cc76cc623f /net/freeradius2
parentb0ec246f26c3b76f0cf9784241cf956e4ac2a4fe (diff)
downloadfreebsd-ports-gnome-0f954b38d3b7ea91f15b968c5ab40e0fde6399c1.tar.gz
freebsd-ports-gnome-0f954b38d3b7ea91f15b968c5ab40e0fde6399c1.tar.zst
freebsd-ports-gnome-0f954b38d3b7ea91f15b968c5ab40e0fde6399c1.zip
- Add heimdal kerberos support
Submitted by: Volodymyr Kostyrko <c.kworr@gmail.com> (ports@)
Diffstat (limited to 'net/freeradius2')
-rw-r--r--net/freeradius2/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/freeradius2/Makefile b/net/freeradius2/Makefile
index 27a86cf5c03b..5bb11838a450 100644
--- a/net/freeradius2/Makefile
+++ b/net/freeradius2/Makefile
@@ -38,6 +38,7 @@ CONFIGURE_ARGS= --prefix=${PREFIX} --quiet --with-logdir=${LOGDIR} \
PLIST_SUB= PORTVERSION=${PORTVERSION}
OPTIONS= KERBEROS "With Kerberos support" off \
+ HEIMDAL "With Heimdal Kerberos support" off \
LDAP "With LDAP user database" off \
MYSQL "With MySQL user database" off \
PGSQL "With PostgreSQL use database" off \
@@ -46,8 +47,17 @@ OPTIONS= KERBEROS "With Kerberos support" off \
.include <bsd.port.pre.mk>
+.if defined(WITH_HEIMDAL) && !defined(WITH_KERBEROS)
+WITH_KERBEROS= yes
+.endif
+
.ifdef(WITH_KERBEROS)
+.ifdef(WITH_HEIMDAL)
+LIB_DEPENDS+= krb5.20:${PORTSDIR}/security/heimdal
+CONFIGURE_ARGS+=--enable-heimdal-krb5
+.else
LIB_DEPENDS+= krb5.3:${PORTSDIR}/security/krb5
+.endif
CONFIGURE_ARGS+=--with-rlm-krb5-lib-dir=${LOCALBASE}/lib
CONFIGURE_ARGS+=--with-rlm-krb5-include-dir=${LOCALBASE}/include
PLIST_SUB+= KRB5=""