summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/freeradius3/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/freeradius3/Makefile b/net/freeradius3/Makefile
index f1d713f41261..13a704133e4b 100644
--- a/net/freeradius3/Makefile
+++ b/net/freeradius3/Makefile
@@ -21,6 +21,13 @@ LICENSE= GPLv2
LIB_DEPENDS= libgdbm.so:databases/gdbm \
libtalloc.so:devel/talloc
+FLAVORS= default ldap mysql pgsql sqlite3
+FLAVOR?= ${FLAVORS:[1]}
+ldap_PKGNAMESUFFIX= -ldap
+mysql_PKGNAMESUFFIX= -mysql
+pgsql_PKGNAMESUFFIX= -pgsql
+sqlite3_PKGNAMESUFFIX= -sqlite3
+
LOGDIR?= /var/log
KRB5_CONFIG?= /usr/bin/krb5-config --libs
@@ -53,6 +60,19 @@ OPTIONS_DEFAULT=USER PERL HEIMDAL UDPFROMTO
OPTIONS_SINGLE= KRB
OPTIONS_SINGLE_KRB= NOKRB HEIMDAL HEIMDAL_PORT MITKRB_PORT
+.if ${FLAVOR} == ldap
+OPTIONS_DEFAULT+= LDAP
+.endif
+.if ${FLAVOR} == mysql
+OPTIONS_DEFAULT+= MYSQL
+.endif
+.if ${FLAVOR} == pgsql
+OPTIONS_DEFAULT+= PGSQL
+.endif
+.if ${FLAVOR} == sqlite3
+OPTIONS_DEFAULT+= SQLITE3
+.endif
+
USER_DESC= Run as user freeradius, group freeradius
KRB_DESC= ${KERBEROS_DESC}
NOKRB_DESC= Without Kerberos support