pkgsrc/net/freeradius2/options.mk
adam eb1934f398 FreeRADIUS 2.1.4 Tue Mar 10 17:05:00 CEST 2009; , urgency=medium
* Permit multiple "-e" in radmin.
* Add support for originating CoA-Request and Disconnect-Request.
  See raddb/sites-available/originate-coa.
* Added "lifetime" and "max_queries" to raddb/sql.conf.
  This helps address the problem of hung SQL sockets.
* Allow packets to be injected via radmin.  See "inject help" in radmin.
* Answer VMPS reconfirmation request.
* Sample logrotate script in scripts/logrotate.freeradius
* Add configurable poll interval for "detail" listeners
* New "raddebug" command.  This prints debugging information from
  a running server.
* Add "require_message_authenticator" configuration to home_server
  configuration.  This makes the server add Message-Authenticator
  to all outgoing Access-Request packets.
* Added smsotp module.
* Enabled the administration socket in the default install.
  See raddb/sites-available/control-socket, and "man radmin"
* Handle duplicate clients, such as with replicated or
  load-balanced SQL servers and "readclients = yes"
* Bug fixes
2009-04-23 18:26:05 +00:00

135 lines
3.1 KiB
Makefile

# $NetBSD: options.mk,v 1.2 2009/04/23 18:26:05 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.freeradius
PKG_SUPPORTED_OPTIONS= ldap mysql pgsql snmp kerberos pam freeradius-simul-use
PKG_SUGGESTED_OPTIONS= gdbm freeradius-simul-use
PKG_OPTIONS_OPTIONAL_GROUPS= dbm odbc
PKG_OPTIONS_GROUP.dbm= bdb gdbm
PKG_OPTIONS_GROUP.odbc= iodbc unixodbc
.include "../../mk/bsd.options.mk"
PLIST_VARS+= dbm gdbm iodbc ldap kerberos mysql pam pgsql unixodbc
###
### GDBM or Berkeley DB 1.x support
###
.if !empty(PKG_OPTIONS:Mgdbm)
. include "../../databases/gdbm/buildlink3.mk"
CONFIGURE_ARGS+= --with-rlm_dbm
PLIST.dbm= yes
PLIST.gdbm= yes
.elif !empty(PKG_OPTIONS:Mbdb) && exists(/usr/include/ndbm.h)
BDB_ACCEPTED= db1
. include "../../mk/bdb.buildlink3.mk"
CONFIGURE_ARGS+= --with-rlm_dbm
PLIST.dbm= yes
.else
CONFIGURE_ARGS+= --without-rlm_dbm
.endif
###
### OpenLDAP support
###
.if !empty(PKG_OPTIONS:Mldap)
. include "../../databases/openldap-client/buildlink3.mk"
CONFIGURE_ARGS+= --with-rlm_ldap
PLIST.ldap= yes
.else
CONFIGURE_ARGS+= --without-rlm_ldap
.endif
###
### 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
###
.if !empty(PKG_OPTIONS:Mpgsql)
. include "../../mk/pgsql.buildlink3.mk"
CONFIGURE_ARGS+= --with-rlm_sql_postgresql
PLIST.pgsql= yes
.else
CONFIGURE_ARGS+= --without-rlm_sql_postgresql
.endif
###
### MySQL support
###
.if !empty(PKG_OPTIONS:Mmysql)
. include "../../mk/mysql.buildlink3.mk"
CONFIGURE_ARGS+= --with-rlm_sql_mysql
PLIST.mysql= yes
.else
CONFIGURE_ARGS+= --without-rlm_sql_mysql
.endif
###
### SNMP support
###
### 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
###
### Kerberos 5 support
###
.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
PLIST.kerberos= yes
.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
CONFIGURE_ENV+= ac_cv_path_SNMPGET=""
CONFIGURE_ENV+= ac_cv_path_SNMPWALK=""
.endif
###
### PAM support
###
.if !empty(PKG_OPTIONS:Mpam)
CONFIGURE_ARGS+= --with-rlm_pam
MESSAGE_SRC+= ${WRKDIR}/.MESSAGE_SRC.pam
PLIST.pam= yes
.else
CONFIGURE_ARGS+= --without-rlm_pam
.endif