d5d398e3ca
What changed: - Implemented component clustering - Many virtual hosts in one SM process - FreeBSD kqueue support - Implemented PBX integration interface - crypt() password support for LDAP backend There is new <local/> section in sm.xml. You may use it to configure domains serviced by the SM process. Old style domain name in <id/> section still works for backward compatibility, but the <local/> section overrides it. You need to give different <id/> names to SM instances participating in clustering. Router needs a way to differenciate these. There is new <pbx/> section in c2s.xml configuration file. Please see it if you want to use the PBX integration. Packaging changes: added PKG_OPTIONS_GROUP.mio to control the choice of I/O modules. Defaulting to mio-select and mio-poll, which are known to work with NetBSD > 4.0.
108 lines
2.9 KiB
Makefile
108 lines
2.9 KiB
Makefile
# $NetBSD: options.mk,v 1.23 2009/09/06 04:18:11 schnoebe Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.jabberd2
|
|
PKG_OPTIONS_REQUIRED_GROUPS= auth storage sasl mio
|
|
# Authentication backend
|
|
PKG_OPTIONS_GROUP.auth= auth-mysql auth-pgsql auth-sqlite
|
|
PKG_OPTIONS_GROUP.auth+= auth-db auth-ldap auth-pam
|
|
# Storage backend
|
|
PKG_OPTIONS_GROUP.storage= storage-mysql storage-pgsql
|
|
PKG_OPTIONS_GROUP.storage+= storage-sqlite storage-db
|
|
# SASL implementation
|
|
PKG_OPTIONS_GROUP.sasl= sasl-cyrus sasl-gnu
|
|
# mio implementations
|
|
PKG_OPTIONS_GROUP.mio= mio-kqueue mio-select mio-poll mio-epoll
|
|
# debugging
|
|
PKG_SUPPORTED_OPTIONS+= debug
|
|
|
|
PKG_SUGGESTED_OPTIONS= auth-sqlite storage-sqlite sasl-gnu
|
|
PKG_SUGGESTED_OPTIONS+= mio-select mio-poll
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
PLIST_VARS+= db ldap mysql pam pgsql sqlite
|
|
|
|
.if !empty(PKG_OPTIONS:Msasl-cyrus)
|
|
CONFIGURE_ARGS+= --with-sasl=cyrus
|
|
. include "../../security/cyrus-sasl/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Msasl-gnu)
|
|
CONFIGURE_ARGS+= --with-sasl=gsasl
|
|
. include "../../security/gsasl/buildlink3.mk"
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mauth-db) || !empty(PKG_OPTIONS:Mstorage-db)
|
|
CONFIGURE_ARGS+= --enable-db
|
|
PLIST.db= yes
|
|
BDB_ACCEPTED= db4
|
|
BUILDLINK_TRANSFORM+= l:db:db4
|
|
. include "../../databases/db4/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-db
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mauth-mysql) || !empty(PKG_OPTIONS:Mstorage-mysql)
|
|
PLIST.mysql= yes
|
|
CONFIGURE_ARGS+= --enable-mysql
|
|
CPPFLAGS+= -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
|
|
. include "../../mk/mysql.buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-mysql
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mauth-pgsql) || !empty(PKG_OPTIONS:Mstorage-pgsql)
|
|
PLIST.pgsql= yes
|
|
CONFIGURE_ARGS+= --enable-pgsql
|
|
. include "../../mk/pgsql.buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-pgsql
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mauth-sqlite) || !empty(PKG_OPTIONS:Mstorage-sqlite)
|
|
PLIST.sqlite= yes
|
|
CONFIGURE_ARGS+= --enable-sqlite
|
|
. include "../../databases/sqlite3/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-sqlite
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mauth-ldap)
|
|
PLIST.ldap= yes
|
|
CONFIGURE_ARGS+= --enable-ldap
|
|
. include "../../databases/openldap-client/buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-ldap
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mauth-pam)
|
|
PLIST.pam= yes
|
|
CONFIGURE_ARGS+= --enable-pam
|
|
. include "../../mk/pam.buildlink3.mk"
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-pam
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mdebug)
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
CONFIGURE_ARGS+= --enable-developer
|
|
# CONFIGURE_ARGS+= --enable-nad-debug
|
|
# CONFIGURE_ARGS+= --enable-pool-debug
|
|
# CONFIGURE_ARGS+= --enable-mio-debug
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mmio-kqueue)
|
|
CONFIGURE_ARGS+= --enable-mio=kqueue
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mmio-epoll)
|
|
CONFIGURE_ARGS+= --enable-mio=epoll
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mmio-poll)
|
|
CONFIGURE_ARGS+= --enable-mio=poll
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mmio-select)
|
|
CONFIGURE_ARGS+= --enable-mio=select
|
|
.endif
|