2010-05-23 19:28:44 +02:00
|
|
|
# $NetBSD: options.mk,v 1.4 2010/05/23 17:28:44 tron Exp $
|
2008-05-15 21:43:47 +02:00
|
|
|
|
2010-05-23 19:28:44 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.freeradius
|
|
|
|
PKG_SUPPORTED_OPTIONS= freeradius-simul-use kerberos ldap mysql
|
|
|
|
PKG_SUPPORTED_OPTIONS+= pam perl pgsql snmp
|
2009-04-23 20:26:05 +02:00
|
|
|
PKG_OPTIONS_OPTIONAL_GROUPS= dbm odbc
|
2010-05-23 19:28:44 +02:00
|
|
|
PKG_OPTIONS_GROUP.dbm= bdb gdbm
|
|
|
|
PKG_OPTIONS_GROUP.odbc= iodbc unixodbc
|
|
|
|
PKG_SUGGESTED_OPTIONS= freeradius-simul-use gdbm
|
2008-05-15 21:43:47 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2009-09-29 11:34:09 +02:00
|
|
|
PLIST_VARS+= dbm gdbm iodbc ldap kerberos mysql pam pgsql unixodbc perl
|
2009-04-23 20:26:05 +02:00
|
|
|
|
2008-05-15 21:43:47 +02:00
|
|
|
###
|
2009-04-23 20:26:05 +02:00
|
|
|
### GDBM or Berkeley DB 1.x support
|
2008-05-15 21:43:47 +02:00
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mgdbm)
|
|
|
|
. include "../../databases/gdbm/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-rlm_dbm
|
2009-04-23 20:26:05 +02:00
|
|
|
PLIST.dbm= yes
|
|
|
|
PLIST.gdbm= yes
|
2008-05-15 21:43:47 +02:00
|
|
|
.elif !empty(PKG_OPTIONS:Mbdb) && exists(/usr/include/ndbm.h)
|
|
|
|
BDB_ACCEPTED= db1
|
|
|
|
. include "../../mk/bdb.buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-rlm_dbm
|
2009-04-23 20:26:05 +02:00
|
|
|
PLIST.dbm= yes
|
2008-05-15 21:43:47 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-rlm_dbm
|
|
|
|
.endif
|
|
|
|
|
2009-09-29 11:34:09 +02:00
|
|
|
###
|
|
|
|
### PERL support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mperl)
|
|
|
|
. include "../../lang/perl5/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-rlm_perl
|
|
|
|
PLIST.perl= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-rlm_perl
|
|
|
|
.endif
|
|
|
|
|
2008-05-15 21:43:47 +02:00
|
|
|
###
|
2009-04-23 20:26:05 +02:00
|
|
|
### OpenLDAP support
|
2008-05-15 21:43:47 +02:00
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mldap)
|
|
|
|
. include "../../databases/openldap-client/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-rlm_ldap
|
2009-04-23 20:26:05 +02:00
|
|
|
PLIST.ldap= yes
|
2008-05-15 21:43:47 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-rlm_ldap
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
2009-04-23 20:26:05 +02:00
|
|
|
### IODBC support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Miodbc)
|
|
|
|
. include "../../databases/iodbc/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-rlm_sql_iodbc
|
|
|
|
PLIST.iodbc= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-rlm_sql_iodbc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### UnixDBC support
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Munixodbc)
|
|
|
|
. include "../../databases/unixodbc/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-rlm_sql_unixodbc
|
|
|
|
PLIST.unixodbc= yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-rlm_sql_unixodbc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### PostgreSQL support
|
2008-05-15 21:43:47 +02:00
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mpgsql)
|
|
|
|
. include "../../mk/pgsql.buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-rlm_sql_postgresql
|
2009-04-23 20:26:05 +02:00
|
|
|
PLIST.pgsql= yes
|
2008-05-15 21:43:47 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-rlm_sql_postgresql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
2009-04-23 20:26:05 +02:00
|
|
|
### MySQL support
|
2008-05-15 21:43:47 +02:00
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mmysql)
|
|
|
|
. include "../../mk/mysql.buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-rlm_sql_mysql
|
2009-04-23 20:26:05 +02:00
|
|
|
PLIST.mysql= yes
|
2008-05-15 21:43:47 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-rlm_sql_mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
2009-04-23 20:26:05 +02:00
|
|
|
### SNMP support
|
2008-05-15 21:43:47 +02:00
|
|
|
###
|
|
|
|
### Please note that snmp support is limited. Freeradius looks like it's
|
|
|
|
### after the old ucd-snmp (v4.x) headers and ucd-snmp isn't in pkgsrc any
|
|
|
|
### more. Compatability mode on the current net-snmp (v5.x) does not seem
|
|
|
|
### to work either. So it will find a few snmp utilites but other than that
|
|
|
|
### it's limited, at best.
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Msnmp)
|
|
|
|
. include "../../net/net-snmp/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-snmp
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-snmp
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
2009-04-23 20:26:05 +02:00
|
|
|
### Kerberos 5 support
|
2008-05-15 21:43:47 +02:00
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mkerberos)
|
|
|
|
. include "../../mk/krb5.buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-rlm_krb5
|
|
|
|
. if defined(KRB5_TYPE) && ${KRB5_TYPE} == "heimdal"
|
|
|
|
CONFIGURE_ARGS+= --enable-heimdal-krb5
|
|
|
|
. endif
|
2009-04-23 20:26:05 +02:00
|
|
|
PLIST.kerberos= yes
|
2008-05-15 21:43:47 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-rlm_krb5
|
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
|
|
|
### Enable Simultaneous-Use which needs snmpwalk and snmpget
|
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mfreeradius-simul-use)
|
|
|
|
. include "../../net/net-snmp/buildlink3.mk"
|
|
|
|
.else
|
2009-04-23 20:26:05 +02:00
|
|
|
CONFIGURE_ENV+= ac_cv_path_SNMPGET=""
|
|
|
|
CONFIGURE_ENV+= ac_cv_path_SNMPWALK=""
|
2008-05-15 21:43:47 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
###
|
2009-04-23 20:26:05 +02:00
|
|
|
### PAM support
|
2008-05-15 21:43:47 +02:00
|
|
|
###
|
|
|
|
.if !empty(PKG_OPTIONS:Mpam)
|
|
|
|
CONFIGURE_ARGS+= --with-rlm_pam
|
|
|
|
MESSAGE_SRC+= ${WRKDIR}/.MESSAGE_SRC.pam
|
2009-04-23 20:26:05 +02:00
|
|
|
PLIST.pam= yes
|
2008-05-15 21:43:47 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-rlm_pam
|
|
|
|
.endif
|